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
ff884a82f5a3a878ac0ddf38fd61232181d4cbde
1,653
py
Python
migration/migrator/migrations/course/20200311135223_oh_queue_contact_info.py
zeez2030/Submitty
7118944ff4adc6f15d76984eb10a1e862926d724
[ "BSD-3-Clause" ]
411
2016-06-14T20:52:25.000Z
2022-03-31T21:20:25.000Z
migration/migrator/migrations/course/20200311135223_oh_queue_contact_info.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
5,730
2016-05-23T21:04:32.000Z
2022-03-31T10:08:06.000Z
migration/migrator/migrations/course/20200311135223_oh_queue_contact_info.py
KaelanWillauer/Submitty
cf9b6ceda15ec0a661e2ca81ea7864790094c64a
[ "BSD-3-Clause" ]
423
2016-09-22T21:11:30.000Z
2022-03-29T18:55:28.000Z
"""Migration for a given Submitty course database.""" import json from pathlib import Path def up(config, database, semester, course): """ Run up migration. :param config: Object holding configuration details about Submitty :type config: migrator.config.Config :param database: Object for interacti...
34.4375
88
0.6951
9a95826aa928b4ebab866c59191465c878847571
8,033
py
Python
nixio/test/test_tag.py
SarwarNeki/https-github.com-G-Node-nixpy
e458a4d2bcd843a22d2e15013051832bd3076ef5
[ "BSD-3-Clause" ]
null
null
null
nixio/test/test_tag.py
SarwarNeki/https-github.com-G-Node-nixpy
e458a4d2bcd843a22d2e15013051832bd3076ef5
[ "BSD-3-Clause" ]
null
null
null
nixio/test/test_tag.py
SarwarNeki/https-github.com-G-Node-nixpy
e458a4d2bcd843a22d2e15013051832bd3076ef5
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2014, German Neuroinformatics Node (G-Node) # # All rights reserved. # # Redistribution and use in section and binary forms, with or without # modification, are permitted under the terms of the BSD License. See # LICENSE file in the root of the Project. from __future__ import (absolute_import, division...
32.522267
79
0.597784
2decdf2e63e0911e6cb3a9288b0bf7b52af580ed
416
py
Python
src/digirock/models/__init__.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
null
null
null
src/digirock/models/__init__.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
2
2022-02-28T08:51:53.000Z
2022-02-28T13:24:33.000Z
src/digirock/models/__init__.py
trhallam/digirock
05b1199d741a384345a4930605be97369c9ec270
[ "MIT" ]
null
null
null
from ._mod import ( voigt_upper_bound, reuss_lower_bound, vrh_avg, # dryframe_delta_pres, dryframe_dpres, dryframe_stress, dryframe_acoustic, dryframe_density, saturated_density, gassmann_fluidsub, patchy_fluidsub, mixed_density, ) from ._hsw import hs_kbo...
21.894737
65
0.716346
204d401d41360b6fa6571d955b8c4a8311df12db
1,858
py
Python
pilot/models/tiny_net.py
kkelchte/pilot
e3c3b753351efac30323af57465abe360973653a
[ "Apache-2.0" ]
null
null
null
pilot/models/tiny_net.py
kkelchte/pilot
e3c3b753351efac30323af57465abe360973653a
[ "Apache-2.0" ]
null
null
null
pilot/models/tiny_net.py
kkelchte/pilot
e3c3b753351efac30323af57465abe360973653a
[ "Apache-2.0" ]
1
2020-06-18T14:26:49.000Z
2020-06-18T14:26:49.000Z
""" Version of Alexnet with smaller input size and less weights """ import tensorflow as tf import numpy as np # input downscaled to 128x128x1 def tinynet(inputs, num_outputs=1, dropout_rate=0, reuse=None, is_training=False, verbose=False, scope=...
42.227273
216
0.687836
b8c3280f21d87097537e9de4f9f084e00e150eaa
1,162
py
Python
pythonforandroid/recipes/ffpyplayer/__init__.py
feelfreelinux/python-for-android
4eac58b1b7bcb74ca46333afa7c845d0597060a9
[ "MIT" ]
1
2019-03-24T01:16:37.000Z
2019-03-24T01:16:37.000Z
pythonforandroid/recipes/ffpyplayer/__init__.py
feelfreelinux/python-for-android
4eac58b1b7bcb74ca46333afa7c845d0597060a9
[ "MIT" ]
null
null
null
pythonforandroid/recipes/ffpyplayer/__init__.py
feelfreelinux/python-for-android
4eac58b1b7bcb74ca46333afa7c845d0597060a9
[ "MIT" ]
null
null
null
from pythonforandroid.toolchain import Recipe, CythonRecipe, shprint, current_directory, ArchARM from os.path import exists, join, realpath from os import uname import glob import sh import os class FFPyPlayerRecipe(CythonRecipe): version = '6f7568b498715c2da88f061ebad082a042514923' url = 'https://github.com/...
37.483871
96
0.704819
5bbeca7c3a4ec12e3e91b48f7e5afae459e0575d
48
py
Python
Face Recognition/sample.py
JadeMaveric/CoinShift-Imaging-Box
3d1599099697bc12ffc91ab9b50387dc9cb19092
[ "Apache-2.0" ]
23
2021-01-19T11:55:53.000Z
2021-07-22T05:30:57.000Z
Face Recognition/sample.py
JadeMaveric/CoinShift-Imaging-Box
3d1599099697bc12ffc91ab9b50387dc9cb19092
[ "Apache-2.0" ]
122
2021-03-06T15:46:08.000Z
2021-06-09T10:36:11.000Z
Face Recognition/sample.py
JadeMaveric/CoinShift-Imaging-Box
3d1599099697bc12ffc91ab9b50387dc9cb19092
[ "Apache-2.0" ]
40
2021-01-20T13:12:52.000Z
2021-05-29T18:26:43.000Z
import os print(os.path.exists("Dhanush.jpg"))
12
36
0.729167
df00b6184b6fda98380daccd7a84fb6703e5892a
5,157
py
Python
improver_tests/nowcasting/optical_flow/test_generate_optical_flow_components.py
pnijhara/improver
5961a6fab9a79cd63a943eff07bf79d4e5f0ff03
[ "BSD-3-Clause" ]
null
null
null
improver_tests/nowcasting/optical_flow/test_generate_optical_flow_components.py
pnijhara/improver
5961a6fab9a79cd63a943eff07bf79d4e5f0ff03
[ "BSD-3-Clause" ]
null
null
null
improver_tests/nowcasting/optical_flow/test_generate_optical_flow_components.py
pnijhara/improver
5961a6fab9a79cd63a943eff07bf79d4e5f0ff03
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2020 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
39.669231
84
0.674229
f0b26916747a551499ec9cd813757ab329a14940
323
py
Python
examples/pingpong/ping_client.py
tubular/thriftpy
7ec6b762fdd9af20882b76c4d7e5b5f213d5da2c
[ "MIT" ]
1,002
2015-01-14T10:18:28.000Z
2018-12-05T10:13:46.000Z
examples/pingpong/ping_client.py
tubular/thriftpy
7ec6b762fdd9af20882b76c4d7e5b5f213d5da2c
[ "MIT" ]
218
2015-01-05T22:41:11.000Z
2018-12-09T16:03:00.000Z
examples/pingpong/ping_client.py
tubular/thriftpy
7ec6b762fdd9af20882b76c4d7e5b5f213d5da2c
[ "MIT" ]
296
2015-01-03T13:51:51.000Z
2018-11-16T07:15:11.000Z
# -*- coding: utf-8 -*- import thriftpy from thriftpy.rpc import client_context pp_thrift = thriftpy.load("pingpong.thrift", module_name="pp_thrift") def main(): with client_context(pp_thrift.PingService, '127.0.0.1', 6000) as c: pong = c.ping() print(pong) if __name__ == '__main__': main...
17.944444
71
0.656347
2efb408173e3fd1c8048aff4b44020d0b0b83f71
1,428
py
Python
bitchia/types/condition_opcodes.py
thinkboxx/bitchia-blockchain
6c71ee9bab50497362071bbaf45c4114485d4098
[ "Apache-2.0" ]
null
null
null
bitchia/types/condition_opcodes.py
thinkboxx/bitchia-blockchain
6c71ee9bab50497362071bbaf45c4114485d4098
[ "Apache-2.0" ]
null
null
null
bitchia/types/condition_opcodes.py
thinkboxx/bitchia-blockchain
6c71ee9bab50497362071bbaf45c4114485d4098
[ "Apache-2.0" ]
null
null
null
import enum from typing import Any # See bitchia/wallet/puzzles/condition_codes.clvm class ConditionOpcode(bytes, enum.Enum): # UNKNOWN is ascii "0" UNKNOWN = bytes([48]) # AGG_SIG is ascii "1" # the conditions below require bls12-381 signatures AGG_SIG_UNSAFE = bytes([49]) AGG_SIG_ME = byt...
26.943396
93
0.686975
80c5317339c124f315d2fcdf25a56aea64f2c038
7,926
py
Python
mkt/reviewers/forms.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/reviewers/forms.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
mkt/reviewers/forms.py
muffinresearch/zamboni
045a6f07c775b99672af6d9857d295ed02fe5dd9
[ "BSD-3-Clause" ]
null
null
null
import logging from datetime import timedelta from django import forms from django.forms import widgets import happyforms from tower import ugettext as _ from tower import ugettext_lazy as _lazy import amo from mkt.api.forms import CustomNullBooleanSelect from mkt.reviewers.models import CannedResponse from mkt.revi...
36.865116
79
0.623265
301133591da6c748b6e59fd270fa0c17ccb836e4
1,354
py
Python
protector/rules/query_old_data.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
54
2016-02-23T16:04:11.000Z
2021-05-01T06:43:55.000Z
protector/rules/query_old_data.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
1
2016-03-08T15:07:35.000Z
2016-06-23T12:52:36.000Z
protector/rules/query_old_data.py
trivago/Protector
7ebe7bde965e27737b961a0cb5740724d174fdc7
[ "BSD-3-Clause" ]
4
2016-06-01T14:22:47.000Z
2017-03-09T05:23:08.000Z
from result import Ok, Err from protector.influxdb.keyword import Keyword from protector.rules.rule import Rule import datetime class RuleChecker(Rule): def __init__(self): # Todo: Make this configurable from config file self.min_start_date = datetime.datetime.now() - datetime.timedelta(days=10) ...
33.02439
120
0.59675
a69b39e73b671d5ae0392a01c581be60d7793536
4,173
py
Python
tensorflow_graphics/rendering/tests/interpolate_test.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
1
2021-05-10T10:45:19.000Z
2021-05-10T10:45:19.000Z
tensorflow_graphics/rendering/tests/interpolate_test.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
null
null
null
tensorflow_graphics/rendering/tests/interpolate_test.py
Liang813/graphics
71ab1775228a0a292427551350cbb62bfa8bd01a
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The TensorFlow Authors # # 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 i...
40.911765
75
0.687755
f20b6cb5f7c9668fd8b2c94d203b0704e674002d
12,888
py
Python
esphomeflasher/gui.py
mozzwald/esphome-flasher
419b180845352cce92b94766c8af777d0ddf9d0b
[ "MIT" ]
null
null
null
esphomeflasher/gui.py
mozzwald/esphome-flasher
419b180845352cce92b94766c8af777d0ddf9d0b
[ "MIT" ]
null
null
null
esphomeflasher/gui.py
mozzwald/esphome-flasher
419b180845352cce92b94766c8af777d0ddf9d0b
[ "MIT" ]
1
2020-07-05T13:40:52.000Z
2020-07-05T13:40:52.000Z
# This GUI is a fork of the brilliant https://github.com/marcelstoer/nodemcu-pyflasher import re import sys import threading import wx import wx.adv from wx.lib.embeddedimage import PyEmbeddedImage import wx.lib.inspection import wx.lib.mixins.inspection from esphomeflasher.helpers import list_serial_ports COLOR_RE...
38.130178
99
0.617008
b6f12002c9a33c0070b35f89ea536cad50132fac
36,554
py
Python
examples/development/run_electric_grid_optimal_power_flow_trust_region.py
TUMCREATE-ESTL/fledge
1da549b52eb5e9f12984a111cbccd0fe291b97de
[ "MIT" ]
3
2020-03-13T03:35:55.000Z
2021-03-02T08:36:27.000Z
examples/development/run_electric_grid_optimal_power_flow_trust_region.py
TUMCREATE-ESTL/fledge
1da549b52eb5e9f12984a111cbccd0fe291b97de
[ "MIT" ]
9
2020-11-18T12:53:29.000Z
2021-08-03T15:33:10.000Z
examples/development/run_electric_grid_optimal_power_flow_trust_region.py
TUMCREATE-ESTL/fledge
1da549b52eb5e9f12984a111cbccd0fe291b97de
[ "MIT" ]
7
2020-03-05T09:25:31.000Z
2021-02-11T15:30:55.000Z
"""Example script for setting up and solving an optimal power flow problem with trust-region algorithm.""" import numpy as np import pandas as pd from datetime import datetime import mesmo def main(): # Settings. scenario_name = 'singapore_6node' results_path = mesmo.utils.get_results_path(__file__, sc...
46.804097
128
0.651912
c314bae66bb985d4fdb2f182ee037f02323dd3eb
11,185
py
Python
buildpack/runtime_components/storage.py
Infra-Red/cf-mendix-buildpack
d9402465e324f5ad25db27601d4061ae2b49cb4c
[ "Apache-2.0" ]
null
null
null
buildpack/runtime_components/storage.py
Infra-Red/cf-mendix-buildpack
d9402465e324f5ad25db27601d4061ae2b49cb4c
[ "Apache-2.0" ]
null
null
null
buildpack/runtime_components/storage.py
Infra-Red/cf-mendix-buildpack
d9402465e324f5ad25db27601d4061ae2b49cb4c
[ "Apache-2.0" ]
1
2021-07-21T11:36:46.000Z
2021-07-21T11:36:46.000Z
import json import logging import re import os import requests import time from buildpack import util from lib.m2ee.version import MXVersion def _get_s3_specific_config(vcap_services, m2ee): access_key = secret = bucket = encryption_keys = key_suffix = None tvm_endpoint = tvm_username = tvm_password = endpoin...
36.433225
93
0.608225
5b307cbe63495a293878963491012333c6d8b331
148
py
Python
spec/apps.py
lightthgil/textPer
367e80061ee72899d08c8182d32cfdb0ee889fbe
[ "Apache-2.0" ]
null
null
null
spec/apps.py
lightthgil/textPer
367e80061ee72899d08c8182d32cfdb0ee889fbe
[ "Apache-2.0" ]
null
null
null
spec/apps.py
lightthgil/textPer
367e80061ee72899d08c8182d32cfdb0ee889fbe
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.apps import AppConfig class SpecConfig(AppConfig): name = 'spec'
16.444444
39
0.722973
0759f7d5fcde62771a95cca2d01aa59dbe14532d
6,365
py
Python
doc/source/custom_directives.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
22
2018-05-08T05:52:34.000Z
2020-04-01T10:09:55.000Z
doc/source/custom_directives.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
51
2018-05-17T05:55:28.000Z
2020-03-18T06:49:49.000Z
doc/source/custom_directives.py
siddgoel/ray
7f3031f451de410b71a5fcb18e04452bfa7351d6
[ "Apache-2.0" ]
10
2018-04-27T10:50:59.000Z
2020-02-24T02:41:43.000Z
import urllib import mock import sys from preprocess_github_markdown import preprocess_github_markdown_file # Note: the scipy import has to stay here, it's used implicitly down the line import scipy.stats # noqa: F401 import scipy.linalg # noqa: F401 __all__ = [ "fix_xgb_lgbm_docs", "download_and_preprocess...
30.600962
87
0.653574
6d7fd0b1935d5f9406d24f3bb5202f62eb1373ee
9,562
py
Python
replacy/__init__.py
samhavens/replaCy
d72f08e43988a389529c1e50255e584fbd7af322
[ "MIT" ]
null
null
null
replacy/__init__.py
samhavens/replaCy
d72f08e43988a389529c1e50255e584fbd7af322
[ "MIT" ]
null
null
null
replacy/__init__.py
samhavens/replaCy
d72f08e43988a389529c1e50255e584fbd7af322
[ "MIT" ]
null
null
null
import copy from types import ModuleType from typing import Any, Callable, Dict, List, Optional from functional import seq from jsonschema import validate from spacy.matcher import Matcher from spacy.tokens import Span from replacy import default_match_hooks from replacy.db import get_forms_lookup, get_match_dict, ge...
38.248
103
0.587848
06e2dd5f348ce522039b9ba90e9a287c0e9cc465
1,026
py
Python
leetcode/python3/find-first-and-last-position-of-element-in-sorted-array.py
hgupta/competitive-programming-solutions
dc5260cb4f7e0b65856891284ce490c9df6f9a6f
[ "MIT" ]
null
null
null
leetcode/python3/find-first-and-last-position-of-element-in-sorted-array.py
hgupta/competitive-programming-solutions
dc5260cb4f7e0b65856891284ce490c9df6f9a6f
[ "MIT" ]
null
null
null
leetcode/python3/find-first-and-last-position-of-element-in-sorted-array.py
hgupta/competitive-programming-solutions
dc5260cb4f7e0b65856891284ce490c9df6f9a6f
[ "MIT" ]
null
null
null
# question url: https://leetcode.com/problems/find-first-and-last-position-of-element-in-sorted-array/ class Solution: def searchRange(self, nums: List[int], target: int) -> List[int]: def bisect(is_left): # variant of array bisection algorithm # where we keep on searching the valu...
32.0625
102
0.45614
8a6c29632a724a5eccd553581af2bfc6b41afd45
249
py
Python
bitmovin_api_sdk/models/encryption_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
null
null
null
bitmovin_api_sdk/models/encryption_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:13:43.000Z
2020-07-06T07:13:43.000Z
bitmovin_api_sdk/models/encryption_type.py
hofmannben/bitmovin-api-sdk-python
71aae5cd8a31aa0ad54ca07a6f546a624e8686a9
[ "MIT" ]
1
2020-07-06T07:07:26.000Z
2020-07-06T07:07:26.000Z
# coding: utf-8 from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model class EncryptionType(Enum): AES = "AES" DESEDE = "DESede" BLOWFISH = "Blowfish" RSA = "RSA"
19.153846
59
0.718876
2b8c08c98c1b36002f27bf794b44c480d30f1ac2
2,114
py
Python
agent.py
ardegra/agent
1659052e992c23d25d3197ee839473865fc83722
[ "MIT" ]
null
null
null
agent.py
ardegra/agent
1659052e992c23d25d3197ee839473865fc83722
[ "MIT" ]
1
2021-06-01T21:50:53.000Z
2021-06-01T21:50:53.000Z
agent.py
ardegra/agent
1659052e992c23d25d3197ee839473865fc83722
[ "MIT" ]
null
null
null
import time import threading import pymongo import docker from lib.config import Config from slugify import slugify def check_status(): client = docker.from_env() db_client = pymongo.MongoClient("mongodb://{}/ardegra".format(Config.DATABASE_ADDRESS)) try: db = db_client["ardegra"] while True: ...
30.2
89
0.667928
32c4ec114f066dc695b67aaef274e51173a81c09
1,266
py
Python
tmxmoney_scraper.py
evanburger/stocky
913cc770050790e860e71b155391085eb9a6e6bd
[ "MIT" ]
null
null
null
tmxmoney_scraper.py
evanburger/stocky
913cc770050790e860e71b155391085eb9a6e6bd
[ "MIT" ]
null
null
null
tmxmoney_scraper.py
evanburger/stocky
913cc770050790e860e71b155391085eb9a6e6bd
[ "MIT" ]
1
2020-04-15T00:52:40.000Z
2020-04-15T00:52:40.000Z
import os import time import selenium from selenium import webdriver from selenium.webdriver.chrome.options import Options DRIVER_PATH = os.environ["CHROMEDRIVER_LOCATION"] def access_site(symbol): """Return the Chrome driver open to the TMX quote for the given symbol.""" chrome_options = Options() c...
33.315789
107
0.708531
2e21b67cfee9a68cd11b864bd725abfba8903356
1,006
py
Python
Strings/problem-242.py
manju-dev/leetcode-workspace
91086d412c4982b9e0d37732023ac225b6cf3d7c
[ "MIT" ]
null
null
null
Strings/problem-242.py
manju-dev/leetcode-workspace
91086d412c4982b9e0d37732023ac225b6cf3d7c
[ "MIT" ]
null
null
null
Strings/problem-242.py
manju-dev/leetcode-workspace
91086d412c4982b9e0d37732023ac225b6cf3d7c
[ "MIT" ]
null
null
null
# 242. Valid Anagram import collections class Solution: def isAnagram1(self, s, t): if len(s) != len(t): return False sDict = {} tDict = {} for idx in range(len(s)): sDict[s[idx]] = sDict.get(s[idx], 0) + 1 tDict[t[idx]] = tDict.get(t[idx], 0) + 1 ...
28.742857
64
0.529821
6c410236d17bd018d2d5de68284d9b7b338b02d2
3,744
py
Python
mergify_engine/actions/rebase.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
mergify_engine/actions/rebase.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
mergify_engine/actions/rebase.py
oharboe/mergify-engine
70785b1b1d9b2360f7a41c6d7f560e39d9ec4905
[ "Apache-2.0" ]
null
null
null
# -*- encoding: utf-8 -*- # # Copyright © 2019–2021 Mergify SAS # # 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...
36.349515
173
0.624733
d3fa3526b3af6cdf18f2f6e74ece8468753ef61d
2,052
py
Python
profiles_api/models.py
FrBrenno/profiles-rest-api
f0af2e8a9034958b7f9eb3ce9f8459774d42dbbd
[ "MIT" ]
null
null
null
profiles_api/models.py
FrBrenno/profiles-rest-api
f0af2e8a9034958b7f9eb3ce9f8459774d42dbbd
[ "MIT" ]
null
null
null
profiles_api/models.py
FrBrenno/profiles-rest-api
f0af2e8a9034958b7f9eb3ce9f8459774d42dbbd
[ "MIT" ]
null
null
null
from django.db import models from django.contrib.auth.models import AbstractBaseUser from django.contrib.auth.models import PermissionsMixin from django.contrib.auth.models import BaseUserManager from django.conf import settings class UserProfileManager(BaseUserManager): """Manager for user profiles""" def cr...
29.73913
64
0.679825
d3e0a3b7c94cb829941079323520397982725aa0
3,326
py
Python
backend/settings.py
Kama-lab/Vizdat-v2
bc251e28ddb3d43030db0898b486b86ad9cc2f4b
[ "Apache-2.0" ]
null
null
null
backend/settings.py
Kama-lab/Vizdat-v2
bc251e28ddb3d43030db0898b486b86ad9cc2f4b
[ "Apache-2.0" ]
null
null
null
backend/settings.py
Kama-lab/Vizdat-v2
bc251e28ddb3d43030db0898b486b86ad9cc2f4b
[ "Apache-2.0" ]
null
null
null
""" Django settings for backend project. Generated by 'django-admin startproject' using Django 3.2.9. For more information on this file, see https://docs.djangoproject.com/en/3.2/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.2/ref/settings/ """ from pathlib...
25.782946
91
0.700541
f871c5a5b0f66f7ee18434e8d61167f9e53cc9e2
9,482
py
Python
orchestrator/orchestrator.py
peaclab/MicroFaaS
72d373ba2f23a520c62c460ce2396d988b5065b0
[ "MIT" ]
null
null
null
orchestrator/orchestrator.py
peaclab/MicroFaaS
72d373ba2f23a520c62c460ce2396d988b5065b0
[ "MIT" ]
null
null
null
orchestrator/orchestrator.py
peaclab/MicroFaaS
72d373ba2f23a520c62c460ce2396d988b5065b0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import argparse import json import logging as log import queue import random import socket import socketserver import string import threading import time from datetime import datetime, timedelta from json.decoder import JSONDecodeError from numpy import random as nprand import settings as s fro...
39.840336
158
0.640793
20fce37a4067be6ed7c55cf55bdf7b238aa54e06
7,444
py
Python
research/object_detection/model_lib_v2_test.py
pdharma01/models
063091d2a9fb2071f15b0921bed888d86833c4f1
[ "Apache-2.0" ]
153
2020-10-25T13:58:04.000Z
2022-03-07T06:01:54.000Z
object_detection_api/model_lib_v2_test.py
HuaxingXu/marine_debris_ML
9b7317c0ad881849ce5688aeb1eb368dfb85d39f
[ "Apache-2.0" ]
11
2020-07-13T08:29:00.000Z
2022-03-24T07:21:09.000Z
object_detection_api/model_lib_v2_test.py
HuaxingXu/marine_debris_ML
9b7317c0ad881849ce5688aeb1eb368dfb85d39f
[ "Apache-2.0" ]
23
2020-10-25T14:44:47.000Z
2021-03-31T02:12:13.000Z
# Copyright 2017 The TensorFlow 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 applica...
33.836364
85
0.71561
d4810b16f6f6fb54258b010d2cfd8fdd78a135df
3,187
py
Python
social_distancing_detector.py
AdityaStark7/Social_Distancing_detector
0cdbc358a518a33c37d57d1fdef6f7d9e86e7292
[ "MIT" ]
null
null
null
social_distancing_detector.py
AdityaStark7/Social_Distancing_detector
0cdbc358a518a33c37d57d1fdef6f7d9e86e7292
[ "MIT" ]
null
null
null
social_distancing_detector.py
AdityaStark7/Social_Distancing_detector
0cdbc358a518a33c37d57d1fdef6f7d9e86e7292
[ "MIT" ]
null
null
null
# imports from configs import config from configs.detection import detect_people from scipy.spatial import distance as dist import numpy as np import argparse import imutils import cv2 import os ap = argparse.ArgumentParser() ap.add_argument("-i", "--input", type=str, default="", help="path to (optional)...
27.008475
112
0.576718
835b163f6989cddc2c880963226f4e4ff057dc1a
1,278
py
Python
ocean/exp-{{expNumber}}-{{expName}}/scripts/train.py
surfstudio/ocean
99c036c7cbcd4f0fe496bb72acdc54db8adb637a
[ "MIT" ]
17
2019-07-09T12:46:17.000Z
2021-05-24T08:24:27.000Z
ocean/exp-{{expNumber}}-{{expName}}/scripts/train.py
EnlightenedCSF/Ocean
99c036c7cbcd4f0fe496bb72acdc54db8adb637a
[ "MIT" ]
2
2019-07-11T09:06:49.000Z
2019-07-11T09:33:38.000Z
ocean/exp-{{expNumber}}-{{expName}}/scripts/train.py
EnlightenedCSF/Ocean
99c036c7cbcd4f0fe496bb72acdc54db8adb637a
[ "MIT" ]
4
2019-07-25T07:43:56.000Z
2020-02-18T19:32:57.000Z
# import your model from somewhere from sklearn.dummy import DummyClassifier # import some metrics from sklearn.metrics import accuracy_score from {{projectNameShort}}.alarmbot import notify import janus import mlflow import pickle import yaml def train(config_path: str, data_path: str, save_path: str, usernames: ...
22.821429
83
0.610329
8224903651ae12f9b4de280a396e382f90634ff4
3,948
py
Python
demand/visualization/plot_arima_by_country.py
pypsa-meets-africa/demand-competition-country
9c7e02288f64620baf50c873fb6aea1a804b3085
[ "MIT" ]
4
2022-01-21T13:17:16.000Z
2022-01-27T15:13:38.000Z
demand/visualization/plot_arima_by_country.py
pypsa-meets-africa/demand-competition-country
9c7e02288f64620baf50c873fb6aea1a804b3085
[ "MIT" ]
1
2022-01-23T04:46:03.000Z
2022-01-23T10:40:47.000Z
demand/visualization/plot_arima_by_country.py
pypsa-meets-africa/demand-competition-country
9c7e02288f64620baf50c873fb6aea1a804b3085
[ "MIT" ]
1
2022-01-21T21:59:50.000Z
2022-01-21T21:59:50.000Z
import sys, os, pickle import numpy as np import matplotlib.pyplot as plt import scipy.stats as st plt.style.use('ggplot') project_root = os.getcwd() sys.path.append(project_root) def plot_arima(predicted_mean, se_mean, train_ts_temp, test_ts_temp, train_temp, test_temp, countries_dir, continent, country, per_capit...
42.451613
148
0.644377
a23a14e66e7e939a634aac6b2626ead3603e7687
4,812
py
Python
tests/test_swf/test_exceptions.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-03-06T22:01:41.000Z
2021-03-06T22:01:41.000Z
tests/test_swf/test_exceptions.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2021-12-13T20:51:54.000Z
2021-12-13T20:51:54.000Z
tests/test_swf/test_exceptions.py
gvlproject/moto
b1c51faaf5dbf79a76eca29724b7d22b87e27502
[ "Apache-2.0" ]
1
2017-10-19T00:53:28.000Z
2017-10-19T00:53:28.000Z
from __future__ import unicode_literals import json from moto.swf.exceptions import ( SWFClientError, SWFUnknownResourceFault, SWFDomainAlreadyExistsFault, SWFDomainDeprecatedFault, SWFSerializationException, SWFTypeAlreadyExistsFault, SWFTypeDeprecatedFault, SWFWorkflowExecutionAlread...
30.455696
123
0.693267
f4ee0b688aa80e20119fd9d7a92c24e43302a2b1
8,836
py
Python
chainer_/chainercv2/models/zfnet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
chainer_/chainercv2/models/zfnet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
chainer_/chainercv2/models/zfnet.py
raijinspecial/imgclsmob
c5d3ab207a6304f1343e4394f0467bdc7403a72a
[ "MIT" ]
null
null
null
""" ZFNet, implemented in Chainer. Original paper: 'Visualizing and Understanding Convolutional Networks,' https://arxiv.org/abs/1311.2901. """ __all__ = ['ZFNet', 'zfnet'] import os import chainer.functions as F import chainer.links as L from chainer import Chain from functools import partial from chainer.se...
28.503226
115
0.534971
2885511b6fa14231830a6cb614b3e98cfa555227
58
py
Python
src/nf/nwdaf.py
gruyaume/5g-core
d1c7fc6289a85f754e2588144b4133050edaac94
[ "MIT" ]
null
null
null
src/nf/nwdaf.py
gruyaume/5g-core
d1c7fc6289a85f754e2588144b4133050edaac94
[ "MIT" ]
null
null
null
src/nf/nwdaf.py
gruyaume/5g-core
d1c7fc6289a85f754e2588144b4133050edaac94
[ "MIT" ]
null
null
null
class NWDAF(object): def __init__(self): pass
14.5
23
0.603448
a6d84e01820c1f1d1a563d1c7ad15a49b37805dd
918
py
Python
vendor/pywork4core/manage.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
1
2015-09-16T23:11:55.000Z
2015-09-16T23:11:55.000Z
vendor/pywork4core/manage.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
34
2019-02-03T06:02:55.000Z
2020-03-27T13:14:50.000Z
vendor/pywork4core/manage.py
olivierlefloch/django-short-urls
7d6c7f37e2678060d1b36cbb00cbeebb2278cbf2
[ "MIT" ]
null
null
null
#!/bin/bash # coding=utf-8 "true" '''\' This shebang is here to ensure that we use the venv python in all cases. # So we use bash as the base script, then figure out which python to use, and run # this script again. We use the 'true' command because it ignores its argument. exec "$(dirname $0)/venv/bin/python" "$0" "...
32.785714
108
0.746187
72a10f78eac5aca5b33dfde5d13eba679f1e8efe
1,197
py
Python
zadanie2.py
Nika1411/Laba21
2bbce3cc06b4348145aafe37b6dedc25ede56db7
[ "MIT" ]
null
null
null
zadanie2.py
Nika1411/Laba21
2bbce3cc06b4348145aafe37b6dedc25ede56db7
[ "MIT" ]
null
null
null
zadanie2.py
Nika1411/Laba21
2bbce3cc06b4348145aafe37b6dedc25ede56db7
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- config: utf-8 -*- from tkinter import * from tkinter import filedialog as fd from tkinter import messagebox as mb def insert_text(): file_name = fd.askopenfilename() try: f = open(file_name) except(FileNotFoundError, TypeError): mb.showinfo("Открытие файла", ...
22.584906
55
0.614035
50e6c0fc613ebfdda5b67346411826927464177d
12,157
py
Python
pydantic/validators.py
dmontagu/pydantic
fe72ba13f469377057112d2f301f52cd3b206467
[ "MIT" ]
1
2020-11-01T00:04:04.000Z
2020-11-01T00:04:04.000Z
pydantic/validators.py
dmontagu/pydantic
fe72ba13f469377057112d2f301f52cd3b206467
[ "MIT" ]
null
null
null
pydantic/validators.py
dmontagu/pydantic
fe72ba13f469377057112d2f301f52cd3b206467
[ "MIT" ]
1
2021-03-02T02:49:05.000Z
2021-03-02T02:49:05.000Z
import re from collections import OrderedDict from datetime import date, datetime, time, timedelta from decimal import Decimal, DecimalException from enum import Enum, IntEnum from ipaddress import IPv4Address, IPv4Interface, IPv4Network, IPv6Address, IPv6Interface, IPv6Network from pathlib import Path from typing impo...
29.65122
119
0.689397
e371290d335aa658bb317e2dad4f34884dccbf03
3,903
py
Python
test/python/test_sparse.py
LinjianMa/ctf
06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e
[ "BSD-2-Clause" ]
108
2018-01-01T21:29:15.000Z
2022-02-24T17:51:15.000Z
test/python/test_sparse.py
LinjianMa/ctf
06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e
[ "BSD-2-Clause" ]
91
2017-12-27T04:28:09.000Z
2022-03-10T09:14:43.000Z
test/python/test_sparse.py
LinjianMa/ctf
06a50b6ea4be2eeb7f3d6c43f05a0befae94f08e
[ "BSD-2-Clause" ]
45
2017-12-26T21:15:21.000Z
2022-02-10T11:16:40.000Z
#!/usr/bin/env python import unittest import numpy import ctf import os import sys def allclose(a, b): return abs(ctf.to_nparray(a) - ctf.to_nparray(b)).sum() < 1e-14 class KnowValues(unittest.TestCase): def test_einsum_hadamard(self): n = 11 a1 = ctf.tensor((n,n,n), sp=1) b1 = ctf.t...
34.848214
153
0.557007
7cf3d28297427ab293e5d6c9f3a3e61a5440d11f
2,287
py
Python
import_data/mysql-connector-python-2.1.6/tests/issues/test_bug21449996.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
null
null
null
import_data/mysql-connector-python-2.1.6/tests/issues/test_bug21449996.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
5
2017-09-25T17:44:54.000Z
2021-12-13T19:46:44.000Z
import_data/mysql-connector-python-2.1.6/tests/issues/test_bug21449996.py
bopopescu/nutrition
d690fa0f51cf2f2a808c2656a86a7b015e98e73e
[ "MIT" ]
1
2020-07-23T03:15:57.000Z
2020-07-23T03:15:57.000Z
# -*- coding: utf-8 -*- # MySQL Connector/Python - MySQL driver written in Python. # Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved. # MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There ar...
38.762712
76
0.700918
493f993ff654b4cec7f6be3662a2064dc3c3f79c
13,534
py
Python
tests/model_setup/test_init.py
Ivan-Feofanov/tortoise-orm
b279485ca602540227621aa8d402b948e1c2a5eb
[ "Apache-2.0" ]
null
null
null
tests/model_setup/test_init.py
Ivan-Feofanov/tortoise-orm
b279485ca602540227621aa8d402b948e1c2a5eb
[ "Apache-2.0" ]
null
null
null
tests/model_setup/test_init.py
Ivan-Feofanov/tortoise-orm
b279485ca602540227621aa8d402b948e1c2a5eb
[ "Apache-2.0" ]
null
null
null
import os import warnings from tortoise import Tortoise from tortoise.contrib import test from tortoise.exceptions import ConfigurationError class TestInitErrors(test.SimpleTestCase): async def setUp(self): try: Tortoise.apps = {} Tortoise._connections = {} Tortoise._i...
37.181319
100
0.439486
e125dfe75b1f12400de2201b8ffc5583868a4415
150
py
Python
premo/__init__.py
cieplak/premo
805714d8797a39e6dd8fc85203843d2fb67054a4
[ "MIT" ]
null
null
null
premo/__init__.py
cieplak/premo
805714d8797a39e6dd8fc85203843d2fb67054a4
[ "MIT" ]
null
null
null
premo/__init__.py
cieplak/premo
805714d8797a39e6dd8fc85203843d2fb67054a4
[ "MIT" ]
null
null
null
__version__ = '0.0.1' from . import ( apps, db, domain, mimes, msg, resources, settings, ) from premo.enum import Enum
10
27
0.56
ec4a8417ab403e398e0577d2d9db8f2e0bc653cf
851
py
Python
game/pkchess/flags/game.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
5
2020-08-26T20:12:00.000Z
2020-12-11T16:39:22.000Z
game/pkchess/flags/game.py
RaenonX/Jelly-Bot
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
234
2019-12-14T03:45:19.000Z
2020-08-26T18:55:19.000Z
game/pkchess/flags/game.py
RaenonX/Jelly-Bot-API
c7da1e91783dce3a2b71b955b3a22b68db9056cf
[ "MIT" ]
2
2019-10-23T15:21:15.000Z
2020-05-22T09:35:55.000Z
from extutils.flags import FlagCodeEnum __all__ = ("GameCreationResult", "GameMapSetResult", "GameReadyResult", "GameStartResult",) class GameCreationResult(FlagCodeEnum): """Result of a pending game creation.""" O_CREATED = -2 O_JOINED = -1 X_ALREADY_JOINED = 101 X_CHARACTER_NOT_EXIST = 102 c...
22.394737
91
0.702703
1107d2decf16b876c9e8603b3d399e21661ddc68
5,318
py
Python
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/kvasir_shard_descriptor.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
null
null
null
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/kvasir_shard_descriptor.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
null
null
null
openfl-tutorials/interactive_api/PyTorch_Kvasir_UNet/envoy/kvasir_shard_descriptor.py
saransh09/openfl-1
beba571929a56771f2fc1671154a3dbe60b38785
[ "Apache-2.0" ]
null
null
null
# Copyright (C) 2020-2021 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Kvasir shard descriptor.""" import os from pathlib import Path import numpy as np from PIL import Image from openfl.interface.interactive_api.shard_descriptor import ShardDataset from openfl.interface.interactive_api.shard_descripto...
33.031056
92
0.636894
dae832138f9b27f16ebddf2c3c76c0664187cc3a
4,263
py
Python
lib/python3.6/site-packages/PyQt5/uic/driver.py
yqh115/EE559_HW1
695ed51b32f7bccf3ea89fba03a90c630a4fa036
[ "MIT" ]
null
null
null
lib/python3.6/site-packages/PyQt5/uic/driver.py
yqh115/EE559_HW1
695ed51b32f7bccf3ea89fba03a90c630a4fa036
[ "MIT" ]
null
null
null
lib/python3.6/site-packages/PyQt5/uic/driver.py
yqh115/EE559_HW1
695ed51b32f7bccf3ea89fba03a90c630a4fa036
[ "MIT" ]
null
null
null
############################################################################# ## ## Copyright (c) 2015 Riverbank Computing Limited <info@riverbankcomputing.com> ## ## This file is part of PyQt5. ## ## This file may be used under the terms of the GNU General Public License ## version 3.0 as published by the Free Softw...
31.577778
80
0.602627
6f3b7e901fbf9aa9379f6443ffcd8a97be6c10f8
4,098
py
Python
da.py
Rogenes/simulationProject-interfaceGrowth
5caee9097665c7fb98dbe97263740f3f19b2f49a
[ "MIT" ]
null
null
null
da.py
Rogenes/simulationProject-interfaceGrowth
5caee9097665c7fb98dbe97263740f3f19b2f49a
[ "MIT" ]
null
null
null
da.py
Rogenes/simulationProject-interfaceGrowth
5caee9097665c7fb98dbe97263740f3f19b2f49a
[ "MIT" ]
null
null
null
# Rugosity => for each t, create a new point (x,y) = (t, rugosity(t)) import numpy as np from rugosity import getRugosity import matplotlib.pyplot as plt from scipy.optimize import curve_fit import time as clockTime import random from numba import jit, int32 import math import csv @jit(nopython=True) def runSamples(sa...
30.132353
98
0.636164
28656ba095477c7f4acd470e79b192f19187c428
16,173
py
Python
src/Python/cerenkov_ml_base.py
zheng-liu/cerenkov-python
df8fcee1ca6d28f95ac458d2b02ac346c006c5a9
[ "MIT" ]
null
null
null
src/Python/cerenkov_ml_base.py
zheng-liu/cerenkov-python
df8fcee1ca6d28f95ac458d2b02ac346c006c5a9
[ "MIT" ]
null
null
null
src/Python/cerenkov_ml_base.py
zheng-liu/cerenkov-python
df8fcee1ca6d28f95ac458d2b02ac346c006c5a9
[ "MIT" ]
null
null
null
# Define all the methods in cerenkov_ml_base.py # Call method list using "getattr" ## workplan_list: a list of "workplans". Each workplan is a list with elements: ## workplan.classifier_feature_matrix_name: the integer ID of the feature matrix to use for this workplan ## workplan.classifier_hyperparameter_list...
41.363171
173
0.628084
595ea8c6bc11658d00e47b8697e26b1ac3eefd2f
1,372
py
Python
gym_super_mario_bros/_cli.py
thaije/gym-super-mario-bros
5316881097bf6951bf3f9cfa9707a23d459fa2e6
[ "MIT" ]
null
null
null
gym_super_mario_bros/_cli.py
thaije/gym-super-mario-bros
5316881097bf6951bf3f9cfa9707a23d459fa2e6
[ "MIT" ]
null
null
null
gym_super_mario_bros/_cli.py
thaije/gym-super-mario-bros
5316881097bf6951bf3f9cfa9707a23d459fa2e6
[ "MIT" ]
null
null
null
"""Super Mario Bros for OpenAI Gym.""" import argparse from ._registration import make from ._play import play_human, play_random from .wrappers import wrap def create_argparser() -> argparse.ArgumentParser: """Create and return an argument parser for this command line interface.""" parser = argparse.Argument...
30.488889
79
0.664723
0b8de104dc9c24cd9ca6e1406f6606af57417897
649
py
Python
airbyte-integrations/connectors/source-stripe/setup.py
heap/airbyte
35e65f444f38b617a12e12d425da2115f08b5f14
[ "MIT" ]
22
2020-08-27T00:47:20.000Z
2020-09-17T15:39:39.000Z
airbyte-integrations/connectors/source-stripe/setup.py
heap/airbyte
35e65f444f38b617a12e12d425da2115f08b5f14
[ "MIT" ]
116
2020-08-27T01:11:27.000Z
2020-09-19T02:47:52.000Z
airbyte-integrations/connectors/source-stripe/setup.py
heap/airbyte
35e65f444f38b617a12e12d425da2115f08b5f14
[ "MIT" ]
1
2020-09-15T06:10:01.000Z
2020-09-15T06:10:01.000Z
# # Copyright (c) 2022 Airbyte, Inc., all rights reserved. # from setuptools import find_packages, setup MAIN_REQUIREMENTS = ["airbyte-cdk~=0.1", "stripe==2.56.0", "pendulum==1.2.0"] TEST_REQUIREMENTS = [ "pytest~=6.1", "requests-mock", "requests_mock~=1.8", ] setup( name="source_stripe", descr...
23.178571
87
0.650231
2a9fb4c26c81ac2012f7ff9c8a7b0527ee2de43a
1,601
py
Python
test/test_edit_contact.py
virtus80/python_training
0f521954f959aba654c45b49b04f9f27bd322cd9
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
virtus80/python_training
0f521954f959aba654c45b49b04f9f27bd322cd9
[ "Apache-2.0" ]
null
null
null
test/test_edit_contact.py
virtus80/python_training
0f521954f959aba654c45b49b04f9f27bd322cd9
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.contact import Contact import random def test_edit_some_contact(app, db, check_ui): if len(db.get_contact_list()) == 0: app.contact.create(Contact(firstname="Oleg(ed)", lastname="Wesovoy", nickname="olegles", company="Google", address="...
64.04
158
0.713304
ad3fdbd618059dad782db537d7565228a6c47ca0
10,631
py
Python
ros2bag/ros2bag/verb/record.py
BuildJet/rosbag2
afcf110b4d053f35ca1ddc789e41165c9bfd7664
[ "Apache-2.0" ]
1
2020-06-15T08:16:03.000Z
2020-06-15T08:16:03.000Z
ros2bag/ros2bag/verb/record.py
BuildJet/rosbag2
afcf110b4d053f35ca1ddc789e41165c9bfd7664
[ "Apache-2.0" ]
1
2020-08-04T07:48:42.000Z
2020-08-04T07:48:42.000Z
ros2bag/ros2bag/verb/record.py
RobotecAI/rosbag2
ef40da90d87ea3306b1e0806092e7bf28eb0ff71
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 Open Source Robotics Foundation, Inc. # # 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...
48.322727
97
0.644906
c68b2bf064d97314a22b474a684c47c939fdae82
19,308
py
Python
Lib/site-packages/pandas/tests/io/parser/c_parser_only.py
mukul-ch/apitest
10e48c823c836346ae209bde332bdb7844d4c842
[ "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
pandas/tests/io/parser/c_parser_only.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
pandas/tests/io/parser/c_parser_only.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
2
2020-12-06T22:39:08.000Z
2021-12-25T01:10:16.000Z
# -*- coding: utf-8 -*- """ Tests that apply specifically to the CParser. Unless specifically stated as a CParser-specific issue, the goal is to eventually move as many of these tests out of this module as soon as the Python parser can accept further arguments when parsing. """ import os import sys import tarfile im...
38.693387
79
0.540605
20b4206e65acb2ba957abf1e317aae6101d633ce
3,395
py
Python
kik_unofficial/datatypes/xmpp/sign_up.py
Viper702/alexis-texas
e2749fc0a668c8488716bbfb6ea978d3674cb1f2
[ "MIT" ]
null
null
null
kik_unofficial/datatypes/xmpp/sign_up.py
Viper702/alexis-texas
e2749fc0a668c8488716bbfb6ea978d3674cb1f2
[ "MIT" ]
null
null
null
kik_unofficial/datatypes/xmpp/sign_up.py
Viper702/alexis-texas
e2749fc0a668c8488716bbfb6ea978d3674cb1f2
[ "MIT" ]
null
null
null
from bs4 import BeautifulSoup from kik_unofficial.datatypes.xmpp.base_elements import XMPPElement, XMPPResponse from kik_unofficial.utilities.cryptographics import CryptographicUtils from kik_unofficial.device_configuration import device_id, android_id, kik_version_info captcha_element = '<challenge><response>{}</res...
38.579545
117
0.588513
3d66c0ffecc7aabdc2442e95b4060e7edb9d0377
3,335
py
Python
examples/rsa/schelling_false.py
sjfleming/pyro
c8dc40a75cc4ff1f43c6ff9178d91c08155d7973
[ "Apache-2.0" ]
2,827
2019-02-04T23:09:52.000Z
2022-03-31T10:50:29.000Z
examples/rsa/schelling_false.py
liyunlong10/pyro
eadca9c9ed9654573037acdf4f48b34ea40037fe
[ "Apache-2.0" ]
965
2019-02-05T09:33:27.000Z
2022-03-25T13:09:52.000Z
examples/rsa/schelling_false.py
liyunlong10/pyro
eadca9c9ed9654573037acdf4f48b34ea40037fe
[ "Apache-2.0" ]
488
2019-02-08T21:42:49.000Z
2022-03-31T12:33:21.000Z
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 """ Schelling coordination game with false belief: Two spies, Alice and Bob, claim to want to meet. Bob wants to meet Alice, but Alice actually wants to avoid Bob. They must choose between two locations without communicating by re...
31.462264
82
0.707346
a6766caa09c953ccad3ba3e37a153c5c3ec986b1
942
py
Python
a10/a10/asvr/rules/oldrules/arduinoa10rules.py
THS-on/AttestationEngine
6746d602215df43056b04515bd9b831f0bb0ddbb
[ "BSD-3-Clause-Clear" ]
7
2021-10-20T05:22:47.000Z
2022-01-31T14:46:14.000Z
a10/a10/asvr/rules/oldrules/arduinoa10rules.py
THS-on/AttestationEngine
6746d602215df43056b04515bd9b831f0bb0ddbb
[ "BSD-3-Clause-Clear" ]
15
2021-11-21T23:27:36.000Z
2022-03-25T11:35:07.000Z
a10/a10/asvr/rules/oldrules/arduinoa10rules.py
THS-on/AttestationEngine
6746d602215df43056b04515bd9b831f0bb0ddbb
[ "BSD-3-Clause-Clear" ]
5
2021-12-08T20:55:34.000Z
2022-03-29T11:41:33.000Z
# Copyright 2021 Nokia # Licensed under the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause import a10.utils.constants from a10.asvr import claims from a10.rules import baserule # Individual Rules class TestRule(baserule.BaseRule): def __init__(self, cid, ps): super().__init__(cid, ps) ...
26.166667
88
0.60828
be88b89d30c3a49821748a384f2f349821989989
2,811
py
Python
tests/pytests/unit/grains/test_metadata_gce.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
1
2022-03-12T00:01:53.000Z
2022-03-12T00:01:53.000Z
tests/pytests/unit/grains/test_metadata_gce.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
2
2022-03-02T16:11:35.000Z
2022-03-03T08:04:30.000Z
tests/pytests/unit/grains/test_metadata_gce.py
tomdoherty/salt
f87d5d7abbf9777773c4d91fdafecb8b1a728e76
[ "Apache-2.0" ]
null
null
null
""" Unit test for salt.grains.metadata_gce :codeauthor: :email" `Thomas Phipps <tphipps@vmware.com> """ import logging import pytest import salt.grains.metadata_gce as metadata import salt.utils.http as http from tests.support.mock import create_autospec, patch # from Exception import Exception, ValueErro...
28.11
87
0.532906
095740983052933411231ec284f24c64887e64ba
24,550
py
Python
generated/niscope/niscope/_converters.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
generated/niscope/niscope/_converters.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
generated/niscope/niscope/_converters.py
pmitra30/nimi-python
9c0bae1ee728e92df3e9c5b2050581707890a838
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # This file was generated import niscope._visatype as _visatype import niscope.errors as errors import array import collections import hightime import numbers import pytest from functools import singledispatch @singledispatch def _convert_repeated_capabilities(arg, prefix): # noqa: F811 ...
44.717668
289
0.709939
9d63699a79c0a16137cef2036a02fd54a8d30f80
1,654
py
Python
integreat_cms/cms/views/media/media_list_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
21
2018-10-26T20:10:45.000Z
2020-10-22T09:41:46.000Z
integreat_cms/cms/views/media/media_list_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
392
2018-10-25T08:34:07.000Z
2020-11-19T08:20:30.000Z
integreat_cms/cms/views/media/media_list_view.py
Integreat/cms-v2
c79a54fd5abb792696420aa6427a5e5a356fa79c
[ "Apache-2.0" ]
23
2019-03-06T17:11:35.000Z
2020-10-16T04:36:41.000Z
""" The module is working as the view component for the dynamic data loading for the media library. Therefore, it's managing the region permissions and connects the different data structures. Especially, the root file, the use of the file defined in the Document and the different meta data. """ from django.utils.decora...
42.410256
101
0.772068
5581428d6fa170654e391c65d4f012ede9824f96
1,394
py
Python
jsl/jsengine/parser/_constants_kind.py
thodges314/angular2
8600ef4193e5f6d84f391bfd29008653c7ffab38
[ "MIT" ]
null
null
null
jsl/jsengine/parser/_constants_kind.py
thodges314/angular2
8600ef4193e5f6d84f391bfd29008653c7ffab38
[ "MIT" ]
null
null
null
jsl/jsengine/parser/_constants_kind.py
thodges314/angular2
8600ef4193e5f6d84f391bfd29008653c7ffab38
[ "MIT" ]
null
null
null
# vim: sw=4 ts=4 et _KINDS = [ 'AND', 'BITAND', 'BITOR', 'BITXOR', 'CATCH', 'COMMENT', 'DELETE', 'DIVOP', 'DOT', 'EQ', 'FINALLY', 'FUNCTION', 'HOOK', 'IF', 'IN', 'INC', 'INSTANCEOF', 'LB', 'LC', 'LEXICALSCOPE', '...
15.840909
53
0.428264
39444a734820a399aa15cded1afa006ff56580c1
2,442
py
Python
Missions_to_Mars/scrape_mars.py
carlosmendozaj/web-scraping-challenge
3388829ceb4e530911c996a180a3f398a35a6e73
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
carlosmendozaj/web-scraping-challenge
3388829ceb4e530911c996a180a3f398a35a6e73
[ "ADSL" ]
null
null
null
Missions_to_Mars/scrape_mars.py
carlosmendozaj/web-scraping-challenge
3388829ceb4e530911c996a180a3f398a35a6e73
[ "ADSL" ]
null
null
null
#Dependencies import pandas as pd from bs4 import BeautifulSoup import requests import pymongo from splinter import Browser from webdriver_manager.chrome import ChromeDriverManager import json def scrape_mars(): scrape_list = {} #Splinter Setup executable_path = {'executable_path': ChromeDriverManager(...
26.835165
76
0.656839
f08f600f73b5c1e94e7f3cd66a2a758ae63de0b8
419
py
Python
migrations/0029_auto_20170829_0147.py
audaciouscode/PassiveDataKit-Django
ed1e00c436801b9f49a3e0e6657c2adb6b2ba3d4
[ "Apache-2.0" ]
5
2016-01-26T19:19:44.000Z
2018-12-12T18:04:04.000Z
migrations/0029_auto_20170829_0147.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
6
2020-02-17T20:16:28.000Z
2021-12-13T21:51:20.000Z
migrations/0029_auto_20170829_0147.py
audacious-software/PassiveDataKit-Django
da91a375c075ceec938f2c9bb6b011f9f019b024
[ "Apache-2.0" ]
4
2020-01-29T15:36:58.000Z
2021-06-01T18:55:26.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-08-29 01:47 # pylint: skip-file from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('passive_data_kit', '0028_auto_20170828_1939'), ] operations = [ migrations.RenameModel( o...
19.045455
56
0.627685
6aefdfab6310a64f5f519302d1c7c964b7300688
2,884
py
Python
simple_dqn/dqn_evaluate.py
Yuichi-Nakababayashi/esn-impl
8b7ea35af60d7b92ac72549614117073df5fb698
[ "Apache-2.0" ]
null
null
null
simple_dqn/dqn_evaluate.py
Yuichi-Nakababayashi/esn-impl
8b7ea35af60d7b92ac72549614117073df5fb698
[ "Apache-2.0" ]
null
null
null
simple_dqn/dqn_evaluate.py
Yuichi-Nakababayashi/esn-impl
8b7ea35af60d7b92ac72549614117073df5fb698
[ "Apache-2.0" ]
null
null
null
import gym import matplotlib import matplotlib.pyplot as plt import numpy as np import torch import torchvision.transforms as T from matplotlib import set_loglevel from PIL import Image from simple_dqn import DQN, SAVE_DIR, device, h_dims, n_actions, o_space, select_action def get_screen(env) -> None: def get_car...
34.746988
87
0.65846
81b0e3d92846474ceea979c360366a6248d8d7b2
10,134
py
Python
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_28.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
3
2021-04-23T23:29:26.000Z
2022-03-23T10:00:30.000Z
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_28.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
null
null
null
benchmarks/f3_wrong_hints_permutations/scaling_ltl_infinite_state/17-extending_bound_28.py
EnricoMagnago/F3
c863215c318d7d5f258eb9be38c6962cf6863b52
[ "MIT" ]
1
2021-11-17T22:02:56.000Z
2021-11-17T22:02:56.000Z
from typing import Tuple, FrozenSet from collections import Iterable from mathsat import msat_term, msat_env from mathsat import msat_make_constant, msat_declare_function from mathsat import msat_get_integer_type, msat_get_rational_type, msat_get_bool_type from mathsat import msat_make_and, msat_make_not, msat_mak...
35.433566
89
0.625222
04619af8066e60d134161971523601eaa75a1e97
1,874
py
Python
tfx/components/trainer/rewriting/rewriter_factory_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
1,813
2019-02-04T17:17:30.000Z
2022-03-29T13:39:30.000Z
tfx/components/trainer/rewriting/rewriter_factory_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
2,710
2019-02-14T00:41:00.000Z
2022-03-31T07:23:00.000Z
tfx/components/trainer/rewriting/rewriter_factory_test.py
avelez93/tfx
75fbb6a7d50e99138609be3ca4c3a204a13a2195
[ "Apache-2.0" ]
731
2019-02-04T17:59:18.000Z
2022-03-31T06:45:51.000Z
# Copyright 2020 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...
35.358491
78
0.762006
79a1df3d282563da1e1751edcf4f307e4b4ca364
8,794
py
Python
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
1
2022-02-15T23:43:22.000Z
2022-02-15T23:43:22.000Z
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
null
null
null
notebooks/experiments.py
yashasvi-ranawat/viabel
99245b7f3db8ea9dc55d6130bd5672e1adc62b63
[ "MIT" ]
3
2020-03-21T12:45:22.000Z
2020-10-06T18:30:47.000Z
import numpy as np import matplotlib.pyplot as plt import seaborn as sns all from viabel import all_bounds from viabel.vb import black_box_klvi, black_box_chivi, adagrad_optimize from utils import Timer from psis import psislw ## Display bounds information ## def print_bounds(results): print('Bounds on...') ...
41.677725
90
0.61053
4994d256995f742bfda7800aafa980b2906eb110
1,399
py
Python
modules/generic/data.py
jotslo/uol-tic-tac-toe
ad77c175f2636a4882b5a7a83ecc32109a06f486
[ "MIT" ]
null
null
null
modules/generic/data.py
jotslo/uol-tic-tac-toe
ad77c175f2636a4882b5a7a83ecc32109a06f486
[ "MIT" ]
null
null
null
modules/generic/data.py
jotslo/uol-tic-tac-toe
ad77c175f2636a4882b5a7a83ecc32109a06f486
[ "MIT" ]
null
null
null
# this file is used to hold information that seems too extraneous # to be displayed in the main code file, to ensure the code looks clean # gamemode descriptions s = "Standard noughts and crosses, played against the computer." m = "Standard noughts and crosses, played locally with a friend." fs = """Play eithe...
29.765957
72
0.624732
e386f20628af63e9200a72344c05cd3950bdd9bb
13,639
py
Python
demisto_sdk/commands/update_release_notes/update_rn_manager.py
Kerol-System/demisto-sdk
9cb208a73b9820455ca3ca3fe4b4ea08c502f271
[ "MIT" ]
null
null
null
demisto_sdk/commands/update_release_notes/update_rn_manager.py
Kerol-System/demisto-sdk
9cb208a73b9820455ca3ca3fe4b4ea08c502f271
[ "MIT" ]
null
null
null
demisto_sdk/commands/update_release_notes/update_rn_manager.py
Kerol-System/demisto-sdk
9cb208a73b9820455ca3ca3fe4b4ea08c502f271
[ "MIT" ]
null
null
null
import os from typing import Optional, Tuple import git from demisto_sdk.commands.common.constants import ( API_MODULES_PACK, SKIP_RELEASE_NOTES_FOR_TYPES) from demisto_sdk.commands.common.tools import (LOG_COLORS, filter_files_by_type, ...
54.7751
117
0.643302
43405e1d173b59593443b591cf2d1c706070093f
1,562
py
Python
rpivideo/models.py
MajorMJR/rpivideo
58c98a7efc99b1265a0d93d48175404ed1436a58
[ "MIT" ]
2
2016-03-28T05:34:28.000Z
2016-07-09T16:51:06.000Z
rpivideo/models.py
MajorMJR/rpivideo
58c98a7efc99b1265a0d93d48175404ed1436a58
[ "MIT" ]
null
null
null
rpivideo/models.py
MajorMJR/rpivideo
58c98a7efc99b1265a0d93d48175404ed1436a58
[ "MIT" ]
1
2019-08-08T09:55:29.000Z
2019-08-08T09:55:29.000Z
from flask.ext.sqlalchemy import SQLAlchemy from flask.ext.login import UserMixin, AnonymousUserMixin from werkzeug.security import generate_password_hash, check_password_hash db = SQLAlchemy() class User(db.Model, UserMixin): id = db.Column(db.Integer(), primary_key=True) username = db.Column(db.String()) ...
27.403509
73
0.65557
780c45031544c2660f5a6449cb91e2711a9f5dd8
2,727
py
Python
torecsys/inputs/base/pretrained_image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
92
2019-08-15T11:03:50.000Z
2022-03-12T01:21:05.000Z
torecsys/inputs/base/pretrained_image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
3
2020-03-11T08:57:50.000Z
2021-01-06T01:39:47.000Z
torecsys/inputs/base/pretrained_image_inp.py
p768lwy3/torecsys
2251366268b4fbe6f8c3ab1628fa72a0db043dcd
[ "MIT" ]
16
2019-10-12T11:28:53.000Z
2022-03-28T14:04:12.000Z
from typing import Optional import torch import torch.nn as nn import torchvision from torecsys.inputs.base import BaseInput class PretrainedImageInput(BaseInput): """ Base Input class for image, which embed by famous pretrained model in Computer Vision. """ def __init__(self, embe...
34.0875
101
0.582325
5c94b51acddf6c0d8b988d62bcc1bbea933b4d50
5,576
py
Python
src/m9_using_objects.py
tuttlebp/03-AccumulatorsAndFunctionsWithParameters
02740423f312ec5ceed54377d2b82af5cf236e43
[ "MIT" ]
null
null
null
src/m9_using_objects.py
tuttlebp/03-AccumulatorsAndFunctionsWithParameters
02740423f312ec5ceed54377d2b82af5cf236e43
[ "MIT" ]
null
null
null
src/m9_using_objects.py
tuttlebp/03-AccumulatorsAndFunctionsWithParameters
02740423f312ec5ceed54377d2b82af5cf236e43
[ "MIT" ]
null
null
null
""" This module lets you practice ** using objects **, including: -- CONSTRUCTING objects, -- applying METHODS to them, and -- accessing their DATA via INSTANCE VARIABLES Authors: David Mutchler, Vibha Alangar, Matt Boutell, Dave Fisher, Mark Hays, Aaron Wilkin, their colleagues, and Brett Tuttle. """ ...
34
79
0.566894
95f5ecef7eb469f1c27c81398c66300a3f55c6e6
19,586
py
Python
Docker-Compose2UML_nonokawa2019/docker-compose2uml/src/main/resources/Lib/site-packages/paramiko/file.py
kisolab/astah_plugins_released
e1ed674e998f953ab9becefc9bd9c474b8c569b7
[ "Apache-2.0" ]
null
null
null
Docker-Compose2UML_nonokawa2019/docker-compose2uml/src/main/resources/Lib/site-packages/paramiko/file.py
kisolab/astah_plugins_released
e1ed674e998f953ab9becefc9bd9c474b8c569b7
[ "Apache-2.0" ]
null
null
null
Docker-Compose2UML_nonokawa2019/docker-compose2uml/src/main/resources/Lib/site-packages/paramiko/file.py
kisolab/astah_plugins_released
e1ed674e998f953ab9becefc9bd9c474b8c569b7
[ "Apache-2.0" ]
4
2021-02-11T03:51:39.000Z
2021-02-12T05:10:43.000Z
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com> # # This file is part of paramiko. # # Paramiko is free software; you can redistribute it and/or modify it under the # terms of the GNU Lesser General Public License as published by the Free # Software Foundation; either version 2.1 of the License, or (a...
35.871795
81
0.564383
9f3e9e0dc56db891ced2fdc9ed1e66159ee057fe
176
py
Python
config.py
CxrlosKenobi/udecpy
43fbd15d5301b91f4b78bf3ad772a2642b94bd53
[ "MIT" ]
1
2021-06-08T20:33:36.000Z
2021-06-08T20:33:36.000Z
config.py
CxrlosKenobi/udecpy
43fbd15d5301b91f4b78bf3ad772a2642b94bd53
[ "MIT" ]
null
null
null
config.py
CxrlosKenobi/udecpy
43fbd15d5301b91f4b78bf3ad772a2642b94bd53
[ "MIT" ]
null
null
null
import configparser from sqlalchemy import create_engine config = configparser.ConfigParser() config.read('config.txt') engine = create_engine(config.get('database', 'con'))
22
53
0.789773
18f3eb236473f0cce0539a7aff847fdbbaa9a85b
18,475
py
Python
ambari-server/target/classes/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
willwill1101/ambari
3bed8e0abd0b6f60f15ffd4fa0035b5a57cf81e1
[ "Apache-2.0", "MIT" ]
3
2016-12-01T15:55:11.000Z
2016-12-01T15:56:38.000Z
ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
hcwangh/hanhuaAmbari
687045c90a1eededa246e38920b553e48e47298a
[ "Apache-2.0", "MIT" ]
null
null
null
ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
hcwangh/hanhuaAmbari
687045c90a1eededa246e38920b553e48e47298a
[ "Apache-2.0", "MIT" ]
null
null
null
#!/usr/bin/env python """ 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");...
52.042254
185
0.790528
1f3397c6b0e9a7640c32e69d15a47ab998b7064f
254
py
Python
learn/aa/pkenarciz.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
1
2020-07-27T14:00:50.000Z
2020-07-27T14:00:50.000Z
learn/aa/pkenarciz.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
null
null
null
learn/aa/pkenarciz.py
mksy61/python
4465feaba38df4d0f96da5ae038c0a4c383f794b
[ "CC0-1.0" ]
null
null
null
def sagCiz(adet): for i in range(adet): print("/", end="") def solCiz(adet): for i in range(adet): print("\\", end="") def boslukCiz(adet): for i in range(adet): print(" ", end="") def satirAtla(): print()
15.875
27
0.503937
1895093b6dfca7a0e93da86142d3a442d62aa236
2,556
py
Python
res.py
luogan1234/prerequisite-prediction-co-training
28e3f241ada5afe75a73525375087be230735c2a
[ "MIT" ]
1
2021-06-15T09:30:00.000Z
2021-06-15T09:30:00.000Z
res.py
luogan1234/prerequisite-prediction-co-training
28e3f241ada5afe75a73525375087be230735c2a
[ "MIT" ]
null
null
null
res.py
luogan1234/prerequisite-prediction-co-training
28e3f241ada5afe75a73525375087be230735c2a
[ "MIT" ]
null
null
null
import numpy as np import json import numpy as np import argparse def get_info(score): max_f1 = np.max([obj['f1'] for obj in score]) min_f1 = np.min([obj['f1'] for obj in score]) mean_p = np.mean([obj['p'] for obj in score]) mean_r = np.mean([obj['r'] for obj in score]) mean_f1 = np.mean(...
62.341463
206
0.587246
34b7c9acd49e0647cefc8704756261e7590315f2
434
py
Python
2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/s05b_Logic_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/s05b_Logic_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
2021-10-Python-SEA-ENGRSL-Workshops/Workshop_1-Hello-Python/s05b_Logic_Activity.py
shawnduong/manimations
1d36d9d1e7dff90a1a8da1e687ef442f750e29c5
[ "MIT" ]
null
null
null
from manim import * class s05b_Logic_Activity(Scene): def construct(self): # Actors. title = Text("Logic") subtitle = Text("(Activity)").scale(0.75) # Positioning. title.shift(0.50*UP) subtitle.next_to(title, DOWN) # Animations. actors = [title, subtitle] for actor in actors: self.play...
16.074074
50
0.652074
1b40b130c75b1b53f15b275b8eaf5588ffe75f46
15,404
py
Python
topi/tests/python/test_topi_sparse.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
286
2020-06-23T06:40:44.000Z
2022-03-30T01:27:49.000Z
topi/tests/python/test_topi_sparse.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
10
2020-07-31T03:26:59.000Z
2021-12-27T15:00:54.000Z
topi/tests/python/test_topi_sparse.py
zhanghaohit/incubator-tvm
ee0af843f3c5a3429e888079afb5f30789bd9bee
[ "Zlib", "Unlicense", "Apache-2.0", "BSD-2-Clause", "MIT", "ECL-2.0" ]
30
2020-07-17T01:04:14.000Z
2021-12-27T14:05:19.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...
44.391931
144
0.648598
a6aa00e9509791926543c31432632e6c451d0314
563
py
Python
filter-dictionary/pronunciations-to-words.py
senarvi/senarvi-speech
ab15794b340c1dadfb0f52aaa78326aa4530e71b
[ "Apache-2.0" ]
6
2016-06-15T06:06:53.000Z
2018-10-29T17:19:05.000Z
filter-dictionary/pronunciations-to-words.py
gabrieletiboni/senarvi-speech
ab15794b340c1dadfb0f52aaa78326aa4530e71b
[ "Apache-2.0" ]
null
null
null
filter-dictionary/pronunciations-to-words.py
gabrieletiboni/senarvi-speech
ab15794b340c1dadfb0f52aaa78326aa4530e71b
[ "Apache-2.0" ]
4
2017-08-04T21:42:49.000Z
2020-12-09T18:15:33.000Z
#!/usr/bin/env python3 # # Reads a dictionary and makes different pronunciations unique words by # appending a colon and a running number to the word name. import argparse import sys from pronunciationdictionary import PronunciationDictionary from filetypes import BinaryFileType parser = argparse.ArgumentParser() par...
29.631579
89
0.817052
234a3077325251a37a6d45e4d41fb623b8b4bf4a
6,413
py
Python
web2py/applications/rip/models/db_custom.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
1
2019-10-02T13:25:03.000Z
2019-10-02T13:25:03.000Z
web2py/applications/rip/models/db_custom.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
null
null
null
web2py/applications/rip/models/db_custom.py
2spmohanty/vcenter-automation
1d10b765ef335087902b0194ed12a61e53807987
[ "Apache-2.0" ]
1
2021-11-05T09:51:02.000Z
2021-11-05T09:51:02.000Z
__author__ = 'smrutim' import os import shutil from ctypes import * import datetime from gluon.tools import * if False: from gluon import * request = current.request response = current.response session = current.session cache = current.cache T = current.T if not request.env.web2py...
55.284483
156
0.602526
00dac3cc5f7373e467fdadbb21d4d4f0a3b6c3ce
4,745
py
Python
audiomentations/core/transforms_interface.py
ankitshah009/audiomentations
a147b2b4442dd8e19ab9f18eda84efa53e2f55e2
[ "MIT" ]
930
2019-02-14T10:21:22.000Z
2022-03-31T03:49:48.000Z
audiomentations/core/transforms_interface.py
ankitshah009/audiomentations
a147b2b4442dd8e19ab9f18eda84efa53e2f55e2
[ "MIT" ]
169
2019-02-12T21:16:14.000Z
2022-03-18T07:53:43.000Z
audiomentations/core/transforms_interface.py
ankitshah009/audiomentations
a147b2b4442dd8e19ab9f18eda84efa53e2f55e2
[ "MIT" ]
122
2019-02-26T05:12:45.000Z
2022-03-24T08:45:51.000Z
import random import warnings import numpy as np from audiomentations.core.utils import ( is_waveform_multichannel, is_spectrogram_multichannel, ) class MultichannelAudioNotSupportedException(Exception): pass class MonoAudioNotSupportedException(Exception): pass class BaseTransform: supports...
36.221374
116
0.595996
686265bbd57682532719362058407879bec36b8a
14,139
py
Python
maestral/utils/notify.py
techman83/maestral-dropbox
9ed32e82af84f9e1e4c4908f408a66772fbe1f86
[ "MIT" ]
1
2021-02-06T11:26:01.000Z
2021-02-06T11:26:01.000Z
maestral/utils/notify.py
techman83/maestral-dropbox
9ed32e82af84f9e1e4c4908f408a66772fbe1f86
[ "MIT" ]
null
null
null
maestral/utils/notify.py
techman83/maestral-dropbox
9ed32e82af84f9e1e4c4908f408a66772fbe1f86
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ @author: Sam Schott (ss2151@cam.ac.uk) (c) Sam Schott; This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 2.0 UK: England & Wales License. This module handles desktop notifications for Maestral and supports multiple backends, depending on the platform. A sin...
34.317961
90
0.672325
0f58aed23d37a4a798e7b8abad69473865dfc852
237
py
Python
nicendredi/dessin/Cercle.py
Nicendredi/exercices-python
5dce04ae96b6610e5e8cd781dbdb6e8be8a2cad0
[ "MIT" ]
null
null
null
nicendredi/dessin/Cercle.py
Nicendredi/exercices-python
5dce04ae96b6610e5e8cd781dbdb6e8be8a2cad0
[ "MIT" ]
null
null
null
nicendredi/dessin/Cercle.py
Nicendredi/exercices-python
5dce04ae96b6610e5e8cd781dbdb6e8be8a2cad0
[ "MIT" ]
null
null
null
from nicendredi.dessin.Figure import Figure class Cercle(Figure): """docstring for Cercle.""" def __init__(self, nom): super(Cercle, self).__init__(nom) self.rayon = 10 self.x = 150 self.y = 150
21.545455
43
0.607595
74f21bae39ba94e55bd177b92f156545f3bf2c2e
24,379
py
Python
venv/Lib/site-packages/pandas/core/aggregation.py
Quyennguyenqt/Attendce_Face_Recognition
1e0e424518c78b01abe2ec227bb631b641635ddf
[ "MIT" ]
4
2020-09-02T10:25:32.000Z
2021-06-05T08:45:50.000Z
venv/Lib/site-packages/pandas/core/aggregation.py
Quyennguyenqt/Attendce_Face_Recognition
1e0e424518c78b01abe2ec227bb631b641635ddf
[ "MIT" ]
1
2021-08-25T04:54:15.000Z
2021-08-25T05:02:13.000Z
venv/Lib/site-packages/pandas/core/aggregation.py
Quyennguyenqt/Attendce_Face_Recognition
1e0e424518c78b01abe2ec227bb631b641635ddf
[ "MIT" ]
1
2021-04-27T23:40:09.000Z
2021-04-27T23:40:09.000Z
""" aggregation.py contains utility functions to handle multiple named and lambda kwarg aggregations in groupby and DataFrame/Series aggregation """ from collections import defaultdict from functools import partial from typing import ( TYPE_CHECKING, Any, Callable, DefaultDict, Dict, Iterable, ...
30.937817
88
0.604291
b1b8d8231f607e773536b10c39f712fc64ef6339
1,603
py
Python
python/src/logistic/LogisticCobweb.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/logistic/LogisticCobweb.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
python/src/logistic/LogisticCobweb.py
kakaba2009/MachineLearning
26b389f8ffb5f3af939dfc9ebfdf2c6b2fc2ae33
[ "Apache-2.0" ]
null
null
null
# LogisticCobweb.py: # Plot the Logistic Map's quadratic function # And show iterating from an initial condition # Import modules from numpy import * # Plotting from pylab import * # Define the Logistic map's function def LogisticMap(r,x): return r * x * (1.0 - x) # Setup x array # Note how we make sure x = 1.0 ...
26.278689
72
0.694323
29628730536db49fc51985a291153d9d0163598a
820
py
Python
src/compas_plotters/__init__.py
wenqian157/compas
e05fa2e5fe59fd3789441f42e3871a3f202c8110
[ "MIT" ]
null
null
null
src/compas_plotters/__init__.py
wenqian157/compas
e05fa2e5fe59fd3789441f42e3871a3f202c8110
[ "MIT" ]
null
null
null
src/compas_plotters/__init__.py
wenqian157/compas
e05fa2e5fe59fd3789441f42e3871a3f202c8110
[ "MIT" ]
null
null
null
""" ******************************************************************************** compas_plotters ******************************************************************************** .. currentmodule:: compas_plotters Classes ======= .. autosummary:: :toctree: generated/ :nosignatures: NetworkPlotter ...
20.5
80
0.580488
aeb085fe4bb0319a27c079785bd7264ce6dd9390
3,892
py
Python
evalml/pipelines/components/estimators/regressors/catboost_regressor.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
1
2021-07-28T14:20:35.000Z
2021-07-28T14:20:35.000Z
evalml/pipelines/components/estimators/regressors/catboost_regressor.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
evalml/pipelines/components/estimators/regressors/catboost_regressor.py
ObinnaObeleagu/evalml
3b5bf62b08a5a5bc6485ba5387a08c32e1857473
[ "BSD-3-Clause" ]
null
null
null
import copy import warnings from skopt.space import Integer, Real from evalml.model_family import ModelFamily from evalml.pipelines.components.estimators import Estimator from evalml.problem_types import ProblemTypes from evalml.utils import import_or_raise, infer_feature_types class CatBoostRegressor(Estimator): ...
36.716981
160
0.650051
d8553e093775ddde88bd2cec5c2e442daee40759
4,619
py
Python
src/TensorflowDocumentation/avida.py
heymadscientist/Tensorflow-practices
d763fd8681cb203539e0060425d7af3fb3416e03
[ "MIT" ]
null
null
null
src/TensorflowDocumentation/avida.py
heymadscientist/Tensorflow-practices
d763fd8681cb203539e0060425d7af3fb3416e03
[ "MIT" ]
null
null
null
src/TensorflowDocumentation/avida.py
heymadscientist/Tensorflow-practices
d763fd8681cb203539e0060425d7af3fb3416e03
[ "MIT" ]
null
null
null
import os import tensorflow as tf import cProfile tf.executing_eagerly() x = [[2.]] m = tf.matmul(x,x) #print("hello, {}".format(m)) # When you use tf.math you can cast python objects and numpy matrix to tf.tensor waaaaaaow! a = tf.constant([[1,2],[3,4]]) #print(a) #broadcasting b = tf.add(a,1) #print(b) #print(...
26.244318
102
0.671141
9ab25e43a949e3fb9fe776b4cac70f006c352480
12,870
py
Python
pyap/source_UK/data.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
null
null
null
pyap/source_UK/data.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
null
null
null
pyap/source_UK/data.py
benman1/pyap
9deee583c2dc2bb4a69bfd091ee0492f17456a27
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ pyap.source_UK.data ~~~~~~~~~~~~~~~~~~~~ This module provides regular expression definitions required for detecting US addresses. The module is expected to always contain 'full_address' variable containing all address parsing definitions. :copyright: (c) 2019 ...
33.779528
111
0.339549
7ba9742e3a9f4d2dd0095840dca339927e6338df
2,240
py
Python
system/users/migrations/0001_initial.py
doraemonext/DEOnlineJudge
2509174439878d3c7cdb3ea57dbb38405e9d7969
[ "MIT" ]
3
2016-02-25T06:18:06.000Z
2017-07-23T08:20:34.000Z
system/users/migrations/0001_initial.py
doraemonext/DEOnlineJudge
2509174439878d3c7cdb3ea57dbb38405e9d7969
[ "MIT" ]
null
null
null
system/users/migrations/0001_initial.py
doraemonext/DEOnlineJudge
2509174439878d3c7cdb3ea57dbb38405e9d7969
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_contenttypes_0002'), ] operations = [ migrations.CreateModel( ...
58.947368
266
0.65
c382d4c66ec3669bc5e86f2f5c1b285314c4e659
1,097
py
Python
api/insights/insights/infrastructure/mysql/scripts/rename_products_script.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/insights/insights/infrastructure/mysql/scripts/rename_products_script.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
api/insights/insights/infrastructure/mysql/scripts/rename_products_script.py
manisharmagarg/qymatix
0dc240970359429ae5105db79f9aebf1a99ba6fd
[ "Apache-2.0" ]
null
null
null
# pylint: skip-file import pandas as pd from api.insights.insights.infrastructure.mysql.mysql_connection import MySqlConnection from api.insights.insights.infrastructure.mysql.read.product_finder import ProductFinder group_name = 'hartl___online_de' data_db = "data_{}".format(group_name) connection = MySqlConnecti...
23.340426
88
0.720146
0bcb82eeec7a9645310edbecc6073afa12cfeae9
1,162
py
Python
tests/test_classify_organisations.py
Transparency-in-the-non-profit-sector/np-transparency
cfbe9c7c66ab76fd43a84120d890393c2b15b3f5
[ "Apache-2.0" ]
null
null
null
tests/test_classify_organisations.py
Transparency-in-the-non-profit-sector/np-transparency
cfbe9c7c66ab76fd43a84120d890393c2b15b3f5
[ "Apache-2.0" ]
6
2022-01-12T22:03:28.000Z
2022-03-25T09:24:04.000Z
tests/test_classify_organisations.py
Transparency-in-the-non-profit-sector/np-transparency
cfbe9c7c66ab76fd43a84120d890393c2b15b3f5
[ "Apache-2.0" ]
null
null
null
import os import pandas as pd from auto_extract.classify_organisation import file_to_pd from auto_extract.classify_organisation import predict_main_sector from auto_extract.classify_organisation import train infolder = os.path.join(os.getcwd(), 'tests') inputfile = os.path.join(infolder, 'test_excel.xlsx') def test...
34.176471
83
0.685026
a2bbc3227d9417b793f10d5a0bb2fc6cbaf30b83
4,818
py
Python
topi/tests/python_cpp/test_topi_pooling.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
1
2018-06-07T16:39:01.000Z
2018-06-07T16:39:01.000Z
topi/tests/python_cpp/test_topi_pooling.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
null
null
null
topi/tests/python_cpp/test_topi_pooling.py
TaoLv/tvm
11318966571f654f4e8bc550bfd9a293303e3000
[ "Apache-2.0" ]
2
2019-04-07T07:28:19.000Z
2019-11-18T08:09:06.000Z
"""Test code for pooling""" import numpy as np import tvm import topi import math from topi.util import get_const_tuple pool_code = { "avg": 0, "max": 1 } def verify_pool(n, ic, ih, kh, sh, padding, pool_type, ceil_mode, count_include_pad=True): iw = ih kw = kh sw = sh ph, pw = padding A = ...
37.348837
123
0.560814
7ce7ddb8f0dd8aebd14acc4d5da79d900bd7a4ed
581
py
Python
yarr/replay_buffer/wrappers/__init__.py
guhur/YARR
be6bd145a7ba0057a06dcb590bc5b82c06fb37df
[ "Apache-2.0" ]
39
2021-06-08T05:14:38.000Z
2022-02-20T03:40:34.000Z
yarr/replay_buffer/wrappers/__init__.py
WeiChengTseng/YARR
1f25b81283e06dc5ba76c381da18c8ea5f7ef658
[ "Apache-2.0" ]
2
2021-07-21T14:59:08.000Z
2021-12-08T12:07:09.000Z
yarr/replay_buffer/wrappers/__init__.py
WeiChengTseng/YARR
1f25b81283e06dc5ba76c381da18c8ea5f7ef658
[ "Apache-2.0" ]
6
2021-07-31T15:59:36.000Z
2022-03-14T16:11:07.000Z
from abc import ABC, abstractmethod from typing import Any from yarr.replay_buffer.replay_buffer import ReplayBuffer class WrappedReplayBuffer(ABC): def __init__(self, replay_buffer: ReplayBuffer): """Initializes WrappedReplayBuffer. Raises: ValueError: If update_horizon is not positi...
24.208333
58
0.681583
6afc0aaf95ee12dd18f650e06517938c675f6a04
4,585
py
Python
Chimera/python3_scripts/zynq_tcp_server.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
Chimera/python3_scripts/zynq_tcp_server.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
Chimera/python3_scripts/zynq_tcp_server.py
zzpwahaha/Chimera-Control-Trim
df1bbf6bea0b87b8c7c9a99dce213fdc249118f2
[ "MIT" ]
null
null
null
#!/usr/bin/python #from __future__ import print_function import socket import errno import sys import binascii import time import sequencer from axis_fifo import AXIS_FIFO from devices import fifo_devices from devices import gpio_devices from axi_gpio import AXI_GPIO import dds_lock_pll from reset_all import reset fr...
29.96732
140
0.697928
8fac0d10f5d2302dc9ba076b209b3343792a837a
9,784
py
Python
qa/rpc-tests/dao-light-voting-range-consultations.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
qa/rpc-tests/dao-light-voting-range-consultations.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
qa/rpc-tests/dao-light-voting-range-consultations.py
stakecom/stakework
a2110b0ba6aa9638a18c2e7ae12f0f229e074f35
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2019 The Stakework Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. from test_framework.test_framework import StakeWorkTestFramework from test_framework.cfund_util import * im...
42.912281
128
0.653209
663796440745d4584fecce01e0c31513456a859d
3,234
py
Python
src/oci/database/models/database_upgrade_with_db_home_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/database/models/database_upgrade_with_db_home_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/database/models/database_upgrade_with_db_home_details.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
35.152174
245
0.670686
edeb4c446e9bdad5727082d6e8b2d4e91c8b67db
1,268
py
Python
learningPygame/Isabella/00-MovingSmile/04-Drawing.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Isabella/00-MovingSmile/04-Drawing.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
learningPygame/Isabella/00-MovingSmile/04-Drawing.py
Rosebotics/catapult2019
4f125632f4d144b97ee3ecaf00a517780d510a70
[ "MIT" ]
null
null
null
# TODO: Copy all of your 03-Colors.py program and put it below this comment. # TODO One way to do so is: # TODO 1. Inside 03-Colors.py, do: # TODO -- Control-A (to SELECT the entire contents of the file, then # TODO -- Control-C (to COPY that entire selection) # TODO 2. Inside thi...
35.222222
80
0.618297
9903604b7fc738d3182e21a5a4bf0da65091cadd
3,298
py
Python
gitea/basicGiteaApiObject.py
wullxz/py-gitea
81dfd0d463aae117905eb87b7ce526bfe234c00a
[ "MIT" ]
null
null
null
gitea/basicGiteaApiObject.py
wullxz/py-gitea
81dfd0d463aae117905eb87b7ce526bfe234c00a
[ "MIT" ]
null
null
null
gitea/basicGiteaApiObject.py
wullxz/py-gitea
81dfd0d463aae117905eb87b7ce526bfe234c00a
[ "MIT" ]
null
null
null
from .exceptions import ObjectIsInvalid, MissiongEqualyImplementation class BasicGiteaApiObject: GET_API_OBJECT = "FORMAT/STINING/{argument}" PATCH_API_OBJECT = "FORMAT/STINING/{argument}" def __init__(self, gitea): self.gitea = gitea self.deleted = False # set if .delete was called, so ...
35.847826
88
0.626137
fe0b0357da451f57ffd7bb22812b8fcfa687fa15
8,994
py
Python
src/mmgroup/tests/test_clifford/test_qs_gates.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
14
2020-07-10T20:12:05.000Z
2022-03-10T13:46:59.000Z
src/mmgroup/tests/test_clifford/test_qs_gates.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-03-09T07:05:04.000Z
2022-03-18T20:17:11.000Z
src/mmgroup/tests/test_clifford/test_qs_gates.py
Martin-Seysen/mmgroup
6acd566f1079e7e27eec76352477fbba39eeb65f
[ "MIT" ]
1
2022-02-07T21:08:00.000Z
2022-02-07T21:08:00.000Z
from __future__ import absolute_import, division, print_function from __future__ import unicode_literals from random import randint #, shuffle, sample from functools import reduce from operator import __or__ import numpy as np import pytest from mmgroup.structures.qs_matrix import QStateMatrix, qs_rand_matrix fro...
29.683168
75
0.487992
9fe204526501b01639378ebe82d7f64917a880f6
1,231
py
Python
closeallissues.py
rdow/robtestprj
ce05f613f092443c68de07a24264b063aef670ea
[ "MIT" ]
null
null
null
closeallissues.py
rdow/robtestprj
ce05f613f092443c68de07a24264b063aef670ea
[ "MIT" ]
13
2019-03-08T10:03:26.000Z
2019-10-11T09:20:11.000Z
closeallissues.py
rdow/robtestprj
ce05f613f092443c68de07a24264b063aef670ea
[ "MIT" ]
null
null
null
import os import yaml import githubapimock as api config_path = os.path.expanduser("~/repo.yml") settings = yaml.load(open(config_path)) user = settings["user"] org = settings["org"] repo = settings["repo"] token = settings["token"] """ title = "My first client issue" body = "This was created from the client" l...
22.796296
76
0.639318
46088bb1e8f415c0c6a3a6a9cc45e41daa1472f4
7,836
py
Python
adafruit_wiznet5k/adafruit_wiznet5k_wsgiserver.py
chabala/Adafruit_CircuitPython_Wiznet5k
450c52e3b5a1f830581d8668cf57e779309d0aa7
[ "Unlicense", "MIT" ]
null
null
null
adafruit_wiznet5k/adafruit_wiznet5k_wsgiserver.py
chabala/Adafruit_CircuitPython_Wiznet5k
450c52e3b5a1f830581d8668cf57e779309d0aa7
[ "Unlicense", "MIT" ]
null
null
null
adafruit_wiznet5k/adafruit_wiznet5k_wsgiserver.py
chabala/Adafruit_CircuitPython_Wiznet5k
450c52e3b5a1f830581d8668cf57e779309d0aa7
[ "Unlicense", "MIT" ]
null
null
null
# Based on ESP32 code Copyright (c) 2019 Matt Costi for Adafruit Industries # SPDX-FileCopyrightText: Copyright (c) 2020 Patrick Van Oosterwijck # # SPDX-License-Identifier: MIT """ `adafruit_wiznet5k_wsgiserver` ================================================================================ A simple WSGI (Web Serve...
37.673077
91
0.59903