hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
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
972
max_issues_repo_name
stringlengths
6
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
972
max_forks_repo_name
stringlengths
6
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
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
8a3289f7f214f76a458ae30adac1d7615327e8ad
5,249
py
Python
tests/Cpl/System/_0test/realtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
tests/Cpl/System/_0test/realtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
tests/Cpl/System/_0test/realtime/linux/gcc/mytoolchain.py
johnttaylor/foxtail
86e4e1d19d5e8f9c1d1064cf0939f4bf62615400
[ "BSD-3-Clause" ]
null
null
null
#--------------------------------------------------------------------------- # This python module is used to customize a supported toolchain for your # project specific settings. # # Notes: # - ONLY edit/add statements in the sections marked by BEGIN/END EDITS # markers. # - Maintain indentation level and u...
33.012579
122
0.624309
9550c7d4eb4852ab1e9e95a97468c479101b46a9
12,558
py
Python
catalyst/callbacks/sklearn_model.py
stjordanis/catalyst-1
93eedf0b9520bf1f83f63b13d6818df2a1e85b33
[ "Apache-2.0" ]
4
2019-12-14T07:27:09.000Z
2021-03-23T14:34:37.000Z
catalyst/callbacks/sklearn_model.py
stjordanis/catalyst-1
93eedf0b9520bf1f83f63b13d6818df2a1e85b33
[ "Apache-2.0" ]
null
null
null
catalyst/callbacks/sklearn_model.py
stjordanis/catalyst-1
93eedf0b9520bf1f83f63b13d6818df2a1e85b33
[ "Apache-2.0" ]
null
null
null
from typing import Callable, List, Union from functools import partial import importlib import torch from catalyst.core import CallbackOrder, IRunner from catalyst.core.callback import Callback from catalyst.metrics._accumulative import AccumulativeMetric class SklearnModelCallback(Callback): """Cal...
39.121495
100
0.549928
5b221094c09c855fc06e28263beaf3c3cbe98bc2
419
py
Python
NovelBlog/migrations/0009_post_image.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
NovelBlog/migrations/0009_post_image.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
NovelBlog/migrations/0009_post_image.py
Novel-Public-Health/Novel-Public-Health
fbb7dd0da64ae4fc9641097ca8056152129bd83b
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.1.2 on 2021-04-27 03:22 from django.db import migrations import s3direct.fields class Migration(migrations.Migration): dependencies = [ ('NovelBlog', '0008_auto_20210415_0344'), ] operations = [ migrations.AddField( model_name='post', name...
20.95
71
0.618138
62535454bc8342bc8b884705133287155bb37dd4
6,889
py
Python
implementation/src/preprocess/load_negotiation_ji.py
gucci-j/negotiation-breakdown-detection
d4c2bf63b4da95b342fd952065f9ad3e97179134
[ "MIT" ]
4
2021-04-26T09:05:46.000Z
2022-03-08T06:01:07.000Z
implementation/src/preprocess/load_negotiation_ji.py
gucci-j/negotiation-breakdown-detection
d4c2bf63b4da95b342fd952065f9ad3e97179134
[ "MIT" ]
null
null
null
implementation/src/preprocess/load_negotiation_ji.py
gucci-j/negotiation-breakdown-detection
d4c2bf63b4da95b342fd952065f9ad3e97179134
[ "MIT" ]
null
null
null
import pandas as pd from util import read_ji_negotiations import re from decimal import Decimal, ROUND_HALF_UP import random import sys def preprocess_comment(raw_comment: str): comment_list = re.split('([,.!?])', raw_comment) comment = "" for token in comment_list: token = token.strip(' ') ...
37.440217
97
0.489911
b2e1d1101ed32c7631771efcd35a1d3933697f8c
595
py
Python
svr.py
1234224576/Project_Exercis_Car
d71bcb36c4b1482bd5a49ce407104566c9933b64
[ "MIT" ]
null
null
null
svr.py
1234224576/Project_Exercis_Car
d71bcb36c4b1482bd5a49ce407104566c9933b64
[ "MIT" ]
null
null
null
svr.py
1234224576/Project_Exercis_Car
d71bcb36c4b1482bd5a49ce407104566c9933b64
[ "MIT" ]
null
null
null
# !/usr/bin/python # coding: UTF-8 import scipy as sp import matplotlib.pyplot as plt from sklearn.svm import SVR import numpy as np def error(f,x,y): return sp.sum((f(x)-y)**2) dataFile = open('sample2.txt','r') lines = dataFile.readlines() x_params = [] y_params = [] for line in lines: x,y = line.split(" ") x_pa...
16.527778
38
0.695798
2833b30c8d1c027a8d5d59cec8f7bd1553513564
3,785
py
Python
lib/mongokit/auth.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
null
null
null
lib/mongokit/auth.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
null
null
null
lib/mongokit/auth.py
imtiaz-emu/gcp-flask-test
096f466242aa14941712ab8ea06ac4fb4eaeb993
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2009-2011, Nicolas Clairon # All rights reserved. # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributions of source code must retain the abov...
37.85
90
0.663408
0bca7a77adf44bf316d04ee3e5d3902eacf1c226
20,199
py
Python
applications/zcomx/modules/routing.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
applications/zcomx/modules/routing.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
applications/zcomx/modules/routing.py
zcomx/zco.mx
70a7372af5787c2e4dea14b25bab0bbb2b959881
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Routing classes and functions. """ import os import re from gluon import * from gluon.html import A, SPAN from gluon.storage import Storage from applications.zcomx.modules.book_pages import BookPage from applications.zcomx.modules.books import \ Book, \ cover_im...
32.215311
89
0.537502
45162f285888ac28d22a90c9189dda21f6732646
83
py
Python
ms-users/lib/python3.7/site-packages/command/__init__.py
pay-and-go/ms-users
ec8163f1f47eef245e1e7d2ac27f7e21503ec129
[ "MIT" ]
2
2016-01-21T16:43:19.000Z
2020-07-14T20:16:26.000Z
ms-users/lib/python3.7/site-packages/command/__init__.py
pay-and-go/ms-users
ec8163f1f47eef245e1e7d2ac27f7e21503ec129
[ "MIT" ]
null
null
null
ms-users/lib/python3.7/site-packages/command/__init__.py
pay-and-go/ms-users
ec8163f1f47eef245e1e7d2ac27f7e21503ec129
[ "MIT" ]
null
null
null
from .core import Command, CommandException, Response from .core import run, which
27.666667
53
0.807229
4afb70a127846cc6b2c6627c7d5b604de2e82ed7
10,793
py
Python
qmpy/analysis/symmetry/spacegroup.py
JosephMontoya-TRI/qmpy
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
1
2019-11-15T20:54:04.000Z
2019-11-15T20:54:04.000Z
qmpy/analysis/symmetry/spacegroup.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
qmpy/analysis/symmetry/spacegroup.py
JosephMontoya-TRI/qmpy_py3
5a5aa7b25b1231801969ea042bbd2309cacc7859
[ "MIT" ]
null
null
null
# qmpy/analysis/symmetry/spacegroup.py import os import fractions as frac import numpy as np import logging from django.db import models import qmpy.utils as utils from .routines import * logger = logging.getLogger(__name__) class TranslationError(Exception): pass class RotationError(Exception): pass cla...
27.463104
89
0.543408
c324ae8551323f27012e316105ef629767c7f021
27,817
py
Python
lupyne/engine/indexers.py
coady/lupyne
8626ccf0ffd29519b12ceb91a291f580359a928c
[ "Apache-2.0" ]
57
2018-04-15T06:49:33.000Z
2022-03-13T17:28:19.000Z
lupyne/engine/indexers.py
coady/lupyne
8626ccf0ffd29519b12ceb91a291f580359a928c
[ "Apache-2.0" ]
9
2019-01-02T05:36:02.000Z
2022-03-07T23:07:03.000Z
lupyne/engine/indexers.py
coady/lupyne
8626ccf0ffd29519b12ceb91a291f580359a928c
[ "Apache-2.0" ]
7
2019-12-23T05:21:01.000Z
2021-07-21T11:50:21.000Z
import contextlib import itertools import operator import os from functools import partial from typing import Iterator, Mapping import lucene from java.io import File, IOException, StringReader from java.util import Arrays, HashSet from org.apache.lucene import analysis, document, index, queries, search, store, util fr...
41.456036
120
0.642629
6d1da1b2c4a6bc95f0d69baa37a40310c59453e5
663
py
Python
diff_tool.py
Anthlis/diff_tool
46cfd32fa1ec5dbacdb74e0cb78d0e0935a889c1
[ "MIT" ]
null
null
null
diff_tool.py
Anthlis/diff_tool
46cfd32fa1ec5dbacdb74e0cb78d0e0935a889c1
[ "MIT" ]
null
null
null
diff_tool.py
Anthlis/diff_tool
46cfd32fa1ec5dbacdb74e0cb78d0e0935a889c1
[ "MIT" ]
null
null
null
# diff_tool.py import difflib import sys import argparse from pathlib import Path def create_diff(old_file: Path, new_file: Path): file_1 = open(old_file).readlines() file_2 = open(new_file).readlines() delta = difflib.unified_diff(file_1, file_2, old_file.name, new_file.name) sys.stdout.writelines...
21.387097
78
0.723982
e60ab36fc2994b53738cfb550b568f127fa348ed
3,412
py
Python
tests/satosa/micro_services/test_attribute_generation.py
mrkday/SATOSA
43fd13273d7633b1d496d9c9aaef97c472ebd448
[ "Apache-2.0" ]
92
2017-11-08T08:01:27.000Z
2022-03-14T09:44:09.000Z
tests/satosa/micro_services/test_attribute_generation.py
mrkday/SATOSA
43fd13273d7633b1d496d9c9aaef97c472ebd448
[ "Apache-2.0" ]
155
2017-10-31T15:11:06.000Z
2022-03-11T16:59:23.000Z
tests/satosa/micro_services/test_attribute_generation.py
mrkday/SATOSA
43fd13273d7633b1d496d9c9aaef97c472ebd448
[ "Apache-2.0" ]
73
2017-11-05T13:53:40.000Z
2022-03-23T15:34:00.000Z
from satosa.internal import AuthenticationInformation from satosa.internal import InternalData from satosa.micro_services.attribute_generation import AddSyntheticAttributes from satosa.exception import SATOSAAuthenticationError from satosa.context import Context class TestAddSyntheticAttributes: def create_syn_ser...
41.108434
102
0.604631
dcf3c82c1c92886916fd68adcfb23a2807654704
1,504
py
Python
aliyun-python-sdk-green/aliyunsdkgreen/request/v20161115/PluginAntispamFeedbackRequest.py
xiaozhao1/aliyun-openapi-python-sdk
7297b69619fbe18a053ce552df9ab378b7c5719f
[ "Apache-2.0" ]
1
2019-05-30T03:53:33.000Z
2019-05-30T03:53:33.000Z
aliyunsdkgreen/request/v20161115/PluginAntispamFeedbackRequest.py
awesome-fc/porn-detection
c2d336ae1e69ca55fa3b31d109d7ea187e76336f
[ "MIT" ]
null
null
null
aliyunsdkgreen/request/v20161115/PluginAntispamFeedbackRequest.py
awesome-fc/porn-detection
c2d336ae1e69ca55fa3b31d109d7ea187e76336f
[ "MIT" ]
1
2021-01-26T05:01:42.000Z
2021-01-26T05:01:42.000Z
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
34.976744
84
0.773936
0c4a8b0fdb2ae1c510874957e7636a95695b0d3a
904
py
Python
lib/i18n.py
atelier-des-communs/safecycle
7ae5c41e04ab4acafbf33cab6e696d27ecbec2f1
[ "BSD-2-Clause" ]
13
2021-11-12T17:38:49.000Z
2022-03-26T16:04:55.000Z
lib/i18n.py
atelier-des-communs/safecycle
7ae5c41e04ab4acafbf33cab6e696d27ecbec2f1
[ "BSD-2-Clause" ]
8
2021-10-31T09:26:07.000Z
2022-03-08T17:34:27.000Z
lib/i18n.py
atelier-des-communs/safecycle
7ae5c41e04ab4acafbf33cab6e696d27ecbec2f1
[ "BSD-2-Clause" ]
null
null
null
from collections import defaultdict from csv import DictReader from lib.cache import cache from flask import request, session from lib.config import Config from lib.utils import NestedDefaultDict, debug @cache.memoize() def _messages(lang): res = NestedDefaultDict() with open("i18n/languages.csv") as f : ...
22.6
68
0.620575
2bca56c8bb8575b022a2b1637f2da7a249f33f9f
4,429
py
Python
Transformers.py
93fk/SklearnTransformers
9cedc770b45e46657487c85a8a2bedf0185eb5ce
[ "MIT" ]
1
2020-03-05T13:14:50.000Z
2020-03-05T13:14:50.000Z
Transformers.py
93fk/SklearnTransformers
9cedc770b45e46657487c85a8a2bedf0185eb5ce
[ "MIT" ]
null
null
null
Transformers.py
93fk/SklearnTransformers
9cedc770b45e46657487c85a8a2bedf0185eb5ce
[ "MIT" ]
null
null
null
import numpy as np import pandas as pd from numpy.lib.stride_tricks import as_strided from sklearn.base import BaseEstimator, TransformerMixin class FeatureExtractor(BaseEstimator, TransformerMixin): """Returns selected columns from a pandas DataFrame object. Parameters ---------- column_names: list, ...
30.972028
101
0.541431
a5101355f45047fb0ec4a875c3a0ae5bfa1dfbb3
538
py
Python
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/russiannow-34440
3daec01a0959f3105ef367c79957300c5266d725
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/russiannow-34440
3daec01a0959f3105ef367c79957300c5266d725
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/home/migrations/0001_load_initial_data.py
crowdbotics-apps/russiannow-34440
3daec01a0959f3105ef367c79957300c5266d725
[ "FTL", "AML", "RSA-MD" ]
null
null
null
from django.db import migrations def create_site(apps, schema_editor): Site = apps.get_model("sites", "Site") custom_domain = "russiannow-34440.botics.co" site_params = { "name": "RussianNow", } if custom_domain: site_params["domain"] = custom_domain Site.objects.update_or_cr...
20.692308
61
0.657993
713a67629b3d1a6806b9341f9265847d7be4eb89
4,799
py
Python
nipyapi/nifi/models/explicit_restriction_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/explicit_restriction_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
nipyapi/nifi/models/explicit_restriction_dto.py
jyoti-arora1991/nipyapi
ad0b2bdfd0e65049df7cb45042402201ec924e1e
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ NiFi Rest Api The Rest Api provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, ...
31.162338
479
0.598666
0c7c1ca200e44e35f04871bc0cbe2bd9234c1cec
808
py
Python
tests/unit_tests/test_environment.py
flywheel-apps/bids-app-template
aca42af534951e08614551a66ac533d0b3692e35
[ "MIT" ]
null
null
null
tests/unit_tests/test_environment.py
flywheel-apps/bids-app-template
aca42af534951e08614551a66ac533d0b3692e35
[ "MIT" ]
3
2019-11-18T14:28:08.000Z
2021-05-24T23:53:31.000Z
tests/unit_tests/test_environment.py
flywheel-apps/bids-app-template
aca42af534951e08614551a66ac533d0b3692e35
[ "MIT" ]
1
2020-09-07T14:34:15.000Z
2020-09-07T14:34:15.000Z
import logging from pathlib import Path from unittest import TestCase from run import get_and_log_environment log = logging.getLogger(__name__) def test_get_and_log_environment_works(caplog, search_caplog): # Skip this test in GitHub CI because it works locally and for real runs but not CI user_json = Path...
32.32
87
0.741337
bc8c5ecf3ef767e0907e016d2b5f0e5e74743725
1,775
py
Python
nslocapysation/classes/ns_localized_string_macro.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
1
2018-11-25T16:56:31.000Z
2018-11-25T16:56:31.000Z
nslocapysation/classes/ns_localized_string_macro.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
nslocapysation/classes/ns_localized_string_macro.py
resmio/nslocapysation
6643adf359b17212e2e2774de52904123ec2fcfd
[ "MIT" ]
null
null
null
import re class NSLocalizedStringMacro(object): """ A class whose instances represent a NSLocalizedString-macro with a certain format. This given format must include 'key' and can optionally contain 'comment'. The class the provides a compiled regex that can be used to search files. """ # CLAS...
26.893939
86
0.631549
451cb063bca9f7a0ed36795387ee967217b565be
12,388
py
Python
yolo.py
bubbliiiing/yolov4-tiny-keras
c23396bc37ba5f618b91d93221620bc4b7bd3ecd
[ "MIT" ]
141
2020-07-02T09:21:22.000Z
2022-03-21T15:01:19.000Z
yolo.py
bubbliiiing/yolov4-tiny-keras
c23396bc37ba5f618b91d93221620bc4b7bd3ecd
[ "MIT" ]
18
2020-07-01T21:17:26.000Z
2022-03-30T11:11:48.000Z
yolo.py
bubbliiiing/yolov4-tiny-keras
c23396bc37ba5f618b91d93221620bc4b7bd3ecd
[ "MIT" ]
54
2020-07-07T07:18:12.000Z
2022-03-18T21:28:53.000Z
import colorsys import os import time import numpy as np from keras import backend as K from PIL import ImageDraw, ImageFont from nets.yolo import yolo_body from utils.utils import (cvtColor, get_anchors, get_classes, preprocess_input, resize_image) from utils.utils_bbox import Dec...
46.924242
139
0.397966
af24ad202cc6e24cdc39836757af1b2c3eb45aae
4,444
py
Python
saleor/product/migrations/0136_add_attribute_type_and_page_to_attribute_relation.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/product/migrations/0136_add_attribute_type_and_page_to_attribute_relation.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/product/migrations/0136_add_attribute_type_and_page_to_attribute_relation.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.1 on 2020-10-09 10:17 import django.db.models.deletion from django.db import migrations, models def set_product_type_to_all_existing_attributes(apps, schema_editor): Attribute = apps.get_model("product", "Attribute") Attribute.objects.all().update(type="product-type") class Migratio...
32.437956
87
0.44577
e57c296555aba5129c5c04c4ca18896f5382497b
1,922
py
Python
dizoo/box2d/lunarlander/config/lunarlander_cont_td3_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
dizoo/box2d/lunarlander/config/lunarlander_cont_td3_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
dizoo/box2d/lunarlander/config/lunarlander_cont_td3_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict lunarlander_td3_config = dict( exp_name='lunarlander_cont_td3_seed0', env=dict( env_id='LunarLanderContinuous-v2', collector_env_num=8, evaluator_env_num=8, # (bool) Scale output action into legal range. act_scale=True, n_evaluator_e...
29.569231
78
0.613944
d15c139592ef97cb25954152234c2f7f6b0b7b20
7,213
py
Python
ortools/constraint_solver/samples/vrp_capacity.py
klorel/or-tools
f3fd201e68cf75b7720ff5c3cadc599a1d02b54b
[ "Apache-2.0" ]
1
2019-07-15T14:30:18.000Z
2019-07-15T14:30:18.000Z
ortools/constraint_solver/samples/vrp_capacity.py
walkerke/or-tools
39f44709bba203f5ff3bc18fab8098739f189a6d
[ "Apache-2.0" ]
null
null
null
ortools/constraint_solver/samples/vrp_capacity.py
walkerke/or-tools
39f44709bba203f5ff3bc18fab8098739f189a6d
[ "Apache-2.0" ]
2
2020-02-26T18:11:33.000Z
2020-12-02T07:44:34.000Z
# Copyright 2010-2018 Google LLC # 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 agreed to in writing...
33.705607
80
0.591848
cb4bc9eb13a68b58a1ad8f6192b95bf4ab196016
5,047
py
Python
test_hyperion.py
optenSTE/HyperionAPI
5082f7c0344f3b9a9e7b8a8d81221310bd8c68db
[ "MIT" ]
null
null
null
test_hyperion.py
optenSTE/HyperionAPI
5082f7c0344f3b9a9e7b8a8d81221310bd8c68db
[ "MIT" ]
null
null
null
test_hyperion.py
optenSTE/HyperionAPI
5082f7c0344f3b9a9e7b8a8d81221310bd8c68db
[ "MIT" ]
null
null
null
import hyperion import pytest from time import sleep instrument_ip = '217.74.248.42' def test_hyperion_tcp_comm(): response = hyperion.HCommTCPClient.hyperion_command(instrument_ip, "#GetSerialNumber") assert response.content[:3].decode() == 'HIA' assert len(response.content) == 6 def test_hyperion_pro...
24.619512
94
0.743016
fc4551c30a7dfc6df8ba96c6464dd7990b738401
4,868
py
Python
dist/spiders/craiglist.py
abhimangalms/scrapy-spiders
aa5bba137d9cb9e17e6768873092bb7c4923e24c
[ "MIT" ]
114
2015-01-12T19:12:06.000Z
2022-03-02T13:53:13.000Z
dist/spiders/craiglist.py
crypticterminal/scrapy-spiders
aa5bba137d9cb9e17e6768873092bb7c4923e24c
[ "MIT" ]
1
2016-06-09T05:25:08.000Z
2016-06-09T06:53:23.000Z
dist/spiders/craiglist.py
crypticterminal/scrapy-spiders
aa5bba137d9cb9e17e6768873092bb7c4923e24c
[ "MIT" ]
43
2015-01-20T04:38:31.000Z
2021-05-28T23:45:37.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from scrapy.spider import Spider from scrapy.selector import Selector from scrapy.http import Request from my_settings import name_file, keyword, test_mode, difference_days from datetime import datetime, timedelta import re print "Run spider Craiglist" if test_...
49.171717
116
0.53862
efc50b9059ad75fbf63db789aadedbc900f1f24c
1,586
py
Python
modeltranslation/forms.py
serdtsekol1/django-modeltranslation
8fb97dddebb159a26b0062aae9363a7f16d84896
[ "BSD-3-Clause" ]
956
2015-01-06T11:45:41.000Z
2022-03-28T21:16:57.000Z
modeltranslation/forms.py
serdtsekol1/django-modeltranslation
8fb97dddebb159a26b0062aae9363a7f16d84896
[ "BSD-3-Clause" ]
335
2015-01-08T00:47:36.000Z
2022-03-08T13:18:06.000Z
modeltranslation/forms.py
serdtsekol1/django-modeltranslation
8fb97dddebb159a26b0062aae9363a7f16d84896
[ "BSD-3-Clause" ]
245
2015-01-06T15:48:52.000Z
2022-03-18T15:02:26.000Z
# -*- coding: utf-8 -*- from django import forms from django.core import validators from modeltranslation.fields import TranslationField class TranslationModelForm(forms.ModelForm): def __init__(self, *args, **kwargs): super(TranslationModelForm, self).__init__(*args, **kwargs) for f in self._met...
31.72
92
0.653216
b332708b2b326f70a4268778ea7ad28529753673
1,726
py
Python
day04/app04/views.py
General-ITer/Django-Introduction
e88b12682f9abc46a90a0fc79e7443537230a506
[ "Apache-2.0" ]
null
null
null
day04/app04/views.py
General-ITer/Django-Introduction
e88b12682f9abc46a90a0fc79e7443537230a506
[ "Apache-2.0" ]
1
2020-12-09T18:26:36.000Z
2020-12-09T18:26:36.000Z
day04/app04/views.py
General-ITer/Django-Introduction
e88b12682f9abc46a90a0fc79e7443537230a506
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render,redirect from django.urls import reverse from .models import * from django.http import HttpResponse,HttpResponseRedirect from django.template import loader # Create your views here. #主页接口 def index(req): return render(req,'app04/index.html') #主页跳转所有语言接口,代底层实现机制 def langs(req...
24.309859
69
0.658749
170b1177802f206f7cf98d20c86d3f2aeb7228aa
3,915
py
Python
exps/example/yolox_voc/yolox_voc_m.py
Md-Ferdous/YOLOX
a337a81243122d72ebc45444b7d7e8d9a1361f63
[ "Apache-2.0" ]
null
null
null
exps/example/yolox_voc/yolox_voc_m.py
Md-Ferdous/YOLOX
a337a81243122d72ebc45444b7d7e8d9a1361f63
[ "Apache-2.0" ]
null
null
null
exps/example/yolox_voc/yolox_voc_m.py
Md-Ferdous/YOLOX
a337a81243122d72ebc45444b7d7e8d9a1361f63
[ "Apache-2.0" ]
null
null
null
# encoding: utf-8 import os import random import torch import torch.nn as nn import torch.distributed as dist from yolox.exp import Exp as MyExp from yolox.data import get_yolox_datadir class Exp(MyExp): def __init__(self): super(Exp, self).__init__() self.num_classes = 20 self.depth = 0.6...
31.572581
86
0.580587
f650c9195ca116c4d8a5991327219826c116def2
12,434
py
Python
tutorials/cloud-iot-gateways-rpi/cloudiot_mqtt_gateway.py
simmscg/community
789ed353f2112f8257e78507a6549116e4da8327
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tutorials/cloud-iot-gateways-rpi/cloudiot_mqtt_gateway.py
simmscg/community
789ed353f2112f8257e78507a6549116e4da8327
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
tutorials/cloud-iot-gateways-rpi/cloudiot_mqtt_gateway.py
simmscg/community
789ed353f2112f8257e78507a6549116e4da8327
[ "Apache-2.0", "CC-BY-4.0" ]
null
null
null
# Copyright 2018 Google LLC # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.829132
79
0.656828
777cc0789d1512c72095dcefb18dba3af3430831
536
py
Python
funciones.py
castedoproyectos/alsacheat
4e9597ea86b0ebfe30f4864f1c0431345ed71b9e
[ "MIT" ]
null
null
null
funciones.py
castedoproyectos/alsacheat
4e9597ea86b0ebfe30f4864f1c0431345ed71b9e
[ "MIT" ]
null
null
null
funciones.py
castedoproyectos/alsacheat
4e9597ea86b0ebfe30f4864f1c0431345ed71b9e
[ "MIT" ]
null
null
null
def contains_str(cadena1, cadena2): """Comprueba que la primera cadena se encuentra contenida en la segunda cadena. Arguments: cadena1 {[str]} -- Cadena a encontrar cadena2 {[str]} -- Cadena base """ cad1 = cadena1.lower() cad2 = cadena2.lower() puntuacion = 0 punt...
22.333333
75
0.529851
8de66191448f91c2b45cd8678e56eef9d851f2ac
3,961
py
Python
alipay/aop/api/request/AlipayOpenMiniResourceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/request/AlipayOpenMiniResourceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/request/AlipayOpenMiniResourceQueryRequest.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayOpenMiniResourceQueryModel import AlipayOpenMiniResourceQueryModel class AlipayOpenMiniResourceQueryRequest(object): def ...
27.317241
148
0.643777
d705ee75476122b3044e6f71f6d5b4d42e42c462
533
py
Python
ThingiBrowser/models/DriverOption.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
1
2019-11-15T20:06:16.000Z
2019-11-15T20:06:16.000Z
ThingiBrowser/models/DriverOption.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
ThingiBrowser/models/DriverOption.py
BohunkG4mer/ThingiBrowser
1cb541a6798b125231f64699a13f7bbc25d2b0f0
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Chris ter Beke. # Thingiverse plugin is released under the terms of the LGPLv3 or higher. from typing import TYPE_CHECKING if TYPE_CHECKING: from ..api.AbstractApiClient import AbstractApiClient class DriverOption: def __init__(self, label: str, driver: "AbstractApiClient") -> None: ...
24.227273
73
0.692308
af32671e66b68c47d9ffbc1225417ed4738415c7
12,011
py
Python
src/whylogs/util/dsketch.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
src/whylogs/util/dsketch.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
src/whylogs/util/dsketch.py
bernease/whylogs-python
cfd2a2f71280537aae584cbd40a752fbe7da647b
[ "Apache-2.0" ]
null
null
null
""" Define functions and classes for interfacing with `datasketches` """ import json import math from collections import defaultdict import datasketches import pandas as pd from whylogs.proto import ( FrequentItemsSketchMessage, FrequentItemsSummary, FrequentNumbersSketchMessage, FrequentNumbersSummar...
28.803357
87
0.610024
48683a77eefb858e7b29c546e4da96c5f13957e9
2,801
py
Python
migrations/env.py
HitoshiWako/Recipt
ae99eed25955ad72eab16379a7fff0d8cc695527
[ "MIT" ]
null
null
null
migrations/env.py
HitoshiWako/Recipt
ae99eed25955ad72eab16379a7fff0d8cc695527
[ "MIT" ]
null
null
null
migrations/env.py
HitoshiWako/Recipt
ae99eed25955ad72eab16379a7fff0d8cc695527
[ "MIT" ]
null
null
null
from __future__ import with_statement import logging from logging.config import fileConfig from flask import current_app from alembic import context # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config file for Python...
30.11828
77
0.707961
fb813b2b674acc932b9afc73542c89338b8ed6d1
2,118
py
Python
src/python/pants/core/util_rules/config_files_test.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
1,806
2015-01-05T07:31:00.000Z
2022-03-31T11:35:41.000Z
src/python/pants/core/util_rules/config_files_test.py
rcuza/pants
0429258b181986eed856ae45af93b776727774a0
[ "Apache-2.0" ]
9,565
2015-01-02T19:01:59.000Z
2022-03-31T23:25:16.000Z
src/python/pants/core/util_rules/config_files_test.py
ryanking/pants
e45b00d2eb467b599966bca262405a5d74d27bdd
[ "Apache-2.0" ]
443
2015-01-06T20:17:57.000Z
2022-03-31T05:28:17.000Z
# Copyright 2021 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). from __future__ import annotations import pytest from pants.core.util_rules import config_files from pants.core.util_rules.config_files import ConfigFiles, ConfigFilesRequest from pants....
35.3
98
0.613787
418f79b6f6d3ff4d94e29fa0611a615072b6e41d
2,405
py
Python
tools/sequence_diagram.py
juandspy/ccx-notification-writer
faf6e1d7a8a04da23241dc471346bef8771622f4
[ "Apache-2.0" ]
null
null
null
tools/sequence_diagram.py
juandspy/ccx-notification-writer
faf6e1d7a8a04da23241dc471346bef8771622f4
[ "Apache-2.0" ]
null
null
null
tools/sequence_diagram.py
juandspy/ccx-notification-writer
faf6e1d7a8a04da23241dc471346bef8771622f4
[ "Apache-2.0" ]
null
null
null
"""Definition of sequence diagram for the CCX Notification Writer service.""" # # (C) Copyright 2021 Pavel Tisnovsky # # All rights reserved. This program and the accompanying materials # are made available under the terms of the Eclipse Public License v1.0 # which accompanies this distribution, and is available ...
36.439394
77
0.610395
c74c1529eb537e7e550eeed68eebecc21bb4256e
55,983
py
Python
pandas/tests/groupby/test_categorical.py
bdforbes/pandas
aefae55e1960a718561ae0369e83605e3038f292
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/test_categorical.py
bdforbes/pandas
aefae55e1960a718561ae0369e83605e3038f292
[ "BSD-3-Clause" ]
null
null
null
pandas/tests/groupby/test_categorical.py
bdforbes/pandas
aefae55e1960a718561ae0369e83605e3038f292
[ "BSD-3-Clause" ]
null
null
null
from datetime import datetime import numpy as np import pytest from pandas.compat import PY37, is_platform_windows import pandas as pd from pandas import ( Categorical, CategoricalIndex, DataFrame, Index, MultiIndex, Series, _np_version_under1p17, qcut, ) import pandas._testing as tm ...
32.931176
88
0.571834
2343b49ca94ee9229f7d345d7c6ede6316ef80a4
8,631
py
Python
will/scripts/generate_will_project.py
antgel/will
1521b0240e1d58fd60ec278f42c412042b740d62
[ "MIT" ]
null
null
null
will/scripts/generate_will_project.py
antgel/will
1521b0240e1d58fd60ec278f42c412042b740d62
[ "MIT" ]
2
2021-03-20T05:47:47.000Z
2021-03-26T00:50:51.000Z
will/scripts/generate_will_project.py
antgel/will
1521b0240e1d58fd60ec278f42c412042b740d62
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import stat import sys from clint.textui import puts from will.utils import print_head PROJECT_ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__))) sys.path.append(PROJECT_ROOT) sys.path.append(os.getcwd()) class EmptyObj(object): pass def main(): """ Creates...
30.390845
116
0.621828
3975972304c67b1fd8cecb1d63cd1f913d52820f
896
py
Python
algorithms/backtrack/permute.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
128
2018-02-02T03:12:59.000Z
2021-08-22T16:39:12.000Z
algorithms/backtrack/permute.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
1
2018-06-08T00:37:51.000Z
2018-06-08T00:37:51.000Z
algorithms/backtrack/permute.py
zhengli0817/algorithms
3c98813f0329d9a5fff1107dbcd40e7f38d2275d
[ "MIT" ]
57
2018-02-02T04:37:05.000Z
2020-11-09T05:09:58.000Z
# Given a collection of distinct numbers, return all possible permutations. # For example, # [1,2,3] have the following permutations: # [ # [1,2,3], # [1,3,2], # [2,1,3], # [2,3,1], # [3,1,2], # [3,2,1] # ] def permute(nums): perms = [[]] for n in nums: new_perms = [] for perm in p...
21.853659
75
0.50558
7dd16610d2c6f06b9b2aed4092c38d4265ba02c1
2,390
py
Python
metacore_api_python_cli/models/devices_id.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
metacore_api_python_cli/models/devices_id.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
metacore_api_python_cli/models/devices_id.py
metacore-io/metacore-api-client-python
37d6127442e7a56deeedb88bf50b83e5d24fa7b0
[ "MIT" ]
null
null
null
# coding: utf-8 """ Metacore IoT Object Storage API Metacore Object Storage - IOT Core Services # noqa: E501 OpenAPI spec version: 1.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six class DevicesId(object): """NOTE: ...
27.790698
80
0.546025
11e8e38495b16aa1e992f9303d09a4765af9d74f
164
py
Python
str_to_bytes.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
str_to_bytes.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
str_to_bytes.py
ximury/python
8624464e214c74e640d01a83b21c66df8eb7ad8c
[ "Apache-2.0" ]
null
null
null
# 字符串转化为字节bytes类型 a = "hello".encode() b = "你好".encode() c = b"nice" d = "nice" print(a, b) print(c, d) print(type(a), type(b), type(c), type(d))
11.714286
41
0.52439
b7513c0b152030a1a9bc6cff31a119724f9ccaca
608
py
Python
setup.py
paarthjoshi002/ff-espn-api
2dc5ac2faeea63c08ce82ff2d724a0972ee6c37a
[ "MIT" ]
null
null
null
setup.py
paarthjoshi002/ff-espn-api
2dc5ac2faeea63c08ce82ff2d724a0972ee6c37a
[ "MIT" ]
null
null
null
setup.py
paarthjoshi002/ff-espn-api
2dc5ac2faeea63c08ce82ff2d724a0972ee6c37a
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='ff_espn_api', packages=['ff_espn_api'], version='1.1.7', author='Christian Wendt', description='Fantasy Football ESPN API', install_requires=['requests>=2.0.0,<3.0.0'], setup_requires=['nose>=1.0'], test_suite='nose.collector', te...
28.952381
57
0.610197
c9e6ac92e1fb58a5e8af44c44b3f79f9d528e842
6,676
py
Python
mindspore/train/quant/quant_utils.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
1
2020-06-20T06:22:41.000Z
2020-06-20T06:22:41.000Z
mindspore/train/quant/quant_utils.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
null
null
null
mindspore/train/quant/quant_utils.py
shaolei-wang/mindspore
2d50a43be9d17269f6adb41e51b8f7a540ebc9f1
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 agreed to...
34.770833
92
0.639904
d7cab067a932c66c37362248d0954f8ef86280ac
1,389
py
Python
lambdoop.py
NamesJ/lambdoop
68949d019375605df1f28e6140b9a31b1c07c0ad
[ "MIT" ]
null
null
null
lambdoop.py
NamesJ/lambdoop
68949d019375605df1f28e6140b9a31b1c07c0ad
[ "MIT" ]
null
null
null
lambdoop.py
NamesJ/lambdoop
68949d019375605df1f28e6140b9a31b1c07c0ad
[ "MIT" ]
null
null
null
### Our fundamental "thing" # factory ThingMaker = lambda dna : (lambda func, *args, **kwargs : func(dna, *args, **kwargs)) # methods dna = lambda me, *args, **kwargs : me # objects alice = ThingMaker({}) ### People # factory PeopleMaker = lambda name, hobby, parentDna={}, *args, **kwargs : ThingMaker({ **{ 'name': na...
36.552632
175
0.674586
4235a824c48dacb03750f43b34a93a365fd3e0ac
2,925
py
Python
src/OTLMOW/PostenMapping/Model/Post050302020.py
davidvlaminck/OTLClassPython
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
2
2022-02-01T08:58:11.000Z
2022-02-08T13:35:17.000Z
src/OTLMOW/PostenMapping/Model/Post050302020.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
src/OTLMOW/PostenMapping/Model/Post050302020.py
davidvlaminck/OTLMOW
71330afeb37c3ea6d9981f521ff8f4a3f8b946fc
[ "MIT" ]
null
null
null
# coding=utf-8 from OTLMOW.PostenMapping.StandaardPost import StandaardPost from OTLMOW.PostenMapping.StandaardPostMapping import StandaardPostMapping # Generated with PostenCreator. To modify: extend, do not edit class Post050302020(StandaardPost): def __init__(self): super().__init__( nummer...
45
104
0.562393
4faea785515ca9a0e6dd64561d25eef8d5a1fd28
9,587
py
Python
frappe/database/postgres/database.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2017-12-09T22:05:11.000Z
2019-10-22T12:03:43.000Z
frappe/database/postgres/database.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
3
2019-10-06T19:52:50.000Z
2020-02-27T10:12:06.000Z
frappe/database/postgres/database.py
chentaoz/frappe
ee3c4943bf6177ad3b410cdb0d802af486751a65
[ "MIT" ]
2
2021-05-06T06:14:40.000Z
2021-05-06T10:05:29.000Z
from __future__ import unicode_literals import re import frappe import psycopg2 import psycopg2.extensions from six import string_types from frappe.utils import cstr from psycopg2.extensions import ISOLATION_LEVEL_AUTOCOMMIT from frappe.database.database import Database from frappe.database.postgres.schema import Pos...
30.242902
115
0.680192
d53db337edaecb2fe7bc6e87e13993babffa4bd8
4,792
py
Python
paddle2onnx/__init__.py
yeliang2258/Paddle2ONNX
5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
paddle2onnx/__init__.py
yeliang2258/Paddle2ONNX
5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
paddle2onnx/__init__.py
yeliang2258/Paddle2ONNX
5eeef77f2f90d1e2a45dacf6eb1cc5f35f6224a4
[ "ECL-2.0", "Apache-2.0" ]
1
2022-01-29T04:35:49.000Z
2022-01-29T04:35:49.000Z
# Copyright (c) 2020 PaddlePaddle 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 required by app...
48.897959
215
0.64086
0db6d38fa042df0f7d32b17536d115356bd4b9bc
1,443
py
Python
backend/garpix_notify/setup.py
MarychevGarpix/garpix_notify
91fbbf845675da8dfbbd64970ae47da7ecd7a62f
[ "MIT" ]
null
null
null
backend/garpix_notify/setup.py
MarychevGarpix/garpix_notify
91fbbf845675da8dfbbd64970ae47da7ecd7a62f
[ "MIT" ]
null
null
null
backend/garpix_notify/setup.py
MarychevGarpix/garpix_notify
91fbbf845675da8dfbbd64970ae47da7ecd7a62f
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages from os import path here = path.join(path.abspath(path.dirname(__file__)), 'garpix_notify') with open(path.join(here, 'README.rst'), encoding='utf-8') as f: long_description = f.read() setup( name='garpix_notify', version='3.0.1', description='', long_d...
30.702128
71
0.582121
83380337d6c81b0d6e43b14b9c48243e5fff5cf2
3,599
py
Python
website/webforms.py
Dso15/Flasker_Blog
5ec775e6c93af0a7f65e82e8f527afbb6d2ff69c
[ "MIT" ]
null
null
null
website/webforms.py
Dso15/Flasker_Blog
5ec775e6c93af0a7f65e82e8f527afbb6d2ff69c
[ "MIT" ]
null
null
null
website/webforms.py
Dso15/Flasker_Blog
5ec775e6c93af0a7f65e82e8f527afbb6d2ff69c
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField from flask_ckeditor import CKEditorField from wtforms import EmailField, PasswordField, StringField, SubmitField, SelectField, BooleanField, TextAreaField from wtforms.validators import DataRequired, Email, Length, EqualTo, ValidationError from websi...
39.988889
176
0.689358
047ed5a4c804378288f5f4b88baf5f7961019a00
3,481
py
Python
test/integration/integration_test_app.py
abuhabuh/flask-datadog-monitor
8edf4872027fe609638a5aa4decb6125a335ae6d
[ "MIT" ]
1
2021-05-26T14:56:30.000Z
2021-05-26T14:56:30.000Z
test/integration/integration_test_app.py
abuhabuh/flask-datadog
8edf4872027fe609638a5aa4decb6125a335ae6d
[ "MIT" ]
null
null
null
test/integration/integration_test_app.py
abuhabuh/flask-datadog
8edf4872027fe609638a5aa4decb6125a335ae6d
[ "MIT" ]
null
null
null
"""Flask App for integration tests """ import flask from flask_datadog.monitor import datadog_monitors from flask_datadog.shared.datadog_constants import \ MonitorType, \ MonitorSpec flask_app = flask.Flask(__name__) @flask_app.route('/null_case', methods=['GET']) def null_case(): """Route is n...
26.172932
87
0.645217
7305f476b3145f8071d8e2b4afb5fdb276e21103
8,849
py
Python
software/software_clean.py
RogerJTX/kbpPipeline_ExpertSystem
53f998ccb04ec9e932363818e037c3c5b225f05b
[ "MIT" ]
3
2021-01-29T17:09:55.000Z
2021-07-12T11:37:29.000Z
software/software_clean.py
RogerJTX/kbpPipeline_ExpertSystem
53f998ccb04ec9e932363818e037c3c5b225f05b
[ "MIT" ]
null
null
null
software/software_clean.py
RogerJTX/kbpPipeline_ExpertSystem
53f998ccb04ec9e932363818e037c3c5b225f05b
[ "MIT" ]
1
2022-02-11T11:09:03.000Z
2022-02-11T11:09:03.000Z
#!/home/apollo/anaconda3/bin/python3 #-*- coding: utf-8 -*- #****************************************************************************** # Author : jtx # Last modified: 2020-04-13 16:09 # Filename : software_clean.py # Description : res_kb_software企业软著信息清洗 # 1 软著关键字段:登记号,过滤掉无登记号的数据; # 2 根据登记号进行去重 # 3 日期...
34.431907
149
0.53927
55ed5b4e9e10de160280af001ccb06c302a388cc
357
py
Python
pytpp/attributes/report_template.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
4
2022-02-04T23:58:55.000Z
2022-02-15T18:53:08.000Z
pytpp/attributes/report_template.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
pytpp/attributes/report_template.py
Venafi/pytpp
42af655b2403b8c9447c86962abd4aaa0201f646
[ "MIT" ]
null
null
null
from pytpp.attributes._helper import IterableMeta, Attribute from pytpp.attributes.top import TopAttributes class ReportTemplateAttributes(TopAttributes, metaclass=IterableMeta): __config_class__ = "Report Template" item_vault_id = Attribute('Item Vault Id') report_class = Attribute('Report Class') template_vault...
35.7
70
0.820728
fb08039ffb7df209f4b6b5a1f0e62b2738b9e75c
34,910
py
Python
sdk/python/pulumi_azure_native/network/v20190601/load_balancer.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190601/load_balancer.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/network/v20190601/load_balancer.py
polivbr/pulumi-azure-native
09571f3bf6bdc4f3621aabefd1ba6c0d4ecfb0e7
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
62.78777
5,245
0.704583
9f8c19311af14a057792d76d8d3604102582388c
1,632
py
Python
tests/eth2/beacon/tools/builder/test_builder_validator.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
tests/eth2/beacon/tools/builder/test_builder_validator.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
tests/eth2/beacon/tools/builder/test_builder_validator.py
Jwomers/trinity
3a09276d2f21adfc5b233272e1b1cc2ad1a0c11e
[ "MIT" ]
null
null
null
import pytest from hypothesis import ( given, settings, strategies as st, ) from eth2._utils import bls from eth2._utils.bitfield import ( get_empty_bitfield, has_voted, ) from eth2.beacon.tools.builder.validator import ( aggregate_votes, verify_votes, ) @settings(max_examples=1) @given(r...
22.054054
66
0.641544
a48d271c196507d76d6a66f52d3458fd0f832b2b
5,908
py
Python
homeassistant/components/mqtt/lock.py
formatBCE/HA-core
66a055d80a14406b6b953d75c757ca8cfd99682e
[ "Apache-2.0" ]
5
2018-10-23T14:15:05.000Z
2021-11-26T06:38:44.000Z
homeassistant/components/mqtt/lock.py
formatBCE/HA-core
66a055d80a14406b6b953d75c757ca8cfd99682e
[ "Apache-2.0" ]
69
2020-10-15T06:47:13.000Z
2022-03-31T06:03:04.000Z
homeassistant/components/mqtt/lock.py
kmdm/home-assistant
4007430d7262ef035bb80affea13657fdc993b1d
[ "Apache-2.0" ]
2
2019-06-11T12:13:14.000Z
2020-12-24T23:17:53.000Z
"""Support for MQTT locks.""" import functools import voluptuous as vol from homeassistant.components import lock from homeassistant.components.lock import LockEntity from homeassistant.const import CONF_NAME, CONF_OPTIMISTIC, CONF_VALUE_TEMPLATE from homeassistant.core import HomeAssistant, callback import homeassis...
33.568182
87
0.668416
2c0604a2aabb06a7bdd0b13d714585b9bb94bd1e
7,716
py
Python
schedule/schedule.py
herbeeg/hg-life-dashboard
1a36a35ceb6fec03c2acaedad2562edd9f5bc460
[ "MIT" ]
null
null
null
schedule/schedule.py
herbeeg/hg-life-dashboard
1a36a35ceb6fec03c2acaedad2562edd9f5bc460
[ "MIT" ]
null
null
null
schedule/schedule.py
herbeeg/hg-life-dashboard
1a36a35ceb6fec03c2acaedad2562edd9f5bc460
[ "MIT" ]
null
null
null
import json import os import tkinter.simpledialog import tkinter as tk from .schedule_generator import ScheduleGenerator class Schedule(tk.Frame): """ Houses the CRUD elements when it comes to making modifications to the generated schedule grid through mapping of the generation inputs. Extend...
38.773869
141
0.63971
c78ad9ea6de9e58d02a399905590fd60b6053099
12,004
py
Python
setup.py
allenai/dynet
d1a754641cf712c418a338d7eecf9465d2ec52f2
[ "Apache-2.0" ]
1
2021-05-26T22:28:06.000Z
2021-05-26T22:28:06.000Z
setup.py
allenai/dynet
d1a754641cf712c418a338d7eecf9465d2ec52f2
[ "Apache-2.0" ]
26
2017-01-09T17:02:11.000Z
2018-09-27T10:43:14.000Z
setup.py
allenai/dynet
d1a754641cf712c418a338d7eecf9465d2ec52f2
[ "Apache-2.0" ]
2
2016-11-14T18:30:50.000Z
2018-01-15T16:03:57.000Z
import distutils.sysconfig import logging as log import platform import sys from distutils.command.build import build as _build from distutils.command.build_py import build_py as _build_py from distutils.errors import DistutilsSetupError from distutils.spawn import find_executable from distutils.sysconfig import get_py...
37.279503
111
0.648284
f957e1e490434b2fa78c34bf61732761637c6969
1,028
py
Python
grapher_admin/migrations/0007_auto_20170814_0959.py
stjordanis/owid-importer
4341713d7fa88b41327ea48419ed5785b5cb9faf
[ "MIT" ]
15
2018-12-07T06:11:49.000Z
2022-01-24T03:38:05.000Z
grapher_admin/migrations/0007_auto_20170814_0959.py
stjordanis/owid-importer
4341713d7fa88b41327ea48419ed5785b5cb9faf
[ "MIT" ]
10
2020-04-05T01:08:27.000Z
2022-02-17T23:54:13.000Z
grapher_admin/migrations/0007_auto_20170814_0959.py
stjordanis/owid-importer
4341713d7fa88b41327ea48419ed5785b5cb9faf
[ "MIT" ]
6
2018-11-03T09:14:58.000Z
2021-05-17T21:59:59.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-06-02 04:13 from __future__ import unicode_literals from django.db import migrations, models, transaction import json def remove_country_time_title(apps, schema_editor): Chart = apps.get_model('grapher_admin', 'Chart') with transaction.atomic(): ...
39.538462
239
0.585603
0885ed292424afd18943f6035c211e03a56bad15
770
py
Python
sysadmin/sysadmin/foundation/templatetags/foundation_tags.py
bop/bauhaus
16678396ea7e3f95228e7419c6dcd127ff45a80a
[ "MIT" ]
null
null
null
sysadmin/sysadmin/foundation/templatetags/foundation_tags.py
bop/bauhaus
16678396ea7e3f95228e7419c6dcd127ff45a80a
[ "MIT" ]
null
null
null
sysadmin/sysadmin/foundation/templatetags/foundation_tags.py
bop/bauhaus
16678396ea7e3f95228e7419c6dcd127ff45a80a
[ "MIT" ]
null
null
null
from django import template from django.templatetags.static import static register = template.Library() @register.simple_tag def foundation_js(js_name=None): js_path = "foundation/js/foundation/foundation.{0}.js".format(js_name) if js_name is None: js_path = "foundation/js/foundation.min.js".format(js_...
33.478261
74
0.731169
d32a709f80b2b62bf424f5acdec8449c1a84ee73
16,854
py
Python
venv/lib/python3.6/site-packages/gensim/models/ldamulticore.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
2
2021-06-09T20:55:17.000Z
2021-11-03T03:07:37.000Z
venv/lib/python3.6/site-packages/gensim/models/ldamulticore.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
4
2020-07-26T02:10:42.000Z
2021-03-31T18:48:58.000Z
venv/lib/python3.6/site-packages/gensim/models/ldamulticore.py
bopopescu/wired_cli
844b5c2bf32c95ad2974663f0501a85ff6134bd4
[ "MIT" ]
1
2020-07-25T23:57:23.000Z
2020-07-25T23:57:23.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Author: Jan Zikes, Radim Rehurek # Copyright (C) 2014 Radim Rehurek <me@radimrehurek.com> # Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html """Online Latent Dirichlet Allocation (LDA) in Python, using all CPU cores to parallelize and speed up m...
49.716814
120
0.638127
96232f2649ff88583fa3ce874b8cc32716b28d9c
270
py
Python
todolist/todos/permissions.py
eriksf/todolist
a797e6806cfeea654ceb7931e3d942927975453a
[ "BSD-3-Clause" ]
3
2018-01-14T00:07:39.000Z
2018-01-19T02:02:51.000Z
{{cookiecutter.project_slug}}/backend/apps/api/base/permissions.py
danielzk/django-react-boilerplate
017fbce03d00c5de3c713f0bf8e6286a3ac2177d
[ "Unlicense" ]
14
2020-06-05T20:40:15.000Z
2022-03-12T00:13:31.000Z
{{cookiecutter.project_slug}}/backend/apps/api/base/permissions.py
danielzk/django-react-boilerplate
017fbce03d00c5de3c713f0bf8e6286a3ac2177d
[ "Unlicense" ]
1
2020-02-18T14:38:14.000Z
2020-02-18T14:38:14.000Z
from rest_framework import permissions class IsOwnerOrReadOnly(permissions.BasePermission): def has_object_permission(self, request, view, obj): if request.method in permissions.SAFE_METHODS: return True return obj.user == request.user
30
56
0.733333
6b50a8e4ef7bbba2959b36881becd05fed886564
5,886
py
Python
eval_detector.py
yongkyunlee/caltech-ee148-spring2020-hw02
7aac47859f323a8fdafcb2a1c335387ed5f05be5
[ "MIT" ]
null
null
null
eval_detector.py
yongkyunlee/caltech-ee148-spring2020-hw02
7aac47859f323a8fdafcb2a1c335387ed5f05be5
[ "MIT" ]
null
null
null
eval_detector.py
yongkyunlee/caltech-ee148-spring2020-hw02
7aac47859f323a8fdafcb2a1c335387ed5f05be5
[ "MIT" ]
null
null
null
import os import json import numpy as np import matplotlib.pyplot as plt from tqdm import tqdm def compute_iou(box_1, box_2): ''' This function takes a pair of bounding boxes and returns intersection-over- union (IoU) of two bounding boxes. ''' y0_1, x0_1, y1_1, x1_1 = box_1 area1 = (x1_1 - x0...
41.744681
128
0.636086
bbee9f1f34704f1a75058947715d165068955938
10,065
py
Python
tfx/types/standard_component_specs.py
jinnovation/tfx
bb7ae241c17aae237a20420899f14e0c332b61d6
[ "Apache-2.0" ]
null
null
null
tfx/types/standard_component_specs.py
jinnovation/tfx
bb7ae241c17aae237a20420899f14e0c332b61d6
[ "Apache-2.0" ]
null
null
null
tfx/types/standard_component_specs.py
jinnovation/tfx
bb7ae241c17aae237a20420899f14e0c332b61d6
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC. 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 required by applicable law or a...
33.662207
80
0.71227
7cfdc8596ae33c0ddf91f0717140d95b160c08de
9,261
py
Python
configs/topologies/CHIPS_Multicore_Monolithic.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
17
2019-02-05T03:44:40.000Z
2022-03-31T07:34:08.000Z
configs/topologies/CHIPS_Multicore_Monolithic.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
null
null
null
configs/topologies/CHIPS_Multicore_Monolithic.py
mandaltj/gem5_chips
b9c0c602241ffda7851c1afb32fa01f295bb98fd
[ "BSD-3-Clause" ]
12
2019-03-15T06:29:25.000Z
2022-02-01T19:37:31.000Z
# Copyright (c) 2018 Georgia Institute of Technology # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: redistributions of source code must retain the above copyright # notice, this list of conditi...
47.492308
77
0.556311
1ddcd788e8b50d431540a71fa02093df597ab69d
1,021
py
Python
homework7/tests/conftest.py
sakost/tinkoff_fintech
64b9d5a2a818b4db7c438b0dc53a8f31882f95ba
[ "MIT" ]
null
null
null
homework7/tests/conftest.py
sakost/tinkoff_fintech
64b9d5a2a818b4db7c438b0dc53a8f31882f95ba
[ "MIT" ]
null
null
null
homework7/tests/conftest.py
sakost/tinkoff_fintech
64b9d5a2a818b4db7c438b0dc53a8f31882f95ba
[ "MIT" ]
2
2021-08-29T15:01:39.000Z
2022-02-23T18:48:21.000Z
# pylint: disable=unused-argument,broad-except from concurrent.futures import Executor, Future from threading import Lock from typing import Any import pytest class DummyExecutor(Executor): def __init__(self): self._shutdown = False self._shutdownLock = Lock() self._fn = None def sub...
26.868421
80
0.605289
e3db7aa89199d723bfee276991c66b7736ca94df
2,286
py
Python
tests/test_singlecomments.py
al3xandru/pycco
31c5b7bb526e7bb4bf14c809726692ab8a70bf49
[ "MIT" ]
null
null
null
tests/test_singlecomments.py
al3xandru/pycco
31c5b7bb526e7bb4bf14c809726692ab8a70bf49
[ "MIT" ]
null
null
null
tests/test_singlecomments.py
al3xandru/pycco
31c5b7bb526e7bb4bf14c809726692ab8a70bf49
[ "MIT" ]
null
null
null
from pycco.main import (parse, highlight, get_language) import basetest class SingleComment(basetest.BaseTest): def test_parse_python(self): in_source = u''' # Create the template that we will use to generate the Pycco HTML page. pycco_template = template(pycco_resources.html) # The CSS styles we'd like...
43.132075
166
0.68154
0927c6d43d0a197ddd251081ef09faa2885eefe0
22
py
Python
__init__.py
blaa/orgnode
a3904258fe27893849494daa90b5c547fc31789d
[ "MIT" ]
1
2015-05-09T23:59:27.000Z
2015-05-09T23:59:27.000Z
__init__.py
blaa/orgnode
a3904258fe27893849494daa90b5c547fc31789d
[ "MIT" ]
null
null
null
__init__.py
blaa/orgnode
a3904258fe27893849494daa90b5c547fc31789d
[ "MIT" ]
null
null
null
from Orgnode import *
11
21
0.772727
d050ccc6fb79008bbc3ef12004cf48d2de3f2d2f
4,701
py
Python
dns/rdtypes/ANY/RRSIG.py
Ashiq5/dnspython
5449af5318d88bada34f661247f3bcb16f58f057
[ "ISC" ]
1,666
2015-01-02T17:46:14.000Z
2022-03-30T07:27:32.000Z
dns/rdtypes/ANY/RRSIG.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
591
2015-01-16T12:19:49.000Z
2022-03-30T21:32:11.000Z
dns/rdtypes/ANY/RRSIG.py
felixonmars/dnspython
2691834df42aab74914883fdf26109aeb62ec647
[ "ISC" ]
481
2015-01-14T04:14:43.000Z
2022-03-30T19:28:52.000Z
# Copyright (C) Dnspython Contributors, see LICENSE for text of ISC license # Copyright (C) 2004-2007, 2009-2011 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and ...
37.608
77
0.65752
f96f84a82959d18d65b04bfac142048154c1fd54
3,161
py
Python
programmers/lv4_review/p13.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv4_review/p13.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
programmers/lv4_review/p13.py
mrbartrns/swacademy_structure
778f0546030385237c383d81ec37d5bd9ed1272d
[ "MIT" ]
null
null
null
# [카카오] 블록 게임 from collections import deque INF = 987654321 dy = [-1, 1, 0, 0] dx = [0, 0, -1, 1] table = [{(1, 0), (1, 1)}, {(1, 1), (2, 1)}, {(0, 1), (0, 2)}, {(0, 0), (1, 0)}, {(1, 1), (1, 2)}, {(0, 1), (1, 1)}, {(0, 0), (0, 1)}, {(1, 0), (2, 0)}, {(0, 0), (0, 2)}, {(0, 1), (2, 1)}, {(1, 0), (1, ...
32.587629
119
0.426447
015a106ef771628b9f6a7615a41a3f46b9306bd0
16,133
py
Python
lbm/src/core/lattice.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
3
2022-03-30T02:01:33.000Z
2022-03-30T04:10:25.000Z
lbm/src/core/lattice.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
null
null
null
lbm/src/core/lattice.py
elswit/lbm
68b061f6f6bdb200a1e9e18531fd7bcad553f26f
[ "MIT" ]
null
null
null
# Generic imports import os import math import numpy as np from datetime import datetime # Custom imports from lbm.src.utils.buff import * from lbm.src.core.nb import * from lbm.src.core.obstacle import * from lbm.src.plot.plot import * ### *************************...
36.833333
73
0.450009
41a03b9eb9460d1ffea817ba714b1ac616c1af01
3,268
py
Python
scripts/logging/__init__.py
GabrielMMelo/esp32_course
a45873d840abe0128ff35fc7684c54f745f7c937
[ "CC-BY-4.0" ]
null
null
null
scripts/logging/__init__.py
GabrielMMelo/esp32_course
a45873d840abe0128ff35fc7684c54f745f7c937
[ "CC-BY-4.0" ]
null
null
null
scripts/logging/__init__.py
GabrielMMelo/esp32_course
a45873d840abe0128ff35fc7684c54f745f7c937
[ "CC-BY-4.0" ]
1
2019-09-08T21:10:18.000Z
2019-09-08T21:10:18.000Z
import sys CRITICAL = 50 ERROR = 40 WARNING = 30 INFO = 20 DEBUG = 10 NOTSET = 0 _level_dict = { CRITICAL: "CRIT", ERROR: "ERROR", WARNING: "WARN", INFO: "INFO", DEBUG: "DEBUG", } _stream = sys.stderr class Logger: level = NOTSET def __init__(self, name): self.name...
23.177305
75
0.573133
0cc6a0122a7dc28cf845d5d8b69c29277b1043cc
152
py
Python
src/wormhole/__init__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
2,801
2021-01-10T16:37:14.000Z
2022-03-31T19:02:50.000Z
src/wormhole/__init__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
52
2021-01-10T01:54:00.000Z
2022-03-11T13:12:41.000Z
src/wormhole/__init__.py
dmgolembiowski/magic-wormhole
d517a10282d5e56f300db462b1a6eec517202af7
[ "MIT" ]
106
2021-01-21T14:32:22.000Z
2022-03-18T10:33:09.000Z
from ._rlcompleter import input_with_completion from .wormhole import create, __version__ __all__ = ["create", "input_with_completion", "__version__"]
30.4
60
0.809211
8fd6891746badcfce6a743224714bc5e89e29002
24,428
py
Python
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpmvpnreceiversitesipv6_49c886be42acc1f3fc70df1023ccb0bd.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpmvpnreceiversitesipv6_49c886be42acc1f3fc70df1023ccb0bd.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
uhd_restpy/testplatform/sessions/ixnetwork/topology/bgpmvpnreceiversitesipv6_49c886be42acc1f3fc70df1023ccb0bd.py
Vibaswan/ixnetwork_restpy
239fedc7050890746cbabd71ea1e91c68d9e5cad
[ "MIT" ]
null
null
null
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # 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,...
39.720325
592
0.665957
51f2ab65a6a41f9292a3e52285259e4ff9d90cc2
325
py
Python
config/api_router.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
12
2020-10-16T14:36:53.000Z
2022-01-29T10:11:19.000Z
config/api_router.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
9
2021-01-21T02:38:52.000Z
2022-01-08T22:42:04.000Z
config/api_router.py
westonplatter/pnl_reporting
8cf58cf16977bc5cb0109f047f0681e10e09abbc
[ "BSD-3-Clause" ]
4
2020-11-30T13:00:22.000Z
2021-11-30T09:33:02.000Z
from django.conf import settings from rest_framework.routers import DefaultRouter, SimpleRouter from portfolio_management.users.api.views import UserViewSet if settings.DEBUG: router = DefaultRouter() else: router = SimpleRouter() router.register("users", UserViewSet) app_name = "api" urlpatterns = router....
20.3125
62
0.787692
be3b47440a7e452f3ccc528076f7f05f38166f27
4,511
py
Python
tests/test_fock_probabilities.py
cgogolin/strawberryfields
d7af185cad87b18fda4ba7c70f9af37796482c93
[ "Apache-2.0" ]
null
null
null
tests/test_fock_probabilities.py
cgogolin/strawberryfields
d7af185cad87b18fda4ba7c70f9af37796482c93
[ "Apache-2.0" ]
null
null
null
tests/test_fock_probabilities.py
cgogolin/strawberryfields
d7af185cad87b18fda4ba7c70f9af37796482c93
[ "Apache-2.0" ]
null
null
null
############################################################################## # # Unit tests for measurements in the Fock basis # ############################################################################## import unittest import os, sys sys.path.append(os.getcwd()) import numpy as np from scipy.special import fact...
42.961905
130
0.637109
d82ed315f751b6c61c35bb5e8407acd17ffa89cf
28
py
Python
maec/vocabs/__init__.py
colbyprior/python-maec
109d4517b0123a5f01e31c15818f35772d451705
[ "BSD-3-Clause" ]
22
2015-02-19T14:07:05.000Z
2021-03-25T00:34:12.000Z
maec/vocabs/__init__.py
colbyprior/python-maec
109d4517b0123a5f01e31c15818f35772d451705
[ "BSD-3-Clause" ]
28
2015-02-21T03:06:48.000Z
2019-09-17T17:27:31.000Z
maec/vocabs/__init__.py
colbyprior/python-maec
109d4517b0123a5f01e31c15818f35772d451705
[ "BSD-3-Clause" ]
15
2015-06-19T18:10:32.000Z
2021-02-17T05:59:06.000Z
from .vocabs import * # noqa
28
28
0.714286
3422428c96befab460d53e7952162321f87d297d
6,556
py
Python
docs/source/conf.py
goncaloperes/cugraph
d4decff28d1f9b15a95c4bd25a6da21c2ed42ce0
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
goncaloperes/cugraph
d4decff28d1f9b15a95c4bd25a6da21c2ed42ce0
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
goncaloperes/cugraph
d4decff28d1f9b15a95c4bd25a6da21c2ed42ce0
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # # Copyright (c) 2018-2021, NVIDIA CORPORATION. # # pygdf documentation build configuration file, created by # sphinx-quickstart on Wed May 3 10:59:22 2017. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possibl...
30.211982
79
0.693258
13899c3ab15a0438533ad8a9072fd717832324cb
45,080
py
Python
django/forms/fields.py
kkoralsky/django
924af638e4d4fb8eb46a19ac0cafcb2e83480cf3
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/fields.py
kkoralsky/django
924af638e4d4fb8eb46a19ac0cafcb2e83480cf3
[ "PSF-2.0", "BSD-3-Clause" ]
null
null
null
django/forms/fields.py
kkoralsky/django
924af638e4d4fb8eb46a19ac0cafcb2e83480cf3
[ "PSF-2.0", "BSD-3-Clause" ]
1
2020-02-06T10:31:51.000Z
2020-02-06T10:31:51.000Z
""" Field classes. """ import copy import datetime import itertools import os import re import uuid from decimal import Decimal, DecimalException from io import BytesIO from urllib.parse import urlsplit, urlunsplit from django.core import validators from django.core.exceptions import ValidationError # Provide this im...
37.44186
110
0.609361
5f871e376a6f3fb473a0778ec7b893f1a310221a
3,418
py
Python
binding-python/runtime/src/test/python/tests/binding/msg/TestType.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
9
2015-02-14T15:09:54.000Z
2021-11-10T15:09:45.000Z
binding-python/runtime/src/test/python/tests/binding/msg/TestType.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
binding-python/runtime/src/test/python/tests/binding/msg/TestType.py
apache/etch
5a875755019a7f342a07c8c368a50e3efb6ae68c
[ "ECL-2.0", "Apache-2.0" ]
14
2015-04-20T10:35:00.000Z
2021-11-10T15:09:35.000Z
# Licensed to the Apache Software Foundation (ASF) under one * # or more contributor license agreements. See the NOTICE file * # distributed with this work for additional information * # regarding copyright ownership. The ASF licenses this file * # to you under the Apache License, Version 2.0 (the ...
31.943925
69
0.608836
04ed9d20c63d62fd097f766447f4269849893923
1,540
py
Python
site_crawler/twitter/hash_tag_crawler.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
11
2018-04-24T12:05:45.000Z
2021-07-12T05:30:41.000Z
site_crawler/twitter/hash_tag_crawler.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
null
null
null
site_crawler/twitter/hash_tag_crawler.py
kwoshvick/NSE-Financial-News-Crawler-and-Predictor
8acee7c660c5487d18321dc7a169eba3043ef2b8
[ "MIT" ]
5
2019-08-09T04:43:23.000Z
2021-08-28T18:05:56.000Z
import tweepy from site_crawler.twitter.credentials import Credentials from site_crawler.cleaner.cleaner import Cleaner import csv import pandas as pd from sklearn.externals import joblib model=joblib.load('model.pkl') credentials = Credentials() cleaner = Cleaner() api = credentials.authentinticate_twitter() def pre...
22.318841
124
0.705844
1d351ffdf71889de50e4eae7069f8706c08a6785
4,812
py
Python
Run.py
CSIRT-MU/PassiveOSFingerprint
b7b78358115d9058676b50f5a79c4ebcecfa268c
[ "MIT" ]
9
2019-05-24T21:19:06.000Z
2021-11-08T19:08:39.000Z
Run.py
CSIRT-MU/PassiveOSFingerprint
b7b78358115d9058676b50f5a79c4ebcecfa268c
[ "MIT" ]
1
2021-11-11T20:23:26.000Z
2021-11-11T20:23:26.000Z
Run.py
CSIRT-MU/PassiveOSFingerprint
b7b78358115d9058676b50f5a79c4ebcecfa268c
[ "MIT" ]
3
2020-03-01T12:06:26.000Z
2020-12-04T09:03:11.000Z
#!/usr/bin/python3.6 import argparse from Utils import * from OS_parser import split_raw_line def run(flow_path, session_path, output_path, TCP_finger_path, extend): """ Parse every line from flow file, connect it with session by ID and determine OS by every method. @param flow_path: network ...
39.442623
173
0.488778
5a577c1f3c52cc64901a645af239b75d5c132a11
2,175
py
Python
spark_auto_mapper/automappers/container.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/automappers/container.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper/automappers/container.py
gagan-chawla/SparkAutoMapper
7b0aca2e4bece42b3229550f3f2fcc9607f79437
[ "Apache-2.0" ]
null
null
null
from typing import List, Dict, Optional from pyspark.sql import DataFrame, Column from pyspark.sql.types import StructField from spark_auto_mapper.automappers.automapper_base import AutoMapperBase from spark_auto_mapper.automappers.with_column_base import AutoMapperWithColumnBase from spark_auto_mapper.type_definitio...
41.037736
94
0.678621
28517d4feb3c2cd7232e050201e579ed4cc685a5
3,738
py
Python
src/comrades/base.py
void-yu/Comrades
d7edf595485d0dc888e722aff193dc0bbe466a99
[ "MIT" ]
2
2018-06-07T07:54:25.000Z
2018-06-19T17:41:27.000Z
src/comrades/base.py
void-yu/Comrades
d7edf595485d0dc888e722aff193dc0bbe466a99
[ "MIT" ]
null
null
null
src/comrades/base.py
void-yu/Comrades
d7edf595485d0dc888e722aff193dc0bbe466a99
[ "MIT" ]
null
null
null
import nltk from nltk.text import TextCollection from nltk.probability import ConditionalFreqDist class CorpusBase(object): def __init__(self, corpus, state='raw', vocab=None, labels=None, label_names=None): """Init function Args: state: 'raw' for untreated corpus, 'splited' fo...
31.948718
123
0.58534
130680cad1cb4456515ce5984a7271d552619cbf
168
py
Python
crawling_scraping/chapter03/scrape_by_bs4.py
mmakmo/python
74c577f8d688de62b6e6574ea1457a322450ae64
[ "MIT" ]
null
null
null
crawling_scraping/chapter03/scrape_by_bs4.py
mmakmo/python
74c577f8d688de62b6e6574ea1457a322450ae64
[ "MIT" ]
null
null
null
crawling_scraping/chapter03/scrape_by_bs4.py
mmakmo/python
74c577f8d688de62b6e6574ea1457a322450ae64
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup with open('index.html') as f: soup = BeautifulSoup(f, 'html.parser') for a in soup.find_all('a'): print(a.get('href'), a.text)
18.666667
42
0.660714
910a2543300663ec17ebe0d6ae48fc58ae7b1eb7
975
py
Python
examples/dataclass.py
derrickturk/antibiotics
a7ff6e4fb5265ce1077ce851684926ae09128ead
[ "Apache-2.0" ]
3
2019-09-29T17:56:14.000Z
2021-01-08T16:03:19.000Z
examples/dataclass.py
derrickturk/antibiotics
a7ff6e4fb5265ce1077ce851684926ae09128ead
[ "Apache-2.0" ]
null
null
null
examples/dataclass.py
derrickturk/antibiotics
a7ff6e4fb5265ce1077ce851684926ae09128ead
[ "Apache-2.0" ]
null
null
null
from antibiotics import Delimited from sys import stdout, stderr from dataclasses import dataclass from typing import NamedTuple, Optional from io import StringIO @dataclass class SampleRecord(): w: Optional[float] x: int y: bool z: str if __name__ == '__main__': recs = list() for i in range...
20.3125
55
0.567179
d4cacefc47c9580009b750f5f7b1e359c209a2cf
476
py
Python
python-backend/app/api/document_manager/namespace/document_manager.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/document_manager/namespace/document_manager.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
null
null
null
python-backend/app/api/document_manager/namespace/document_manager.py
ActionAnalytics/mds
7ac61b0b73b1d310db7dcf2d830b5746b851fe4a
[ "Apache-2.0" ]
1
2020-01-22T14:19:16.000Z
2020-01-22T14:19:16.000Z
from flask_restplus import Namespace from ..resources.document_manager import DocumentManagerResource from app.api.document_manager.resources.download_token import DownloadTokenResource api = Namespace('document-manager', description='Document Manager for uploading and keeping track of files and then serving them to ...
47.6
140
0.831933
039b99dc15ad29ca000ccef148a5fa42114bb392
655
py
Python
users/forms.py
tnadams/fix-politics
f2e82112063f95da81676bcf5f2bf4d8bf94d74b
[ "Apache-2.0" ]
null
null
null
users/forms.py
tnadams/fix-politics
f2e82112063f95da81676bcf5f2bf4d8bf94d74b
[ "Apache-2.0" ]
null
null
null
users/forms.py
tnadams/fix-politics
f2e82112063f95da81676bcf5f2bf4d8bf94d74b
[ "Apache-2.0" ]
null
null
null
from django import forms from django.contrib.auth.models import User from fixpol.models import Location, Impact from .models import Profile class UserForm(forms.ModelForm): class Meta: model = User fields = ('first_name', 'last_name', 'email') class ProfileForm(forms.ModelForm): class Meta: ...
24.259259
53
0.677863
4c9939ebd5ff1971a6fb6fd0ac5cfdf6b89857ad
1,527
py
Python
contacts/migrations/0001_initial.py
gergerov/easy_django
98eea5d5c2be36c5b3ac6497d803d18d4a811ded
[ "MIT" ]
null
null
null
contacts/migrations/0001_initial.py
gergerov/easy_django
98eea5d5c2be36c5b3ac6497d803d18d4a811ded
[ "MIT" ]
null
null
null
contacts/migrations/0001_initial.py
gergerov/easy_django
98eea5d5c2be36c5b3ac6497d803d18d4a811ded
[ "MIT" ]
null
null
null
# Generated by Django 3.2.5 on 2021-07-26 18:06 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Contact', fields=[ ('id', models.BigAutoFie...
47.71875
308
0.598559
44d0169b37429fd5e6a0025010f169d7aa32ed99
4,996
py
Python
gamegui.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
gamegui.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
null
null
null
gamegui.py
korbi98/TicTacToeGo_Zero
b8ea4562f3ddf914a53fc380f2266f13ab887e04
[ "MIT" ]
1
2021-12-20T12:03:49.000Z
2021-12-20T12:03:49.000Z
# Graphical User Interface from tkinter import * from tkinter import messagebox import tictactoe as ttt import numpy as np import mcts import agent class Game: ''' This class defines the graphical interface for the Game Attributes: - size: defines the size of the quadratic game Board - wi...
37.56391
114
0.577462
daab56e1e9d21b1833a4aecec3bd525971030479
1,981
py
Python
opr/ispt.py
Clarmy/wpr
4b12b9bc556767ca04c8ef009d7f908a83b5fe6a
[ "BSD-3-Clause" ]
1
2020-08-24T01:34:58.000Z
2020-08-24T01:34:58.000Z
opr/ispt.py
Clarmy/wpr
4b12b9bc556767ca04c8ef009d7f908a83b5fe6a
[ "BSD-3-Clause" ]
5
2018-11-23T02:19:55.000Z
2019-06-11T08:14:35.000Z
opr/ispt.py
Clarmy/wpr
4b12b9bc556767ca04c8ef009d7f908a83b5fe6a
[ "BSD-3-Clause" ]
2
2020-04-19T17:47:17.000Z
2021-08-12T10:45:51.000Z
''' -------------------------------------------------------------------- 项目名:rwp 模块名:opr.ispt 本模块用于检查文件情况 -------------------------------------------------------------------- python = 3.6 -------------------------------------------------------------------- ''' import sys sys.path.append('..') import os import time imp...
25.075949
68
0.532559
bd19318d378378df12a47e796d6806217bc9aafe
7,061
py
Python
src/python/WMCore/WMSpec/Steps/ExecuteMaster.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2015-02-05T13:43:46.000Z
2015-02-05T13:43:46.000Z
src/python/WMCore/WMSpec/Steps/ExecuteMaster.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
1
2016-10-13T14:57:35.000Z
2016-10-13T14:57:35.000Z
src/python/WMCore/WMSpec/Steps/ExecuteMaster.py
hufnagel/WMCore
b150cc725b68fc1cf8e6e0fa07c826226a4421fa
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # pylint: disable=E1101 # E1101: Allow imports from currentThread """ _ExecuteMaster_ Overseer object that traverses a task and invokes the type based executor for each step """ import logging import os import threading import traceback import WMCore.WMSpec.Steps.StepFactory as StepFactory fro...
34.111111
103
0.600623
03bfeb7f2d5d9ccd7e3b3ebde28504b1c348c827
1,746
py
Python
symbol.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
1
2018-09-22T22:34:35.000Z
2018-09-22T22:34:35.000Z
symbol.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
symbol.py
jcooper-korg/talon_user
ef086f9890448f7d633a4f02b36a18de853581a8
[ "0BSD" ]
null
null
null
# from https://github.com/JonathanNickerson/talon_voice_user_scripts/blob/master/symbol.py from talon.voice import Context, Key ctx = Context('symbol') keymap = { '(escape | randall)': Key('esc'), '(question [mark] | questo)': '?', '(minus | dash)': '-', 'plus': '+', 'tilde': '~', '(bang | ex...
31.178571
112
0.513173
a9fad8830b2ce3e82a3f5ccea461f0a3aba28395
5,039
py
Python
fbpinns/plot_domain.py
anaxsouza/FBPINNs
fc50f9e69613318353ccff339d25c723cd8dd55c
[ "MIT" ]
38
2021-07-28T06:04:19.000Z
2022-03-16T08:42:51.000Z
fbpinns/plot_domain.py
anaxsouza/FBPINNs
fc50f9e69613318353ccff339d25c723cd8dd55c
[ "MIT" ]
4
2021-07-31T03:38:50.000Z
2022-03-07T05:34:44.000Z
fbpinns/plot_domain.py
anaxsouza/FBPINNs
fc50f9e69613318353ccff339d25c723cd8dd55c
[ "MIT" ]
10
2021-09-21T07:56:51.000Z
2022-03-25T12:42:20.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Tue Mar 30 11:57:45 2021 @author: bmoseley """ # This module defines helper plotting functions for plotting FBPINN domains # This module is used by the plot_main_ND.py modules import numpy as np import torch import matplotlib.pyplot as plt import matplot...
39.992063
143
0.542568
2cf913172f053454c3779f2bdd6081d51582533f
175
py
Python
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
12
2018-01-30T00:44:06.000Z
2020-07-13T05:20:48.000Z
blog/templatetags/markdownify.py
darkLord19/blog
16c3b72fef9d22ccfa606934c8b94fc0feb82103
[ "MIT" ]
36
2018-03-06T17:49:50.000Z
2020-06-23T19:26:00.000Z
web/templatetags/markdown.py
odinje/yactff
d55ece2905ca49114f7ec15bbcd354cacb49b973
[ "MIT" ]
3
2018-08-03T07:03:09.000Z
2020-07-09T20:21:10.000Z
from django import template import mistune register = template.Library() @register.filter def markdown(value): markdown = mistune.Markdown() return markdown(value)
15.909091
33
0.754286
c888e65ace8cf5173cebfdcb8c89791770a7f1cf
3,440
py
Python
src/canvas-extractor/tests/data_generation/courses.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
3
2020-10-15T10:29:59.000Z
2020-12-01T21:40:55.000Z
src/canvas-extractor/tests/data_generation/courses.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
40
2020-08-17T21:08:33.000Z
2021-02-02T19:56:09.000Z
src/canvas-extractor/tests/data_generation/courses.py
stephenfuqua/Ed-Fi-X-Fizz
94597eda585d4f62f69c12e2a58fa8e8846db11b
[ "Apache-2.0" ]
10
2021-06-10T16:27:27.000Z
2021-12-27T12:31:57.000Z
# SPDX-License-Identifier: Apache-2.0 # Licensed to the Ed-Fi Alliance under one or more agreements. # The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. # See the LICENSE and NOTICES files in the project root for more information. import logging from canvasapi.course import Course fro...
27.52
86
0.638372
0dde575b8f8c29a306ec1be6da8dd20ab23c22be
878
py
Python
kivy/tests/test_video.py
VICTORVICKIE/kivy
55abc963fe9099c078a3a2253397de70c2ee17b1
[ "MIT" ]
13,889
2015-01-01T06:43:41.000Z
2022-03-31T17:37:56.000Z
kivy/tests/test_video.py
VICTORVICKIE/kivy
55abc963fe9099c078a3a2253397de70c2ee17b1
[ "MIT" ]
4,570
2015-01-01T17:58:52.000Z
2022-03-31T18:42:16.000Z
kivy/tests/test_video.py
VICTORVICKIE/kivy
55abc963fe9099c078a3a2253397de70c2ee17b1
[ "MIT" ]
3,786
2015-01-01T09:20:45.000Z
2022-03-30T21:15:05.000Z
import unittest class VideoTestCase(unittest.TestCase): def test_video_unload(self): # fix issue https://github.com/kivy/kivy/issues/2275 # AttributeError: 'NoneType' object has no attribute 'texture' from kivy.uix.video import Video from kivy.clock import Clock from kivy...
33.769231
75
0.65262
1bcd0945f2196442975a8a42c4da884406e3ba0b
4,693
py
Python
tests/test_ecwid_endpoint_products.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
3
2021-07-29T17:00:42.000Z
2021-11-05T13:35:21.000Z
tests/test_ecwid_endpoint_products.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
2
2021-04-22T04:27:15.000Z
2021-04-26T02:49:38.000Z
tests/test_ecwid_endpoint_products.py
DanPalmz/pyecwid
03fb3077a5aeda62e6aa4be2a6eae5e161be1e23
[ "MIT" ]
1
2021-07-08T01:41:27.000Z
2021-07-08T01:41:27.000Z
import json import os #from pprint import pprint from pyecwid import Ecwid, EcwidMock import pytest import pytest_dependency import pytest_dotenv import time API_TOKEN = os.getenv("API_TOKEN") API_STORE = os.getenv("API_STORE") SLEEP_TIME = 5 @pytest.fixture def dummy_product(): with open('./tests/samplejson/pro...
34.507353
93
0.741956
5b68da154b0d7f8f68a05bb28706c91e9f0c700e
100,876
py
Python
venv/lib/python2.7/site-packages/pkg_resources/__init__.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
3
2016-03-10T00:46:50.000Z
2016-03-23T19:20:00.000Z
venv/lib/python2.7/site-packages/pkg_resources/__init__.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
null
null
null
venv/lib/python2.7/site-packages/pkg_resources/__init__.py
BlueMoon3000/election-2016
9e8f130605bf02ef85391f203381f518e673e183
[ "FSFAP" ]
1
2018-05-05T22:59:40.000Z
2018-05-05T22:59:40.000Z
""" Package resource API -------------------- A resource is a logical file contained within a package, or a logical subdirectory thereof. The package resource API expects resource names to have their path parts separated with ``/``, *not* whatever the local path separator is. Do not use os.path operations to manipul...
34.288239
90
0.619037
0aae81b125700ea521544833f6f4419b568549e3
1,683
py
Python
matching/pog.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/pog.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
matching/pog.py
seanmchu/algo-research
199964b7ce376a88e248349946538cb2159c4797
[ "MIT" ]
null
null
null
from classes import * def pog(students,cap,plist,reserves): sel = [] slist = [] r1 = 0 r2 = 0 #we sort students by priority for p in plist: for s in students: if (s.index == p): slist.append(s) #Put reserves into an aggregated dict res = {} for r ...
26.296875
72
0.479501
c2e4ad63b6b49e102082255466d8038e165e47c8
513
py
Python
examples/image_prediction.py
trondstroemme/imageAI
2adae0228ff2c298985a65f82722688c0f83ebfc
[ "MIT" ]
2
2019-04-12T08:13:51.000Z
2020-04-25T04:37:55.000Z
examples/image_prediction.py
trondstroemme/imageAI
2adae0228ff2c298985a65f82722688c0f83ebfc
[ "MIT" ]
null
null
null
examples/image_prediction.py
trondstroemme/imageAI
2adae0228ff2c298985a65f82722688c0f83ebfc
[ "MIT" ]
1
2019-02-15T09:47:48.000Z
2019-02-15T09:47:48.000Z
from imageai.Prediction import ImagePrediction import os execution_path = os.getcwd() prediction = ImagePrediction() prediction.setModelTypeAsResNet() prediction.setModelPath(os.path.join(execution_path, "resnet50_weights_tf_dim_ordering_tf_kernels.h5")) prediction.loadModel() predictions, probabilities = prediction...
39.461538
108
0.816764