hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
11 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
251
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
⌀
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
3
251
max_issues_repo_name
stringlengths
4
130
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
3
251
max_forks_repo_name
stringlengths
4
130
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.05M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.04M
alphanum_fraction
float64
0
1
786642d4839cecf971d110875afa5237e48ae23f
475
py
Python
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
1
2016-01-30T03:36:15.000Z
2016-01-30T03:36:15.000Z
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
null
null
null
exercise1_6.py
ccie8030/pynet
84be459c6cb50a025a801e3d4b9bd237c698776a
[ "Apache-2.0" ]
null
null
null
import yaml import json main()
18.269231
104
0.581053
786662f7fd60f019ba19ea1741f61dafe91fb64a
1,978
py
Python
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
Structral Similarity/stsim_2.py
Michelle0903/Performance-Comparison-of-Structural-Similarity-Metrics
c2c409eefe335e4946ca895ad1d22b4930263819
[ "MIT" ]
null
null
null
from perceptual.metric_copy import Metric import cv2 import os import glob import heapq import torch import time from torch.utils.data import Dataset, DataLoader data_dir = "/Users/yuxiao/Desktop/data/Corbis128BigExperiment_gray/" data = glob.glob(data_dir + "*.tiff") m = Metric() res = [] knum = 10 for k in range...
22.224719
86
0.570779
7866925166859dc7a69b09e9e27d0bf72413316f
1,040
py
Python
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
Bag/testbag.py
yeyuning1/DataStructures
c302db3b14ee131e7090a8cc088519b863880336
[ "MIT" ]
null
null
null
""" File: testbag.py Author: Yeyuning A tester program for bag implementations. """ from Bag.arraybag import ArrayBag from Bag.linkedbag import LinkedBag # def test(bagType): # lyst = [2013, 61, 1973] # print('The list of items added is:', lyst) # b1 = bagType(lyst) # print("Expect 3:", len(b1)) # ...
25.365854
50
0.575962
786736d9f2365d02c0ef89f14817a4203397cc30
165
py
Python
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
1
2021-01-12T08:14:10.000Z
2021-01-12T08:14:10.000Z
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
249
2017-04-18T14:00:13.000Z
2022-03-30T12:18:03.000Z
plotsearch/apps.py
City-of-Helsinki/mvj
6f786047805a968317ecc37b38c2262ada2c3805
[ "MIT" ]
7
2017-04-18T08:43:54.000Z
2021-07-28T07:29:30.000Z
from django.apps import AppConfig
18.333333
47
0.70303
7867596a29dbeb64fbd242bc6c8c7720e3a87739
509
py
Python
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-09-20T04:32:52.000Z
2019-09-20T04:32:52.000Z
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-02-01T04:57:27.000Z
2019-02-01T04:57:27.000Z
src/codebase/controllers/default.py
ooclab/ga.service
894b4703628b2ce93790db31939009783e8e7b09
[ "MIT" ]
1
2019-01-14T06:51:17.000Z
2019-01-14T06:51:17.000Z
# pylint: disable=W0221,W0223 import os from codebase.web import APIRequestHandler
20.36
82
0.650295
786b2cbe165ff3efeddb8ce434ec54fe8e4cbb38
2,189
py
Python
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
1
2021-05-13T11:09:16.000Z
2021-05-13T11:09:16.000Z
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
null
null
null
Projecto1/basico/Exercicio3.py
CarlosMacaneta/Basic-Python
13034a23ca4cb45eab1226c6b719476d713803b9
[ "MIT" ]
null
null
null
import os.path import random path = "professor.txt" main()
23.042105
69
0.583828
786ea20db76f036afee97045dee5cd524ee74858
166
py
Python
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
2
2021-11-13T13:52:56.000Z
2022-03-29T18:10:27.000Z
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
Exercicios/ex012.py
GabrielMazzuchello/Curso-Em-Video
2bf7847f23980e0ce63312997318a43000246bfa
[ "MIT" ]
null
null
null
v = float(input('qual e o valor do seu produto? R$:')) d = v / 100 * 5 print('o valor do produto de R$:{} agora com 5% de desconto ficou R$:{:.2f}'.format(v, (v-d)))
41.5
94
0.60241
787089ab58a2c573c193c13a1c54f7ae8051fe13
1,692
py
Python
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
8
2020-03-23T21:34:02.000Z
2021-11-12T11:27:45.000Z
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
17
2020-03-14T22:22:29.000Z
2022-03-16T19:26:37.000Z
graphql/backend/tests/test_compileddocument.py
ThanksBoomerang/graphql-core-legacy
6e2fbccdec655ce9122b84d3808c14242c4e6b96
[ "MIT" ]
17
2020-03-23T12:06:23.000Z
2022-02-13T05:33:32.000Z
from ...language.base import parse from ...utils.ast_to_code import ast_to_code from ..compiled import GraphQLCompiledDocument from .schema import schema
28.2
79
0.708038
78715707268ed203ef8de172b23e49fc52b02ddc
9,568
py
Python
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
3
2019-06-14T18:05:22.000Z
2020-01-22T17:38:17.000Z
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
null
null
null
pid/eco/views.py
PlanetaryResources/pid
ecb146cc26c6ade2863bcdc6d271ead3cbcbbe40
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """Design views.""" from flask import Blueprint, request, jsonify, render_template, make_response from flask_login import login_required, current_user from .forms import CreateECOForm from .models import ECO from pid.common.models import Project, Approver from pid.mail import send_email from pid...
35.969925
110
0.639946
7872f59905b7d2b01c5c5e396418732a9653183b
3,485
py
Python
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
48
2018-04-19T15:50:58.000Z
2022-01-23T15:58:11.000Z
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
9
2018-09-13T14:56:18.000Z
2020-01-17T16:44:33.000Z
psono/restapi/serializers/create_membership.py
dirigeant/psono-server
a18c5b3c4d8bbbe4ecf1615b210d99fb77752205
[ "Apache-2.0", "CC0-1.0" ]
11
2019-09-20T11:53:47.000Z
2021-07-18T22:41:31.000Z
from django.utils.translation import ugettext_lazy as _ from rest_framework import serializers, exceptions from ..fields import UUIDField, BooleanField from ..models import User, User_Group_Membership import re
33.190476
145
0.663415
78736c505d7315485f6b5015659e5139ab914041
7,158
py
Python
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
stanza_wrapper/stanza_wrapper.py
Filter-Bubble/stanza_wrapper
04388869cbbe419132628422663e4c7c987cf1d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from . import __version__ import logging import stanza from KafNafParserPy import * from lxml.etree import XMLSyntaxError from io import BytesIO import sys from itertools import groupby from operator import itemgetter from xml.sax.saxutils import escape logger = logging.getLogger(__name__) thi...
34.248804
86
0.58955
78745512b8e1db248b6cccfe158e400723701d66
138
py
Python
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
measure/_measure.py
jedhsu/measure
34dfffa51d6fc348bd324bc490a682103b5b5b99
[ "Apache-2.0" ]
null
null
null
""" *Measure* The measure type. """ from abc import ABCMeta __all__ = ["Measure"]
8.625
27
0.630435
78747f79066b20c85ec7068912df47ccb366ae61
2,749
py
Python
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
micro_center_price_monitor/price_checker.py
Nintendude64/micro-center-price-monitor
5aee275ef2e6a65d1fd69aa07956225bad7f30ac
[ "MIT" ]
null
null
null
from micro_center_price_monitor.scraper import MicroCenterScraper from micro_center_price_monitor.mail import Email import datetime, time
39.84058
123
0.559112
78756479e1ce298be3ad0fcb9bbe4e75724a401d
3,613
py
Python
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
null
null
null
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
6
2019-04-27T16:48:33.000Z
2019-08-06T20:28:23.000Z
yakbak/diff.py
shiroyuki/2019-cfp
90c20ad01c19ddf17b0bfd1f96b264c715456c01
[ "BSD-3-Clause" ]
2
2019-08-06T15:23:57.000Z
2019-08-21T23:16:01.000Z
# Per Google's recommendation [1], this is copied from [2], with # the line ending match adjusted to find spans of whitespace. # # The original [2] is used under the Apache License, Version 2.0: # # Diff Match and Patch # Copyright 2018 The diff-match-patch Authors. # https://github.com/google/diff-match-patch # ...
35.772277
122
0.681705
78758a785c0289c32fa159acab530e62fdfcc65f
24,304
py
Python
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
343
2015-01-05T14:19:35.000Z
2018-12-10T19:07:48.000Z
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
191
2015-01-03T00:48:19.000Z
2018-11-30T09:10:25.000Z
mayan/apps/documents/tests/test_document_file_views.py
nattangwiwat/Mayan-EDMS-recitation
fcf16afb56eae812fb99144d65ae1ae6749de0b7
[ "Apache-2.0" ]
257
2019-05-14T10:26:37.000Z
2022-03-30T03:37:36.000Z
from mayan.apps.converter.layers import layer_saved_transformations from mayan.apps.converter.permissions import ( permission_transformation_delete, permission_transformation_edit ) from mayan.apps.converter.tests.mixins import LayerTestMixin from mayan.apps.documents.tests.literals import TEST_MULTI_PAGE_TIFF from...
33.615491
94
0.697704
78768458d1d5d8763041828ce894b1405751ca58
5,872
py
Python
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
8
2016-01-29T13:06:26.000Z
2020-11-02T07:23:57.000Z
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
18
2016-02-11T08:17:13.000Z
2022-03-02T14:53:38.000Z
pyjobs_web/pyjobsweb/controllers/jobs.py
pyjobs/web
183742ae571ee83d4fe4b34f1f0ce9f2204c449e
[ "MIT" ]
5
2016-02-05T08:57:12.000Z
2018-01-15T08:19:43.000Z
# -*- coding: utf-8 -*- import json import logging from elasticsearch_dsl import Q, SF from sqlalchemy.orm.exc import NoResultFound from tg.decorators import expose, redirect, paginate from tg.exceptions import HTTPNotFound from pyjobsweb.model import JobAlchemy from pyjobsweb.model import JobElastic from pyjobsweb.m...
28.504854
76
0.552282
7877594dfebd86d5488c351f1f1c7312d5340ea1
2,143
py
Python
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
market/checkout/urls.py
katomaso/django-market
84c4fa10aefbd792a956cef3d727623ca78cb5fd
[ "MIT" ]
null
null
null
# coding: utf-8 from django.utils.translation import gettext as _ from market.core.urls import api from urljects import U, slug, url from market.checkout.views import cart, checkout, order, payment action = slug.replace("slug", "action") def active(user): """Check if the user is active with verified email.""" ...
44.645833
109
0.679421
78778c152bb481987b9b0fa41ad4c6ca47520ed9
126
py
Python
apps/notifications/forms.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
3
2019-03-03T22:41:00.000Z
2020-04-16T04:07:07.000Z
apps/notifications/forms.py
TransparentHealth/smh_app
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
112
2019-03-04T14:20:50.000Z
2020-04-29T21:32:07.000Z
apps/notifications/forms.py
TransparentHealth/smh-organization
ca32d1cbb7600e8b22e43e06edab83c323a2404d
[ "Apache-2.0" ]
2
2019-08-01T13:08:28.000Z
2019-12-06T15:53:25.000Z
from django import forms
21
55
0.785714
7878b2bddcace81614a809f86447f1bedc047ddf
92
py
Python
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
pji/entry/__init__.py
HansBug/pji
449d171cea0c03f4c302da886988f36f70e34ee6
[ "Apache-2.0" ]
null
null
null
from .cli import cli from .runner import DispatchRunner from .script import load_pji_script
23
35
0.836957
787af07ddabb27f12cabf735e06b4adc1ae9725b
4,498
py
Python
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
tukey/api/nova.py
Li-Ko/tukey_portal
8dc395ef1a1ebaa806d23c88ce51460e6c202921
[ "Apache-2.0" ]
null
null
null
from collections import Sequence from django.conf import settings from openstack_dashboard.api import nova from openstack_dashboard.api.base import Quota from openstack_dashboard.api.nova import flavor_list from openstack_dashboard.api.nova import novaclient from openstack_dashboard.api.nova import server_list from o...
38.118644
83
0.611827
787b63dc0fd0b28ae87da2a327123d0389504e2a
4,881
py
Python
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
2
2021-07-14T07:45:26.000Z
2021-08-11T19:28:42.000Z
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
blockchain/toycoin/block.py
tkuriyama/toycoin
aace6c2f2b55ddb2003dcbffff8b923ea6a47670
[ "MIT" ]
null
null
null
"""Construct blocks. A block consists of a collection of transactions (of some limited number), plus additional metadata in a header. Blocks are generated with a proof-of-work hash. """ import math # type: ignore from toycoin import hash, merkle, transaction, utils # type: ignore from typing import List, Optional, Tu...
28.881657
80
0.597828
787c3c6f3e40d9b934038220ef7e2d375b00740c
1,172
py
Python
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
1
2021-10-10T16:17:00.000Z
2021-10-10T16:17:00.000Z
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
null
null
null
uptimer/uptimer.py
sourcepirate/uptimer
07ec5586cc1f57676073a8b3098f705ca9c843ec
[ "MIT" ]
null
null
null
"""Main module.""" import logging from datetime import datetime from urllib.parse import urlparse from typing import Any, Dict, List import requests
27.255814
65
0.595563
787c830352c3b6240940e7f3f6a544c89fc5bdf9
1,071
py
Python
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
227
2019-03-15T23:39:06.000Z
2022-03-30T07:49:08.000Z
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
834
2019-07-31T22:49:31.000Z
2022-03-28T14:01:32.000Z
tests/python_frontend/arithmetic_conversions_test.py
jnice-81/dace
5211794a2d17b7189037ac485ab0b292fb02aa0d
[ "BSD-3-Clause" ]
64
2019-03-19T05:40:37.000Z
2022-03-11T15:02:42.000Z
# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved. import dace import numpy as np if __name__ == "__main__": test_add() test_complex_conversion() test_float_conversion()
23.282609
88
0.633053
787d2f3c3a6fd4faa65d2cb284cf88e6378a574b
1,484
py
Python
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
344
2020-06-12T22:12:56.000Z
2022-03-29T06:48:20.000Z
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
29
2020-06-13T19:56:49.000Z
2022-03-30T20:26:48.000Z
archai/algos/divnas/divnas_exp_runner.py
cclauss/archai
a5fb8f937f7f1319e3204120803b2a045e9f768b
[ "MIT" ]
68
2020-06-12T19:32:43.000Z
2022-03-05T06:58:40.000Z
# Copyright (c) Microsoft Corporation. # Licensed under the MIT license. from typing import Type from overrides import overrides from archai.common.common import get_conf from archai.nas.exp_runner import ExperimentRunner from archai.nas.arch_trainer import ArchTrainer, TArchTrainer from archai.algos.darts.bilevel_a...
29.098039
70
0.715633
7880e8c114adeeed696cf6d28a33365f19d2d6f6
7,612
py
Python
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
8
2017-08-16T19:18:57.000Z
2022-01-24T10:08:19.000Z
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
242
2017-02-03T19:15:52.000Z
2022-03-25T08:02:52.000Z
Seeder/settings/base.py
WebarchivCZ/Seeder
1958c5d3f6bdcbbdb2c81dcb6abc7f689125b6a8
[ "MIT" ]
2
2019-03-06T12:36:29.000Z
2019-07-08T12:52:20.000Z
""" Django settings for Seeder project. For more information on this file, see https://docs.djangoproject.com/en/1.7/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.7/ref/settings/ """ # Build paths inside the project like this: os.path.join(BASE_DIR, ...) imp...
25.373333
97
0.638203
788255405425a8b525763b34fd49429697be3d01
915
py
Python
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
main.py
sonmezerekrem/pytool
181a35ef6d45eba90c5f22cb812aa9fb713443cf
[ "MIT" ]
null
null
null
import argparse from src import passwordops from src import fileops parser = argparse.ArgumentParser( formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument("--password", help="Password operations") parser.add_argument("--file", help="File operations") parser.add_argument("--network", help="...
29.516129
75
0.727869
788278de32ad2471d9489fe9c2247f9241b25b2a
262
py
Python
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
30
2021-03-05T22:08:17.000Z
2021-09-23T02:45:45.000Z
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
148
2021-03-05T23:37:50.000Z
2021-11-02T02:18:58.000Z
thenewboston_node/business_logic/models/mixins/metadata.py
nishp77/thenewboston-node
158b1f1739b2c6c9c21c80e9da854ca141f1cf8f
[ "MIT" ]
14
2021-03-05T21:58:46.000Z
2021-10-15T17:27:52.000Z
from dataclasses import dataclass from thenewboston_node.core.utils.dataclass import cover_docstring, revert_docstring from .serializable import SerializableMixin
20.153846
84
0.854962
78833315feaedc364d2bfb0b40ea41f96410349e
369
py
Python
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
myCompany/dashboard/containers/dashboard.py
Rom4eg/myCompany
31846a861d8b0560191e2e1d9791f101b88874df
[ "MIT" ]
null
null
null
import datetime from dashboard.mixins import DashboardMixin
20.5
58
0.598916
78848f7ee34a7d0fca0d77ac1f78fbe0189d64c4
2,437
py
Python
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
15
2018-03-07T12:53:30.000Z
2021-07-26T07:08:13.000Z
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
2
2018-01-19T06:38:20.000Z
2018-04-09T06:34:28.000Z
tools/internal/tizenrt_testresult_collector.py
JoshWorld/RT-OCF
fd41fc4ccd0b3a56e6a2a1bee3e164a559a0fd45
[ "Apache-2.0" ]
4
2018-01-18T09:53:00.000Z
2020-08-30T13:09:14.000Z
#!/usr/bin/env python import glob import serial import sys from internal.common import Result import time WIFI_SSID = 'ZEROROOT' WIFI_PASSWORD = 'zeroroot'
30.08642
88
0.608535
78859d3a0ec32800a98db67e89c1c45c1d8a70f3
216
py
Python
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
liaoxuefeng.com/023-PartialFunction.py
snownothing/Python
9b9e909b66db1c1eccfa41225919acdcd59ab4e3
[ "MIT" ]
null
null
null
# !/usr/bin/env python # coding: utf-8 print int('123', base = 8) print int2('10010') import functools int2 = functools.partial(int, base = 2) print int2('10010')
13.5
39
0.643519
78888d554122d723a2a040946bd993cce961a9e0
2,685
py
Python
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
8
2018-03-04T21:14:27.000Z
2021-11-16T11:50:12.000Z
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
24
2018-08-01T04:39:35.000Z
2020-08-18T13:21:56.000Z
metalearn/metalearn/data_environments/sklearn_regression.py
cosmicBboy/ml-research
04fd31f68e7a44152caf6eaaf66ab59f136dd8f5
[ "MIT" ]
4
2020-01-22T04:21:44.000Z
2021-06-25T10:11:22.000Z
"""Module for sampling from a distribution of regression environments.""" from collections import OrderedDict from functools import partial import sklearn.datasets from .data_environment import DataEnvironment from ..data_types import FeatureType, TargetType, DataSourceType
38.913043
73
0.603352
7888949bd7f932e7b291514995f398653ef1a039
9,561
py
Python
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2020-10-08T20:38:33.000Z
2020-10-08T20:38:33.000Z
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2018-04-14T19:40:54.000Z
2018-04-14T19:40:54.000Z
tethys_apps/cli/services_commands.py
quyendong/tethys
99bcb524d5b2021b88d5fa15b7ed6b8acb460997
[ "BSD-2-Clause" ]
1
2021-09-07T14:47:11.000Z
2021-09-07T14:47:11.000Z
from __future__ import print_function from django.core.exceptions import ObjectDoesNotExist from django.db.utils import IntegrityError from django.forms.models import model_to_dict from .cli_colors import BOLD, pretty_output, FG_RED, FG_GREEN from .cli_helpers import add_geoserver_rest_to_endpoint from builtins impor...
41.751092
117
0.590315
788a11df4d7eb86501d6c98b081b63c1da73fda6
6,078
py
Python
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
51
2017-08-16T13:04:43.000Z
2022-03-30T09:10:30.000Z
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
null
null
null
graphAttack/gaUtilities/neuralNetwork.py
jgolebiowski/graphAttack
ec8488444b44d0bd54498bf917ee42d821643ee8
[ "MIT" ]
12
2017-09-27T01:10:02.000Z
2021-05-05T09:44:56.000Z
"""Neural networks utilities""" import numpy as np from ..coreDataContainers import Variable from ..operations.activationOperations import * from ..operations.costOperations import * from ..operations.twoInputOperations import * from ..operations.singleInputOperations import * from ..operations.convolutionOperation imp...
36.614458
106
0.618954
788c4b05fc916695f80ef1ea25828672d59aa6d7
28,835
py
Python
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
13
2021-04-07T15:39:24.000Z
2022-03-08T19:01:20.000Z
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-11-13T17:18:03.000Z
2021-12-03T02:05:33.000Z
unity/MMutils.py
kreimanlab/WhenPigsFlyContext
4d03bb29f3be3e96c2b9d1945dc08c381abae513
[ "MIT" ]
1
2021-04-18T18:14:51.000Z
2021-04-18T18:14:51.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Nov 1 17:14:58 2020 @author: mengmi """ import IPython.display # cd into virtualhome repo import sys sys.path.append('../simulation/') from unity_simulator.comm_unity import UnityCommunication import PIL import numpy as np from collections import defa...
37.69281
157
0.594902
788e61041c9a49c346500289a402234d7ce95ad1
6,820
py
Python
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
null
null
null
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
2
2015-01-13T23:01:22.000Z
2015-08-13T10:55:43.000Z
jobs.py
jeinarsson/josync
03cd5690f72d1dffb46f5668c3539fd7da2ae9a9
[ "MIT" ]
null
null
null
import utils import json import os import logging import subprocess as sp import re import datetime logger = logging.getLogger(__name__) # enumerate all possible job types and their constructors job_types = { 'sync': SyncJob, 'add': AdditiveJob } def create_job_from_file(job_file): """Creates a job ...
36.084656
114
0.590469
788eb0842dabcf5bdcfbc33b4a3c93db411e4720
316
py
Python
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
test/testConnectDB.py
dantegg/pythonWeather
ceda06e0fb2fe68695b56f8bf0d206099d8779d9
[ "MIT" ]
null
null
null
#coding:utf-8 import sys sys.path.append("..") from connectDB import connectDB testDB = connectDB testWeatherRecord = { "collectTime": '2016-10-16', "ctemp":'22' } testconnection = testDB.connectMongo() testDB.saveWeather(testWeatherRecord,testconnection) testDB.printWeather(testconnection)
18.588235
52
0.727848
789058adc310f2219139e2b3fcb62604800cf282
1,249
py
Python
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
922
2017-10-26T13:15:40.000Z
2020-02-05T19:06:13.000Z
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
109
2017-10-26T14:00:30.000Z
2020-02-05T23:37:11.000Z
babybuddy/migrations/0003_add_refresh_help_text.py
Gitoffomalawn/babybuddy
3fc147c2f16167858284e2bbec657b1756157fd3
[ "BSD-2-Clause" ]
87
2017-10-26T13:15:54.000Z
2020-01-25T12:49:46.000Z
# Generated by Django 2.0.5 on 2018-07-15 14:16 import datetime from django.db import migrations, models
33.756757
109
0.491593
78907edec7992fb491f3918fa2ca9ac505827ceb
1,553
py
Python
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
gender-age/test.py
hazxone/insightface
215e0b602c05be204051225cf84d3691a8672b31
[ "MIT" ]
null
null
null
import face_model import argparse import cv2 import sys import numpy as np import datetime import os import csv parser = argparse.ArgumentParser(description='face model test') # general parser.add_argument('--image-size', default='112,112', help='') parser.add_argument('--image', default='Tom_Hanks_54745.png', help=''...
31.693878
119
0.692853
7890861cf35effbd978b1f446fe1133e0f69c410
12,683
py
Python
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
analysis/analysis/seg_stats.py
asaran/sawyer-demos_human-audio
b9f1d1df152234569a95b525441e2afba43f54bf
[ "MIT" ]
null
null
null
# Analyze the ground truth hand annotated audio features with error presence/segment presence. (Level II) # [What kind of mistake types there are? What are the types of audio that are labeled there?] # TODO: bar plots indicating how frequent errors/segment types are # TODO: What is the distribution of human audio typ...
46.457875
119
0.498305
7890d4f24ed4a643bfc95b0ced319e559f2a1e26
4,786
py
Python
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
hudaAlamri/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
6a5ee8542132ad6634ee02896d7c935b8c447d78
[ "MIT" ]
51
2018-06-04T11:34:58.000Z
2022-03-09T09:18:08.000Z
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
TwentyBN/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
61ea13cd680fc4743ad20e010c6d3047e03b993c
[ "MIT" ]
4
2018-08-17T12:40:34.000Z
2020-01-09T19:00:56.000Z
AVSD_Baseline/Feature_Extraction/extract_i3d_rgb_features.py
hudaAlamri/DSTC7-Audio-Visual-Scene-Aware-Dialog-AVSD-Challenge
6a5ee8542132ad6634ee02896d7c935b8c447d78
[ "MIT" ]
13
2018-06-01T19:50:44.000Z
2020-12-04T03:37:48.000Z
"""I3D feature extration using a tensorflow model. Copyright 2018 Mitsubishi Electric Research Labs """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import h5py import numpy as np import tensorflow as tf import time import os import scipy.io as sio im...
39.553719
120
0.602382
7891d89406deccb9af158b35a76ea6e08c700edb
1,037
py
Python
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
2
2021-08-22T10:02:08.000Z
2021-11-09T11:30:31.000Z
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
null
null
null
code/add_country_lat_lon.py
ParhamP/Global-Trade-Network
106d3e55fba04e72feda2844d092745ce170e55d
[ "BSD-3-Clause" ]
null
null
null
import csv import collections # iterator and counter libraries with open("../MIT_WT_datafiles/country_names.csv", 'r') as cntry, open("../MIT_WT_datafiles/country_lat_lon_from_google.csv", 'r') as ll, open("../MIT_WT_datafiles/cntry_lat_lon_combined.csv", 'w') as output: reader = csv.reader(cntry) #,delimiter='...
35.758621
208
0.66731
7895a56533a856d00ddcc556bf216b2bb9177e04
6,354
py
Python
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
ermaket/api/system/auth.py
SqrtMinusOne/ERMaket_Experiment
c4a7b61651edd15a619d9b690e2aaeaab4de282d
[ "Apache-2.0" ]
null
null
null
import logging from sqlalchemy.orm.exc import NoResultFound from werkzeug.security import generate_password_hash from ermaket.api.database import DBConn from ermaket.api.models import Models, NamesConverter from ermaket.api.system.hierarchy import AccessRight, PrebuiltPageType from ermaket.utils import Singleton fro...
34.532609
77
0.583727
7895bdd07a7517b3b9e9dfa70984e814010bc677
114
py
Python
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
9
2019-01-24T11:50:19.000Z
2019-07-05T07:58:46.000Z
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
100
2019-01-29T08:11:38.000Z
2020-04-03T12:00:42.000Z
winter/routing/query_parameters/query_parameter.py
EvgenySmekalin/winter
24b6a02f958478547a4a120324823743a1f7e1a1
[ "MIT" ]
8
2020-07-16T13:56:50.000Z
2021-12-27T03:33:23.000Z
import dataclasses
12.666667
22
0.72807
7897d25e3d9c9fe5aa2e8cfd3788a5de8d96e834
2,791
py
Python
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
62
2019-08-13T11:24:36.000Z
2022-03-11T16:24:55.000Z
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
58
2019-08-13T13:27:27.000Z
2022-03-28T11:00:56.000Z
pylti1p3/launch_data_storage/base.py
edubadges/pylti1.3
46534384b79076d254ff3e94676ae6155e77a05e
[ "MIT" ]
35
2019-10-11T18:26:02.000Z
2022-03-29T08:33:00.000Z
import typing as t from abc import ABCMeta, abstractmethod if t.TYPE_CHECKING: from ..request import Request _T_DISABLED_SESSION_ID = t.TypeVar('_T_DISABLED_SESSION_ID', bound='DisableSessionId') T = t.TypeVar('T')
29.691489
86
0.627732
789a940855a4fdec7e550813b2608db3bb1d258c
2,096
py
Python
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
sphinxcontrib/confluencebuilder/translator/shared.py
richardhofman6/sphinxcontrib-confluencebuilder
617fbb99b13751feafe793773268da87a3448849
[ "BSD-2-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ sphinxcontrib.confluencebuilder.translator.shared ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :copyright: Copyright 2016-2018 by the contributors (see AUTHORS file). :license: BSD, see LICENSE.txt for details. """ from __future__ import (absolute_import, print_functio...
34.360656
82
0.694179
789bdd5e34a470287b773e590ecc610782669894
545
py
Python
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
pyro/CaseInsensitiveList.py
dmdemoura/pyro
cf4b6651a9e5d603abb6e0b8c0b3bbaf407c0b08
[ "MIT" ]
null
null
null
from collections import UserList
30.277778
75
0.607339
789ccecbc53bbdded880ac33de58a7bbeecb50e7
1,062
py
Python
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
pinnwand/cli.py
aether-space/pinnwand
427c8fe68486f2afa0832abbe584595e51848c03
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys from datetime import datetime, timedelta from pinnwand.models import Base, engine, session, Paste if __name__ == "__main__": main()
25.285714
90
0.548964
789e80d561984bf5a1ebb8afe7abe71ef6eeb87f
296
py
Python
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
utils.py
debater-coder/py-simple-tracer
ac8ccfd1830be9072502fb27faced180ed893390
[ "MIT" ]
null
null
null
import numpy as np
17.411765
42
0.614865
789fa2729424c49d88156fb0210d7cb6917ce60b
357
py
Python
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2021-01-24T01:22:12.000Z
2021-01-24T01:22:12.000Z
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2020-09-14T17:12:53.000Z
2020-09-14T17:12:53.000Z
examples/grid_numbers.py
lebalz/smartphone-connector
303cbdb851416c1da7329e7bae2ee4a12aa7f5b0
[ "MIT" ]
1
2020-09-14T12:51:48.000Z
2020-09-14T12:51:48.000Z
import os import sys from pprint import pprint sys.path.insert(0, os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) from smartphone_connector import Connector from examples.server_address import SERVER_ADDRESS device = Connector(SERVER_ADDRESS, 'FooBar') device.set_grid([1, 2, 3, 4], base_color='blue') ...
25.5
82
0.77591
78a2c697223c67940447a26395bef5e289aebf8d
736
py
Python
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
16,097
2016-12-01T20:01:26.000Z
2022-03-31T20:27:40.000Z
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,217
2017-09-18T20:06:45.000Z
2022-03-31T21:00:25.000Z
tests/actions/_action.py
zduey/shap
1bb8203f2d43f7552396a5f26167a258cbdc505c
[ "MIT" ]
2,634
2017-06-29T21:30:46.000Z
2022-03-30T07:30:36.000Z
""" Unit tests for the Exact explainer. """ # pylint: disable=missing-function-docstring import numpy as np import pandas as pd import shap
23.741935
70
0.601902
78a3b061984d25f892de9e2d172a18884e735177
1,781
py
Python
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
4
2020-11-18T11:25:00.000Z
2021-04-08T01:02:49.000Z
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
null
null
null
fastquotes/fund/history.py
YangzhenZhao/fastquotes
1faba9f7fc7801a11359001e08cefa9cfbc41d64
[ "MIT" ]
1
2020-11-18T11:25:01.000Z
2020-11-18T11:25:01.000Z
import json from datetime import datetime from typing import Optional import requests from ..const import CUSTOM_HEADER
30.706897
83
0.590679
78a4817896a145e970020819125dee94a1bc26c2
1,221
py
Python
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
null
null
null
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
38
2021-04-01T18:09:31.000Z
2021-05-08T17:27:03.000Z
Code/venv/src/Unit Testing/test_register.py
WebMetadataRetrieval/15-Web_Metadata_Retrieval
96a9c8869ccc5429c4de9e97d37705bbb9e19c5b
[ "Apache-2.0" ]
3
2021-04-16T07:25:11.000Z
2022-01-29T10:24:33.000Z
from django.conf import settings from django.test import TestCase from django.contrib.auth import get_user_model # Create your tests here. User = get_user_model()
30.525
72
0.670762
78a496b2a0070c4f4f9eaf3fbeda74f89fbfda56
110
py
Python
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
gdbcat/__init__.py
mcdeid/gdb-cat
2a861eaa3ee0360f26266397f47c2a5c16c0281f
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 25 15:06:49 2019 @author: smcdeid """ from .cat import Gdbcat
13.75
35
0.627273
78a63407fdf170dd04e91df753c26e7db2382f0f
6,405
py
Python
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
python-example/test_tittle_collor_and_font.py
eugene-petrash/selenium-webdriver-full-tutorial
a83f77982b28c2228b48e531f34ae6ff24808039
[ "Apache-2.0" ]
null
null
null
import pytest from selenium import webdriver from selenium.webdriver.common.by import By import regex # pip install regex
62.794118
156
0.779859
78a7a55aa4340aef048d0c56e138e8fbbb85d556
102
py
Python
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
null
null
null
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
4
2021-03-30T14:19:21.000Z
2021-09-22T19:33:36.000Z
net_automation/apps.py
Nikolas-01/Lesson_21-
025ff91547465a57e6a8d5911896fcdfb8c7e3f8
[ "MIT" ]
null
null
null
from django.apps import AppConfig
17
37
0.784314
78a897b7f40cac7c3cf59971f4394a4765aa060b
599
py
Python
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
1
2021-07-24T19:14:34.000Z
2021-07-24T19:14:34.000Z
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
null
null
null
dacy/tests/test_download.py
MalteHB/DaCy
1c3d348b14368c772d13344d35dc076b01d5bf07
[ "Apache-2.0" ]
null
null
null
import urllib import os from dacy.download import models_url from dacy.load import load
24.958333
56
0.599332
78ab84fbfc0799cfbe7822b26a69af440075f9ad
19,503
py
Python
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
flowsa/USDA_CoA_Cropland.py
ericmbell1/flowsa
d251301864289a4de42dda118c9c6da41bcf4cf0
[ "CC0-1.0" ]
null
null
null
# USDA_CoA_Cropland.py (flowsa) # !/usr/bin/env python3 # coding=utf-8 import json import numpy as np import pandas as pd from flowsa.common import * from flowsa.flowbyfunctions import assign_fips_location_system, sector_disaggregation def CoA_Cropland_URL_helper(build_url, config, args): """This helper function...
53.57967
153
0.654463
78abd190bf2a63aa7b7a97ea20a03a84acf5f2f9
1,032
py
Python
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
Regular_Expressions/Regular_Expressions.py
Jadams29/Coding_Problems
780af79cfa3933922a06b571e13322ff517b87ef
[ "MIT" ]
null
null
null
# Regular Expressions (RegEx) are used to # 1. Search for a specific string in a large amount of data # 2. Verify that a string has the proper format (Email, Phone #) # 3. Find a string and replace it with another string # 4. Format data into the proper form for importing for example import re if re.search("ape", "T...
23.454545
89
0.689922
78ae8759ea2b129373c29e7f5013918d787344a7
10,347
py
Python
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
doc/jupyter_execute/notebooks/protocol_examples.py
edshee/seldon-core
78c10fbca16a5e2a0c25b9673aa3deb220070e26
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # # Basic Examples with Different Protocols # # ## Prerequisites # # * A kubernetes cluster with kubectl configured # * curl # * grpcurl # * pygmentize # # ## Examples # # * [Seldon Protocol](#Seldon-Protocol-Model) # * [Tensorflow Protocol](#Tensorflow-Protocol-Model...
35.313993
912
0.663381
78b114541d2883d76b5e6615c0019a1dbcd48b43
1,129
py
Python
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
src/experiments/models/index_emb_classifier.py
clemens33/thesis
c94e066c2fe22881a7465eb9c3859bd02138748e
[ "MIT" ]
null
null
null
import torch from torch import nn from tabnet_lightning import TabNetClassifier # # # test # if __name__ == "__main__": # inputs = torch.Tensor([ # [0, 0, 1, 0, 0, 0, 0, 1], # [1, 0, 0, 0, 0, 0, 0, 0], # [0, 0, 0, 0, 0, 0, 0, 1], # ]) # e = nn.Embedding(num_embeddings=8, embedding_...
28.225
98
0.635075
78b122bff610d3b425a22d6e2a005f675785a7e9
11,595
py
Python
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
1
2021-05-26T01:41:13.000Z
2021-05-26T01:41:13.000Z
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
null
null
null
ballgameActorCritic.py
ranok92/toySocialNav
06b935621c088605f0d395c01ae73e2f37a2e7e4
[ "MIT" ]
null
null
null
import ballenv_pygame as BE #from flat_game import ballgamepyg as BE import numpy as np from itertools import count from collections import namedtuple import torch import torch.nn as nn import torch.nn.functional as F import torch.optim as optim from torch.distributions import Categorical import datetime from matplotli...
29.206549
170
0.601811
78b1ddaf10061b10db5d28ce24732f514b36c95b
616
py
Python
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
MOD/game_stats.py
divineflatus/MOD
988299e0e75d8f8fa7893c22ab0db707f02a8f1d
[ "MIT" ]
null
null
null
import pygame #Class to store game statistics
24.64
57
0.641234
78b3b7b20fc77d21a6acfb8879b55256c9895bc0
101
py
Python
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
data.py
alexhong121/py_pt
78f11f2a2fed54154017371a97de563a8fffcd81
[ "MIT" ]
null
null
null
# isinstance(7,int) print(isinstance(7,int)) # True a=7 print(type(a)) # <class 'int'>
14.428571
31
0.673267
78b58b48b827ca39fceb691318d6f8b6d3109a50
1,985
py
Python
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
3
2021-07-29T05:20:45.000Z
2022-01-07T01:24:44.000Z
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
null
null
null
RealDataset_SocialChemical/datasets/dataset.py
GKAT-NeurIPS2021/GKAT_Experiments
38eda546bfedfaf5a86999309c30595d9fe83cc7
[ "MIT" ]
null
null
null
import numpy as np
29.191176
98
0.580353
78b6dc301c1b043d7640e21cef75902cf0f201a3
1,373
py
Python
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
28
2016-02-13T10:20:21.000Z
2022-03-10T02:41:58.000Z
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
22
2016-02-15T15:55:09.000Z
2017-09-12T13:49:17.000Z
tests/grammar/test_sql_file.py
Daniihh/sqlpyparser
aad1d613c02d4f8fa6b833c060a683cf7e194b1c
[ "MIT" ]
16
2016-02-15T16:41:23.000Z
2021-05-18T04:51:52.000Z
# -*- encoding:utf-8 -*- from __future__ import absolute_import, division, print_function, unicode_literals import unittest from mysqlparse.grammar.sql_file import sql_file_syntax
35.205128
82
0.674436
78b76294cbc37248ab04281f09991a89a57a24b6
2,061
py
Python
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
2
2017-10-13T09:16:01.000Z
2018-01-23T04:03:19.000Z
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
null
null
null
barchart2.py
ahealy19/F-IDE-2016
82fd4664fc105174cbe2f1a57e2a099fbf3c81d8
[ "Apache-2.0" ]
null
null
null
import numpy as np from pandas import DataFrame import matplotlib.pyplot as plt import os """ plots the results for each solver and strategy on the test set as a stacked barchart Andrew Healy, Aug. 2016 """ fig = plt.figure(figsize=(10,5)) ax = fig.add_subplot(1,1,1) df = DataFrame.from_csv('data_for_second_barcha...
28.232877
96
0.663755
78b8980c397285a3ee6cf5a9943a92060add2e64
727
py
Python
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
null
null
null
Procedural Paradigm/exercises/week-7-basic/HitungJarak.py
morenzoe/IF1210_Dasar_Pemrograman
6bfd5300c18bfb9c6ba80f6108e2206aa9cbf015
[ "BSD-3-Clause" ]
1
2022-02-21T05:03:26.000Z
2022-02-21T05:03:26.000Z
# Program HitungJarak # Menghitung jarak (s) berdasarkan kecepatan (v) dan waktu tempuh (t), yaitu: s = v * t # KAMUS # s : float # v : float # t : float # ALGORITMA v = float(input()) # menerima input kecepatan dalam m/s t = float (input()) # menerima input waktu dalam s s = v * t # menghitung jarak dalam m print...
21.382353
88
0.671252
78b92735f679218e246415e9c15eb48e474ed578
4,414
py
Python
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
1
2020-10-25T10:30:40.000Z
2020-10-25T10:30:40.000Z
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
null
null
null
os_xml_automation/text_manipulation/_text_manipulation_mapper.py
osfunapps/os-xml-automation-py
2e339642fcfa11a9b71c231c652e6e3aa3849354
[ "MIT" ]
null
null
null
import os_xml_handler.xml_handler as xh from os_xml_automation import shared_res as shared_res from os_xml_automation import shared_tools as shared_tools from os_xml_automation.text_manipulation import _res as res # manipulate the files by the text mapper # will do a specific text node # will delete a text in ra...
55.873418
187
0.783643
78b964ea1f80a7b69e03614379bba228f287598a
2,304
py
Python
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
2
2021-04-06T18:07:32.000Z
2021-06-02T01:50:40.000Z
src/lib/mine/task/task_manager.py
rdw20170120/workstation
ed19aa930a83885c2a8cb58eb0bb5afe58f95df3
[ "MIT" ]
null
null
null
#!/usr/bin/env false """Manage tasks.""" # Internal packages (absolute references, distributed with Python) from logging import getLogger # External packages (absolute references, NOT distributed with Python) # Library modules (absolute references, NOT packaged, in project) from task.exception import Abort from task...
31.135135
78
0.613715
78bb9f6fead8743af1a26622df014e1a85ee9267
5,002
py
Python
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
1
2022-03-09T03:39:04.000Z
2022-03-09T03:39:04.000Z
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
domonic/CDN.py
Jordan-Cottle/domonic
05d70af0d1564d3ba80c860bb5f5bfe089293b18
[ "MIT" ]
null
null
null
""" domonic.CDN ==================================== Refs to some useful .js and .css libs. use for prototyping. wget anything in later and create your own local references once ur happy TODO - integrity/cross origin/module? WARNING/NOTE - dont use. this isn't released or documented. just ide...
43.877193
118
0.686325
78bc6d363f695604891dee0584bdb38942f09a51
2,519
py
Python
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
robosuite/scripts/Final_Copy/utils.py
spatric5/robosuite
9e6b9691eb949fbf33a23fbe8a8c6faea61c50b6
[ "MIT" ]
null
null
null
from mpi4py import MPI import numpy as np import torch # sync_networks across the different cores def sync_networks(network): """ netowrk is the network you want to sync """ comm = MPI.COMM_WORLD flat_params, params_shape = _get_flat_params(network) comm.Bcast(flat_params, root=0) # set th...
35.985714
91
0.692735
78bcb186211d7461ff0a6ae1e7dbc5b9a2291c4d
873
py
Python
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
null
null
null
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
2
2021-11-02T12:43:18.000Z
2021-11-12T08:31:35.000Z
ovaas/models.py
OVaaS/ovaas2-backend
db51304161760e2b81b9a497634dded59123bc7d
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.contrib.auth import get_user_model # Create your models here. User = get_user_model()
31.178571
72
0.750286
78bd0b2e66f0e85648681b291bc8a89574b81f25
187
py
Python
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
app/admin.py
alanwu4321/Submission_Platform
daf45a14b97ac7e86d4d3ab63153713fd019f11c
[ "MIT" ]
null
null
null
from django.contrib import admin from app.models import User,Admin,UserFile # Register your models here. admin.site.register(User) admin.site.register(Admin) admin.site.register(UserFile)
31.166667
42
0.823529
78bd42c19113c497e1993e92b673e02423c0f0b9
9,143
py
Python
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
null
null
null
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
11
2020-11-23T21:36:48.000Z
2022-03-12T00:48:58.000Z
src/apd/aggregation/cli.py
MatthewWilkes/apd.aggregation
427fa908f45332d623295f92e1ccfdaf545d6997
[ "BSD-3-Clause" ]
1
2020-08-09T01:47:59.000Z
2020-08-09T01:47:59.000Z
import asyncio import functools import importlib.util import logging import signal import sys import typing as t import uuid import aiohttp import click from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from . import collect from .actions.runner import DataProcessor from .actions.source imp...
32.30742
90
0.665099
78be57289fc53eb405e7499adae1ebb913de3e39
3,019
py
Python
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
1
2020-12-21T21:26:27.000Z
2020-12-21T21:26:27.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/Reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
10
2020-12-26T18:55:43.000Z
2021-01-10T09:15:32.000Z
tests/cluster_test/kmeans_test.py
alisoltanirad/reason
9062dc8e365efa424706a309de5cfb90ab497e9a
[ "MIT" ]
null
null
null
import pytest import pandas as pd from reason.cluster import KMeansClusterer
25.584746
75
0.676714
78c0b5cce43db211f820b2e27ad74c24b5509ab2
1,081
py
Python
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
core/models/Candidato.py
roimpacta/exemplos
cbfe7c81fc14932697c02eb63bec7d7e4a2c5d5a
[ "Apache-2.0" ]
null
null
null
from django.db import models #TODO candidatura from .ArquivosFoto import ArquivosFoto from .Candidato import Candidato from .Aluno import Aluno
38.607143
108
0.716004
78c30ded833df096d4b427f36eaa87d10cc3bfa0
242
py
Python
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
frictionless/checks/__init__.py
kant/frictionless-py
09cc98e1966d6f97f4eecb47757f45f8a946c5e7
[ "MIT" ]
null
null
null
from .baseline import BaselineCheck from .checksum import ChecksumCheck from .heuristic import DuplicateRowCheck, DeviatedValueCheck, TruncatedValueCheck from .regulation import BlacklistedValueCheck, SequentialValueCheck, RowConstraintCheck
48.4
87
0.884298
78c41a1434c06c1642f44349fdd1eea2106f0e22
17,447
py
Python
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
1
2021-01-10T12:34:59.000Z
2021-01-10T12:34:59.000Z
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
37
2021-01-07T22:31:25.000Z
2021-02-20T10:59:46.000Z
backend/integration/tests.py
Tim6FTN/UKS
3cf19f014cdc7845bf0b808b97c4e05dc49b062e
[ "MIT" ]
null
null
null
from unittest.mock import MagicMock, Mock import six from django.contrib.auth.models import User from django.core.exceptions import SuspiciousOperation from django.test import SimpleTestCase, Client, TransactionTestCase from django.urls import reverse, resolve from branch.models import Branch from integration.views i...
43.400498
118
0.638161
78c4a426cafffab51634f30f2aa6fb1438ab7cd4
628
py
Python
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
852
2015-01-11T21:03:51.000Z
2022-03-25T21:14:00.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
30,371
2015-01-02T00:14:40.000Z
2022-03-31T23:26:05.000Z
TopQuarkAnalysis/TopJetCombination/python/TtSemiLepHypHitFit_cff.py
ckamtsikis/cmssw
ea19fe642bb7537cbf58451dcf73aa5fd1b66250
[ "Apache-2.0" ]
3,240
2015-01-02T05:53:18.000Z
2022-03-31T17:24:21.000Z
import FWCore.ParameterSet.Config as cms # # produce hitFit hypothesis with all necessary # ingredients # ## std sequence to perform kinematic fit import TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Muons_cfi hitFitTtSemiLepEventHypothesis = TopQuarkAnalysis.TopHitFit.TtSemiLepHitFitProducer_Muons_cfi.hitFitTt...
29.904762
122
0.851911
78c52171bb8eb9ca8c41c0f6116afa3c336f5adc
272
py
Python
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
39
2016-01-04T04:13:27.000Z
2022-01-18T19:17:24.000Z
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
140
2015-11-01T01:19:54.000Z
2022-03-10T13:00:33.000Z
tests/urls.py
TreZc0/donation-tracker
3a833a5eba3c0b7cedd8249b44b1435f526095ba
[ "Apache-2.0" ]
35
2016-01-20T12:42:21.000Z
2022-01-20T07:06:47.000Z
import ajax_select.urls from django.contrib import admin from django.urls import include, path import tracker.urls urlpatterns = [ path('tracker/', include(tracker.urls)), path('admin/lookups/', include(ajax_select.urls)), path('admin/', admin.site.urls), ]
22.666667
54
0.724265
78c5f95d9ee1374a6eed04e598b5352269b67477
78
py
Python
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
5
2021-09-29T18:53:37.000Z
2022-03-01T08:03:42.000Z
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
gym-minigrid/__init__.py
kebaek/minigrid
3808c1401ea7846febf88d0a2fb2aa39e4a4913f
[ "MIT" ]
null
null
null
# Import the envs module so that envs register themselves import gym_minigrid
26
57
0.833333
78c876141f5329c52ad1e038a8ee03869db886d7
6,705
py
Python
ketu/characterization/prepare.py
dfm/turnstile
13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d
[ "MIT" ]
10
2015-02-19T09:13:24.000Z
2020-04-25T10:50:38.000Z
ketu/characterization/prepare.py
dfm/turnstile
13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d
[ "MIT" ]
1
2015-07-10T19:50:31.000Z
2015-07-11T03:51:15.000Z
ketu/characterization/prepare.py
dfm/turnstile
13a9a3b489b458396a6ad1e8a2d1e89a0dd6312d
[ "MIT" ]
7
2015-04-20T06:42:28.000Z
2019-02-25T03:04:45.000Z
# -*- coding: utf-8 -*- from __future__ import division, print_function __all__ = ["prepare_characterization"] import kplr import transit import numpy as np from scipy.stats import beta import matplotlib.pyplot as pl import george from george import kernels from ..prepare import Prepare from ..download import Down...
31.928571
73
0.513497
78c9b51f8e253459950c6aba31616db59d9ecbca
1,242
py
Python
docs/python/f_1st_partial_ex4.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
30
2018-11-12T09:03:45.000Z
2021-12-09T02:20:08.000Z
docs/python/f_1st_partial_ex4.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
36
2018-11-11T21:32:31.000Z
2019-02-02T16:18:11.000Z
docs/python/f_1st_partial_ex4.py
Voldemort373/Notes-and-Reference
796885e315e9c349ff1cb37760abc56327547140
[ "CC-BY-4.0", "CC0-1.0" ]
8
2018-11-14T17:09:21.000Z
2020-05-28T16:18:12.000Z
# -*- coding: utf-8 -*- # Copyright (c) 2018, Silvio Peroni <essepuntato@gmail.com> # # Permission to use, copy, modify, and/or distribute this software for any purpose # with or without fee is hereby granted, provided that the above copyright notice # and this permission notice appear in all copies. # # THE SOFTWARE I...
33.567568
97
0.691626
78c9bc9408903efdc0986a05e0b857a063a87fe5
12,849
py
Python
examples/pvmlnet_classify.py
claudio-unipv/pvml
9f583c2658218003bba2efa70cdbb7499b22d843
[ "MIT" ]
3
2020-03-30T11:17:17.000Z
2021-05-15T10:27:30.000Z
examples/pvmlnet_classify.py
claudio-unipv/pvml
9f583c2658218003bba2efa70cdbb7499b22d843
[ "MIT" ]
null
null
null
examples/pvmlnet_classify.py
claudio-unipv/pvml
9f583c2658218003bba2efa70cdbb7499b22d843
[ "MIT" ]
2
2020-07-15T09:42:42.000Z
2021-09-14T07:24:50.000Z
#!/usr/bin/env python3 import pvml import numpy as np import sys try: import PIL.Image except ImportError: print("To use this script you need the `Pillow' libray") print("Install it with 'pip install Pillow' or 'pip3 install Pillow'") sys.exit() IMAGENET_CLASSES = list(map(str.strip, """ tench, g...
57.361607
95
0.770332
78cb4d79d62529d58ce3023b98597dd72ee5c35a
1,916
py
Python
DataBase/Mongo/MongoTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
DataBase/Mongo/MongoTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
DataBase/Mongo/MongoTest.py
InverseLina/python-practice
496d2020916d8096a32131cdedd25a4da7b7735e
[ "Apache-2.0" ]
null
null
null
import pymongo from bson.son import SON from pymongo import MongoClient # encoding=utf-8 __author__ = 'Hinsteny' print(pymongo.get_version_string()) # Do test if __name__ == "__main__": test_connection() # test_addUser() db = getClient().aggregation_example create_test_data(db) pipeline = [ ...
28.597015
171
0.606472
78cd90912da668d8ba7cfecb75291ed8ec65c67c
933
py
Python
python/std_scripts/numerical_operations.py
IamPhytan/Cookbook
a903f9098b0d2ddccdf343f740858731242bde97
[ "MIT" ]
null
null
null
python/std_scripts/numerical_operations.py
IamPhytan/Cookbook
a903f9098b0d2ddccdf343f740858731242bde97
[ "MIT" ]
null
null
null
python/std_scripts/numerical_operations.py
IamPhytan/Cookbook
a903f9098b0d2ddccdf343f740858731242bde97
[ "MIT" ]
null
null
null
# # Get divisor and modulo # Often forgotten, often useful # a = 5 b = 3 n, m = divmod(a, b) print(n) # 1 print(m) # 2 # # Next multiple of a number n # Used a lot in CodinGame Clash of Code # n = 3 idx = [*range(10)] res = [a + (n - (a % n)) % n for a in idx] print(idx) # [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] print(...
16.368421
93
0.561629
78d0276dde967a30b789dae789ec250967368d4b
8,842
py
Python
src/kgmk/nlp/tpn/src/classification.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/nlp/tpn/src/classification.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
src/kgmk/nlp/tpn/src/classification.py
kagemeka/python
486ce39d97360b61029527bacf00a87fdbcf552c
[ "MIT" ]
null
null
null
from _base import * config = config['classification'] tp = TP() tokenizer_path = f'{project_root}/{config["tokenizer_path"]}' tokenizer_gen_path = f'{project_root}/{config["tokenizer_gen_path"]}' category_master = load_category_master() categories = list(category_master['category_name'].values) gen_category_mas...
38.443478
216
0.662859
78d0b802679c2bf3956836361c0881169949c091
1,024
py
Python
mezzo-server/mezzo-server.py
AKAMEDIASYSTEM/mezzo
ed864bc2d4768fc8cac5b99f448c714965094693
[ "MIT" ]
null
null
null
mezzo-server/mezzo-server.py
AKAMEDIASYSTEM/mezzo
ed864bc2d4768fc8cac5b99f448c714965094693
[ "MIT" ]
null
null
null
mezzo-server/mezzo-server.py
AKAMEDIASYSTEM/mezzo
ed864bc2d4768fc8cac5b99f448c714965094693
[ "MIT" ]
null
null
null
import os import config import sys import logging import datetime import tornado.web import tornado.ioloop import tornado.options import random import handlers DEBUG = True DIRNAME = os.path.dirname(os.path.abspath(__file__)) STATIC_PATH = os.path.join(DIRNAME, 'static') TEMPLATE_PATH = os.path.join(DIRNAME, 'templat...
23.813953
78
0.695313
78d11678dc0b5c1d63f9dbe772a552b6ffe091af
1,227
py
Python
pi_turret/blaster/hyperfire.py
iot-foam-turret/pi-turret
583d72a7625eb702ccde7afe66a085162854555a
[ "MIT" ]
2
2021-05-12T21:13:14.000Z
2022-03-27T15:24:08.000Z
pi_turret/blaster/hyperfire.py
iot-foam-turret/pi-turret
583d72a7625eb702ccde7afe66a085162854555a
[ "MIT" ]
7
2019-09-14T15:21:46.000Z
2019-09-29T02:58:46.000Z
pi_turret/blaster/hyperfire.py
iot-foam-turret/pi-turret
583d72a7625eb702ccde7afe66a085162854555a
[ "MIT" ]
null
null
null
"""Hyperfire Class to model the actual BLASTER. """ import time from pi_turret.dc_motor.motor import DCMotor, FEED_PIN, FLYWHEEL_PIN if __name__ == "__main__": BLASTER = Hyperfire() BLASTER.burst_fire(0.5) DCMotor.cleanup()
23.150943
78
0.590872
78d1bbfc4644ff6a02d35970a20eee982aa45909
7,281
py
Python
projects/advanced_lane_lines/lane_detector/utils/camera_utils.py
stoicio/RoboCar
65591e8c217e61d0571df39fe9d9993e5984d8fe
[ "MIT" ]
null
null
null
projects/advanced_lane_lines/lane_detector/utils/camera_utils.py
stoicio/RoboCar
65591e8c217e61d0571df39fe9d9993e5984d8fe
[ "MIT" ]
null
null
null
projects/advanced_lane_lines/lane_detector/utils/camera_utils.py
stoicio/RoboCar
65591e8c217e61d0571df39fe9d9993e5984d8fe
[ "MIT" ]
null
null
null
import json import logging import os import cv2 import numpy as np from tqdm import tqdm logger = logging.getLogger('CameraUtils')
42.086705
124
0.618734
78d4eb146a133aea0467f8cf0a76b0671ef0d2b6
5,375
py
Python
spirou/sandbox/ccf_tools/analyse_TOI736.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
2
2020-10-08T17:03:45.000Z
2021-03-09T17:49:44.000Z
spirou/sandbox/ccf_tools/analyse_TOI736.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
17
2020-09-24T17:35:38.000Z
2020-12-11T16:10:13.000Z
spirou/sandbox/ccf_tools/analyse_TOI736.py
njcuk9999/apero-utils
f77de4c9123874e5bb6ed6bd03a7de3b27057402
[ "MIT" ]
5
2020-04-10T06:41:00.000Z
2020-12-16T21:09:14.000Z
import numpy as np import matplotlib.pyplot as plt from astropy.table import Table from bisector import * from astropy.time import Time from ccf2rv import * from per_epoch_table import per_epoch_table # do not *formally* exclude an order, but this is done later with the bandpass keyword exclude_orders = [28,47,48] ob...
35.361842
148
0.639814
78d62e77bb5a0e308415b3859755172e2afc77ca
11,335
py
Python
train_classifier.py
SteveCruz/icpr-syn2real
179065de9552673fa9d627b42044de7cd0ddd08f
[ "MIT" ]
null
null
null
train_classifier.py
SteveCruz/icpr-syn2real
179065de9552673fa9d627b42044de7cd0ddd08f
[ "MIT" ]
null
null
null
train_classifier.py
SteveCruz/icpr-syn2real
179065de9552673fa9d627b42044de7cd0ddd08f
[ "MIT" ]
null
null
null
############################################################################################################################################################## ############################################################################################################################################################## ""...
40.773381
230
0.52307
78d6a169b3036fe9e92a2cdc8970817da6e3f700
1,072
py
Python
main.py
felixenzogarofalo/PrectionModel
839b3a419d19c486bcb34207a3c583c8ece573ec
[ "MIT" ]
null
null
null
main.py
felixenzogarofalo/PrectionModel
839b3a419d19c486bcb34207a3c583c8ece573ec
[ "MIT" ]
null
null
null
main.py
felixenzogarofalo/PrectionModel
839b3a419d19c486bcb34207a3c583c8ece573ec
[ "MIT" ]
null
null
null
from model.utils.data_engineering import DataEngineering from model.prediction_model.regression import Regression # Create an instance for DataEngineering and load data from CSV csv_path = "data/area_01.csv" data_e = DataEngineering() data_e.load_data(csv_path) data_e.clean_data() # Create new features # "age" featur...
25.52381
76
0.695896
78d72d12cf61116aa37a06dd0e9a986b1ccb232d
1,026
py
Python
students/k33401/Litvak_Igor/Lr3/cities/models.py
igorlitvak/ITMO_ICT_WebDevelopment_2021-2022
b12a2c5ab2bcb96683190e20f0a0915b8d185134
[ "MIT" ]
null
null
null
students/k33401/Litvak_Igor/Lr3/cities/models.py
igorlitvak/ITMO_ICT_WebDevelopment_2021-2022
b12a2c5ab2bcb96683190e20f0a0915b8d185134
[ "MIT" ]
null
null
null
students/k33401/Litvak_Igor/Lr3/cities/models.py
igorlitvak/ITMO_ICT_WebDevelopment_2021-2022
b12a2c5ab2bcb96683190e20f0a0915b8d185134
[ "MIT" ]
null
null
null
from django.db import models from django.core.validators import MinValueValidator, MaxValueValidator from django.contrib.auth.models import User
31.090909
103
0.707602
151ffc58c6a6ef36936b69dd40f5de9b75b14892
1,927
py
Python
idcheckio_python_client/models/__init__.py
alma/python-IDCHECKIO
66c9f086a5f776820b4b2ae14df114f2f1d6e6a2
[ "Apache-2.0" ]
null
null
null
idcheckio_python_client/models/__init__.py
alma/python-IDCHECKIO
66c9f086a5f776820b4b2ae14df114f2f1d6e6a2
[ "Apache-2.0" ]
null
null
null
idcheckio_python_client/models/__init__.py
alma/python-IDCHECKIO
66c9f086a5f776820b4b2ae14df114f2f1d6e6a2
[ "Apache-2.0" ]
1
2022-03-24T07:20:47.000Z
2022-03-24T07:20:47.000Z
# coding: utf-8 """ IdCheck.IO API Check identity documents OpenAPI spec version: 0.0 Generated by: https://github.com/swagger-api/swagger-codegen.git Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You...
37.784314
126
0.827193
1523f297062c94b271f453046aaeb2c896da4afe
1,079
py
Python
setup.py
mpastell/pyageng
6ca71870e6c81bd0841725e0547cd7af6ef9e99c
[ "MIT" ]
12
2016-10-24T23:45:01.000Z
2021-08-19T01:43:30.000Z
setup.py
mpastell/pyageng
6ca71870e6c81bd0841725e0547cd7af6ef9e99c
[ "MIT" ]
null
null
null
setup.py
mpastell/pyageng
6ca71870e6c81bd0841725e0547cd7af6ef9e99c
[ "MIT" ]
5
2017-12-31T02:20:11.000Z
2020-12-30T14:47:24.000Z
#!/usr/bin/env python from setuptools import setup import os import pyageng setup(name='pyageng', version = pyageng.__version__, description='Code for the book "Measurements and Data Analysis for Agricultural Engineers using Python"', author='Matti Pastell', author_email='matti.pastell@helsinki...
32.69697
135
0.651529
152410300ce02f61b88ddec4e21ac68de252371f
935
py
Python
Day32/send_quote_monday_using_email.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
Day32/send_quote_monday_using_email.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
Day32/send_quote_monday_using_email.py
CodePuzzler/100-Days-Of-Code-Python
4f6da9dabc73f747266ce0e66057d10754ecc54e
[ "MIT" ]
null
null
null
# Day32 of my 100DaysOfCode Challenge # send a quote on monday using email import random import smtplib import datetime as dt # function to send email # accessing the file and choose a random quote and call send email on monday now = dt.datetime.now() weekday = now.weekday() if weekday == 0: with open("quotes.t...
28.333333
76
0.678075
1524c9829dea3a19277582b4ca26f8bf2c1167f1
324
py
Python
Web/flask/simple2.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
35
2015-05-18T08:08:41.000Z
2022-03-07T09:38:02.000Z
Web/flask/simple2.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
1
2021-09-29T02:08:26.000Z
2021-09-29T02:08:26.000Z
Web/flask/simple2.py
kasztp/python-lessons
2a159ad5e1186c749b96c5d0ede45b7142c6bbb5
[ "MIT" ]
40
2015-04-28T00:38:54.000Z
2022-02-13T14:18:34.000Z
from random import choice from flask import Flask, render_template app = Flask(__name__) app.run(host='127.0.0.1', debug=True)
21.6
59
0.67284
1526ef7cf55091ee19bea03ca2f08af75d7666a3
2,559
py
Python
contacts/testing/test_integration/test_audit.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
11
2021-01-23T01:09:54.000Z
2021-01-25T07:16:30.000Z
contacts/testing/test_integration/test_audit.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
7
2021-04-06T18:19:10.000Z
2021-09-22T19:45:03.000Z
contacts/testing/test_integration/test_audit.py
rossm6/accounts
74633ce4038806222048d85ef9dfe97a957a6a71
[ "MIT" ]
3
2021-01-23T18:55:32.000Z
2021-02-16T17:47:59.000Z
from accountancy.helpers import bulk_delete_with_history from accountancy.signals import audit_post_delete from contacts.models import Contact from django.test import TestCase from simple_history.models import HistoricalRecords from django.db import models
34.581081
109
0.601798
1528eaebe677c388daabca3a03f6965008666a40
6,109
py
Python
cisco_platforms_pillar/CUCMConnectorAXL.py
MatiasBanega/devnet-webinar
990617f042d16c798191efad9284585f4e62e99a
[ "MIT" ]
null
null
null
cisco_platforms_pillar/CUCMConnectorAXL.py
MatiasBanega/devnet-webinar
990617f042d16c798191efad9284585f4e62e99a
[ "MIT" ]
null
null
null
cisco_platforms_pillar/CUCMConnectorAXL.py
MatiasBanega/devnet-webinar
990617f042d16c798191efad9284585f4e62e99a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Cisco CUCM connector class This class creates a connection object via AXL\SOAP to the specified CUCM server using the specified AXL-enabled credentials @author: Alfonso Sandoval Rosas """ import urllib3, logging from ZeepDebugPlugin import * from zeep import Client, xsd from zeep.cache impo...
42.72028
141
0.608774