hexsha
stringlengths
40
40
size
int64
7
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
125
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
247
max_issues_repo_name
stringlengths
4
125
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
247
max_forks_repo_name
stringlengths
4
125
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.77
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
7
1.04M
filtered:remove_function_no_docstring
int64
-102
942k
filtered:remove_class_no_docstring
int64
-354
977k
filtered:remove_delete_markers
int64
0
60.1k
d377f1664733df97e8a8557ff37a39d5ee25da9a
11,493
py
Python
lib/rank_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
19
2020-12-14T13:53:10.000Z
2022-02-27T09:46:15.000Z
lib/rank_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
3
2021-01-16T11:41:07.000Z
2021-08-06T08:21:42.000Z
lib/rank_utils.py
h-zcc/ref-nms
8f83f350c497d0ef875c778a8ce76725552abb3c
[ "MIT" ]
3
2021-01-10T15:25:29.000Z
2021-09-26T01:38:16.000Z
import os import random import pickle import math import torch from torch.utils.data import Dataset from torchvision.ops import nms import numpy as np import h5py from tqdm import trange from utils.misc import mrcn_crop_pool_layer, recursive_jitter_roi, repeat_loader, calculate_iou __all__ = ['RankDataset', 'RankEv...
44.546512
115
0.612982
import os import random import pickle import math import torch from torch.utils.data import Dataset from torchvision.ops import nms import numpy as np import h5py from tqdm import trange from utils.misc import mrcn_crop_pool_layer, recursive_jitter_roi, repeat_loader, calculate_iou __all__ = ['RankDataset', 'RankEv...
5,484
5,589
69
f846089e57b3846e8efa30888ad772d677ae9a4e
1,151
py
Python
blink.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
1
2020-12-30T11:45:41.000Z
2020-12-30T11:45:41.000Z
blink.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
null
null
null
blink.py
VictorKoenders/icesugar_template
fa279b81b9e1b75a840bae9ec798ea356a5c8fa3
[ "BSD-2-Clause" ]
null
null
null
from nmigen import * from nmigen.build import Platform # Simple blink script. Call this with: # ```python # blink = Blink(12000000) # blink once a second, the icesugar runs at 12mhz # led = platform.request('led_r') # # m = Module() # m.submodules += blink # m.d.comb += led.eq(blink.state) # ```
30.289474
86
0.573414
from nmigen import * from nmigen.build import Platform # Simple blink script. Call this with: # ```python # blink = Blink(12000000) # blink once a second, the icesugar runs at 12mhz # led = platform.request('led_r') # # m = Module() # m.submodules += blink # m.d.comb += led.eq(blink.state) # ``` class Blink(Elaborat...
771
5
76
8940dcd76c1dc9c9d6d9555a7ba9951f47cf1f4c
2,628
py
Python
tests/cp2/test_cp2_cjalr_delay_2.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
tests/cp2/test_cp2_cjalr_delay_2.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
2
2020-06-02T13:44:55.000Z
2020-06-02T14:06:29.000Z
tests/cp2/test_cp2_cjalr_delay_2.py
capt-hb/cheritest
d3b3637a81a0005ee7272eca0f33a9f9911fdb32
[ "Apache-2.0" ]
null
null
null
#- # Copyright (c) 2018 Alex Richardson # All rights reserved. # # This software was developed by the University of Cambridge Computer # Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS) # project, funded by EPSRC grant EP/K008528/1. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BERI Open Sy...
48.666667
129
0.753425
#- # Copyright (c) 2018 Alex Richardson # All rights reserved. # # This software was developed by the University of Cambridge Computer # Laboratory as part of the Rigorous Engineering of Mainstream Systems (REMS) # project, funded by EPSRC grant EP/K008528/1. # # @BERI_LICENSE_HEADER_START@ # # Licensed to BERI Open Sy...
698
712
22
26cbb4361ec421cd4609b0ca8de7aad4035a3574
392
py
Python
test/optest/tfunits/RangeTest.py
ishine/MAI
64753cd2f59af2949896937c2e5dbfc4d8bab1e0
[ "Apache-2.0" ]
null
null
null
test/optest/tfunits/RangeTest.py
ishine/MAI
64753cd2f59af2949896937c2e5dbfc4d8bab1e0
[ "Apache-2.0" ]
null
null
null
test/optest/tfunits/RangeTest.py
ishine/MAI
64753cd2f59af2949896937c2e5dbfc4d8bab1e0
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf from tensorflow.python.framework import graph_util sess = tf.InteractiveSession() op = tf.range([3, 4], [18, 10], [5, 3], name="range") target=op.eval(); print(target) constant_graph = graph_util.convert_variables_to_constants(sess, sess.graph_def, ['range']) with tf.gfile.FastGFile("range....
24.5
91
0.732143
import tensorflow as tf from tensorflow.python.framework import graph_util sess = tf.InteractiveSession() op = tf.range([3, 4], [18, 10], [5, 3], name="range") target=op.eval(); print(target) constant_graph = graph_util.convert_variables_to_constants(sess, sess.graph_def, ['range']) with tf.gfile.FastGFile("range....
0
0
0
ff45733d9acd64d8b12aef8074fc5fafc63f8108
21,252
py
Python
import.py
pangaea-data-publisher/pg_itis_importer
fc95b3446cae234d8b81da345418452a2c7f970f
[ "MIT" ]
1
2019-12-19T08:44:36.000Z
2019-12-19T08:44:36.000Z
import.py
pangaea-data-publisher/pg_itis_importer
fc95b3446cae234d8b81da345418452a2c7f970f
[ "MIT" ]
null
null
null
import.py
pangaea-data-publisher/pg_itis_importer
fc95b3446cae234d8b81da345418452a2c7f970f
[ "MIT" ]
2
2019-12-19T08:45:31.000Z
2021-05-21T19:31:16.000Z
#!/usr/bin/python import configparser import argparse import pandas as pd import datetime import sql_itis import logging import os import requests from zipfile import ZipFile, BadZipfile import re from io import BytesIO import xml.etree.ElementTree as ET #test olnly if __name__ == '__main__': global logger lo...
56.222222
214
0.705816
#!/usr/bin/python import configparser import argparse import pandas as pd import datetime import sql_itis import logging import os import requests from zipfile import ZipFile, BadZipfile import re from io import BytesIO import xml.etree.ElementTree as ET def main(): global args global configParser global l...
20,531
0
137
e131b4deaad7c1f2f0d1c367199590ac52412338
3,053
py
Python
category/CategoryFetcher.py
evrard1301/books-to-scrape
c687bfd328ceb37ab3453d6079360db5cdd5d920
[ "MIT" ]
1
2022-01-28T08:00:11.000Z
2022-01-28T08:00:11.000Z
category/CategoryFetcher.py
evrard1301/books-to-scrape
c687bfd328ceb37ab3453d6079360db5cdd5d920
[ "MIT" ]
null
null
null
category/CategoryFetcher.py
evrard1301/books-to-scrape
c687bfd328ceb37ab3453d6079360db5cdd5d920
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from book import BookFetcher from category import Category import concurrent.futures import time import colorama class CategoryFetcher: """ Create a category object containing book objects. """ @staticmethod
29.640777
79
0.528988
from bs4 import BeautifulSoup from book import BookFetcher from category import Category import concurrent.futures import time import colorama class CategoryFetcher: """ Create a category object containing book objects. """ def __init__(self, app, url, session): self.app = app sel...
2,658
0
134
7aebb6fadc7b10e49f91837a81257338471cd7f3
3,452
py
Python
pandas/tests/io/formats/style/test_tooltip.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-05-07T04:58:36.000Z
2021-05-07T04:58:59.000Z
pandas/tests/io/formats/style/test_tooltip.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
pandas/tests/io/formats/style/test_tooltip.py
madhuv2002/pandas
006f1e0efb3ec81d52ff4d080b0c770b7b79d041
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
2
2021-06-16T07:19:12.000Z
2021-12-16T10:24:44.000Z
import numpy as np import pytest from pandas import DataFrame pytest.importorskip("jinja2") from pandas.io.formats.style import Styler
34.52
88
0.490151
import numpy as np import pytest from pandas import DataFrame pytest.importorskip("jinja2") from pandas.io.formats.style import Styler class TestStylerTooltip: @pytest.mark.parametrize( "ttips", [ DataFrame( data=[["Min", "Max"], [np.nan, ""]], columns...
2,747
544
23
ef5e87f8f054a38534a942f20676b18145392229
7,450
py
Python
core/help.py
Vincydotzsh/StrapBot
1420040b786d2ff47aafe8c37698aa91217b6cb5
[ "MIT" ]
7
2021-01-22T03:45:01.000Z
2022-01-02T05:14:53.000Z
core/help.py
Vincydotzsh/StrapBot
1420040b786d2ff47aafe8c37698aa91217b6cb5
[ "MIT" ]
2
2020-08-09T17:21:09.000Z
2020-08-10T08:20:22.000Z
core/help.py
Vincydotzsh/StrapBot
1420040b786d2ff47aafe8c37698aa91217b6cb5
[ "MIT" ]
4
2020-08-09T12:07:27.000Z
2020-10-27T18:52:16.000Z
import discord import json import random from discord.ext import commands from difflib import get_close_matches from core.paginator import EmbedPaginatorSession as EPS
35.990338
100
0.539866
import discord import json import random from discord.ext import commands from difflib import get_close_matches from core.paginator import EmbedPaginatorSession as EPS class HelpCommand(commands.HelpCommand): async def send_bot_help(self, mapping): ctx = self.context bot = ctx.bot lang = c...
7,078
19
184
dc0fb9cfbdc29f0618bb324ecd977506af168797
5,395
py
Python
hiicart/gateway/authorizenet/forms.py
hiidef/hiicart
424ee64b5f298c377df35a59cc8b5c4b05c885f0
[ "MIT" ]
1
2016-07-15T05:10:24.000Z
2016-07-15T05:10:24.000Z
hiicart/gateway/authorizenet/forms.py
hiidef/hiicart
424ee64b5f298c377df35a59cc8b5c4b05c885f0
[ "MIT" ]
null
null
null
hiicart/gateway/authorizenet/forms.py
hiidef/hiicart
424ee64b5f298c377df35a59cc8b5c4b05c885f0
[ "MIT" ]
null
null
null
from django.utils import timezone from django import forms from django.forms.util import ErrorDict PAYMENT_FIELDS = {'credit_card__number': 'x_card_num', 'credit_card__cvv': 'x_card_code', 'credit_card__exp_date': 'x_exp_date', 'credit_card__expiration_month': 'x_e...
39.379562
131
0.60519
from django.utils import timezone from django import forms from django.forms.util import ErrorDict PAYMENT_FIELDS = {'credit_card__number': 'x_card_num', 'credit_card__cvv': 'x_card_code', 'credit_card__exp_date': 'x_exp_date', 'credit_card__expiration_month': 'x_e...
557
0
81
1c3c89eef599aed04fda4f871c9ab8f8c5f9eedc
8,653
py
Python
privex/db/query/postgres.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
1
2019-12-19T13:12:53.000Z
2019-12-19T13:12:53.000Z
privex/db/query/postgres.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
9
2020-02-24T20:14:53.000Z
2021-04-30T21:51:04.000Z
privex/db/query/postgres.py
Privex/python-db
3b46b34b4310973e2e2a30a66adaa853fd10340d
[ "X11" ]
null
null
null
from typing import Iterable, Union import psycopg2.extras import psycopg2.extensions import logging from privex.db.base import CursorManager from privex.db.types import GenericCursor from privex.db.query.base import BaseQueryBuilder, QueryMode log = logging.getLogger(__name__) class PostgresQueryBuilder(BaseQueryBu...
42.209756
117
0.602912
from typing import Iterable, Union import psycopg2.extras import psycopg2.extensions import logging from privex.db.base import CursorManager from privex.db.types import GenericCursor from privex.db.query.base import BaseQueryBuilder, QueryMode log = logging.getLogger(__name__) class PostgresQueryBuilder(BaseQueryBu...
1,268
0
137
5f79e077a02d5ce3c31b99fd6b85368591c1a95a
1,373
py
Python
kaffepause/breaks/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
kaffepause/breaks/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
2
2022-02-28T21:04:22.000Z
2022-03-01T21:05:37.000Z
kaffepause/breaks/types.py
Eirsteir/kaffepause
77535f057e68d575831e3a44f36285ab2fe621d4
[ "MIT" ]
null
null
null
import graphene from graphene import relay from kaffepause.common.types import CountableConnection from kaffepause.users.types import UserConnection, UserNode
25.425926
59
0.715222
import graphene from graphene import relay from kaffepause.common.types import CountableConnection from kaffepause.users.types import UserConnection, UserNode class BreakInvitationNode(graphene.ObjectType): class Meta: interfaces = (relay.Node,) name = "BreakInvitation" uuid = graphene.UUID(...
275
842
92
d3238a9adc42a7a3a67e9efc3985721a9b046fca
411
py
Python
build/lib/stdlib.py
nirvanasupermind/qlang
c3264a343f19af0de1161b006c6ec2ee86e73882
[ "MIT" ]
null
null
null
build/lib/stdlib.py
nirvanasupermind/qlang
c3264a343f19af0de1161b006c6ec2ee86e73882
[ "MIT" ]
null
null
null
build/lib/stdlib.py
nirvanasupermind/qlang
c3264a343f19af0de1161b006c6ec2ee86e73882
[ "MIT" ]
null
null
null
from symbol_table import SymbolTable from values import * # def func_N(args): # return Number(float(args[0])) stdlib = SymbolTable() stdlib.set('I', Func(func_I)) stdlib.set('S', Func(func_S)) # stdlib.set('N', Func(func_N)) stdlib.set('P', Func(func_P))
19.571429
36
0.6691
from symbol_table import SymbolTable from values import * def func_I(args): return String(input()) # def func_N(args): # return Number(float(args[0])) def func_S(args): return String(str(args[0])) def func_P(args): print(args[0]) return At() stdlib = SymbolTable() stdlib.set('I', Func(func_I)) ...
82
0
69
87099d71b8ca6b5e934f386689ac8e4a3510c1b8
1,705
py
Python
autodisc/autodisc/test/helper/test_data.py
flowersteam/automated_discovery_of_lenia_patterns
97cc7cde2120fa95225d1e470e00b8aa8c034e97
[ "MIT" ]
10
2019-10-05T16:22:11.000Z
2021-12-30T14:09:42.000Z
autodisc/autodisc/test/helper/test_data.py
flowersteam/automated_discovery_of_lenia_patterns
97cc7cde2120fa95225d1e470e00b8aa8c034e97
[ "MIT" ]
null
null
null
autodisc/autodisc/test/helper/test_data.py
flowersteam/automated_discovery_of_lenia_patterns
97cc7cde2120fa95225d1e470e00b8aa8c034e97
[ "MIT" ]
2
2019-10-14T12:12:38.000Z
2020-09-16T11:18:26.000Z
import json import numpy as np from autodisc.helper.data import JSONNumpyEncoder, json_numpy_object_hook from autodisc.helper.data import set_dict_default_values
30.446429
73
0.662757
import json import numpy as np from autodisc.helper.data import JSONNumpyEncoder, json_numpy_object_hook from autodisc.helper.data import set_dict_default_values def test_set_dict_default_values(): # simple dict def_dict = {'a': 1, 'b': 2} trg_dict = {'b': 20, 'c': 30} test_dict = {'a': 1, 'b': 20, '...
1,494
0
46
7dc1b794b1cf3088e6b7b3eb17ce6b5a2b877126
13,924
py
Python
bin/useful.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
bin/useful.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
bin/useful.py
ddierschow/cab984
108ec0e4358690719ca2dabe0149021cfc7acd93
[ "MIT" ]
null
null
null
#!/usr/local/bin/python # Things that are generally useful but require nothing other # than standard libraries. import copy, filecmp, glob, itertools, os, pprint, random, re, stat, string, urllib, urllib2 import config # bleagh import jinja2 #html_done = False alnum = string.digits + string.ascii_lowercase if os....
25.133574
106
0.561692
#!/usr/local/bin/python # Things that are generally useful but require nothing other # than standard libraries. import copy, filecmp, glob, itertools, os, pprint, random, re, stat, string, urllib, urllib2 import config # bleagh import jinja2 #html_done = False alnum = string.digits + string.ascii_lowercase if os....
11,126
25
1,145
d4ea8d0544d32bf366920147a6e0481967b26f78
11,865
py
Python
eneel/load_strategies.py
alangsbo/eneel
da6b9e83006bfabc698c4f379ccb4683a981d26c
[ "Apache-2.0" ]
null
null
null
eneel/load_strategies.py
alangsbo/eneel
da6b9e83006bfabc698c4f379ccb4683a981d26c
[ "Apache-2.0" ]
null
null
null
eneel/load_strategies.py
alangsbo/eneel
da6b9e83006bfabc698c4f379ccb4683a981d26c
[ "Apache-2.0" ]
null
null
null
import eneel.load_functions as load_functions import eneel.printer as printer import logging logger = logging.getLogger("main_logger")
28.25
103
0.510409
import eneel.load_functions as load_functions import eneel.printer as printer import logging logger = logging.getLogger("main_logger") def strategy_full_table_load( return_code, index, total, source, source_schema, source_table, source_where, columns, temp_path_load, csv_deli...
11,656
0
69
40e672e25128882c333a12ff8a5d1bce0082721b
10,296
py
Python
lime/qchem/DFT/G0W0.py
binggu56/scitools
3f7ce3d8411a23186c73f1bb87a8778e039fbd0b
[ "MIT" ]
2
2018-11-25T21:57:11.000Z
2018-12-15T09:10:18.000Z
lime/qchem/DFT/G0W0.py
binggu56/scitools
3f7ce3d8411a23186c73f1bb87a8778e039fbd0b
[ "MIT" ]
null
null
null
lime/qchem/DFT/G0W0.py
binggu56/scitools
3f7ce3d8411a23186c73f1bb87a8778e039fbd0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @Author: Timothy Berkelbach Bing Gu Spin-orbital G0W0 Refs [1] Lange and Berkelbach, 2018, JCTC """ import numpy as np import scipy.linalg from scipy.optimize import newton from pyscf.lib import logger import pyscf.ao2mo import pyscf from functools import reduce def g0(gw, om...
28.921348
95
0.534965
# -*- coding: utf-8 -*- """ @Author: Timothy Berkelbach Bing Gu Spin-orbital G0W0 Refs [1] Lange and Berkelbach, 2018, JCTC """ import numpy as np import scipy.linalg from scipy.optimize import newton from pyscf.lib import logger import pyscf.ao2mo import pyscf from functools import reduce def g0(gw, om...
3,206
-4
288
83927dab959f91d040e155d02a8784ff1d9e1f8b
1,533
py
Python
test/script_test/basic_test.py
kbaseIncubator/core_genome_utilities
63a4cf0de2910a985ad3b9a1527a55dd0ef4e399
[ "MIT" ]
null
null
null
test/script_test/basic_test.py
kbaseIncubator/core_genome_utilities
63a4cf0de2910a985ad3b9a1527a55dd0ef4e399
[ "MIT" ]
null
null
null
test/script_test/basic_test.py
kbaseIncubator/core_genome_utilities
63a4cf0de2910a985ad3b9a1527a55dd0ef4e399
[ "MIT" ]
null
null
null
# Test script for genome_util package - it should be launched from # the root of the genome_util module, ideally just with 'make test', as # it looks for a hardcoded relative path to find the 'test.cfg' file import unittest import json import ConfigParser from pprint import pprint from subprocess import call from bi...
30.66
71
0.708415
# Test script for genome_util package - it should be launched from # the root of the genome_util module, ideally just with 'make test', as # it looks for a hardcoded relative path to find the 'test.cfg' file import unittest import json import ConfigParser from pprint import pprint from subprocess import call from bi...
780
66
93
689f44de4e6287f106fe98a425a5f08dfb110a89
740
py
Python
garfield/garfield/urls.py
RobSpectre/garfield
ab806b7ad9221bd1b17c92daadd0a53a4f261cbe
[ "MIT" ]
3
2017-10-15T20:55:00.000Z
2018-04-25T21:30:57.000Z
garfield/garfield/urls.py
RobSpectre/garfield
ab806b7ad9221bd1b17c92daadd0a53a4f261cbe
[ "MIT" ]
12
2018-07-15T20:42:01.000Z
2021-06-10T17:39:46.000Z
garfield/garfield/urls.py
RobSpectre/garfield
ab806b7ad9221bd1b17c92daadd0a53a4f261cbe
[ "MIT" ]
1
2018-06-30T02:51:31.000Z
2018-06-30T02:51:31.000Z
from django.conf import settings from django.conf.urls import url from django.urls import include from django.urls import path from django.contrib import admin from controlcenter.views import controlcenter urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^admin/dashboard/', controlcenter.urls), ur...
26.428571
59
0.675676
from django.conf import settings from django.conf.urls import url from django.urls import include from django.urls import path from django.contrib import admin from controlcenter.views import controlcenter urlpatterns = [ url(r'^admin/', admin.site.urls), url(r'^admin/dashboard/', controlcenter.urls), ur...
0
0
0
f6b2d31a946d31078d5eb5ac93a0717f97d43f87
55,117
py
Python
prover/simplex.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
22
2021-06-15T00:01:27.000Z
2022-03-15T11:22:25.000Z
prover/simplex.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
null
null
null
prover/simplex.py
crisperdue/holpy
fe88eb91a8db8386184329e3f51a80d11ecdb316
[ "BSD-3-Clause" ]
2
2021-11-30T08:56:03.000Z
2022-01-24T10:46:39.000Z
""" Note that the equality dict in Simplex data structure can be simplified by elimate the jar whose coefficient is zero. This will be fixed later. """ """ Implementation of Simplex-based quantifier-free linear arithmetic solver. Reference: Bruno Dutertre and Leonardo de Moura. A Fast Linear-Arithmetic Solver for DP...
40.438004
139
0.561986
""" Note that the equality dict in Simplex data structure can be simplified by elimate the jar whose coefficient is zero. This will be fixed later. """ """ Implementation of Simplex-based quantifier-free linear arithmetic solver. Reference: Bruno Dutertre and Leonardo de Moura. A Fast Linear-Arithmetic Solver for DP...
14,267
62
1,363
d9ab90b6c55373550252968f64b17854851835c9
2,141
py
Python
exact/models.py
TravelDeal/django-exact
d88bcd15f9e028907eab989ea4572cea24992c3d
[ "MIT" ]
null
null
null
exact/models.py
TravelDeal/django-exact
d88bcd15f9e028907eab989ea4572cea24992c3d
[ "MIT" ]
null
null
null
exact/models.py
TravelDeal/django-exact
d88bcd15f9e028907eab989ea4572cea24992c3d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.sites.models import Site from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _
41.980392
141
0.734236
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.contrib.sites.models import Site from django.db import models from django.urls import reverse from django.utils.translation import ugettext_lazy as _ class Session(models.Model): api_url = models.URLField(_("API base URL"), help_text=_("E.g...
94
1,748
69
a6b3018ff14a6de65121a9b8e8b222020e0ddfa8
217
py
Python
loss.py
terry97-guel/POENet-ActiveLearning
78e959c8c5eacc5b2dc4e3334ed609d182ce7b6c
[ "MIT" ]
null
null
null
loss.py
terry97-guel/POENet-ActiveLearning
78e959c8c5eacc5b2dc4e3334ed609d182ce7b6c
[ "MIT" ]
null
null
null
loss.py
terry97-guel/POENet-ActiveLearning
78e959c8c5eacc5b2dc4e3334ed609d182ce7b6c
[ "MIT" ]
1
2022-01-12T05:16:25.000Z
2022-01-12T05:16:25.000Z
#%% import torch # def se3_norm2(output, label): #Fill me
15.5
47
0.589862
#%% import torch class Get_Loss_Function(): def Pos_norm2(self,output, label): loss = torch.nn.MSELoss()(output,label) return loss # def se3_norm2(output, label): #Fill me
81
5
49
ed7be6914d5a42821c1d0b1be9c2b88b16f4d889
2,261
py
Python
src/cmsplugin_filer_image/cms_plugins.py
FinalAngel/cmsplugin-filer
6cee997f3486a2446362e10811661cfc96c50d67
[ "MIT" ]
null
null
null
src/cmsplugin_filer_image/cms_plugins.py
FinalAngel/cmsplugin-filer
6cee997f3486a2446362e10811661cfc96c50d67
[ "MIT" ]
null
null
null
src/cmsplugin_filer_image/cms_plugins.py
FinalAngel/cmsplugin-filer
6cee997f3486a2446362e10811661cfc96c50d67
[ "MIT" ]
null
null
null
import os from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings from filer.settings import FILER_ADMIN_ICON_SIZES, FILER_PUBLICMEDIA_PREFIX, FILER_PRIVATEMEDIA_PREFIX, FILER_STATICMEDIA_PR...
41.87037
128
0.636886
import os from cms.plugin_pool import plugin_pool from cms.plugin_base import CMSPluginBase from django.utils.translation import ugettext_lazy as _ import models from django.conf import settings from filer.settings import FILER_ADMIN_ICON_SIZES, FILER_PUBLICMEDIA_PREFIX, FILER_PRIVATEMEDIA_PREFIX, FILER_STATICMEDIA_PR...
1,595
272
23
d6c44d81ed48110959a0c2ff629cc507de1acc67
690
py
Python
mysite/finance/urls.py
jingluomaf/django-mysite
5a106df6c18e7bd49e02cd29fa3dfe11b5c26ff5
[ "MIT" ]
null
null
null
mysite/finance/urls.py
jingluomaf/django-mysite
5a106df6c18e7bd49e02cd29fa3dfe11b5c26ff5
[ "MIT" ]
14
2020-06-05T22:51:09.000Z
2022-03-12T00:03:07.000Z
mysite/finance/urls.py
jingluomaf/django-mysite
5a106df6c18e7bd49e02cd29fa3dfe11b5c26ff5
[ "MIT" ]
null
null
null
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from finance.views import company_article_list, ChartData, dash, dash_ajax app_name = 'finance' urlpatterns = [ path('companies/', company_article_list, name='companies...
34.5
74
0.701449
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import path, include from finance.views import company_article_list, ChartData, dash, dash_ajax app_name = 'finance' urlpatterns = [ path('companies/', company_article_list, name='companies...
0
0
0
decb5d3b387f214dc4339f311729c45dce7da7a4
284
py
Python
request_learn/CrawBinData.py
luoyefeiwu/learn_python
e888537c538309d2600a302c0c6e92456dd785c0
[ "Apache-2.0" ]
null
null
null
request_learn/CrawBinData.py
luoyefeiwu/learn_python
e888537c538309d2600a302c0c6e92456dd785c0
[ "Apache-2.0" ]
null
null
null
request_learn/CrawBinData.py
luoyefeiwu/learn_python
e888537c538309d2600a302c0c6e92456dd785c0
[ "Apache-2.0" ]
null
null
null
# 抓取二进制数据 import requests import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') # Change default encoding to utf8 r=requests.get('http://github.com/favicon.ico') print(r.text) print(r.content) with open('favicon.ico','wb') as f: f.write(r.content)
25.818182
98
0.742958
# 抓取二进制数据 import requests import sys import io sys.stdout = io.TextIOWrapper(sys.stdout.buffer,encoding='utf8') # Change default encoding to utf8 r=requests.get('http://github.com/favicon.ico') print(r.text) print(r.content) with open('favicon.ico','wb') as f: f.write(r.content)
0
0
0
4e4bbc163e827717d01a6e031701959e688c3825
1,384
py
Python
accounts/urls.py
code-goodbuy/Goodbuy
d23363a46988f65f121a6edb75609fdddaa95cde
[ "Unlicense" ]
2
2019-03-20T20:30:16.000Z
2019-04-10T19:54:32.000Z
accounts/urls.py
code-goodbuy/Goodbuy
d23363a46988f65f121a6edb75609fdddaa95cde
[ "Unlicense" ]
30
2019-02-22T17:24:13.000Z
2019-05-15T09:29:51.000Z
accounts/urls.py
code-goodbuy/Goodbuy
d23363a46988f65f121a6edb75609fdddaa95cde
[ "Unlicense" ]
1
2019-04-23T08:59:34.000Z
2019-04-23T08:59:34.000Z
from django.urls import path from django.contrib.auth.views import ( LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView, ) from . import views as accounts_view app_name = "accounts" urlpatterns = [ path("login/", LoginView...
30.755556
75
0.675578
from django.urls import path from django.contrib.auth.views import ( LoginView, LogoutView, PasswordResetView, PasswordResetDoneView, PasswordResetConfirmView, PasswordResetCompleteView, ) from . import views as accounts_view app_name = "accounts" urlpatterns = [ path("login/", LoginView...
0
0
0
9c7002bc41c3dd99694caeb90996c28b750837da
1,902
py
Python
src/leetcode_1855_maximum_distance_between_a_pair_of_values.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
2
2020-12-08T13:59:10.000Z
2021-05-01T05:07:39.000Z
src/leetcode_1855_maximum_distance_between_a_pair_of_values.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
null
null
null
src/leetcode_1855_maximum_distance_between_a_pair_of_values.py
yurirocha15/coding_practice
952506932c47414da689454853ee745637413160
[ "MIT" ]
1
2021-05-02T17:42:02.000Z
2021-05-02T17:42:02.000Z
# @l2g 1855 python3 # [1855] Maximum Distance Between a Pair of Values # Difficulty: Medium # https://leetcode.com/problems/maximum-distance-between-a-pair-of-values # # You are given two non-increasing 0-indexed integer arrays nums1​​​​​​ and nums2​​​​​​. # A pair of indices (i,j),where 0 <= i < nums1.length and 0 <= ...
27.565217
94
0.59674
# @l2g 1855 python3 # [1855] Maximum Distance Between a Pair of Values # Difficulty: Medium # https://leetcode.com/problems/maximum-distance-between-a-pair-of-values # # You are given two non-increasing 0-indexed integer arrays nums1​​​​​​ and nums2​​​​​​. # A pair of indices (i,j),where 0 <= i < nums1.length and 0 <= ...
224
-6
49
25f94d5d242c8c0f613c64c928201050f5cd7ff6
2,974
py
Python
library/rabbitmq_cluster_name.py
joe-pll/rabbitmq-ansible-modules
e56ff0caa650c7417d32d39b7e6e961e8ce5e124
[ "Apache-2.0" ]
null
null
null
library/rabbitmq_cluster_name.py
joe-pll/rabbitmq-ansible-modules
e56ff0caa650c7417d32d39b7e6e961e8ce5e124
[ "Apache-2.0" ]
null
null
null
library/rabbitmq_cluster_name.py
joe-pll/rabbitmq-ansible-modules
e56ff0caa650c7417d32d39b7e6e961e8ce5e124
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # (c) 2017, Giuseppe Pellegrino <mr.giuseppepellegrino@gmail.com> ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: rabbitmq_cluster_name short_description: Ensure RabbitMQ clust...
27.284404
78
0.631809
#!/usr/bin/python # (c) 2017, Giuseppe Pellegrino <mr.giuseppepellegrino@gmail.com> ANSIBLE_METADATA = {'metadata_version': '1.0', 'status': ['preview'], 'supported_by': 'community'} DOCUMENTATION = ''' --- module: rabbitmq_cluster_name short_description: Ensure RabbitMQ clust...
1,095
15
131
6d01df67e09ff307a9d5974b925008cd3ba33686
253
py
Python
ABC128/ABC128_B.py
consommee/AtCoder
9beccf6a1202ca48491b4fcf748aa3dba0f12fb3
[ "MIT" ]
null
null
null
ABC128/ABC128_B.py
consommee/AtCoder
9beccf6a1202ca48491b4fcf748aa3dba0f12fb3
[ "MIT" ]
null
null
null
ABC128/ABC128_B.py
consommee/AtCoder
9beccf6a1202ca48491b4fcf748aa3dba0f12fb3
[ "MIT" ]
null
null
null
n=int(input()) i = 1 alllist = [] while i < n+1 : a,b=map(str, input().split()) c = [a ,int(b),i] alllist.append(c) i += 1 alllist.sort(key=lambda x:(x[0],-x[1]),reverse=True) alllist.reverse() j = 0 while j < n : print(alllist[j][2]) j += 1
18.071429
52
0.561265
n=int(input()) i = 1 alllist = [] while i < n+1 : a,b=map(str, input().split()) c = [a ,int(b),i] alllist.append(c) i += 1 alllist.sort(key=lambda x:(x[0],-x[1]),reverse=True) alllist.reverse() j = 0 while j < n : print(alllist[j][2]) j += 1
0
0
0
f95203dd7abdb62cc8043fd36f44c38eecc29fb6
637
py
Python
gis_timezones/models.py
marcosgabarda/-django-gis-timezones
fc580e8f519d54b68a66aaf436ac7c8e397b3a30
[ "MIT" ]
1
2020-07-25T05:25:58.000Z
2020-07-25T05:25:58.000Z
gis_timezones/models.py
marcosgabarda/-django-gis-timezones
fc580e8f519d54b68a66aaf436ac7c8e397b3a30
[ "MIT" ]
null
null
null
gis_timezones/models.py
marcosgabarda/-django-gis-timezones
fc580e8f519d54b68a66aaf436ac7c8e397b3a30
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function, division, absolute_import from belt.models import GisTimeStampedModel from django.contrib.gis.db import models from django.utils.encoding import python_2_unicode_compatible from gis_timezones.managers import TimeZoneManager @python_2_u...
26.541667
82
0.766091
# -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function, division, absolute_import from belt.models import GisTimeStampedModel from django.contrib.gis.db import models from django.utils.encoding import python_2_unicode_compatible from gis_timezones.managers import TimeZoneManager @python_2_u...
22
0
27
0aaf9257a97d9a48b03bd4fd19203da735958968
11,731
py
Python
StellarInfra/DirManage.py
StellarBlocks/StellarInfra
7f6a826b248f0a076c6d0044580b1e2ba795ea90
[ "MIT" ]
null
null
null
StellarInfra/DirManage.py
StellarBlocks/StellarInfra
7f6a826b248f0a076c6d0044580b1e2ba795ea90
[ "MIT" ]
null
null
null
StellarInfra/DirManage.py
StellarBlocks/StellarInfra
7f6a826b248f0a076c6d0044580b1e2ba795ea90
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Jun 17 12:11:13 2020 @author: Jin Dou """ import os import warnings from configparser import ConfigParser,BasicInterpolation import yaml import re def isFolderOrFile(path:str): ''' not exist 0 dir 1 file 2 others -1 ''' out = -1 if checkExist...
31.034392
131
0.556815
# -*- coding: utf-8 -*- """ Created on Wed Jun 17 12:11:13 2020 @author: Jin Dou """ import os import warnings from configparser import ConfigParser,BasicInterpolation import yaml import re def getUpperDir(path:str): out = os.path.split(path) if isinstance(path, CPath): return CPath(out[0]),out[1] ...
9,006
543
1,445
a12c2fb00119c2a2c6f83731711c0d6415523629
104
py
Python
simple_approval/apps.py
dani0805/django_workflow
4eb20fefa95c5d917628fc32b5479879d119a7e1
[ "BSD-3-Clause" ]
7
2017-08-29T16:16:25.000Z
2021-03-13T20:35:45.000Z
simple_approval/apps.py
dani0805/django_workflow
4eb20fefa95c5d917628fc32b5479879d119a7e1
[ "BSD-3-Clause" ]
3
2020-02-11T23:11:27.000Z
2021-06-10T20:49:53.000Z
simple_approval/apps.py
dani0805/django_workflow
4eb20fefa95c5d917628fc32b5479879d119a7e1
[ "BSD-3-Clause" ]
null
null
null
from django.apps import AppConfig
17.333333
38
0.788462
from django.apps import AppConfig class SimpleApprovalConfig(AppConfig): name = 'simple_approval'
0
46
23
81f493833c74efb3cfa812576c02c8ddfb1d2423
969
py
Python
examples/groonga_microblog_tutorial/3_search_with_pyarrow.py
tetsuo-dance/poyonga
33e407b172d1b9a1879beda26eaecee1ab0f07bf
[ "MIT" ]
13
2015-03-20T02:48:25.000Z
2021-05-23T22:33:39.000Z
examples/groonga_microblog_tutorial/3_search_with_pyarrow.py
tetsuo-dance/poyonga
33e407b172d1b9a1879beda26eaecee1ab0f07bf
[ "MIT" ]
9
2015-10-27T06:25:34.000Z
2021-07-01T12:58:19.000Z
examples/groonga_microblog_tutorial/3_search_with_pyarrow.py
tetsuo-dance/poyonga
33e407b172d1b9a1879beda26eaecee1ab0f07bf
[ "MIT" ]
7
2015-12-13T23:33:20.000Z
2020-11-27T10:18:29.000Z
# coding: utf-8 from poyonga import Groonga g = Groonga() _call_with_apachearrow( g, "select", table="Users", match_columns="name,location_str,description", query="東京", output_type="apache-arrow", output_columns="_key,name", ) # NOTE: Groonga's Apache Arrow output doesn't support drilld...
23.071429
68
0.640867
# coding: utf-8 from poyonga import Groonga def _call_with_apachearrow(g, cmd, **kwargs): print("[http with apache arrow response]") ret = g.call(cmd, **kwargs) print("status:", ret.status) if cmd == "select": print("item:", len(ret.items)) print(type(ret.items)) for item in re...
345
0
23
24db0571e3f944c80c8664387bc35198e5049c87
1,237
py
Python
string/151_reverse_words_in_a_string.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
string/151_reverse_words_in_a_string.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
null
null
null
string/151_reverse_words_in_a_string.py
shawlu95/Algorithm-Toolbox
b6c7b2228d8e70e0842e0bad607533a2c8322cf0
[ "MIT" ]
2
2020-02-07T20:49:02.000Z
2020-02-11T06:01:55.000Z
solver = Solution() print(solver.reverseWords2("the sky is blue"))
30.170732
106
0.408246
class Solution(object): def reverseWords(self, s): """ :type s: str :rtype: str """ if s == " ": return "" s = list(s[::-1]) print(len(s)) l, r = 0, 0 while r < len(s) + 1: # the two condition must not be reversed, or t...
514
634
22
085a4a6221880db28f0236317d1d479008607ac0
1,612
py
Python
vit_jax/models_resnet.py
Kasumigaoka-Utaha/self-copy-and-modify-about-the-vision-transformer
1b840336809171d181ffa80d15955fb03ed29859
[ "Apache-2.0" ]
1
2022-02-12T15:15:36.000Z
2022-02-12T15:15:36.000Z
vit_jax/models_resnet.py
Thanusan19/Vision_Transformer
80179d57e617ef6cd9599de93c7c7633f891f9a9
[ "Apache-2.0" ]
null
null
null
vit_jax/models_resnet.py
Thanusan19/Vision_Transformer
80179d57e617ef6cd9599de93c7c7633f891f9a9
[ "Apache-2.0" ]
1
2022-02-25T06:26:28.000Z
2022-02-25T06:26:28.000Z
import flax.nn as nn import jax.numpy as jnp def weight_standardize(w, axis, eps): """Subtracts mean and divides by standard deviation.""" w = w - jnp.mean(w, axis=axis) w = w / (jnp.std(w, axis=axis) + eps) return w class StdConv(nn.Conv): """Convolution with weight standardization.""" class ResidualUn...
29.309091
73
0.616625
import flax.nn as nn import jax.numpy as jnp def weight_standardize(w, axis, eps): """Subtracts mean and divides by standard deviation.""" w = w - jnp.mean(w, axis=axis) w = w / (jnp.std(w, axis=axis) + eps) return w class StdConv(nn.Conv): """Convolution with weight standardization.""" def param(self,...
1,113
0
75
73591285f67afce9f59507bc71a39e5da837a863
136
py
Python
encapsulation/car.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
encapsulation/car.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
encapsulation/car.py
poojavaibhavsahu/Pooja_Python
58122bfa8586883145042b11fe1cc013c803ab4f
[ "bzip2-1.0.6" ]
null
null
null
obj=car() obj .speed=200 obj.display()
19.428571
44
0.654412
class car: __speed__ =100 def display(self): print("speed of car",self.__speed__) obj=car() obj .speed=200 obj.display()
42
34
22
15a1eecee086417b55c500d87f7d87751188e2ed
2,195
py
Python
tuning/competition/mnist_keras_dnn.py
tobegit3hub/tuning_game
92e01e24c01793dc60b227c9894da865aa1040f4
[ "Apache-2.0" ]
14
2017-12-27T12:04:16.000Z
2021-06-21T09:57:30.000Z
tuning/competition/mnist_keras_dnn.py
tobegit3hub/tuning_game
92e01e24c01793dc60b227c9894da865aa1040f4
[ "Apache-2.0" ]
null
null
null
tuning/competition/mnist_keras_dnn.py
tobegit3hub/tuning_game
92e01e24c01793dc60b227c9894da865aa1040f4
[ "Apache-2.0" ]
2
2018-01-09T03:30:22.000Z
2018-04-23T03:32:45.000Z
from __future__ import print_function import json import keras from keras.datasets import mnist from keras.layers import Dense, Dropout from keras.models import Sequential from keras.optimizers import RMSprop from abstract_competition import AbstractCompetition class MnistKerasDnn(AbstractCompetition): """ Dee...
28.141026
76
0.692938
from __future__ import print_function import json import keras from keras.datasets import mnist from keras.layers import Dense, Dropout from keras.models import Sequential from keras.optimizers import RMSprop from abstract_competition import AbstractCompetition class MnistKerasDnn(AbstractCompetition): """ Dee...
1,786
0
50
95a96145bde02fa3b55735765033920212a330bf
222
py
Python
vsparsedvd/__init__.py
Setsugennoao/vs-parsedvd
fe89ff51b85758dca32e73b3c884acfccf583451
[ "MIT" ]
2
2021-12-06T05:48:14.000Z
2022-02-10T09:17:18.000Z
vsparsedvd/__init__.py
Setsugennoao/vs-parsedvd
fe89ff51b85758dca32e73b3c884acfccf583451
[ "MIT" ]
null
null
null
vsparsedvd/__init__.py
Setsugennoao/vs-parsedvd
fe89ff51b85758dca32e73b3c884acfccf583451
[ "MIT" ]
null
null
null
# flake8: noqa: F401 from .IsoFile import IsoFile from .DVDIndexers import DVDIndexer, D2VWitch, DGIndexNV, DGIndex from .dataclasses import * from .utils.spathlib import SPath from .utils import spathlib, types, utils
22.2
65
0.788288
# flake8: noqa: F401 from .IsoFile import IsoFile from .DVDIndexers import DVDIndexer, D2VWitch, DGIndexNV, DGIndex from .dataclasses import * from .utils.spathlib import SPath from .utils import spathlib, types, utils
0
0
0
68157b1b155f239b767467773e1fc5b8b8dbb139
458
py
Python
source/cloudsatlhr/acquisition_stack.py
JakeHendy/cloudsatlhr
039cf077a675a79a66939a9b839ae84b3c96cbd6
[ "MIT" ]
null
null
null
source/cloudsatlhr/acquisition_stack.py
JakeHendy/cloudsatlhr
039cf077a675a79a66939a9b839ae84b3c96cbd6
[ "MIT" ]
null
null
null
source/cloudsatlhr/acquisition_stack.py
JakeHendy/cloudsatlhr
039cf077a675a79a66939a9b839ae84b3c96cbd6
[ "MIT" ]
null
null
null
from aws_cdk import (core ) from .ingestion_stack import IngestionStack from .data_store_stack import DataStoreStack
35.230769
110
0.746725
from aws_cdk import (core ) from .ingestion_stack import IngestionStack from .data_store_stack import DataStoreStack class AcquisitionStack(core.Stage): def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: super().__init__(scope, id, **kwargs) self.datastore_stack = DataStoreSta...
276
14
50
c7f1717b7b08be761b2556bcd74259c8b16273a1
1,631
py
Python
tracardi/service/plugin/runner.py
Tracardi/tracardi
1505c38e43e6e69595212d2a3f6917edc5841390
[ "MIT" ]
153
2021-11-02T00:35:41.000Z
2022-03-25T16:37:44.000Z
tracardi/service/plugin/runner.py
Tracardi/tracardi
1505c38e43e6e69595212d2a3f6917edc5841390
[ "MIT" ]
243
2021-10-17T17:00:22.000Z
2022-03-28T10:13:34.000Z
tracardi/service/plugin/runner.py
Tracardi/tracardi
1505c38e43e6e69595212d2a3f6917edc5841390
[ "MIT" ]
14
2021-10-17T11:39:04.000Z
2022-03-14T14:44:02.000Z
from tracardi.domain.event import Event from tracardi.domain.payload.tracker_payload import TrackerPayload from tracardi.domain.profile import Profile from tracardi.service.notation.dot_accessor import DotAccessor from tracardi.service.plugin.domain.console import Console
32.62
103
0.657879
from tracardi.domain.event import Event from tracardi.domain.payload.tracker_payload import TrackerPayload from tracardi.domain.profile import Profile from tracardi.service.notation.dot_accessor import DotAccessor from tracardi.service.plugin.domain.console import Console class ActionRunner: id = None debug =...
853
481
23
52bc30a6348d74531277198eb3330d2e5ce8c0ce
6,748
py
Python
desktop/mode.py
ccamacho89/caliban
81f42273cb583d5cb655b510bef7fc597033f517
[ "Apache-2.0" ]
null
null
null
desktop/mode.py
ccamacho89/caliban
81f42273cb583d5cb655b510bef7fc597033f517
[ "Apache-2.0" ]
null
null
null
desktop/mode.py
ccamacho89/caliban
81f42273cb583d5cb655b510bef7fc597033f517
[ "Apache-2.0" ]
null
null
null
# Copyright 2018-2019 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
40.89697
102
0.538382
# Copyright 2018-2019 The Van Valen Lab at the California Institute of # Technology (Caltech), with support from the Paul Allen Family Foundation, # Google, & National Institutes of Health (NIH) under Grant U24CA224309-01. # All rights reserved. # # Licensed under a modified Apache License, Version 2.0 (the "License");...
5,087
356
22
9717ee5aea9d170ff2741133359799a1e3db2240
739
py
Python
ball.py
meganlwy/Pong-Game
1b59a6d03b768ae6ee0b8072f2a10dcd77880c07
[ "MIT" ]
null
null
null
ball.py
meganlwy/Pong-Game
1b59a6d03b768ae6ee0b8072f2a10dcd77880c07
[ "MIT" ]
null
null
null
ball.py
meganlwy/Pong-Game
1b59a6d03b768ae6ee0b8072f2a10dcd77880c07
[ "MIT" ]
null
null
null
from turtle import Turtle
22.393939
88
0.52774
from turtle import Turtle class Ball(Turtle): def __init__(self): super().__init__() self.shape("circle") self.penup() self.color("yellow") self.goto(0, 0) self.xmove = 10 self.ymove = 10 self.sleeptime = 0.1 def move(self): newx = self....
557
-2
157
bef1915ffdf4767d2b726b6ee21f33d44a323b47
1,890
py
Python
supervised-learning/Logistic_Regression_Cat.py
neemiasbsilva/machine-learning-algorithm
cecb7bd387148ea98a826c6f39f7d014061b797f
[ "MIT" ]
2
2021-04-18T22:11:39.000Z
2021-10-05T03:47:01.000Z
supervised-learning/Logistic_Regression_Cat.py
hamzaelanssari/machine-learning-algorithm
c9c02242c114160141183470ac1bb97cb926fde0
[ "MIT" ]
null
null
null
supervised-learning/Logistic_Regression_Cat.py
hamzaelanssari/machine-learning-algorithm
c9c02242c114160141183470ac1bb97cb926fde0
[ "MIT" ]
2
2020-01-30T02:02:01.000Z
2021-02-04T21:25:35.000Z
import cv2 import glob import numpy as np # from utils import salva_imagem_com_predicao import pandas as pd import matplotlib.pyplot as plt from skimage import transform from PIL import Image import os X = [] y = [] arquivos_de_gatos = "train/cat/" arquivos_nao_gatos = "train/noncat/" get_dataset(arquivos_de_g...
21.976744
59
0.631746
import cv2 import glob import numpy as np # from utils import salva_imagem_com_predicao import pandas as pd import matplotlib.pyplot as plt from skimage import transform from PIL import Image import os X = [] y = [] def get_dataset(path_image, Cat=True): images = glob.glob(path_image+"*.png") for image in im...
636
0
137
f4d842fc614a7c7b511a493126fc42541b7842a7
221
py
Python
src/backend/aspen/api/schemas/users.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
2
2021-01-13T18:37:20.000Z
2021-01-16T02:17:38.000Z
src/backend/aspen/api/schemas/users.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
16
2021-01-14T20:21:13.000Z
2021-01-29T22:23:13.000Z
src/backend/aspen/api/schemas/users.py
chanzuckerberg/covidr
afe05d703d30ec18ac83944bfb551c313cb216c4
[ "MIT" ]
null
null
null
from typing import List from aspen.api.schemas.base import BaseResponse
13.8125
47
0.742081
from typing import List from aspen.api.schemas.base import BaseResponse class UserBase(BaseResponse): agreed_to_tos: bool = False class User(UserBase): pass class Users(BaseResponse): items: List[User]
0
76
69
a7258a219d17a24b1450485157cf7842ae7f6dea
32
py
Python
user_login.py
mr-mdl/football
0d495ce30bb4ff2c438f3577d5dd767fe56555a6
[ "Apache-2.0" ]
null
null
null
user_login.py
mr-mdl/football
0d495ce30bb4ff2c438f3577d5dd767fe56555a6
[ "Apache-2.0" ]
null
null
null
user_login.py
mr-mdl/football
0d495ce30bb4ff2c438f3577d5dd767fe56555a6
[ "Apache-2.0" ]
null
null
null
Mein neuer Code neue Codezeile
8
15
0.8125
Mein neuer Code neue Codezeile
0
0
0
771a8015d3522a9d5cbbbabbc279cbb92e497d16
730
py
Python
coding/learn_algorithm/leetcode/1371_find_long_substring.py
yatao91/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
3
2021-05-25T16:58:52.000Z
2022-02-05T09:37:17.000Z
coding/learn_algorithm/leetcode/1371_find_long_substring.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
coding/learn_algorithm/leetcode/1371_find_long_substring.py
yataosu/learning_road
e88dc43de98e35922bfc71c222ec71766851e618
[ "MIT" ]
null
null
null
# -*- coding: UTF-8 -*- """ leetcode:1371.每个元音包含偶数次的最长子字符串 """
24.333333
53
0.360274
# -*- coding: UTF-8 -*- """ leetcode:1371.每个元音包含偶数次的最长子字符串 """ class Solution: def findTheLongestSubstring(self, s: str) -> int: ans, status, n = 0, 0, len(s) pos = [-1] * (1 << 5) pos[0] = 0 for i in range(n): if s[i] == 'hardware': status ^= 1 << 0 ...
622
-6
50
a66b2955dbd07a54d2ffac2a61ca8715a84951ed
25,705
py
Python
time_allocations/allocations.py
gthomsen/time-allocations
672712fc43f8a83214e6bcee9d8aaf25cc143d1c
[ "MIT" ]
null
null
null
time_allocations/allocations.py
gthomsen/time-allocations
672712fc43f8a83214e6bcee9d8aaf25cc143d1c
[ "MIT" ]
null
null
null
time_allocations/allocations.py
gthomsen/time-allocations
672712fc43f8a83214e6bcee9d8aaf25cc143d1c
[ "MIT" ]
1
2019-04-16T04:51:05.000Z
2019-04-16T04:51:05.000Z
from __future__ import print_function import re import sys STRING_INPUT_LABEL = "(string)" class AllocationsConfig( object ): """ """ def __init__( self, default_year=None, strict_parsing=False, validate_dates=True ): """ """ self._default_year = default_year self._str...
39.485407
158
0.569306
from __future__ import print_function import re import sys STRING_INPUT_LABEL = "(string)" class AllocationsConfig( object ): """ """ def __init__( self, default_year=None, strict_parsing=False, validate_dates=True ): """ """ self._default_year = default_year self._str...
0
0
0
dcc0ff9eedfec4717b15b4341c91907d0c467a82
4,735
py
Python
biostar/recipes/management/commands/import.py
tangibleai/biostar-central
8c1cce4d3d95d49071db8ec225aa88a66b0b3910
[ "MIT" ]
477
2015-01-01T00:18:54.000Z
2022-03-21T10:29:29.000Z
biostar/recipes/management/commands/import.py
coreydipsy/biostar-central
2b2f09199a6332877885ef54d9ac588ed0765770
[ "MIT" ]
247
2015-01-02T08:12:03.000Z
2022-02-24T15:20:58.000Z
biostar/recipes/management/commands/import.py
coreydipsy/biostar-central
2b2f09199a6332877885ef54d9ac588ed0765770
[ "MIT" ]
251
2015-01-01T16:05:57.000Z
2022-03-25T21:32:44.000Z
import toml, json, os, io, base64 from django.core.management.base import BaseCommand from django.conf import settings from biostar.recipes.models import Analysis, Project, Data, image_path, Access from biostar.accounts.models import User, Profile from biostar.recipes import util, auth
26.751412
78
0.620908
import toml, json, os, io, base64 from django.core.management.base import BaseCommand from django.conf import settings from biostar.recipes.models import Analysis, Project, Data, image_path, Access from biostar.accounts.models import User, Profile from biostar.recipes import util, auth class Bunch(object): uid = ...
3,890
366
184
e8a52667d74666ef4ea46be720112454d6154fd7
89
py
Python
app.py
youssoufCherif/pentago
0206c663ad2084e2bc93125e3af5deb0a4b4ed29
[ "MIT" ]
null
null
null
app.py
youssoufCherif/pentago
0206c663ad2084e2bc93125e3af5deb0a4b4ed29
[ "MIT" ]
null
null
null
app.py
youssoufCherif/pentago
0206c663ad2084e2bc93125e3af5deb0a4b4ed29
[ "MIT" ]
null
null
null
from modules.pentgoGUI import play # Lancer le jeu Pentago en interface graphique play()
22.25
46
0.808989
from modules.pentgoGUI import play # Lancer le jeu Pentago en interface graphique play()
0
0
0
fbf3a1401585a69e62a26935aacb6cf004f773e0
4,770
py
Python
samples/fcd_attach_vdisk_to_vm.py
jm66/pyvmomi-community-samples
5ca4a50b767500e07b9bce9fba70240bfa963a4e
[ "Apache-2.0" ]
4
2016-01-04T06:19:56.000Z
2018-09-09T01:03:07.000Z
samples/fcd_attach_vdisk_to_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
12
2019-04-17T02:47:25.000Z
2021-04-02T09:15:37.000Z
samples/fcd_attach_vdisk_to_vm.py
zhangjiahaol/pyvmomi-community-samples
905ec34edfbd151531832e98b6a0748fa6ff5e0e
[ "Apache-2.0" ]
15
2018-04-26T05:18:12.000Z
2021-11-06T04:44:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Written by Chris Arceneaux # GitHub: https://github.com/carceneaux # Email: carceneaux@thinksis.com # Website: http://arsano.ninja # # Note: Example code For testing purposes only # # This code has been released under the terms of the Apache-2.0 license # http://opensou...
31.176471
78
0.590147
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Written by Chris Arceneaux # GitHub: https://github.com/carceneaux # Email: carceneaux@thinksis.com # Website: http://arsano.ninja # # Note: Example code For testing purposes only # # This code has been released under the terms of the Apache-2.0 license # http://opensou...
0
0
0
a356be645302e9ec8714f28265c73353177a5f43
3,153
py
Python
problem/breadcrumb/cluster.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
null
null
null
problem/breadcrumb/cluster.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
3
2020-09-07T17:24:36.000Z
2020-09-08T17:37:33.000Z
problem/breadcrumb/cluster.py
jhanley634/testing-tools
3f3f8a34df53015347e1e1cc37d20c8d03652cad
[ "MIT" ]
null
null
null
#! /usr/bin/env python3 # Copyright 2017 John Hanley. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, m...
32.173469
78
0.680622
#! /usr/bin/env python3 # Copyright 2017 John Hanley. # # Permission is hereby granted, free of charge, to any person obtaining a # copy of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify, m...
0
0
0
1cd873557929da99dc8e724637af66077f1dbafa
190,463
py
Python
src/sage/combinat/root_system/root_lattice_realizations.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/root_system/root_lattice_realizations.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
src/sage/combinat/root_system/root_lattice_realizations.py
LaisRast/sage
5fb2a6ea44400e469caee82748cf863ca0c5f724
[ "BSL-1.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Root lattice realizations """ # **************************************************************************** # Copyright (C) 2007-2013 Nicolas M. Thiery <nthiery at users.sf.net> # 2012 Nicolas Borie <nicolas.borie at univ-mlv.fr> # # (with contributions...
42.156485
189
0.501221
# -*- coding: utf-8 -*- """ Root lattice realizations """ # **************************************************************************** # Copyright (C) 2007-2013 Nicolas M. Thiery <nthiery at users.sf.net> # 2012 Nicolas Borie <nicolas.borie at univ-mlv.fr> # # (with contributions...
2,508
181,751
54
fab42f8cde5a80d634dd3c1fd214d8f81e40f8ab
1,886
py
Python
src/srcom/runs.py
randomidiot13/speedrunbot-plusplus
2eb1251a2f71f1063c183bd07313eb3f291f6590
[ "Unlicense" ]
null
null
null
src/srcom/runs.py
randomidiot13/speedrunbot-plusplus
2eb1251a2f71f1063c183bd07313eb3f291f6590
[ "Unlicense" ]
null
null
null
src/srcom/runs.py
randomidiot13/speedrunbot-plusplus
2eb1251a2f71f1063c183bd07313eb3f291f6590
[ "Unlicense" ]
null
null
null
#!/usr/bin/env python3.9 """ This program gets the number of runs that a given player (argv[1]) has set. """ import asyncio import concurrent.futures from asyncio.events import AbstractEventLoop from itertools import count from sys import argv, exit, stderr from typing import Awaitable, Iterator import requests from...
23
75
0.673383
#!/usr/bin/env python3.9 """ This program gets the number of runs that a given player (argv[1]) has set. """ import asyncio import concurrent.futures from asyncio.events import AbstractEventLoop from itertools import count from sys import argv, exit, stderr from typing import Awaitable, Iterator import requests from...
359
0
23
cc2b9bea4a7d519d654f4b9cf4cbb0c0a88e0ebe
37
py
Python
mil/validators/wrapper.py
yangsenwxy/mil
8e6b6f0b55bddc961b957a682935cb346f3bca4c
[ "MIT" ]
25
2020-11-02T23:33:32.000Z
2022-03-14T22:57:54.000Z
mil/validators/wrapper.py
yangsenwxy/mil
8e6b6f0b55bddc961b957a682935cb346f3bca4c
[ "MIT" ]
4
2021-06-14T05:46:37.000Z
2021-07-12T16:25:26.000Z
mil/validators/wrapper.py
yangsenwxy/mil
8e6b6f0b55bddc961b957a682935cb346f3bca4c
[ "MIT" ]
12
2020-12-28T04:02:06.000Z
2022-02-04T10:33:44.000Z
from sklearn.model_selection import *
37
37
0.864865
from sklearn.model_selection import *
0
0
0
5b4bb7221da5589df7d355d411101be50f69d412
1,725
py
Python
serverless/openvino/omz/intel/semantic-segmentation-adas-0001/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2020-02-26T08:49:18.000Z
2020-02-26T08:49:18.000Z
serverless/openvino/omz/intel/semantic-segmentation-adas-0001/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
23
2021-04-08T21:58:10.000Z
2022-03-12T00:52:31.000Z
serverless/openvino/omz/intel/semantic-segmentation-adas-0001/nuclio/model_handler.py
arthurtibame/cvat
0062ecdec34a9ffcad33e1664a7cac663bec4ecf
[ "MIT" ]
1
2021-11-09T14:50:57.000Z
2021-11-09T14:50:57.000Z
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT import os import cv2 import numpy as np from skimage.measure import approximate_polygon, find_contours from model_loader import ModelLoader
34.5
84
0.590145
# Copyright (C) 2020 Intel Corporation # # SPDX-License-Identifier: MIT import os import cv2 import numpy as np from skimage.measure import approximate_polygon, find_contours from model_loader import ModelLoader class ModelHandler: def __init__(self, labels): base_dir = os.environ.get("MODEL_PATH", ...
1,439
-2
76
716b09e587a7de86cd79ea7136e86c6ac96433c1
1,456
py
Python
source/training/compositional/full_add_similarity.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
9
2019-06-11T02:55:07.000Z
2019-09-04T23:51:36.000Z
source/training/compositional/full_add_similarity.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
null
null
null
source/training/compositional/full_add_similarity.py
vered1986/NC_embeddings
8dec4e2f7918ab7606abf61b9d90e4f2786a9652
[ "Apache-2.0" ]
2
2020-08-26T10:20:07.000Z
2021-02-24T07:00:33.000Z
import torch from overrides import overrides from torch.nn.parameter import Parameter from allennlp.modules.similarity_functions.similarity_function import SimilarityFunction @SimilarityFunction.register("full_add_composition") class FullAddSimilarity(SimilarityFunction): """ This similarity function comput...
33.860465
98
0.64011
import torch from overrides import overrides from torch.nn.parameter import Parameter from allennlp.modules.similarity_functions.similarity_function import SimilarityFunction @SimilarityFunction.register("full_add_composition") class FullAddSimilarity(SimilarityFunction): """ This similarity function comput...
672
0
79
70e139f6b158895b6866651927fc687c7ba78f89
7,512
py
Python
tests/common/test_run/conv_backprop_input_run.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
1
2020-08-31T02:43:43.000Z
2020-08-31T02:43:43.000Z
tests/common/test_run/conv_backprop_input_run.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
tests/common/test_run/conv_backprop_input_run.py
laekov/akg
5316b8cb2340bbf71bdc724dc9d81513a67b3104
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
40.605405
173
0.615282
# Copyright 2019 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
6,498
0
75
786321aaaab4d3431300482a98fa614df7a00269
3,886
py
Python
boring/wsgi.py
Horlarwumhe/boring
40fd36f403d869dd5c41e07ce94c3d71fd47d62c
[ "MIT" ]
1
2021-01-29T07:41:00.000Z
2021-01-29T07:41:00.000Z
boring/wsgi.py
Horlarwumhe/boring
40fd36f403d869dd5c41e07ce94c3d71fd47d62c
[ "MIT" ]
null
null
null
boring/wsgi.py
Horlarwumhe/boring
40fd36f403d869dd5c41e07ce94c3d71fd47d62c
[ "MIT" ]
null
null
null
import importlib import os import socket import sys import traceback from boring import SERVER_SOFTWARE from boring.exception import HttpException from boring.http import Response from boring.middleware import StaticsHandler def getapp(app): ''' get wsgi callable object''' try: module, func = app.sp...
31.088
79
0.576943
import importlib import os import socket import sys import traceback from boring import SERVER_SOFTWARE from boring.exception import HttpException from boring.http import Response from boring.middleware import StaticsHandler class WsgiApp: def __init__(self, app, request, conn, log=None, server=None, config=None...
3,230
-7
230
1971a6f9561d1ac66180ee3b48c24e1af637e7ab
751
py
Python
celery_connectors/build_ssl_options.py
jay-johnson/celery-connectors
f6d48bf3e48513228a86a1ff6014b6e6cf465742
[ "Apache-2.0" ]
38
2017-12-03T21:02:08.000Z
2022-03-02T21:20:50.000Z
celery_connectors/build_ssl_options.py
jay-johnson/celery-connectors
f6d48bf3e48513228a86a1ff6014b6e6cf465742
[ "Apache-2.0" ]
null
null
null
celery_connectors/build_ssl_options.py
jay-johnson/celery-connectors
f6d48bf3e48513228a86a1ff6014b6e6cf465742
[ "Apache-2.0" ]
7
2019-03-18T00:17:38.000Z
2021-06-16T02:18:37.000Z
import ssl from celery_connectors.utils import ev # end of build_ssl_options
27.814815
62
0.631158
import ssl from celery_connectors.utils import ev def build_ssl_options(ca_cert="", keyfile="", certfile="", ssl_required="0"): use_ca_certs = ev("SSL_CA_CERT", ca_cert) use_keyfile = ev("SSL_KEYFILE", keyfile) use_certfile = ev("SSL_CERTF...
650
0
23
6fd3b280e0dd6d83d0164323924ec133000dd12d
9,001
py
Python
rnachipintegrator/xls_output.py
fls-bioinformatics-core/RnaChipIntegrator
d02aa34459a7dc4ab0c7955d295af1c939545526
[ "Artistic-2.0" ]
null
null
null
rnachipintegrator/xls_output.py
fls-bioinformatics-core/RnaChipIntegrator
d02aa34459a7dc4ab0c7955d295af1c939545526
[ "Artistic-2.0" ]
42
2015-09-02T15:42:27.000Z
2020-01-06T13:30:09.000Z
rnachipintegrator/xls_output.py
fls-bioinformatics-core/RnaChipIntegrator
d02aa34459a7dc4ab0c7955d295af1c939545526
[ "Artistic-2.0" ]
1
2019-07-29T02:50:47.000Z
2019-07-29T02:50:47.000Z
#!/bin/env python # # xls_output.py: functions for writing analysis results to Excel files # Copyright (C) University of Manchester 2015-2019 Peter Briggs, Leo Zeef # & Ian Donaldson # """ xls_output.py Functions for outputting analysis results to XLSX spreadsheet """ import datetime import xlsxwriter imp...
31.582456
81
0.523053
#!/bin/env python # # xls_output.py: functions for writing analysis results to Excel files # Copyright (C) University of Manchester 2015-2019 Peter Briggs, Leo Zeef # & Ian Donaldson # """ xls_output.py Functions for outputting analysis results to XLSX spreadsheet """ import datetime import xlsxwriter imp...
0
0
0
17b36e87310a3f9bcb1cb6e21de5f4811bb2618f
2,580
py
Python
tests/test_hooks.py
kelockhart/acutter
3f7fc9bece1554d1637e147608a4d7eb567aa036
[ "MIT" ]
null
null
null
tests/test_hooks.py
kelockhart/acutter
3f7fc9bece1554d1637e147608a4d7eb567aa036
[ "MIT" ]
null
null
null
tests/test_hooks.py
kelockhart/acutter
3f7fc9bece1554d1637e147608a4d7eb567aa036
[ "MIT" ]
2
2022-02-09T15:09:52.000Z
2022-03-16T20:03:05.000Z
from subprocess import CalledProcessError import pytest from hooks.post_gen_project import ( check_command_exists, initial_commit, install_virtualenv, setup_github, setup_pre_commit, ) @pytest.mark.parametrize( "side_effect", [ FileNotFoundError(), CalledProcessError(1, "...
25.048544
88
0.601163
from subprocess import CalledProcessError import pytest from hooks.post_gen_project import ( check_command_exists, initial_commit, install_virtualenv, setup_github, setup_pre_commit, ) @pytest.mark.parametrize( "side_effect", [ FileNotFoundError(), CalledProcessError(1, "...
2,129
0
114
f9536233dbccdd441a1a4ba6ed5a894dbe6c0a2a
979
py
Python
src/setup.py
GML22/GeocoderPL
b9dbb5e42695272c2b2cdfa9bf3ea540ab559207
[ "MIT" ]
null
null
null
src/setup.py
GML22/GeocoderPL
b9dbb5e42695272c2b2cdfa9bf3ea540ab559207
[ "MIT" ]
null
null
null
src/setup.py
GML22/GeocoderPL
b9dbb5e42695272c2b2cdfa9bf3ea540ab559207
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='geocoderpl', version='1.1', description='GeocoderPL is an application written in Python, which can be used for geocoding address points in ' + 'Poland along with the possibility to display basic information about a given address point and the ' + ...
51.526316
119
0.679265
from setuptools import setup setup( name='geocoderpl', version='1.1', description='GeocoderPL is an application written in Python, which can be used for geocoding address points in ' + 'Poland along with the possibility to display basic information about a given address point and the ' + ...
0
0
0
586ac15985ab49f0a2bf56bd8fb82d99403b0429
497
py
Python
back/models/city.py
Bash-Air/bashair
76d07c0cca9323f5089d0c49450470bde887c4ea
[ "MIT" ]
null
null
null
back/models/city.py
Bash-Air/bashair
76d07c0cca9323f5089d0c49450470bde887c4ea
[ "MIT" ]
null
null
null
back/models/city.py
Bash-Air/bashair
76d07c0cca9323f5089d0c49450470bde887c4ea
[ "MIT" ]
1
2022-02-14T11:27:50.000Z
2022-02-14T11:27:50.000Z
from django.contrib.auth.models import User from django.db import models from django_extensions.db.models import TimeStampedModel from cities_light.abstract_models import (AbstractCity, AbstractRegion, AbstractCountry, AbstractSubRegion) from cities_light.receivers import connect_default_signals connect_default_s...
19.88
107
0.820926
from django.contrib.auth.models import User from django.db import models from django_extensions.db.models import TimeStampedModel from cities_light.abstract_models import (AbstractCity, AbstractRegion, AbstractCountry, AbstractSubRegion) from cities_light.receivers import connect_default_signals class Country(Abstrac...
0
72
92
7331fd68e65954991a8f4848669ad0b536e3be4f
639
py
Python
setup.py
evhub/kapre
5780bcccaf03c100863e8868ae213c1c39d5db8a
[ "MIT" ]
null
null
null
setup.py
evhub/kapre
5780bcccaf03c100863e8868ae213c1c39d5db8a
[ "MIT" ]
null
null
null
setup.py
evhub/kapre
5780bcccaf03c100863e8868ae213c1c39d5db8a
[ "MIT" ]
1
2019-11-20T04:42:13.000Z
2019-11-20T04:42:13.000Z
from setuptools import setup setup(name='kapre', version='0.1.2.1', description='Kapre: Keras Audio Preprocessors. Keras layers for audio pre-processing in deep learning', author='Keunwoo Choi', url='http://github.com/keunwoo/kapre/', download_url='http://github.com/keunwoochoi/kapre/rele...
30.428571
109
0.600939
from setuptools import setup setup(name='kapre', version='0.1.2.1', description='Kapre: Keras Audio Preprocessors. Keras layers for audio pre-processing in deep learning', author='Keunwoo Choi', url='http://github.com/keunwoo/kapre/', download_url='http://github.com/keunwoochoi/kapre/rele...
0
0
0
3745ad56745cceebde5c6d3c10cd42a8a39d448e
128,441
py
Python
dataset/id_to_label_3.py
rskmoi/landmark-retrieval-2020-with-pytorch
41917b1f588b5ad396cb1095867a0f042c611675
[ "MIT" ]
1
2020-09-08T08:48:25.000Z
2020-09-08T08:48:25.000Z
dataset/id_to_label_3.py
rskmoi/landmark-retrieval-2020-with-pytorch
41917b1f588b5ad396cb1095867a0f042c611675
[ "MIT" ]
null
null
null
dataset/id_to_label_3.py
rskmoi/landmark-retrieval-2020-with-pytorch
41917b1f588b5ad396cb1095867a0f042c611675
[ "MIT" ]
null
null
null
ID_TO_LABEL = \ {'100028': 0, '100082': 1, '100167': 2, '100191': 3, '100192': 4, '100207': 5, '10022': 6, '100230': 7, '100280': 8, '100338': 9, '100363': 10, '100372': 11, '100407': 12, '100474': 13, '100484': 14, '100485': 15, '10050...
20.278023
20
0.457673
ID_TO_LABEL = \ {'100028': 0, '100082': 1, '100167': 2, '100191': 3, '100192': 4, '100207': 5, '10022': 6, '100230': 7, '100280': 8, '100338': 9, '100363': 10, '100372': 11, '100407': 12, '100474': 13, '100484': 14, '100485': 15, '10050...
0
0
0
e7949e7fe99877edba5e11aaaf3f0b7445b4aaf2
2,238
py
Python
modules/text/text_to_knowledge/nptag/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
8,360
2019-01-18T10:46:45.000Z
2022-03-31T14:50:02.000Z
modules/text/text_to_knowledge/nptag/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
1,158
2019-04-11T09:22:43.000Z
2022-03-31T12:12:09.000Z
modules/text/text_to_knowledge/nptag/module.py
AK391/PaddleHub
a51ab7447e089776766becb3297e560dfed98573
[ "Apache-2.0" ]
1,677
2019-04-09T15:07:40.000Z
2022-03-31T06:41:10.000Z
# -*- coding:utf-8 -*- import os import argparse import paddle import paddlehub as hub from paddlehub.module.module import serving, moduleinfo, runnable from paddlenlp import Taskflow @moduleinfo( name="nptag", version="1.0.0", summary="", author="Baidu", author_email="", type="nlp/text_to_kn...
30.657534
135
0.5563
# -*- coding:utf-8 -*- import os import argparse import paddle import paddlehub as hub from paddlehub.module.module import serving, moduleinfo, runnable from paddlenlp import Taskflow @moduleinfo( name="nptag", version="1.0.0", summary="", author="Baidu", author_email="", type="nlp/text_to_kn...
255
1,597
22
df7c3c299e778864f95e22ecb6986012ee2e1106
362
py
Python
fibonacci/fib-generator.py
alejandrosocorro/pytudes
2498957d2d0c4d26fdbe1f50429e1aef51b92eee
[ "MIT" ]
1
2020-02-23T13:11:41.000Z
2020-02-23T13:11:41.000Z
fibonacci/fib-generator.py
alejandrosocorro/pyprog
2498957d2d0c4d26fdbe1f50429e1aef51b92eee
[ "MIT" ]
null
null
null
fibonacci/fib-generator.py
alejandrosocorro/pyprog
2498957d2d0c4d26fdbe1f50429e1aef51b92eee
[ "MIT" ]
null
null
null
from typing import Generator if __name__ == "__main__": for i in fib(50): print(i)
18.1
46
0.535912
from typing import Generator def fib(n: int) -> Generator[int, None, None]: yield 0 # special case if n > 0: yield 1 # special case last: int = 0 # fib(0) next: int = 1 # fib(1) for _ in range(1, n): last, next = next, last + next yield next if __name__ == "__main__...
241
0
23
2c4ae23879585f5fc317fd41016fc5d4c0536f77
4,793
py
Python
scripts/test/m2py.py
architectureofthings/openmeta-vahana
81f7590765ccf8b14b6dea5473be6cefb0677284
[ "MIT" ]
11
2018-04-18T02:53:29.000Z
2021-11-06T00:53:51.000Z
scripts/test/m2py.py
architectureofthings/openmeta-vahana
81f7590765ccf8b14b6dea5473be6cefb0677284
[ "MIT" ]
2
2017-11-14T21:18:34.000Z
2017-11-15T16:04:36.000Z
scripts/test/m2py.py
metamorph-inc/openmeta-vahana
f526f5ad36f735ebf719fd0489e6a707523e1f74
[ "MIT" ]
10
2018-01-17T01:28:00.000Z
2021-01-24T05:08:00.000Z
# author: tthomas@metamorphsoftware.com # date: 2017-06-05 # description: automations script for converting '.m' files to python wrappers import re import glob if __name__ == '__main__': component_name = "" params_orig = list() params_new = list() unknowns_orig = list() unknowns_new = list() ...
43.18018
98
0.402462
# author: tthomas@metamorphsoftware.com # date: 2017-06-05 # description: automations script for converting '.m' files to python wrappers import re import glob if __name__ == '__main__': component_name = "" params_orig = list() params_new = list() unknowns_orig = list() unknowns_new = list() ...
0
0
0
a60c5462ab0b35947bc188d0278b606cb2e96f4b
3,921
py
Python
main.py
Arnzero/QTMiniPlayer
20821615371d9c510f8e95c47a53b58bc05cbe2d
[ "Apache-2.0" ]
null
null
null
main.py
Arnzero/QTMiniPlayer
20821615371d9c510f8e95c47a53b58bc05cbe2d
[ "Apache-2.0" ]
null
null
null
main.py
Arnzero/QTMiniPlayer
20821615371d9c510f8e95c47a53b58bc05cbe2d
[ "Apache-2.0" ]
null
null
null
import sys, os from PySide2.QtUiTools import QUiLoader #allows us to import .ui files from PySide2.QtWidgets import QApplication, QLineEdit, QPushButton, QFileDialog, QAction, QSlider, QMouseEventTransition, QLabel from PySide2.QtCore import QFile, QObject, QUrl from PySide2.QtMultimedia import QMediaPlayer from PySide...
34.095652
128
0.690895
import sys, os from PySide2.QtUiTools import QUiLoader #allows us to import .ui files from PySide2.QtWidgets import QApplication, QLineEdit, QPushButton, QFileDialog, QAction, QSlider, QMouseEventTransition, QLabel from PySide2.QtCore import QFile, QObject, QUrl from PySide2.QtMultimedia import QMediaPlayer from PySide...
3,151
5
242
50d3cf150be3a823530fd3b4513c40cdb80789c1
8,532
py
Python
RL/agents/exp_buff_agent_old.py
bhatiaabhinav/RL-v2
38322aac7d1dcb1f9e86dd32bc1d861d143dcd7a
[ "MIT" ]
4
2021-01-14T02:32:37.000Z
2022-02-20T19:36:51.000Z
RL/agents/exp_buff_agent_old.py
bhatiaabhinav/RL-v2
38322aac7d1dcb1f9e86dd32bc1d861d143dcd7a
[ "MIT" ]
3
2020-08-15T13:46:00.000Z
2021-06-08T21:58:42.000Z
RL/agents/exp_buff_agent_old.py
bhatiaabhinav/RL-v2
38322aac7d1dcb1f9e86dd32bc1d861d143dcd7a
[ "MIT" ]
1
2020-09-16T05:50:34.000Z
2020-09-16T05:50:34.000Z
from RL.utils.util_fns import update_mean_std import logging import sys from typing import List import numpy as np import RL ids = 0 logger = logging.getLogger(__name__) ldebug = logger.isEnabledFor(logging.DEBUG) class ExperienceBuffer: '''A circular buffer to hold experiences''' @property @propert...
43.090909
299
0.616503
from RL.utils.util_fns import update_mean_std import logging import sys from typing import List import numpy as np import RL ids = 0 logger = logging.getLogger(__name__) ldebug = logger.isEnabledFor(logging.DEBUG) class Experience: def __init__(self, state, action, reward, done, info, next_state, cost=0): ...
5,998
13
447
42f1e8ffb20a9a0b6271cb45e7258d171c7510fc
4,012
py
Python
stats_transcriptomic_type_ephys.py
danielmk/PatchSeq
cc623e58697a2f1545268e08716e1f7719e237aa
[ "MIT" ]
1
2022-01-23T21:11:46.000Z
2022-01-23T21:11:46.000Z
stats_transcriptomic_type_ephys.py
danielmk/PatchSeq
cc623e58697a2f1545268e08716e1f7719e237aa
[ "MIT" ]
null
null
null
stats_transcriptomic_type_ephys.py
danielmk/PatchSeq
cc623e58697a2f1545268e08716e1f7719e237aa
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Do statistics on the transcriptomic type and plot low-dimensional embeddings. """ import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import os from scipy.stats import ranksums plt.rcParams["svg.fonttype"] = "none" sns.set( context="paper", style="ticks", ...
24.919255
75
0.632851
# -*- coding: utf-8 -*- """ Do statistics on the transcriptomic type and plot low-dimensional embeddings. """ import pandas as pd import matplotlib.pyplot as plt import seaborn as sns import os from scipy.stats import ranksums plt.rcParams["svg.fonttype"] = "none" sns.set( context="paper", style="ticks", ...
0
0
0
45d6c63043c46af04bbae64124b9d0cdad4eb02a
8,888
py
Python
src/apex/cli.py
Syncleus/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
13
2016-03-23T09:35:13.000Z
2019-09-23T09:39:37.000Z
src/apex/cli.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
31
2016-09-21T10:29:36.000Z
2016-09-30T12:11:28.000Z
src/apex/cli.py
freemo/apex
99ab661f0993fcee8064578b6a6020f5b742d75f
[ "Apache-2.0" ]
5
2016-03-27T21:32:09.000Z
2022-01-13T17:04:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mapex` pyt...
38.145923
137
0.650428
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mapex` pyt...
6,681
0
91
aca95e0e54e5ca1a68e0599cbacc7db0b39e9970
6,934
py
Python
jsb/plugs/common/topic.py
NURDspace/jsonbot
400dce602700a93db80e10707c3785a0fbdfaaeb
[ "MIT" ]
1
2019-04-12T12:20:12.000Z
2019-04-12T12:20:12.000Z
jsb/plugs/common/topic.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
null
null
null
jsb/plugs/common/topic.py
Petraea/jsonbot
04a3a0c586a8a1a3b0e5316d10cda16df9be415b
[ "MIT" ]
1
2020-05-06T18:46:53.000Z
2020-05-06T18:46:53.000Z
# jsb/plugs/core/topic.py # # """ manage topics. """ ## jsb imports from jsb.lib.commands import cmnds from jsb.lib.examples import examples ## basic imports import time ## checktopicmode function def checktopicmode(bot, ievent): """ callback for change in channel topic mode """ chan = ievent.channel ...
40.080925
116
0.667436
# jsb/plugs/core/topic.py # # """ manage topics. """ ## jsb imports from jsb.lib.commands import cmnds from jsb.lib.examples import examples ## basic imports import time ## checktopicmode function def checktopicmode(bot, ievent): """ callback for change in channel topic mode """ chan = ievent.channel ...
0
0
0
c739d9e3df6c17840ad1fe727b834881c2868a81
1,353
py
Python
pycrobit/utils.py
MrGallo/pycrob
5d41ec54191bb31048dcb69374efd26c99e06844
[ "MIT" ]
null
null
null
pycrobit/utils.py
MrGallo/pycrob
5d41ec54191bb31048dcb69374efd26c99e06844
[ "MIT" ]
9
2019-12-23T15:43:36.000Z
2022-03-12T00:16:32.000Z
pycrobit/utils.py
MrGallo/pycrob
5d41ec54191bb31048dcb69374efd26c99e06844
[ "MIT" ]
1
2019-05-21T18:46:57.000Z
2019-05-21T18:46:57.000Z
import json from collections import namedtuple from typing import Dict, NamedTuple def dict_to_object(data_dict: Dict) -> NamedTuple: """Converts dict to an object""" try: Data = namedtuple("Data", " ".join(data_dict.keys())) except AttributeError: raise TypeError("Must be a dict.") ...
25.528302
72
0.620843
import json from collections import namedtuple from typing import Dict, NamedTuple class JSONStringCorruptError(Exception): pass def string_to_dict(string: str) -> Dict: try: return json.loads(string) except json.decoder.JSONDecodeError: raise JSONStringCorruptError(f"Cannot decode str...
463
28
92
d4c2a58b7ce41764641116451ed8dad1dd1291a9
2,800
py
Python
data_preparation/split_librilight/prepare_vads_tests.py
dweekly/libri-light
2a181b2482e0e3a539bf4d8b387b1838fdbfacac
[ "MIT" ]
246
2019-12-19T21:40:48.000Z
2022-03-30T12:40:22.000Z
data_preparation/split_librilight/prepare_vads_tests.py
dweekly/libri-light
2a181b2482e0e3a539bf4d8b387b1838fdbfacac
[ "MIT" ]
11
2020-01-17T14:45:05.000Z
2021-09-20T21:53:27.000Z
data_preparation/split_librilight/prepare_vads_tests.py
dweekly/libri-light
2a181b2482e0e3a539bf4d8b387b1838fdbfacac
[ "MIT" ]
48
2019-12-20T16:34:12.000Z
2022-03-26T13:14:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from prepare_vads import split_vad if __name__ == '__main__': unittest.main()
36.363636
101
0.566071
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import unittest from prepare_vads import split_vad class TestSplit(unittest.TestCase): def test_all_silence(self): p_silence = [1...
1,675
824
23
92a600ca725df4ccb3cff0cee721d32c8e1cdee1
5,796
py
Python
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/_erfa/tests/test_erfa.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/_erfa/tests/test_erfa.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
NASA SPACEAPPS CHALLENGE/Solution/Software part/Astronomical Data and Python Libraries/Astropy/astropy-1.1.2/astropy/_erfa/tests/test_erfa.py
sahirsharma/Martian
062e9b47849512863c16713811f347ad7e121b56
[ "MIT" ]
null
null
null
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from .. import core as erfa def test_erfa_wrapper(): """ Runs a set of tests that mostly make sure vectorization is working as expected """ jd = np.linspace(2456855.5, 2456855.5+1.0/24.0/60.0, 60*2+1) ra = np....
34.094118
164
0.607315
# Licensed under a 3-clause BSD style license - see LICENSE.rst import numpy as np from .. import core as erfa def test_erfa_wrapper(): """ Runs a set of tests that mostly make sure vectorization is working as expected """ jd = np.linspace(2456855.5, 2456855.5+1.0/24.0/60.0, 60*2+1) ra = np....
1,634
0
23
504408c5ef505dcb9b3f1c00fbd05face76ed795
9,098
py
Python
rpi_temperature_mqtt/logger.py
yliniemi/rpi-temperature-mqtt
23ca7080e7bdab7de476abb15d4485d92cf740f3
[ "MIT" ]
null
null
null
rpi_temperature_mqtt/logger.py
yliniemi/rpi-temperature-mqtt
23ca7080e7bdab7de476abb15d4485d92cf740f3
[ "MIT" ]
null
null
null
rpi_temperature_mqtt/logger.py
yliniemi/rpi-temperature-mqtt
23ca7080e7bdab7de476abb15d4485d92cf740f3
[ "MIT" ]
null
null
null
import RPi.GPIO as GPIO import time import re import socket import sys import traceback import paho.mqtt.client as mqtt from threading import Thread
44.165049
172
0.561882
import RPi.GPIO as GPIO import time import re import socket import sys import traceback import paho.mqtt.client as mqtt from threading import Thread class TemperatureLogger: config = None mqtt_client = None mqtt_connected = False worker_sensor = None worker_mqtt = None def __...
8,452
463
24
918f2cc42cac37adde8288e0de41cd8a120a49d3
17,152
py
Python
core/domain/stats_jobs_one_off_test.py
ivanDad/oppiaV
1d96585e375d0fa2c289efcf439b29db0c7207f5
[ "Apache-2.0" ]
1
2017-11-30T02:16:01.000Z
2017-11-30T02:16:01.000Z
core/domain/stats_jobs_one_off_test.py
ivanDad/oppiaV
1d96585e375d0fa2c289efcf439b29db0c7207f5
[ "Apache-2.0" ]
null
null
null
core/domain/stats_jobs_one_off_test.py
ivanDad/oppiaV
1d96585e375d0fa2c289efcf439b29db0c7207f5
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
43.095477
80
0.680329
# coding: utf-8 # # Copyright 2014 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requi...
15,643
0
189
619beccb7ece7a805cd0c6f95bf19e062aa56295
790
py
Python
tests/test_text_provider.py
ggiuffre/tf-lyrics
ea00a97f985ac2204da6eca94217ca77f888bc81
[ "MIT" ]
3
2021-07-31T09:55:49.000Z
2022-03-03T18:39:06.000Z
tests/test_text_provider.py
ggiuffre/tf-lyrics
ea00a97f985ac2204da6eca94217ca77f888bc81
[ "MIT" ]
null
null
null
tests/test_text_provider.py
ggiuffre/tf-lyrics
ea00a97f985ac2204da6eca94217ca77f888bc81
[ "MIT" ]
1
2020-03-20T15:12:03.000Z
2020-03-20T15:12:03.000Z
from tflyrics.text_provider import TextProvider import pytest class MockProvider(TextProvider): """A mock TextProvider.""" def __init__(self, mock_arg: object): """Create a MockProvider object.""" super(MockProvider, self).__init__() self.mock_arg = mock_arg def test_abstractnes...
21.944444
67
0.65443
from tflyrics.text_provider import TextProvider import pytest class MockProvider(TextProvider): """A mock TextProvider.""" def __init__(self, mock_arg: object): """Create a MockProvider object.""" super(MockProvider, self).__init__() self.mock_arg = mock_arg def resources(self,...
123
0
54
434c230ba82e01322a3dc8f20ba645b5bc3eab81
2,340
py
Python
setup.py
shibaken/commercialoperator
1e0adfe683288626d9d3113e9efb44e0eba78adb
[ "Apache-2.0" ]
null
null
null
setup.py
shibaken/commercialoperator
1e0adfe683288626d9d3113e9efb44e0eba78adb
[ "Apache-2.0" ]
12
2020-02-12T06:26:55.000Z
2022-02-13T05:52:54.000Z
setup.py
dbca-wa/boranga_v1
c6677068d147bfaa32386ab9cbed3a255d2fe1cd
[ "Apache-2.0" ]
8
2020-02-24T05:11:18.000Z
2021-02-26T07:54:24.000Z
from setuptools import setup setup(name='ledger', version='1.6', description='Ledger Payments App', url='https://github.com/dbca-wa/ledger', author='Department of Parks and Wildlife', author_email='asi@dbca.wa.gov.au', license='BSD', packages=['ledger','ledger.accounts','ledge...
68.823529
296
0.666667
from setuptools import setup setup(name='ledger', version='1.6', description='Ledger Payments App', url='https://github.com/dbca-wa/ledger', author='Department of Parks and Wildlife', author_email='asi@dbca.wa.gov.au', license='BSD', packages=['ledger','ledger.accounts','ledge...
0
0
0
22d141f3f03b6605c911e4a746b3989d01e67184
4,909
py
Python
tests/bandwidth/account/test_available_number.py
katapal/python-bandwidth
4477c4129ce856ccd41adbc94e951336b56d7898
[ "MIT" ]
null
null
null
tests/bandwidth/account/test_available_number.py
katapal/python-bandwidth
4477c4129ce856ccd41adbc94e951336b56d7898
[ "MIT" ]
null
null
null
tests/bandwidth/account/test_available_number.py
katapal/python-bandwidth
4477c4129ce856ccd41adbc94e951336b56d7898
[ "MIT" ]
null
null
null
import unittest import six import requests from tests.bandwidth.helpers import get_account_client as get_client from tests.bandwidth.helpers import create_response, AUTH, headers if six.PY3: from unittest.mock import patch else: from mock import patch from bandwidth_old.voice import Client
35.832117
95
0.553473
import unittest import six import requests from tests.bandwidth.helpers import get_account_client as get_client from tests.bandwidth.helpers import create_response, AUTH, headers if six.PY3: from unittest.mock import patch else: from mock import patch from bandwidth_old.voice import Client class AvailableNum...
0
4,585
23
0025df4b9b7e59fdd3d556a7cb77764c93b5b442
4,811
py
Python
practical_data_science/Assignment4/evaluate-f1.py
SpyrosMouselinos/Msc-AUEB-Data-Science
179e0d107448d5a547651d60dafbc2345817c4a9
[ "Apache-2.0" ]
1
2021-06-25T13:19:38.000Z
2021-06-25T13:19:38.000Z
practical_data_science/Assignment4/evaluate-f1.py
SpyrosMouselinos/Msc-AUEB-Data-Science
179e0d107448d5a547651d60dafbc2345817c4a9
[ "Apache-2.0" ]
null
null
null
practical_data_science/Assignment4/evaluate-f1.py
SpyrosMouselinos/Msc-AUEB-Data-Science
179e0d107448d5a547651d60dafbc2345817c4a9
[ "Apache-2.0" ]
null
null
null
import sys, argparse, string import csv import warnings from sklearn.metrics import f1_score # Read a Tab-separated ImageID - Caption pair file # Print 1-level key-value dictionary, sorted (with numeric key) # Main if __name__ == '__main__': main(sys.argv[1:])
32.288591
99
0.596342
import sys, argparse, string import csv import warnings from sklearn.metrics import f1_score def main(argv): # Hide warnings warnings.filterwarnings('ignore') # Concept stats min_concepts = sys.maxsize max_concepts = 0 total_concepts = 0 concepts_distrib = {} # Parse arguments p...
4,473
0
67
d16072dd11796f84fc85ce13b9e3c1fae09c60e1
1,194
py
Python
leetcode/129.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/129.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/129.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
''' Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. For example, 1 / \ 2 3 The root-to-leaf path 1->2 represents the number 12....
25.956522
115
0.644891
''' Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the total sum of all root-to-leaf numbers. For example, 1 / \ 2 3 The root-to-leaf path 1->2 represents the number 12....
346
153
71
84bf5d290a4e55fab5bc65cd01a88e38065025f6
100
py
Python
hitron_cpe/common/__init__.py
jersmith/hitron-cable-cpe
b7dfd7801dbdebd92b3bb4d417b8430531182d33
[ "MIT" ]
1
2022-01-10T21:38:35.000Z
2022-01-10T21:38:35.000Z
hitron_cpe/common/__init__.py
jersmith/hitron-cable-cpe
b7dfd7801dbdebd92b3bb4d417b8430531182d33
[ "MIT" ]
null
null
null
hitron_cpe/common/__init__.py
jersmith/hitron-cable-cpe
b7dfd7801dbdebd92b3bb4d417b8430531182d33
[ "MIT" ]
null
null
null
""" Common utilities for logging, command line processing and more. """ from .logger import Logger
25
71
0.75
""" Common utilities for logging, command line processing and more. """ from .logger import Logger
0
0
0
514fc2a12e9c14f549ccee7911ec9b607eefc014
2,665
py
Python
custom_components/smartweather/entity.py
hwikene/smartweather
c6fbd383108d93a44bbc693f766dd7e84554a920
[ "MIT" ]
null
null
null
custom_components/smartweather/entity.py
hwikene/smartweather
c6fbd383108d93a44bbc693f766dd7e84554a920
[ "MIT" ]
null
null
null
custom_components/smartweather/entity.py
hwikene/smartweather
c6fbd383108d93a44bbc693f766dd7e84554a920
[ "MIT" ]
null
null
null
"""Base Entity definition for SmartWeather Integration.""" from homeassistant.helpers.entity import Entity import homeassistant.helpers.device_registry as dr from typing import Dict, List from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_FRIENDLY_NAME, ) from .const import ( DOMAIN, ATTR_BRAND, ...
29.611111
79
0.649531
"""Base Entity definition for SmartWeather Integration.""" from homeassistant.helpers.entity import Entity import homeassistant.helpers.device_registry as dr from typing import Dict, List from homeassistant.const import ( ATTR_ATTRIBUTION, ATTR_FRIENDLY_NAME, ) from .const import ( DOMAIN, ATTR_BRAND, ...
241
0
26
b8c751ee8c76b3327ea49415f63f97d066c4081a
11,611
py
Python
deepchem/models/progressive_multitask.py
martonlanga/deepchem
af2db874484603ade489fa513eac193b38ce6d56
[ "MIT" ]
1
2020-05-04T06:42:56.000Z
2020-05-04T06:42:56.000Z
deepchem/models/progressive_multitask.py
martonlanga/deepchem
af2db874484603ade489fa513eac193b38ce6d56
[ "MIT" ]
1
2020-07-13T18:59:49.000Z
2020-07-13T18:59:49.000Z
deepchem/models/progressive_multitask.py
fenomeinc/deepchem
1c007fbae899a49fe3c40f41e7273ed21867fef9
[ "MIT" ]
null
null
null
import time import numpy as np import tensorflow as tf import collections from deepchem.utils.save import log from deepchem.metrics import to_one_hot from deepchem.metrics import from_one_hot from deepchem.models import KerasModel, layers from deepchem.models.losses import L2Loss, SparseSoftmaxCrossEntropy from deepch...
36.860317
119
0.670657
import time import numpy as np import tensorflow as tf import collections from deepchem.utils.save import log from deepchem.metrics import to_one_hot from deepchem.metrics import from_one_hot from deepchem.models import KerasModel, layers from deepchem.models.losses import L2Loss, SparseSoftmaxCrossEntropy from deepch...
1,847
9
223
d2edbd69aceb627d0e0b3728ada282d28e0a4193
7,645
py
Python
Code/userMainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
Code/userMainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
Code/userMainWindow.py
grey-wings/dynamic_desktop
a58ef6109112bd89fde24e0ca7bf7ecefc51cc8d
[ "MIT" ]
null
null
null
import os import sys from subprocess import call from cv2 import VideoCapture, cvtColor, COLOR_BGR2RGB from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import Qt, QTimer from PyQt5.QtGui import QImage, QPixmap, QIcon from PyQt5.QtWidgets import QMainWindow, QFileDia...
34.908676
109
0.539045
import os import sys from subprocess import call from cv2 import VideoCapture, cvtColor, COLOR_BGR2RGB from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import QApplication from PyQt5.QtCore import Qt, QTimer from PyQt5.QtGui import QImage, QPixmap, QIcon from PyQt5.QtWidgets import QMainWindow, QFileDia...
6,758
443
310
87fc16bb8a379d7bbe45c105ec05653b7846a83d
910
py
Python
bluebottle/impact/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
10
2015-05-28T18:26:40.000Z
2021-09-06T10:07:03.000Z
bluebottle/impact/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
762
2015-01-15T10:00:59.000Z
2022-03-31T15:35:14.000Z
bluebottle/impact/admin.py
terrameijar/bluebottle
b4f5ba9c4f03e678fdd36091b29240307ea69ffd
[ "BSD-3-Clause" ]
9
2015-02-20T13:19:30.000Z
2022-03-08T14:09:17.000Z
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from parler.admin import TranslatableAdmin from bluebottle.impact.models import ImpactType, ImpactGoal admin.site.register(ImpactType, ImpactTypeAdmin)
26.764706
84
0.69011
from django.contrib import admin from django.utils.translation import gettext_lazy as _ from parler.admin import TranslatableAdmin from bluebottle.impact.models import ImpactType, ImpactGoal class ImpactGoalInline(admin.TabularInline): model = ImpactGoal extra = 0 readonly_fields = ('unit', 'realized_fr...
95
523
46
a3d8af67ce731bc5ce1f42e2c87bf76da47bcc68
6,483
py
Python
src/libnrl/tadw.py
river-li/DeepBinDiff
a5f6fa1a23743ca462a126d3636e8fc4099ac841
[ "BSD-3-Clause" ]
null
null
null
src/libnrl/tadw.py
river-li/DeepBinDiff
a5f6fa1a23743ca462a126d3636e8fc4099ac841
[ "BSD-3-Clause" ]
null
null
null
src/libnrl/tadw.py
river-li/DeepBinDiff
a5f6fa1a23743ca462a126d3636e8fc4099ac841
[ "BSD-3-Clause" ]
null
null
null
from __future__ import print_function import numpy as np from sklearn.preprocessing import normalize import preprocessing
41.292994
110
0.530464
from __future__ import print_function import numpy as np from sklearn.preprocessing import normalize import preprocessing class TADW(object): def __init__(self, graph, dim, lamb=0.2, threshold=0.1): self.g = graph self.lamb = lamb self.dim = dim self.threshold = threshold ...
6,172
-2
189
262b315464af5ecf135c07f0531458af72954336
518
py
Python
plugin/fiftyone/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
plugin/fiftyone/tests/__main__.py
phoenix-xhuang/ymir
537d3ac389c4a365ce4daef431c95b42ddcd5b1b
[ "Apache-2.0" ]
null
null
null
import os import sys import subprocess if __name__ == "__main__": sys.exit(main(sys.argv[1:]))
24.666667
75
0.629344
import os import sys import subprocess def main(args): params = " ".join(sys.argv[1:]) repo_root = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # --cov-report term-missing cmd = ( "PYTHONPATH=$PYTHONPATH:{repo_root} pytest -vv -xs --durations=0 " "--cov=app --cov-config=...
393
0
23
b37fcc186a5d444d1a74f6847425ff91fa363ed4
565
py
Python
findwork/migrations/0003_auto_20210108_1254.py
sawe-daisy/findjobo
6c77d2140a9701b747680e22c2f56d4395a663ab
[ "MIT" ]
null
null
null
findwork/migrations/0003_auto_20210108_1254.py
sawe-daisy/findjobo
6c77d2140a9701b747680e22c2f56d4395a663ab
[ "MIT" ]
null
null
null
findwork/migrations/0003_auto_20210108_1254.py
sawe-daisy/findjobo
6c77d2140a9701b747680e22c2f56d4395a663ab
[ "MIT" ]
null
null
null
# Generated by Django 3.1.3 on 2021-01-08 09:54 from django.db import migrations, models
23.541667
61
0.582301
# Generated by Django 3.1.3 on 2021-01-08 09:54 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('findwork', '0002_auto_20210104_1010'), ] operations = [ migrations.AlterField( model_name='user', name='first_name',...
0
451
23
4c45d23cc87e6259996a509ed1421b22d9e4c9b9
15,865
py
Python
app/migrations/0001_initial.py
encarcelado/ultra_eruz
7e09f69dd1792a7e7be4302e76a0da219a214a48
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
encarcelado/ultra_eruz
7e09f69dd1792a7e7be4302e76a0da219a214a48
[ "MIT" ]
null
null
null
app/migrations/0001_initial.py
encarcelado/ultra_eruz
7e09f69dd1792a7e7be4302e76a0da219a214a48
[ "MIT" ]
null
null
null
# Generated by Django 2.1.15 on 2020-04-22 07:01 from django.db import migrations, models
43.346995
114
0.522597
# Generated by Django 2.1.15 on 2020-04-22 07:01 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='AuthGroup', fields=[ ('id', models.AutoFie...
0
15,750
23
c528a13ed396799c19df64f3d6a7a6a5b4427066
585
py
Python
ex13_3.py
DexHunter/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
24
2019-05-07T15:11:28.000Z
2022-03-02T04:50:28.000Z
ex13_3.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
null
null
null
ex13_3.py
Dekzu/Think-Python-book-exercise-solutions
d0abae261eda1dca99043e17e8a1e614caad2140
[ "CC-BY-4.0" ]
19
2019-08-05T20:59:04.000Z
2022-03-07T05:13:32.000Z
from ex13_1 import * from ex13_2 import * from collections import Counter # I have downloaded _Pride and Prejudice_ from Gutenberg website and modified header with '#' def count_number_frequency(l): '''Print the 20 most frequently used words in the book''' c = Counter(l) print(c.most_common(20)) if __name__ == '...
34.411765
93
0.74359
from ex13_1 import * from ex13_2 import * from collections import Counter # I have downloaded _Pride and Prejudice_ from Gutenberg website and modified header with '#' def count_number_frequency(l): '''Print the 20 most frequently used words in the book''' c = Counter(l) print(c.most_common(20)) if __name__ == '...
0
0
0
2d544e39d0341b35a452feddd5b00b50f021c4ba
4,753
py
Python
supervised_learning/train.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
null
null
null
supervised_learning/train.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
2
2021-04-10T18:12:44.000Z
2022-02-09T23:36:43.000Z
supervised_learning/train.py
gonzalezJohnas/SpeechCommand-recognition
d5351abe45c571a075c24bd04d328e76293f9230
[ "MIT" ]
null
null
null
import argparse # Data Loading import pickle from tensorflow.keras.backend import squeeze from global_utils import * import models random.seed(42) if __name__ == "__main__": print("TensorFlow version: {}".format(tf.__version__)) print("Eager execution: {}".format(tf.executing_eagerly())) parser = argp...
32.554795
117
0.644856
import argparse # Data Loading import pickle from tensorflow.keras.backend import squeeze from global_utils import * import models random.seed(42) if __name__ == "__main__": print("TensorFlow version: {}".format(tf.__version__)) print("Eager execution: {}".format(tf.executing_eagerly())) parser = argp...
0
0
0
1f61a7689932a6c4d733db5675f722b24e3edd0b
903
py
Python
test/ResultsAndPrizes/zodiac/test_zodiac_winning_draw_numbers_for_previous_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
1
2019-12-05T06:50:54.000Z
2019-12-05T06:50:54.000Z
test/ResultsAndPrizes/zodiac/test_zodiac_winning_draw_numbers_for_previous_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
test/ResultsAndPrizes/zodiac/test_zodiac_winning_draw_numbers_for_previous_draw.py
FearFactor1/SPA
a05aaa924c5bebb52cd508ebdf7fd3b81c49fac7
[ "Apache-2.0" ]
null
null
null
# зодиак + Выигрышные номера тиража + предыдущий тираж к примеру 2000
53.117647
89
0.815061
# зодиак + Выигрышные номера тиража + предыдущий тираж к примеру 2000 def test_zodiac_winning_draw_numbers_for_previous_draw(app): app.ResultAndPrizes.open_page_results_and_prizes() app.ResultAndPrizes.click_game_zodiac() app.ResultAndPrizes.click_winning_draw_numbers() app.ResultAndPrizes.select_dra...
839
0
23
47f05809874c71072314877ca5fecaa45b3e49da
870
py
Python
06_taches_finale/02_arnaud_jullien/Projet_eolienne/Prog_ok/CGestionEolienne.py
Izakun/banc_de_test_eolienne
3554e22f278bb015f9226862e590b9092e39c91f
[ "MIT" ]
2
2018-01-15T10:59:42.000Z
2018-01-15T10:59:44.000Z
06_taches_finale/02_arnaud_jullien/Projet_eolienne/Prog_ok/CGestionEolienne.py
Izakun/banc_de_test_eolienne
3554e22f278bb015f9226862e590b9092e39c91f
[ "MIT" ]
null
null
null
06_taches_finale/02_arnaud_jullien/Projet_eolienne/Prog_ok/CGestionEolienne.py
Izakun/banc_de_test_eolienne
3554e22f278bb015f9226862e590b9092e39c91f
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # coding: utf-8 ''' Programme : heure.py version 1.0 Date : 19-12-2017 Auteur : Jullien Arnaud Matériel utilisé : Fonctionnement programme : ''' from raspiomix import Raspiomix from datetime import datetime from threading import Thread import time from CAcqPuissance import CAcqPuissa...
21.75
78
0.636782
#!/usr/bin/env python3 # coding: utf-8 ''' Programme : heure.py version 1.0 Date : 19-12-2017 Auteur : Jullien Arnaud Matériel utilisé : Fonctionnement programme : ''' from raspiomix import Raspiomix from datetime import datetime from threading import Thread import time from CAcqPuissance import CAcqPuissa...
356
10
77
3812a7391f189f03379ecdd3019689a7aa22e866
8,717
py
Python
datasets/NOPC.py
wuminye/nerf_pl
521709d9c3437b94521755bf5fe761c0017fdf30
[ "MIT" ]
null
null
null
datasets/NOPC.py
wuminye/nerf_pl
521709d9c3437b94521755bf5fe761c0017fdf30
[ "MIT" ]
null
null
null
datasets/NOPC.py
wuminye/nerf_pl
521709d9c3437b94521755bf5fe761c0017fdf30
[ "MIT" ]
1
2020-06-23T06:43:10.000Z
2020-06-23T06:43:10.000Z
import torch from torch.utils.data import Dataset import json import numpy as np import os from PIL import Image from torchvision import transforms as T from .ray_utils import * import torchvision.transforms as T from torch.utils import data import torch from tqdm import tqdm import numpy as np import random im...
26.335347
155
0.542388
import torch from torch.utils.data import Dataset import json import numpy as np import os from PIL import Image from torchvision import transforms as T from .ray_utils import * import torchvision.transforms as T from torch.utils import data import torch from tqdm import tqdm import numpy as np import random im...
7,953
14
291
be85b1b991f098f311442c0ebe493372f2806e69
872
py
Python
bokeh/bokeh_magic.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
2
2021-09-01T12:36:06.000Z
2021-11-17T10:48:36.000Z
bokeh/bokeh_magic.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
null
null
null
bokeh/bokeh_magic.py
brian15co/bokeh
6cecb7211277b9d838039d0eb15e50a10f9ac3d1
[ "BSD-3-Clause" ]
null
null
null
# This is the bokeh_magic loader and installer, if you want to see the # bokeh_magic source code check the following url: # https://github.com/bokeh/bokeh/blob/master/extensions/bokeh_magic.py from __future__ import print_function from IPython import get_ipython def install_bokeh_magic(): "An alternative way to...
36.333333
79
0.761468
# This is the bokeh_magic loader and installer, if you want to see the # bokeh_magic source code check the following url: # https://github.com/bokeh/bokeh/blob/master/extensions/bokeh_magic.py from __future__ import print_function from IPython import get_ipython def install_bokeh_magic(): "An alternative way to...
0
0
0
fd831ce7e07dcfa058613559e15359e70af0d89c
1,426
py
Python
ggshield/scan/scannable_errors.py
enmathe/ggshield
12204130cbeb2035b85cb79d6c7045c202f9713a
[ "MIT" ]
794
2020-06-23T12:37:36.000Z
2021-07-09T15:58:11.000Z
ggshield/scan/scannable_errors.py
enmathe/ggshield
12204130cbeb2035b85cb79d6c7045c202f9713a
[ "MIT" ]
83
2021-07-15T12:40:28.000Z
2022-03-31T09:39:22.000Z
ggshield/scan/scannable_errors.py
enmathe/ggshield
12204130cbeb2035b85cb79d6c7045c202f9713a
[ "MIT" ]
42
2020-06-28T08:31:15.000Z
2021-07-09T15:58:14.000Z
from ast import literal_eval from typing import Dict, List import click from pygitguardian.models import Detail from ggshield.text_utils import STYLE, display_error, format_text, pluralize
31
80
0.601683
from ast import literal_eval from typing import Dict, List import click from pygitguardian.models import Detail from ggshield.text_utils import STYLE, display_error, format_text, pluralize def handle_scan_error(detail: Detail, chunk: List[Dict[str, str]]) -> None: if detail.status_code == 401: raise cli...
1,211
0
23
c914a439bf252b955138c72db89925e9e884ffdd
163
py
Python
todo/models.py
shuayb/simple-todo
7a6c840d38ada098b5cc3458d652c7db02ffd791
[ "MIT" ]
null
null
null
todo/models.py
shuayb/simple-todo
7a6c840d38ada098b5cc3458d652c7db02ffd791
[ "MIT" ]
null
null
null
todo/models.py
shuayb/simple-todo
7a6c840d38ada098b5cc3458d652c7db02ffd791
[ "MIT" ]
null
null
null
from app import db
20.375
48
0.687117
from app import db class Todo(db.Model): __tablename__ = "todo" id = db.Column(db.Integer, primary_key=True) description = db.Column(db.String(255))
0
121
23
6c11eb339923cd93ffc264186d1bfe6ed4639b6f
158
py
Python
danielscrumy/mwanikiscrumy/apps.py
mwaniel/django
652f237cfa145222ac1ff5a99f1792f491213cc9
[ "MIT" ]
null
null
null
danielscrumy/mwanikiscrumy/apps.py
mwaniel/django
652f237cfa145222ac1ff5a99f1792f491213cc9
[ "MIT" ]
null
null
null
danielscrumy/mwanikiscrumy/apps.py
mwaniel/django
652f237cfa145222ac1ff5a99f1792f491213cc9
[ "MIT" ]
null
null
null
from django.apps import AppConfig
22.571429
56
0.778481
from django.apps import AppConfig class MwanikiscrumyConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' name = 'mwanikiscrumy'
0
100
23