repo_name stringlengths 6 100 | path stringlengths 4 294 | copies stringclasses 981
values | size stringlengths 4 6 | content stringlengths 606 896k | license stringclasses 15
values | input_ids sequencelengths 1.02k 1.02k | labels sequencelengths 1.02k 1.02k | attention_mask sequencelengths 1.02k 1.02k |
|---|---|---|---|---|---|---|---|---|
132nd-etcher/EMFT | emft/gui/tab_about.py | 1 | 1269 | # coding=utf-8
from emft.core import constant
from emft.core.logging import make_logger
from emft.gui.base import GridLayout, HSpacer, Label, VLayout, VSpacer
from emft.gui.main_ui_tab_widget import MainUiTabChild
LOGGER = make_logger(__name__)
class TabChildAbout(MainUiTabChild):
def tab_clicked(self):
... | gpl-3.0 | [
3,
2803,
29,
1624,
13,
24,
199,
199,
504,
18564,
856,
14,
1018,
492,
4413,
199,
504,
18564,
856,
14,
1018,
14,
4806,
492,
1852,
63,
2921,
199,
504,
18564,
856,
14,
5885,
14,
1095,
492,
16386,
4798,
12,
869,
12739,
2247,
12,
10354,... | [
2803,
29,
1624,
13,
24,
199,
199,
504,
18564,
856,
14,
1018,
492,
4413,
199,
504,
18564,
856,
14,
1018,
14,
4806,
492,
1852,
63,
2921,
199,
504,
18564,
856,
14,
5885,
14,
1095,
492,
16386,
4798,
12,
869,
12739,
2247,
12,
10354,
12... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
jfinkels/networkx | networkx/readwrite/graph6.py | 3 | 7803 | # Original author: D. Eppstein, UC Irvine, August 12, 2003.
# The original code at http://www.ics.uci.edu/~eppstein/PADS/ is public domain.
# Copyright (C) 2004-2016 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# Tomas Gavenciak <gavento@ucw.cz>
... | bsd-3-clause | [
3,
12769,
4132,
26,
577,
14,
662,
802,
1597,
262,
12,
738,
35,
473,
6310,
1132,
12,
25298,
833,
3144,
12,
13004,
14,
199,
3,
710,
3379,
1233,
737,
1455,
921,
1544,
14,
2932,
14,
85,
559,
14,
8654,
22500,
69,
802,
1597,
262,
15,
... | [
12769,
4132,
26,
577,
14,
662,
802,
1597,
262,
12,
738,
35,
473,
6310,
1132,
12,
25298,
833,
3144,
12,
13004,
14,
199,
3,
710,
3379,
1233,
737,
1455,
921,
1544,
14,
2932,
14,
85,
559,
14,
8654,
22500,
69,
802,
1597,
262,
15,
324... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
imply/chuu | ppapi/generators/idl_lexer.py | 62 | 9292 | #!/usr/bin/env python
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
""" Lexer for PPAPI IDL """
#
# IDL Lexer
#
# The lexer is uses the PLY lex library to build a tokenizer which understands
# WebID... | bsd-3-clause | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
6029,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
1898,
334,
67,
9,
6029,
710,
12051,
6642,
14,
2900,
4481,
4644,
14,
199,
3,
3645,
402,
642,
1350,
1233,
365,
10413,
701,
282,
6289,
13,
2487,
4190,
626,
883,
506,
199,
3,
1911,
315,
314,
5... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
sanger-pathogens/gff3toembl | gff3toembl/EMBLConverter.py | 3 | 1946 | import gff3toembl
from gt import CustomVisitor
from gff3toembl.EMBLContig import EMBLContig
class EMBLConverter(CustomVisitor):
def __init__(self, locus_tag=None, translation_table=11):
CustomVisitor.__init__(self)
self.contigs = {}
self.locus_tag = locus_tag
self.translation_table... | gpl-3.0 | [
646,
486,
556,
19,
475,
18847,
76,
199,
504,
16484,
492,
8388,
18324,
199,
504,
486,
556,
19,
475,
18847,
76,
14,
2769,
7847,
714,
17277,
492,
662,
4567,
44,
714,
17277,
199,
199,
533,
662,
4567,
44,
11907,
8,
7223,
18324,
304,
33... | [
486,
556,
19,
475,
18847,
76,
199,
504,
16484,
492,
8388,
18324,
199,
504,
486,
556,
19,
475,
18847,
76,
14,
2769,
7847,
714,
17277,
492,
662,
4567,
44,
714,
17277,
199,
199,
533,
662,
4567,
44,
11907,
8,
7223,
18324,
304,
339,
34... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
SanPen/GridCal | src/GridCal/Engine/Sparse/utils.py | 1 | 2463 | # This file is part of GridCal.
#
# GridCal is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# GridCal is distributed in the hope that... | gpl-3.0 | [
3,
961,
570,
365,
1777,
402,
16386,
6584,
14,
199,
3,
199,
3,
16386,
6584,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701,
199,
3,
314... | [
961,
570,
365,
1777,
402,
16386,
6584,
14,
199,
3,
199,
3,
16386,
6584,
365,
2867,
2032,
26,
1265,
883,
3604,
652,
436,
15,
269,
2811,
199,
3,
652,
1334,
314,
2895,
402,
314,
1664,
1696,
1684,
844,
465,
3267,
701,
199,
3,
314,
2... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
trashkalmar/omim | tools/python/mwm/dump_mwm.py | 10 | 1418 | #!/usr/bin/python
import sys, os.path, random
import json
from mwm import MWM
if len(sys.argv) < 2:
print('Dumps some MWM structures.')
print('Usage: {0} <country.mwm>'.format(sys.argv[0]))
sys.exit(1)
mwm = MWM(open(sys.argv[1], 'rb'))
mwm.read_types(os.path.join(os.path.dirname(sys.argv[0]), '..', '..',... | apache-2.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
646,
984,
12,
747,
14,
515,
12,
2196,
199,
646,
2022,
199,
504,
333,
16240,
492,
603,
13073,
199,
199,
692,
822,
8,
1274,
14,
3020,
9,
665,
499,
26,
272,
870,
360,
11772,
83,
2005,
603,
13073... | [
2647,
15,
1393,
15,
1548,
199,
646,
984,
12,
747,
14,
515,
12,
2196,
199,
646,
2022,
199,
504,
333,
16240,
492,
603,
13073,
199,
199,
692,
822,
8,
1274,
14,
3020,
9,
665,
499,
26,
272,
870,
360,
11772,
83,
2005,
603,
13073,
1395... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
vergecurrency/electrum-xvg | gui/qt/version_getter.py | 2 | 4598 | #!/usr/bin/env python
#
# Electrum - lightweight Bitcoin client
# Copyright (C) 2012 thomasv@gitorious
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
662,
1264,
28430,
446,
10540,
3463,
21158,
1890,
199,
3,
1898,
334,
35,
9,
6029,
294,
676,
305,
86,
32,
3187,
16039,
1785,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
126... | [
2647,
15,
1393,
15,
1813,
2366,
199,
3,
199,
3,
662,
1264,
28430,
446,
10540,
3463,
21158,
1890,
199,
3,
1898,
334,
35,
9,
6029,
294,
676,
305,
86,
32,
3187,
16039,
1785,
199,
3,
199,
3,
961,
2240,
365,
2867,
2032,
26,
1265,
883... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
lambeau/ansible-modules-core | cloud/openstack/_quantum_router.py | 37 | 7032 | #!/usr/bin/python
#coding: utf-8 -*-
# (c) 2013, Benno Joy <benno@ansible.com>
#
# This module is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later ... | gpl-3.0 | [
3381,
2647,
15,
1393,
15,
1548,
199,
3,
1523,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
6171,
12,
26844,
889,
7135,
89,
665,
18486,
889,
32,
4853,
14,
957,
30,
199,
3,
199,
3,
961,
859,
365,
2867,
2032,
26,
1265,
883,
... | [
2647,
15,
1393,
15,
1548,
199,
3,
1523,
26,
2774,
13,
24,
1882,
199,
199,
3,
334,
67,
9,
6171,
12,
26844,
889,
7135,
89,
665,
18486,
889,
32,
4853,
14,
957,
30,
199,
3,
199,
3,
961,
859,
365,
2867,
2032,
26,
1265,
883,
3604,
... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
regionbibliotekhalland/digitalasagor | edittabvideo.py | 1 | 4897 | # Copyright 2013 Regionbibliotek Halland
#
# This file is part of Digitala sagor.
#
# Digitala sagor is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# ... | gpl-3.0 | [
3,
259,
1898,
6171,
22240,
8804,
317,
1583,
75,
869,
452,
460,
202,
199,
3,
202,
199,
3,
259,
961,
570,
365,
1777,
402,
29979,
65,
308,
643,
269,
14,
202,
199,
3,
202,
199,
3,
259,
29979,
65,
308,
643,
269,
365,
2867,
2032,
26... | [
259,
1898,
6171,
22240,
8804,
317,
1583,
75,
869,
452,
460,
202,
199,
3,
202,
199,
3,
259,
961,
570,
365,
1777,
402,
29979,
65,
308,
643,
269,
14,
202,
199,
3,
202,
199,
3,
259,
29979,
65,
308,
643,
269,
365,
2867,
2032,
26,
1... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
devalbo/mm_anywhere | google/protobuf/internal/encoder.py | 484 | 25695 | # Protocol Buffers - Google's data interchange format
# Copyright 2008 Google Inc. All rights reserved.
# http://code.google.com/p/protobuf/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# * Redistributions o... | agpl-3.0 | [
3,
11557,
699,
3043,
1192,
446,
4475,
1159,
666,
1640,
1461,
1475,
199,
3,
1898,
9079,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
1455,
921,
600,
14,
3098,
14,
957,
15,
80,
15,
7204,
15,
199,
3,
199,
3,
10114,
436,
675,
... | [
11557,
699,
3043,
1192,
446,
4475,
1159,
666,
1640,
1461,
1475,
199,
3,
1898,
9079,
4475,
3277,
14,
221,
2900,
4481,
4644,
14,
199,
3,
1455,
921,
600,
14,
3098,
14,
957,
15,
80,
15,
7204,
15,
199,
3,
199,
3,
10114,
436,
675,
315... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
ciudadanointeligente/lobby_cplt | lobby/csv_reader.py | 1 | 1655 | from lobby.models import Active, Audiencia, Passive
from popolo.models import Identifier
import uuid
import unicodedata
from datetime import datetime
class ActivosCSVReader():
def parse_line(self, line):
active = Active()
active.name = unicode(line[3] + " " + line[4])
active.save()
... | agpl-3.0 | [
504,
560,
66,
991,
14,
992,
492,
23241,
12,
437,
14525,
287,
16521,
12,
510,
13202,
199,
504,
4560,
79,
320,
14,
992,
492,
23285,
199,
646,
5377,
199,
646,
23128,
199,
504,
2197,
492,
2197,
421,
199,
533,
21904,
86,
736,
19018,
59... | [
560,
66,
991,
14,
992,
492,
23241,
12,
437,
14525,
287,
16521,
12,
510,
13202,
199,
504,
4560,
79,
320,
14,
992,
492,
23285,
199,
646,
5377,
199,
646,
23128,
199,
504,
2197,
492,
2197,
421,
199,
533,
21904,
86,
736,
19018,
5929,
8... | [
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1,
1... |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 4