hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
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
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
⌀
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
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
7986df33489977fd85ad75f08aaec741800d2b90
12,081
py
Python
tests/test_source_provider.py
sed-i/grafana-operator
ec5172f89a6ef3441fb736f97bb4b6cd7521a94e
[ "Apache-2.0" ]
null
null
null
tests/test_source_provider.py
sed-i/grafana-operator
ec5172f89a6ef3441fb736f97bb4b6cd7521a94e
[ "Apache-2.0" ]
null
null
null
tests/test_source_provider.py
sed-i/grafana-operator
ec5172f89a6ef3441fb736f97bb4b6cd7521a94e
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Canonical Ltd. # See LICENSE file for licensing details. import json import pytest import unittest from ops.charm import CharmBase from ops.framework import StoredState from ops.testing import Harness from lib.charms.grafana_k8s.v0.grafana_source import ( GrafanaSourceProvider, ) SOURCE_DATA = {...
40.676768
87
0.656237
7986df759269f9cf5bd42921a8c0d1a940b9603d
60,765
py
Python
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/runtimeconfig/v1beta1/runtimeconfig_v1beta1_messages.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/runtimeconfig/v1beta1/runtimeconfig_v1beta1_messages.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
mac/google-cloud-sdk/lib/googlecloudsdk/third_party/apis/runtimeconfig/v1beta1/runtimeconfig_v1beta1_messages.py
bopopescu/cndw
ee432efef88a4351b355f3d6d5350defc7f4246b
[ "Apache-2.0" ]
null
null
null
"""Generated message classes for runtimeconfig version v1beta1. The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. """ # NOTE...
43.590387
93
0.726389
7986dfcb939442fca8ac66197f66df36a81e7d37
7,431
py
Python
Examples/Keyboard/main.py
Mr-Victor/kivybits
cf1f409419788301d093e919579d66555a59ff74
[ "MIT" ]
null
null
null
Examples/Keyboard/main.py
Mr-Victor/kivybits
cf1f409419788301d093e919579d66555a59ff74
[ "MIT" ]
null
null
null
Examples/Keyboard/main.py
Mr-Victor/kivybits
cf1f409419788301d093e919579d66555a59ff74
[ "MIT" ]
null
null
null
""" Custom Keyboards ================ This demo shows how to create and display custom keyboards on screen. Note that the new "layout" property of the TextInput means that this is rarely needed. We provide this demo for the sake of completeness. """ # Author: Zen-CODE from kivy.app import App from kivy.lang import Bui...
33.472973
80
0.564123
7986e0ba81cc119878815d3387777ec7da61f5cc
1,704
py
Python
scripts/run_policy.py
shidilrzf/Anti-exploration-RL
1013a85b4b84656a06f86abee01c55a5e08272ee
[ "MIT" ]
2
2020-12-23T19:30:35.000Z
2022-03-01T05:12:57.000Z
scripts/run_policy.py
shidilrzf/Anti-exploration-RL
1013a85b4b84656a06f86abee01c55a5e08272ee
[ "MIT" ]
null
null
null
scripts/run_policy.py
shidilrzf/Anti-exploration-RL
1013a85b4b84656a06f86abee01c55a5e08272ee
[ "MIT" ]
1
2021-03-17T20:09:36.000Z
2021-03-17T20:09:36.000Z
from rlkit.samplers.rollout_functions import rollout import rlkit.torch.pytorch_util as ptu import argparse import torch import uuid from rlkit.core import logger from rlkit.core.eval_util import get_generic_path_information import pathlib filename = str(uuid.uuid4()) def simulate_policy(args): data = torch.load...
32.150943
110
0.649648
7986e0fbc688afcf42788d452deb8779a8aa179c
218
py
Python
verification/src/referee.py
Empire-of-Code-Puzzles/checkio-empire-network-attack
de8f3803fdfd19342f0c73a288cd5dc01aece533
[ "MIT" ]
null
null
null
verification/src/referee.py
Empire-of-Code-Puzzles/checkio-empire-network-attack
de8f3803fdfd19342f0c73a288cd5dc01aece533
[ "MIT" ]
null
null
null
verification/src/referee.py
Empire-of-Code-Puzzles/checkio-empire-network-attack
de8f3803fdfd19342f0c73a288cd5dc01aece533
[ "MIT" ]
null
null
null
from checkio_referee import RefereeRank import settings_env from tests import TESTS class Referee(RefereeRank): TESTS = TESTS ENVIRONMENTS = settings_env.ENVIRONMENTS DEFAULT_FUNCTION_NAME = "capture"
16.769231
44
0.784404
7986e1b9bd2e3533644ebde17e673d1f63904d00
5,978
py
Python
sympy/physics/units/prefixes.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2020-09-09T20:40:17.000Z
2020-09-09T20:40:17.000Z
sympy/physics/units/prefixes.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
14
2018-02-08T10:11:03.000Z
2019-04-16T10:32:46.000Z
sympy/physics/units/prefixes.py
utkarshdeorah/sympy
dcdf59bbc6b13ddbc329431adf72fcee294b6389
[ "BSD-3-Clause" ]
1
2022-02-04T13:50:29.000Z
2022-02-04T13:50:29.000Z
""" Module defining unit prefixe class and some constants. Constant dict for SI and binary prefixes are defined as PREFIXES and BIN_PREFIXES. """ from sympy.core.expr import Expr from sympy.core.sympify import sympify class Prefix(Expr): """ This class represent prefixes, with their name, symbol and factor. ...
28.065728
89
0.585313
7986e1faa4227b34b141658e7c05bc8e5f1f493e
7,569
py
Python
canopen/sdo/server.py
AEMICS/canopen
99bb97b9dd37b6b96acdf711cc7a713f1f782851
[ "MIT" ]
301
2016-10-19T03:21:10.000Z
2022-03-31T11:00:26.000Z
canopen/sdo/server.py
AEMICS/canopen
99bb97b9dd37b6b96acdf711cc7a713f1f782851
[ "MIT" ]
236
2016-10-27T15:33:51.000Z
2022-03-22T19:57:58.000Z
canopen/sdo/server.py
AEMICS/canopen
99bb97b9dd37b6b96acdf711cc7a713f1f782851
[ "MIT" ]
143
2016-10-22T06:48:33.000Z
2022-03-22T09:49:20.000Z
import logging from .base import SdoBase from .constants import * from .exceptions import * logger = logging.getLogger(__name__) class SdoServer(SdoBase): """Creates an SDO server.""" def __init__(self, rx_cobid, tx_cobid, node): """ :param int rx_cobid: COB-ID that the server r...
34.561644
97
0.588981
7986e23b9d8256b00e4047b814693091168a4518
438
py
Python
hard-gists/1275204/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/1275204/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/1275204/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#views.py from django.views.generic import UpdateView class UpdateBook(UpdateView): model = Book form_class = BookForm template_name = 'create_form.html' success_url = '/books/' #urls.py from django.conf.urls import * from library.views import UpdateBook urlpatterns = patterns('', url('^updat...
19.909091
82
0.700913
7986e29f2688de06d2326926b352473a6ba83ca9
1,158
py
Python
publisher/receiver_test.py
lucasblazzi/insights-project
048f598c17e62fc73325d354ef6b665f6005f603
[ "MIT" ]
null
null
null
publisher/receiver_test.py
lucasblazzi/insights-project
048f598c17e62fc73325d354ef6b665f6005f603
[ "MIT" ]
null
null
null
publisher/receiver_test.py
lucasblazzi/insights-project
048f598c17e62fc73325d354ef6b665f6005f603
[ "MIT" ]
1
2022-01-19T22:58:57.000Z
2022-01-19T22:58:57.000Z
import websocket import _thread import time import redis import json def put_mock_redis(): email = "lucasblazzi@hotmail.com" mock = { "email": "lucasblazzi@hotmail.com", "stocks": { "segment": "Propriedades" }, "funds": { "rating": "AA", "adm...
25.733333
117
0.57772
7986e2bd64d303098be4c75730c52374cb5ae107
387
py
Python
login/wsgi.py
hxxffssc/login
8368ecc07097ff1f7569902d665a78d6a46fbd06
[ "Apache-2.0" ]
1
2020-01-16T06:38:21.000Z
2020-01-16T06:38:21.000Z
login/wsgi.py
hxxffssc/login
8368ecc07097ff1f7569902d665a78d6a46fbd06
[ "Apache-2.0" ]
4
2021-03-30T13:38:48.000Z
2021-09-22T19:16:53.000Z
login/wsgi.py
lytvyn139/python-django-login
fd9ec604327d8b3f1ccb9af38c8857c9b020e38d
[ "MIT" ]
null
null
null
""" WSGI config for login project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault('DJANGO_SETTING...
22.764706
78
0.782946
7986e5ad7930233348ba75da12d6802ba758cf07
8,260
py
Python
main.py
zgb0537/Multimodal-Fake-News-Detection-with-Textual-Visual-and-Semantic-Information
032a727e18712ea5bff33d703649c0341d974b50
[ "MIT" ]
2
2021-06-21T09:33:59.000Z
2022-02-08T06:36:26.000Z
main.py
zgb0537/Multimodal-Fake-News-Detection-with-Textual-Visual-and-Semantic-Information
032a727e18712ea5bff33d703649c0341d974b50
[ "MIT" ]
null
null
null
main.py
zgb0537/Multimodal-Fake-News-Detection-with-Textual-Visual-and-Semantic-Information
032a727e18712ea5bff33d703649c0341d974b50
[ "MIT" ]
null
null
null
from numpy.random import seed seed(100) import keras.callbacks as callbacks import os, cv2 import tensorflow as tf import numpy as np from keras.models import Model from keras.layers import Dense, Input, BatchNormalization, Dropout import pickle from skimage import feature from scipy.spatial.distance import c...
45.384615
155
0.685714
7986e68eb97bf7a8e9751a8839974775a8d0b01f
4,690
py
Python
kivymd/uix/behaviors/backgroundcolorbehavior.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
18
2020-03-14T18:26:45.000Z
2022-02-26T13:36:26.000Z
kivymd/uix/behaviors/backgroundcolorbehavior.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
null
null
null
kivymd/uix/behaviors/backgroundcolorbehavior.py
surbhicis/KivyMD-1
23378fea5427d8616ed96397d148cb34fbbda73f
[ "MIT" ]
2
2020-03-15T13:09:58.000Z
2020-03-16T20:13:49.000Z
""" Behaviors/Background Color ========================== .. note:: The following classes are intended for in-house use of the library. """ from kivy.lang import Builder from kivy.properties import BoundedNumericProperty, ReferenceListProperty from kivy.properties import OptionProperty, ListProperty from kivy.uix.wid...
32.344828
88
0.63049
7986e702a74cd0d5e65a364f1cb1c758a66859ad
3,123
py
Python
contrib/testgen/base58.py
mebagger/Mooncoin-Core-Wallet
6b15acc3981478cfa7a6e8e0df68236af2f0cb9e
[ "MIT" ]
49
2017-12-16T04:34:07.000Z
2021-08-06T11:36:44.000Z
contrib/testgen/base58.py
michilumin/mooncoincore-wallet
aae3f69d2892e3c9f183bd79691442fa062a6fda
[ "MIT" ]
17
2017-12-12T22:59:27.000Z
2021-09-26T14:27:36.000Z
contrib/testgen/base58.py
michilumin/mooncoincore-wallet
aae3f69d2892e3c9f183bd79691442fa062a6fda
[ "MIT" ]
41
2017-12-11T04:05:52.000Z
2021-05-24T22:05:46.000Z
# Copyright (c) 2012 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' Bitcoin base58 encoding and decoding. Based on https://bitcointalk.org/index.php?topic=1026.0 (public domain) ''' import hashlib ...
28.390909
97
0.642972
7986e8c4f8ff83599e9a838218a21a4ef64d1435
2,420
py
Python
backend/prog-hist/backend/src/code/test/playground/chapter04_10.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
backend/prog-hist/backend/src/code/test/playground/chapter04_10.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
backend/prog-hist/backend/src/code/test/playground/chapter04_10.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
import code.book_plots as bp import code.gh_internal as gh import matplotlib.pyplot as plt import numpy as np; import time from pylab import * from drawnow import drawnow, figure from filterpy.discrete_bayes import normalize from filterpy.discrete_bayes import predict from filterpy.discrete_bayes import update from sc...
29.512195
85
0.589669
7986eae77de565862765008e39b05b36c48375d1
1,067
py
Python
examples/structured_heatmap.py
danyal-s/seaborn
e07c1f17a4a8c3cd1483616e68185f81f27dbc96
[ "BSD-3-Clause" ]
2
2020-05-26T23:58:32.000Z
2020-11-01T20:45:30.000Z
examples/structured_heatmap.py
wangqiqianggithub/seaborn
102cf08f9e40ef7037daf4b3b60b94ee144dc5cb
[ "BSD-3-Clause" ]
2
2020-03-15T22:17:11.000Z
2020-03-16T13:47:04.000Z
examples/structured_heatmap.py
wangqiqianggithub/seaborn
102cf08f9e40ef7037daf4b3b60b94ee144dc5cb
[ "BSD-3-Clause" ]
2
2020-11-02T18:25:54.000Z
2021-07-23T16:15:34.000Z
""" Discovering structure in heatmap data ===================================== _thumb: .4, .25 """ import pandas as pd import seaborn as sns sns.set() # Load the brain networks example dataset df = sns.load_dataset("brain_networks", header=[0, 1, 2], index_col=0) # Select a subset of the networks used_networks = [1...
32.333333
77
0.663543
7986eb442745cce6707ff8903c530cf89f7f0448
3,034
py
Python
double_dummy/tree_exploration_mt.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
double_dummy/tree_exploration_mt.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
double_dummy/tree_exploration_mt.py
andCelli/efg_tools
0de50f41e971d6ebb461ae4733843096af87e014
[ "MIT" ]
null
null
null
""" In this file we define the alpha-beta pruning exploration algorithm. The goal is to find the number of tricks that the starting team can make given the initial game state. """ from double_dummy.game.game_state_old import GameState import threading import copy alpha = -20 beta = 20 lock = threading.Lock() def _a...
29.173077
139
0.600198
7986eb45be41858f231cb5200510c664ad3b7223
34,848
py
Python
Tools/tdd/src/testAllPkgs.py
neubertm/TDD_framework
31e6df2422221035c86fdc743ca4da09cdfc3b50
[ "BSD-3-Clause" ]
1
2021-09-23T13:02:10.000Z
2021-09-23T13:02:10.000Z
Tools/tdd/src/testAllPkgs.py
neubertm/TDD_framework
31e6df2422221035c86fdc743ca4da09cdfc3b50
[ "BSD-3-Clause" ]
null
null
null
Tools/tdd/src/testAllPkgs.py
neubertm/TDD_framework
31e6df2422221035c86fdc743ca4da09cdfc3b50
[ "BSD-3-Clause" ]
null
null
null
############################################################################### # Copyright (c) 2021, Milan Neubert (milan.neuber@gmail.com) # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: #...
37.191035
234
0.565312
7986ec76c21a31fcb1e72aa773e42b8164b45895
2,387
py
Python
tests/framework/TestXSD/TestStrictCheck.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
null
null
null
tests/framework/TestXSD/TestStrictCheck.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
null
null
null
tests/framework/TestXSD/TestStrictCheck.py
milljm/raven
5f29fe81b75e2ffbeb54a55aa63647e7b2f6457b
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, 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 t...
28.759036
92
0.728111
7986ecb6c2566710f0dcf4aaffca18b7564eee4f
111
py
Python
PIP/Minor Assignment 1/A1Q2.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
10
2021-04-24T11:46:48.000Z
2022-01-17T05:14:37.000Z
PIP/Minor Assignment 1/A1Q2.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
2
2021-06-28T11:51:50.000Z
2021-11-01T08:21:53.000Z
PIP/Minor Assignment 1/A1Q2.py
ankitrajbiswal/SEM_5
db716e242e77149a4091e0e564356ddc724aeff0
[ "Apache-2.0" ]
16
2021-04-24T11:46:58.000Z
2022-03-02T05:08:19.000Z
print(-7*20+8/16*2+54) print(7**2//9%3) print((7-4*2)*10-25*8//5) print(5%10+10-25*8//5) print('hello'*2-5)
22.2
26
0.567568
7986ed10175519746db2b272301eecf491824e24
11,744
py
Python
gooddata-metadata-client/gooddata_metadata_client/model/json_api_api_token_out_document.py
jaceksan/gooddata-python-sdk
640bd8b679e00a5f0eb627bdf6143de078f8b59b
[ "MIT" ]
null
null
null
gooddata-metadata-client/gooddata_metadata_client/model/json_api_api_token_out_document.py
jaceksan/gooddata-python-sdk
640bd8b679e00a5f0eb627bdf6143de078f8b59b
[ "MIT" ]
null
null
null
gooddata-metadata-client/gooddata_metadata_client/model/json_api_api_token_out_document.py
jaceksan/gooddata-python-sdk
640bd8b679e00a5f0eb627bdf6143de078f8b59b
[ "MIT" ]
null
null
null
""" OpenAPI definition No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v0 Generated by: https://openapi-generator.tech """ import re # noqa: F401 import sys # noqa: F401 from gooddata_met...
42.861314
124
0.577231
7986ed46e4a44bcfdbdbce668b6ce4a78f3882f6
373
py
Python
trueconsensus/__init__.py
panghalamit/py-trueconsensus
f7a80ea0b395fd1cf56fedb01ba74def1a2e45bf
[ "Apache-2.0" ]
53
2018-05-25T16:34:04.000Z
2019-09-02T07:56:00.000Z
trueconsensus/__init__.py
panghalamit/py-trueconsensus
f7a80ea0b395fd1cf56fedb01ba74def1a2e45bf
[ "Apache-2.0" ]
null
null
null
trueconsensus/__init__.py
panghalamit/py-trueconsensus
f7a80ea0b395fd1cf56fedb01ba74def1a2e45bf
[ "Apache-2.0" ]
29
2018-06-04T02:08:34.000Z
2022-01-25T08:46:13.000Z
########################################################### # PACKAGES ########################################################### from snailchain import * from fastchain import * # explicitly import all top-level modules (ensuring # they override the same names inadvertently imported # from a subpackage) import tru...
26.642857
59
0.536193
7986ed9d4fd652cef594b36e197da90e79fb57b6
3,218
py
Python
fairness/metrics/utils.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
146
2018-02-14T20:59:29.000Z
2022-03-26T00:44:28.000Z
fairness/metrics/utils.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
6
2018-03-15T01:39:53.000Z
2021-11-15T17:47:02.000Z
fairness/metrics/utils.py
yashwarlord/fairness-comparison
366a4e4bb70498ac7498e4a98f50e3585f7881d3
[ "Apache-2.0" ]
50
2018-02-16T15:27:29.000Z
2022-03-01T08:59:28.000Z
def calc_pos_protected_percents(predicted, sensitive, unprotected_vals, positive_pred): """ Returns P(C=YES|sensitive=privileged) and P(C=YES|sensitive=not privileged) in that order where C is the predicited classification and where all not privileged values are considered equivalent. Assumes that pre...
39.728395
99
0.660037
7986ede03e7db4d1994f83c90c0c77dd13e34e57
2,630
py
Python
src/rnn_long_char.py
pointe77/ai
273b9235f3513e16c15e67312fef9b16f4e18982
[ "Apache-2.0" ]
null
null
null
src/rnn_long_char.py
pointe77/ai
273b9235f3513e16c15e67312fef9b16f4e18982
[ "Apache-2.0" ]
null
null
null
src/rnn_long_char.py
pointe77/ai
273b9235f3513e16c15e67312fef9b16f4e18982
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import tensorflow as tf import numpy as np from tensorflow.contrib import rnn tf.set_random_seed(777) # reproducibility sentence = ("if you want to build a ship, don't drum up people together to " "collect wood and don't assign them tasks and work, but rather " ...
30.229885
91
0.690875
7986edeac60fdffbdc6269cb2acfc80664e354e4
5,694
py
Python
kornia/utils/image.py
cceyda/kornia
810e5189408cf97e81449e4a11454d803038a3f6
[ "ECL-2.0", "Apache-2.0" ]
2
2021-03-24T12:43:02.000Z
2021-03-24T12:43:08.000Z
kornia/utils/image.py
cceyda/kornia
810e5189408cf97e81449e4a11454d803038a3f6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
kornia/utils/image.py
cceyda/kornia
810e5189408cf97e81449e4a11454d803038a3f6
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
from typing import Optional import numpy as np import torch import torch.nn as nn from functools import wraps def image_to_tensor(image: np.ndarray, keepdim: bool = True) -> torch.Tensor: """Converts a numpy image to a PyTorch 4d tensor image. Args: image (numpy.ndarray): image of the form :math:`(H...
32.169492
113
0.581138
7986eebc4de792585289295d4f11babc5590469d
2,071
py
Python
setup.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,501
2016-04-19T18:16:21.000Z
2022-03-31T17:46:31.000Z
setup.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
1,135
2016-04-19T05:49:14.000Z
2022-03-31T15:21:19.000Z
setup.py
osterwood/litex
db20cb172dc982c5879aa8080ec7aa18de181cc5
[ "ADSL" ]
357
2016-04-19T05:00:24.000Z
2022-03-31T11:28:32.000Z
#!/usr/bin/env python3 from setuptools import setup from setuptools import find_packages setup( name="litex", description="Python SoC/Core builder for building FPGA based systems.", author="Florent Kermarrec", author_email="florent@enjoy-digital.fr", url="http://enjoy-digital.fr", download_ur...
35.101695
80
0.63013
7986efa3708d99532b62440cdfdd148e0055968f
1,267
py
Python
malwareconfig/decoders/clientmesh.py
BA7JCM/RATDecoders
d675ba1c06e6dd8365149c9ee8a8db1a6e5e508e
[ "MIT" ]
905
2015-01-16T23:56:49.000Z
2022-03-28T14:00:58.000Z
malwareconfig/decoders/clientmesh.py
BA7JCM/RATDecoders
d675ba1c06e6dd8365149c9ee8a8db1a6e5e508e
[ "MIT" ]
38
2015-01-26T08:46:50.000Z
2021-05-23T03:24:44.000Z
malwareconfig/decoders/clientmesh.py
BA7JCM/RATDecoders
d675ba1c06e6dd8365149c9ee8a8db1a6e5e508e
[ "MIT" ]
319
2015-01-09T21:18:26.000Z
2022-03-10T01:41:53.000Z
from base64 import b64decode from malwareconfig.common import Decoder from malwareconfig.common import string_printable class ClientMesh(Decoder): decoder_name = "ClientMesh" decoder__version = 1 decoder_author = "@kevthehermit" decoder_description = "ClientMesh Decoder" def __init__(self): ...
27.543478
81
0.569061
7986f095f41aab03bc62ff65e1274b0e40df6f78
376
py
Python
login/__init__.py
UlovHer/CMDB
2288e71441ccddaeeeebf0f81cfeb3e321817738
[ "MIT" ]
51
2019-07-22T07:49:23.000Z
2021-11-15T10:47:20.000Z
login/__init__.py
UlovHer/CMDB
2288e71441ccddaeeeebf0f81cfeb3e321817738
[ "MIT" ]
4
2019-08-04T02:42:44.000Z
2020-02-12T01:03:28.000Z
login/__init__.py
UlovHer/CMDB
2288e71441ccddaeeeebf0f81cfeb3e321817738
[ "MIT" ]
34
2019-07-25T03:13:16.000Z
2022-01-15T11:50:16.000Z
from os import path from django.apps import AppConfig VERBOSE_APP_NAME = "login" def get_current_app_name(file): return path.dirname(file).replace('\\', '/').split('/')[-1] class AppVerboseNameConfig(AppConfig): name = get_current_app_name(__file__) verbose_name = u'登陆' default_app_config = get_curre...
23.5
86
0.75
7986f210de9c9895a448361cb37a86ab78f9ceae
1,526
py
Python
youtube_dl_cli/common/testHelper.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
1
2020-10-26T13:51:39.000Z
2020-10-26T13:51:39.000Z
youtube_dl_cli/common/testHelper.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
null
null
null
youtube_dl_cli/common/testHelper.py
CarsonSlovoka/youtube-dl-cli
80de0ef2500f58292723532d372b740a964635f5
[ "Apache-2.0" ]
1
2020-04-02T07:26:49.000Z
2020-04-02T07:26:49.000Z
__all__ = ('ShowTestDescription', ) from .consoleHelper import * import unittest from typing import Callable, Any class ShowTestDescription(unittest.TestCase): def setUp(self) -> None: # print(self.__doc__) # class doc # print(self._testMethodName) # function name print_tex...
32.468085
155
0.631062
7986f3a70b9c5c137baad47f192390e5c00e9144
1,816
py
Python
clef/pgvalues.py
ScottWales/clef
5504b11235a1eda2a9c1347f4a3bd78ffd86246a
[ "Apache-2.0" ]
5
2018-11-23T03:52:20.000Z
2021-06-23T04:58:55.000Z
clef/pgvalues.py
ScottWales/clef
5504b11235a1eda2a9c1347f4a3bd78ffd86246a
[ "Apache-2.0" ]
81
2018-10-16T00:56:44.000Z
2022-02-16T04:31:38.000Z
clef/pgvalues.py
ScottWales/clef
5504b11235a1eda2a9c1347f4a3bd78ffd86246a
[ "Apache-2.0" ]
4
2019-11-28T23:32:01.000Z
2021-05-10T04:22:12.000Z
#!/usr/bin/env python # Copyright 2017 ARC Centre of Excellence for Climate Extremes # author: Scott Wales <scott.wales@unimelb.edu.au> # # 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 # # ...
33.018182
105
0.665198
7986f3dcda5cfefb24fc162ff212312a2b6f9395
890
py
Python
tools/ridet/test_dota_8p.py
chisyliu/RotationDetection
6f2bd55a51a6de0bcd0959a85977682511fd440d
[ "Apache-2.0" ]
2
2022-03-05T09:55:49.000Z
2022-03-05T10:12:51.000Z
tools/ridet/test_dota_8p.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
tools/ridet/test_dota_8p.py
ZhangRan24/RotationDetection
85791a4ec944bb0b14b8721193477eb0f582e981
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import sys sys.path.append("../../") from alpharotate.libs.models.detectors.ridet import build_whole_network_8p from tools.test_dota_base_q import TestDOTA from configs impor...
24.722222
95
0.685393
7986f5b84dda65fbc7f94397c98d52788d504e93
310
py
Python
tests/test_random_input.py
notedit/PyAV
bb45de9ced034e03b4e3b71c4579a0a6a6ade219
[ "BSD-3-Clause" ]
2
2018-06-14T09:02:54.000Z
2018-06-17T08:31:35.000Z
tests/test_random_input.py
adavoudi/PyAV
e6393e8c34e465ab5930ed0ef848e8c3e1c126ae
[ "BSD-3-Clause" ]
11
2015-10-30T12:11:22.000Z
2021-12-07T13:41:30.000Z
tests/test_random_input.py
adavoudi/PyAV
e6393e8c34e465ab5930ed0ef848e8c3e1c126ae
[ "BSD-3-Clause" ]
9
2016-12-07T14:57:45.000Z
2022-03-28T07:40:44.000Z
import io import random from .common import * class TestRandomInput(TestCase): def test_random_input(self): random_data = ''.join(map(chr, [random.randint(0, 127) for _ in range(1024)])).encode('latin-1') with self.assertRaises(av.AVError): av.open(io.BytesIO(random_data))
23.846154
104
0.670968
7986f6afb3aa05175313c6dc417fa306399ccdb6
22,831
py
Python
test/functional/test_framework/test_framework.py
fakecoinbase/UbiStateslashubicoin
42216bd49a34e5802839dbfb405bac6fade12814
[ "MIT" ]
7
2020-05-11T11:17:49.000Z
2021-05-29T09:04:11.000Z
test/functional/test_framework/test_framework.py
fakecoinbase/UbiStateslashubicoin
42216bd49a34e5802839dbfb405bac6fade12814
[ "MIT" ]
null
null
null
test/functional/test_framework/test_framework.py
fakecoinbase/UbiStateslashubicoin
42216bd49a34e5802839dbfb405bac6fade12814
[ "MIT" ]
14
2020-04-27T11:09:01.000Z
2021-12-16T18:49:38.000Z
#!/usr/bin/env python3 # Copyright (c) 2014-2020 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Base class for RPC testing.""" import configparser from enum import Enum import logging import argpar...
42.046041
331
0.633262
7986f6e84a7195feeac31aed4fdf221b9a79f69d
1,799
py
Python
script.py
wcushen/simple-python-script-docker
93c912bc0f1ecd80f85f109515d1109170b224d0
[ "MIT" ]
null
null
null
script.py
wcushen/simple-python-script-docker
93c912bc0f1ecd80f85f109515d1109170b224d0
[ "MIT" ]
null
null
null
script.py
wcushen/simple-python-script-docker
93c912bc0f1ecd80f85f109515d1109170b224d0
[ "MIT" ]
null
null
null
"""Create files with python.""" import os import time # store API credentials with open('.secret/api_credentials.json', 'r') as f: api_credentials = json.load(f) client_id = api_credentials['client_id'] client_secret = api_credentials['client_secret'] refresh_token = api_credentials['refresh_token'] #...
38.276596
184
0.732073
7986f71dd0cec34d9de5b8f6fce2f9de9661c6ad
36,279
py
Python
test/functional/test_framework/test_framework.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/functional/test_framework/test_framework.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
test/functional/test_framework/test_framework.py
tngc-one/tngcoin
1382521c4f897cf798e840fee2ce9abd70bbb99b
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2019 The TNGC Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Base class for RPC testing.""" import configparser from enum import Enum import argparse import logging i...
43.868198
312
0.618016
7986f760ecb31978a3227ca94b3a0aadc5bc71c1
54
py
Python
Python/VariablesAndTypes/begin08.py
YoshlikMedia/Data-Science
73f8fd7245f9497c632aa32889fef8ce4fa2574d
[ "MIT" ]
4
2022-01-20T00:00:27.000Z
2022-03-03T08:39:53.000Z
Python/VariablesAndTypes/begin08.py
YoshlikMedia/Data-Science
73f8fd7245f9497c632aa32889fef8ce4fa2574d
[ "MIT" ]
null
null
null
Python/VariablesAndTypes/begin08.py
YoshlikMedia/Data-Science
73f8fd7245f9497c632aa32889fef8ce4fa2574d
[ "MIT" ]
1
2022-03-07T10:08:25.000Z
2022-03-07T10:08:25.000Z
a, b, c = map(int, input().split()) print(a * b / c)
13.5
35
0.5
7986f799cb32f7ca7f6aa44f06bc196365d5131e
8,069
py
Python
nvtabular/ops/join_external.py
Anhmike/NVTabular
e1f0d6edc9e99fea087944a06891564086e26ecd
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/join_external.py
Anhmike/NVTabular
e1f0d6edc9e99fea087944a06891564086e26ecd
[ "Apache-2.0" ]
null
null
null
nvtabular/ops/join_external.py
Anhmike/NVTabular
e1f0d6edc9e99fea087944a06891564086e26ecd
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2021, NVIDIA CORPORATION. # # 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 ...
35.390351
98
0.643822
7986f7e0714bb5cf195c4247453a5289d850452c
3,068
py
Python
tools/lsp_adapter/tests/main_test.py
brianjo/pyre-check
faae20632480948d943d094895c1a2c025e9d82a
[ "MIT" ]
null
null
null
tools/lsp_adapter/tests/main_test.py
brianjo/pyre-check
faae20632480948d943d094895c1a2c025e9d82a
[ "MIT" ]
null
null
null
tools/lsp_adapter/tests/main_test.py
brianjo/pyre-check
faae20632480948d943d094895c1a2c025e9d82a
[ "MIT" ]
null
null
null
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import asyncio import sys import unittest from unittest import mock from unittest.mock import MagicMock, patch from ....client.commands.persi...
45.117647
286
0.635593
7986f8c27270bb57045951f04d60d6b91889ee24
2,698
py
Python
slot_language/params-novit-transt2s.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/params-novit-transt2s.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
slot_language/params-novit-transt2s.py
jiaqi-xi/slot_attention
8420414eb261501e5b056e4d409c338d909397ef
[ "Apache-2.0" ]
null
null
null
from typing import Optional from typing import Tuple import attr @attr.s(auto_attribs=True) class SlotAttentionParams: # model configs resolution: Tuple[int, int] = (128, 128) # since we not using ViT num_slots: int = 7 # at most 6 obj per image/video # dim of slots embedding slot_size: int = 6...
33.308642
77
0.676056
7986f8fc190693b4c37c8f012d58dd02fb3aa981
856
py
Python
tests/test_receivedPacket.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
21
2016-08-25T10:26:44.000Z
2022-03-23T00:43:19.000Z
tests/test_receivedPacket.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
9
2016-08-30T23:49:51.000Z
2020-12-22T09:05:58.000Z
tests/test_receivedPacket.py
Girgitt/PJON-python
a2653d46eefa6ce8339eb780074f10f20c4db49c
[ "Apache-2.0" ]
7
2017-05-21T17:39:31.000Z
2020-07-04T12:37:30.000Z
from unittest import TestCase from pjon_python.protocol.pjon_protocol import ReceivedPacket class TestReceivedPacket(TestCase): def setUp(self): self._rcv_packet = ReceivedPacket('ABC123', 6, None) def test_payload(self): self.assertEqual('ABC123', self._rcv_packet.payload) def test_pay...
32.923077
91
0.714953
7986f98290d44ef50f209a9df18f463f44000993
600
py
Python
remove_duplicate_upper.py
hyun-jin-park/TextRecognitionDataGenerator
153f6ffdc30dbc0675059d6ac58a207060b7cbbb
[ "MIT" ]
null
null
null
remove_duplicate_upper.py
hyun-jin-park/TextRecognitionDataGenerator
153f6ffdc30dbc0675059d6ac58a207060b7cbbb
[ "MIT" ]
null
null
null
remove_duplicate_upper.py
hyun-jin-park/TextRecognitionDataGenerator
153f6ffdc30dbc0675059d6ac58a207060b7cbbb
[ "MIT" ]
1
2020-04-07T05:30:54.000Z
2020-04-07T05:30:54.000Z
words = {} duplicated = 0 new_kr_f = open('kr_new.txt', 'w', encoding = 'utf8') with open('kr.txt', 'r', encoding='utf8') as f: line = f.readline().strip() while line: if len(line.split(' ')) > 1: print(f'{line} has space ') line = line.replace(' ', '') upper_line = ...
25
53
0.505
7986fb677eac0133785eb53ed48bbccc7b7ff992
52,590
py
Python
python/ccxt/async_support/kraken.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
5
2019-10-31T12:40:40.000Z
2019-10-31T14:15:01.000Z
python/ccxt/async_support/kraken.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
null
null
null
python/ccxt/async_support/kraken.py
honeyligo/ccxt
74717ffc8171bd8266b49819f7583eb8a0c32da7
[ "MIT" ]
1
2019-09-14T03:41:20.000Z
2019-09-14T03:41:20.000Z
# -*- coding: utf-8 -*- # PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN: # https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code from ccxt.async_support.base.exchange import Exchange # ----------------------------------------------------------------------------- try...
40.298851
284
0.482677
7986fbe02f8fd93e724012775c586f0119b7dd42
1,967
py
Python
tests/conftest.py
l27001/vk
37f41c7634f67149d4dab8017be0adca5ea3dc24
[ "MIT" ]
119
2018-07-30T07:59:59.000Z
2022-03-02T00:28:02.000Z
tests/conftest.py
gri201/vk
746301172839c023895a90543607eeaed5c0bac3
[ "MIT" ]
11
2018-08-09T10:07:50.000Z
2022-03-17T16:16:29.000Z
tests/conftest.py
gri201/vk
746301172839c023895a90543607eeaed5c0bac3
[ "MIT" ]
36
2018-08-23T10:17:44.000Z
2022-03-16T00:00:25.000Z
import requests from pytest import fixture from vk.session import APIBase @fixture('session') def v(): """ Actual vk API version """ return '5.80' class Attributable(object): def set_attrs(self, attributes): for attr_name, attr_value in attributes.items(): setattr(self, att...
21.855556
61
0.634977
7986fcbd52cb0dfae3ad09bb6948cb29e629a6c1
568
py
Python
odoo/base-addons/payment_ingenico/__manifest__.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
odoo/base-addons/payment_ingenico/__manifest__.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
odoo/base-addons/payment_ingenico/__manifest__.py
LucasBorges-Santos/docker-odoo
53987bbd61f6119669b5f801ee2ad54695084a21
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- { 'name': 'Ingenico Payment Acquirer', 'category': 'Accounting/Payment', 'summary': 'Payment Acquirer: Ingenico Implementation', 'version': '1.0', 'description': """Ingenico Payment Acquirer""", 'depends': ['payment'], 'data': [ 'views/payment_views.xml', ...
28.4
61
0.625
7986fcf4fa60d25ce7f8793be7f5b18cf6e8b1f9
41,654
py
Python
test/functional/test_library_templates.py
katbeaulieu/galaxy-1
e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee
[ "CC-BY-3.0" ]
1
2019-11-03T11:45:43.000Z
2019-11-03T11:45:43.000Z
test/functional/test_library_templates.py
katbeaulieu/galaxy-1
e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee
[ "CC-BY-3.0" ]
7
2016-12-07T22:19:37.000Z
2019-01-30T15:04:26.000Z
test/functional/test_library_templates.py
katbeaulieu/galaxy-1
e1dcc8a625d00990c7f062b9c2ccbf5fa86fbfee
[ "CC-BY-3.0" ]
null
null
null
import galaxy.model from base.test_db_util import ( get_folder, get_form, get_latest_hda, get_latest_ldda_by_name, get_library, get_private_role, get_user, get_user_address, mark_obj_deleted, refresh ) from base.twilltestcase import TwillTestCase AddressField_form = None Checkbo...
56.441734
151
0.559562
7986fd19bf7afcebc2a70095ab3e459253a8a288
8,916
py
Python
baselines/ddpg/training.py
zxmeng/baselines_mod
45bebeece3e5480fe1b5b339d5b645cdeae0432d
[ "MIT" ]
null
null
null
baselines/ddpg/training.py
zxmeng/baselines_mod
45bebeece3e5480fe1b5b339d5b645cdeae0432d
[ "MIT" ]
null
null
null
baselines/ddpg/training.py
zxmeng/baselines_mod
45bebeece3e5480fe1b5b339d5b645cdeae0432d
[ "MIT" ]
null
null
null
import os import time from collections import deque import pickle from baselines.ddpg.ddpg import DDPG import baselines.common.tf_util as U from baselines import logger import numpy as np import tensorflow as tf from mpi4py import MPI def train(env, nb_epochs, nb_epoch_cycles, render_eval, reward_scale, render, par...
45.723077
207
0.570996
7986fe2243aee2a5e722bb4501fb4d8ae012d934
26,391
py
Python
rcsb/utils/Archive/EntityPolymerExtractor.py
rcsb/py-rcsb_utils_anal
e6fb4e8d1bf56dece5fc7ce266381f58b745bb60
[ "Apache-2.0" ]
null
null
null
rcsb/utils/Archive/EntityPolymerExtractor.py
rcsb/py-rcsb_utils_anal
e6fb4e8d1bf56dece5fc7ce266381f58b745bb60
[ "Apache-2.0" ]
null
null
null
rcsb/utils/Archive/EntityPolymerExtractor.py
rcsb/py-rcsb_utils_anal
e6fb4e8d1bf56dece5fc7ce266381f58b745bb60
[ "Apache-2.0" ]
3
2020-12-03T17:39:56.000Z
2020-12-03T17:40:12.000Z
## # File: EntityPolymerExtractor.py # Date: 19-Feb-2019 jdw # # Selected utilities to extract entity polymer mapping and feature data # from the exchange database schema. # # Updates: # # ## __docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "jwest@rcsb.rutgers.edu" __license__ = "Apache ...
48.158759
180
0.431321
7986ff034d19bb826387bc3df68719d547914276
8,842
py
Python
tests/test_misc.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
tests/test_misc.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
tests/test_misc.py
thisirs/Flexget
4dacd31e89dd37c6c8afce0c11b37eeb177ebc0f
[ "MIT" ]
null
null
null
from __future__ import unicode_literals, division, absolute_import from builtins import * # pylint: disable=unused-import, redefined-builtin import os import stat import pytest from flexget.entry import EntryUnicodeError, Entry class TestDisableBuiltins(object): """ Quick a hack, test disable functio...
31.466192
132
0.55587
798700447bebf49c9515ad62cf3a2ce4f8e1ed51
3,956
py
Python
datum/export/export.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
6
2020-05-17T10:03:24.000Z
2021-07-05T18:38:06.000Z
datum/export/export.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
2
2021-07-26T03:22:47.000Z
2022-02-09T23:33:33.000Z
datum/export/export.py
openAGI/datum
2dfc8c62ed1366fd8544b8b25d730d89dfb57d4e
[ "Apache-2.0" ]
1
2021-06-14T14:49:38.000Z
2021-06-14T14:49:38.000Z
# Copyright 2021 The OpenAGI Datum 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
44.954545
89
0.720425
7987004e5949de8a923f431ced9ce39e8dd8f814
870
py
Python
homeassistant/components/iotawatt/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
17
2021-02-03T12:54:16.000Z
2022-02-16T01:09:08.000Z
homeassistant/components/iotawatt/__init__.py
basicpail/core
5cc54618c5af3f75c08314bf2375cc7ac40d2b7e
[ "Apache-2.0" ]
87
2020-07-06T22:22:54.000Z
2022-03-31T06:01:46.000Z
homeassistant/components/iotawatt/__init__.py
winning1120xx/home-assistant
53d4c0ce2d374b5e97bbdc37742656c27adf8eea
[ "Apache-2.0" ]
13
2021-03-02T15:09:19.000Z
2022-02-11T00:39:53.000Z
"""The iotawatt integration.""" from homeassistant.config_entries import ConfigEntry from homeassistant.core import HomeAssistant from .const import DOMAIN from .coordinator import IotawattUpdater PLATFORMS = ("sensor",) async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: """Set up iot...
34.8
87
0.762069
798700991dea0813ed52075552a927d14bafac19
6,369
tac
Python
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t6.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
1
2022-03-02T16:05:49.000Z
2022-03-02T16:05:49.000Z
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t6.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
6 复试/2 笔试/4 编译原理/编原/hw/2015_刘智峰_PA/PA3/TestCases/S3/output/t6.tac
ladike/912_project
5178c1c93ac6ca30ffc72dd689f5c6932704b4ab
[ "MIT" ]
null
null
null
VTABLE(_Main) { <empty> Main } FUNCTION(_Main_New) { memo '' _Main_New: _T4 = 4 parm _T4 _T5 = call _Alloc _T6 = VTBL <_Main> *(_T5 + 0) = _T6 return _T5 } FUNCTION(_Main.Binky) { memo '_T1:4 _T2:8 _T3:12' _Main.Binky: _T7 = 0 _T8 = *(_T3 - 4) _T9 = (_T7 < _T8) if (_T9...
20.881967
70
0.547967
7987009f688a372c8d94bb2977fc660db0847da5
4,178
py
Python
python/ray/data/_internal/shuffle.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/data/_internal/shuffle.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
python/ray/data/_internal/shuffle.py
jianoaix/ray
1701b923bc83905f8961c06a6a173e3eba46a936
[ "Apache-2.0" ]
null
null
null
from typing import List, Optional, Dict, Any, Tuple, Union from ray.data.block import Block, BlockMetadata from ray.data._internal.progress_bar import ProgressBar from ray.data._internal.block_list import BlockList from ray.data._internal.remote_fn import cached_remote_fn class ShuffleOp: """ A generic shuff...
37.303571
84
0.656774
79870178086b77101f85cfef39b60536d44cd1a5
1,120
py
Python
store_locator/models.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
1
2021-12-18T12:45:58.000Z
2021-12-18T12:45:58.000Z
store_locator/models.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
null
null
null
store_locator/models.py
waustin/django-store-locator
2cbc31af068494401e93360a2560a7162031bfae
[ "MIT" ]
null
null
null
from django.contrib.gis.db import models class ZipCodeLocation(models.Model): zip_code = models.CharField(max_length=7, db_index=True, unique=True) location = models.PointField(srid=4326) objects = models.GeoManager() def __unicode__(self): return self.zip_code class Location(models.Model)...
28.717949
73
0.691964
7987021cb05221a115141647a29cceb03b7fb8df
971
py
Python
test/test_service_now_configuration_create.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_service_now_configuration_create.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
test/test_service_now_configuration_create.py
CiscoDevNet/python-msx-sdk
d7e0a08c656504b4f4551d263e67c671a2a04b3f
[ "MIT" ]
null
null
null
""" MSX SDK MSX SDK client. # noqa: E501 The version of the OpenAPI document: 1.0.9 Generated by: https://openapi-generator.tech """ import sys import unittest import python_msx_sdk from python_msx_sdk.model.service_now_configuration_request import ServiceNowConfigurationRequest globals()['Service...
25.552632
97
0.748713
79870578c181da94d467c2e808aa61a4830ba5df
957
py
Python
deprecated_examples_robust/multimedia/avmnist_gradient_blend_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples_robust/multimedia/avmnist_gradient_blend_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
deprecated_examples_robust/multimedia/avmnist_gradient_blend_robust.py
TianhaoFu/MultiBench
b174a3187124d6f92be1ff3b487eef292f7883bb
[ "MIT" ]
null
null
null
import sys import os sys.path.append(os.path.dirname(os.path.dirname(os.getcwd()))) from training_structures.gradient_blend import train, test from fusions.common_fusions import Concat from datasets.avmnist.get_data_robust import get_dataloader from unimodals.common_models import LeNet,MLP,Constant from torch import nn...
34.178571
128
0.791014
798705a113e1245e8ac2d8a307616c11801e02e1
76
py
Python
classes/math_tools.py
mogekag/cyber-jirimoon
05bec2467b7da6786a6de771b60bfc050c055e6a
[ "MIT" ]
null
null
null
classes/math_tools.py
mogekag/cyber-jirimoon
05bec2467b7da6786a6de771b60bfc050c055e6a
[ "MIT" ]
null
null
null
classes/math_tools.py
mogekag/cyber-jirimoon
05bec2467b7da6786a6de771b60bfc050c055e6a
[ "MIT" ]
null
null
null
""" Here shall be A* searches, Voronoy tesselation and other algorithms. """
25.333333
68
0.736842
798705a78b8ca4efb1ebe8b0b3d7690de75e0ae0
781
py
Python
qiling/qiling/os/uefi/PiMultiPhase.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:01.000Z
2021-06-04T14:27:15.000Z
qiling/qiling/os/uefi/PiMultiPhase.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
null
null
null
qiling/qiling/os/uefi/PiMultiPhase.py
mrTavas/owasp-fstm-auto
6e9ff36e46d885701c7419db3eca15f12063a7f3
[ "CC0-1.0" ]
2
2021-05-05T12:03:09.000Z
2021-06-04T14:27:21.000Z
#!/usr/bin/env python3 # # Cross Platform and Multi Architecture Advanced Binary Emulation Framework # from .UefiBaseType import * from .ProcessorBind import * EFI_SMRAM_OPEN = 0x00000001 EFI_SMRAM_CLOSED = 0x00000002 EFI_SMRAM_LOCKED = 0x00000004 EFI_CACHEABLE = 0x00000008 EFI_ALLOCATED = 0x000000...
22.314286
75
0.758003
798705e7dbbdd8633ef2072147c3a0a0db354746
488
py
Python
project_name/todo_api/migrations/0001_initial.py
Saknowman/django-rest-vue-template
f97139b28aa148609561a1018ea2aef9bd3b4374
[ "MIT" ]
null
null
null
project_name/todo_api/migrations/0001_initial.py
Saknowman/django-rest-vue-template
f97139b28aa148609561a1018ea2aef9bd3b4374
[ "MIT" ]
9
2019-11-02T00:37:12.000Z
2022-02-10T13:49:16.000Z
project_name/todo_api/migrations/0001_initial.py
Saknowman/django-rest-vue-template
f97139b28aa148609561a1018ea2aef9bd3b4374
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-26 04:41 from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TodoTask', fields=[ ('id', models.AutoField...
22.181818
114
0.57582
798706f123c672412cc1238865d7faf58003063c
23,018
py
Python
pdb2pka/pka_old.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
pdb2pka/pka_old.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
pdb2pka/pka_old.py
pedrishi/pdb2pqr_pypka
74f64948658d021a8bfc8fd78936ce4186ffc88e
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # # pKa calculations with APBS # # Copyright University College Dublin & Washington University St. Louis 2004-2007 # All rights reserved # # # Get paths # debug=False import optparse import sys, os from pKa_base import * print __file__ import os try: file_name=__file__ if file_name[:2]==...
32.148045
206
0.523069
7987076c29aa87c9a6d901b861f5c3a81aa8f798
14,069
py
Python
dbms/tests/integration/test_mysql_protocol/test.py
rodrigargar/ClickHouse
48a2b46499300d2ab2b8d1302e8ab45feb20fa57
[ "Apache-2.0" ]
null
null
null
dbms/tests/integration/test_mysql_protocol/test.py
rodrigargar/ClickHouse
48a2b46499300d2ab2b8d1302e8ab45feb20fa57
[ "Apache-2.0" ]
1
2020-04-04T04:25:47.000Z
2020-04-04T04:25:47.000Z
dbms/tests/integration/test_mysql_protocol/test.py
rodrigargar/ClickHouse
48a2b46499300d2ab2b8d1302e8ab45feb20fa57
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 import docker import datetime import math import os import pytest import subprocess import time import pymysql.connections from docker.models.containers import Container from helpers.cluster import ClickHouseCluster SCRIPT_DIR = os.path.dirname(os.path.realpath(__file__)) config_dir = os.path.join...
43.692547
176
0.649869
7987081d545e0a00827423864991769fefb58c07
1,939
py
Python
tcod/sdl/sys.py
hanok2/python-tcod
807fdca464389e3febd8c86991bd4564d091f48d
[ "BSD-2-Clause" ]
1
2022-03-21T15:25:11.000Z
2022-03-21T15:25:11.000Z
tcod/sdl/sys.py
hanok2/python-tcod
807fdca464389e3febd8c86991bd4564d091f48d
[ "BSD-2-Clause" ]
null
null
null
tcod/sdl/sys.py
hanok2/python-tcod
807fdca464389e3febd8c86991bd4564d091f48d
[ "BSD-2-Clause" ]
null
null
null
from __future__ import annotations import enum import warnings from typing import Any, Tuple from tcod.loader import ffi, lib from tcod.sdl import _check, _get_error class Subsystem(enum.IntFlag): TIMER = 0x00000001 AUDIO = 0x00000010 VIDEO = 0x00000020 JOYSTICK = 0x00000200 HAPTIC = 0x00001000 ...
24.858974
96
0.668901
7987089f7d1258b56e943c9129262101708eeb76
1,909
py
Python
pipeline/annotate_image.py
Alexyuda/doorbell-cam
5519bb333a568570e04406a5e764947b4334524b
[ "MIT" ]
null
null
null
pipeline/annotate_image.py
Alexyuda/doorbell-cam
5519bb333a568570e04406a5e764947b4334524b
[ "MIT" ]
null
null
null
pipeline/annotate_image.py
Alexyuda/doorbell-cam
5519bb333a568570e04406a5e764947b4334524b
[ "MIT" ]
null
null
null
import cv2 import datetime from pipeline.pipeline import Pipeline from pipeline.libs.colors import colors from pipeline.libs.text import put_text class AnnotateImage(Pipeline): """Pipeline task for image annotation.""" def __init__(self, dst): self.dst = dst super(AnnotateImage, self).__init...
32.355932
95
0.556836
798708ad2316fb88e9add647b9a000af27eac80b
306
py
Python
Algorithms/Easy/520. Detect Capital/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/520. Detect Capital/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
Algorithms/Easy/520. Detect Capital/answer.py
KenWoo/Algorithm
4012a2f0a099a502df1e5df2e39faa75fe6463e8
[ "Apache-2.0" ]
null
null
null
from typing import List class Solution: def detectCapitalUse(self, word: str) -> bool: return word == word.upper() or word == word.lower() or word == (word[0].upper() + word[1:].lower()) if __name__ == "__main__": s = Solution() result = s.detectCapitalUse("Usa") print(result)
23.538462
107
0.624183
798709c32f8f610bb48468784c5dd8fc2556544b
37,937
py
Python
test/fx2trt/trt_lower/trt_splitter_test.py
steffenerickson/pytorch
0b656c4c69ce77ecd9aace486e471917e4660746
[ "Intel" ]
1
2022-01-31T14:15:35.000Z
2022-01-31T14:15:35.000Z
test/fx2trt/trt_lower/trt_splitter_test.py
steffenerickson/pytorch
0b656c4c69ce77ecd9aace486e471917e4660746
[ "Intel" ]
1
2022-02-03T12:43:23.000Z
2022-02-03T12:47:53.000Z
test/fx2trt/trt_lower/trt_splitter_test.py
steffenerickson/pytorch
0b656c4c69ce77ecd9aace486e471917e4660746
[ "Intel" ]
null
null
null
# Owner(s): ["oncall: aiacc"] import operator import torch # isort:skip import torch.fx # isort:skip import torch.fx.experimental.fx_acc.acc_ops as acc_ops import torch.fx.passes.operator_support as op_support import torch.fx.passes.shape_prop as shape_prop from torch.fx.experimental.fx2trt.tools.trt_splitter impo...
32.902862
107
0.530327
798709fc27c06dbb287f2c44a0853eff68ad113c
386
py
Python
configure_logging-2.py
Krishnaarunangsu/LogBestPracticesPython
15be48ce97e61ebd7e6ec46f3e31f4035c2f9c1c
[ "BSD-2-Clause" ]
null
null
null
configure_logging-2.py
Krishnaarunangsu/LogBestPracticesPython
15be48ce97e61ebd7e6ec46f3e31f4035c2f9c1c
[ "BSD-2-Clause" ]
null
null
null
configure_logging-2.py
Krishnaarunangsu/LogBestPracticesPython
15be48ce97e61ebd7e6ec46f3e31f4035c2f9c1c
[ "BSD-2-Clause" ]
null
null
null
import logging import logging.config import yaml def showLogs(): # with open("path/to/yaml", 'r') as the_file: with open("resources/logging.yml", 'r') as the_file: config_dict = yaml.load(the_file) logging.config.dictConfig(config_dict) logger = logging.getLogger(__name__) logger.debug('A...
22.705882
56
0.694301
79870db3bbde55a76f0ef4730d969fe5a8af4c9f
946
py
Python
cli/docker/pytest/test_general.py
OwnYourData/soya
9af3e832866e116914d769947a11b55b695341ba
[ "MIT" ]
4
2021-11-19T12:28:57.000Z
2022-03-11T16:59:31.000Z
cli/docker/pytest/test_general.py
OwnYourData/soya
9af3e832866e116914d769947a11b55b695341ba
[ "MIT" ]
null
null
null
cli/docker/pytest/test_general.py
OwnYourData/soya
9af3e832866e116914d769947a11b55b695341ba
[ "MIT" ]
null
null
null
import pytest import os import sys import glob import requests import subprocess from pathlib import Path repo = "https://soya.data-container.net" def test_repo(): response = requests.get(repo + "/api/active") assert response.status_code == 200 # doc: https://pypi.org/project/pytest-subprocess/ cwd = os.getc...
29.5625
81
0.655391
79870dfa4723af69eba9c58b73cc04e5a1070939
1,295
py
Python
exam3.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
exam3.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
exam3.py
demogest/Python_Practice
6d074d694e761e0ba390252fbeb1092bb21d26e1
[ "MIT" ]
null
null
null
from tkinter import * from functools import partial def cls(): var.set('0') def equal(): global flag flag = True if var.get()[-1] in map(str,range(10)): x = eval(var.get()) str(x) var.set(x) else: var.set("Wrong") def calu(op): global flag flag = False var...
25.392157
110
0.611583
79870e0c215dd1cc028d1ac6d92e517f9f75363e
25,581
py
Python
tfx/orchestration/experimental/core/pipeline_state.py
swap-10/tfx
8e80ce2486b4d7b219dcff906d6930e62c5fdd45
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/experimental/core/pipeline_state.py
swap-10/tfx
8e80ce2486b4d7b219dcff906d6930e62c5fdd45
[ "Apache-2.0" ]
null
null
null
tfx/orchestration/experimental/core/pipeline_state.py
swap-10/tfx
8e80ce2486b4d7b219dcff906d6930e62c5fdd45
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 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...
38.010401
81
0.740432
79870ffb29e09e42ae1708f02071d5d7ec2dedf8
3,236
py
Python
tensortrade/stochastic/processes/fbm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
2
2020-10-22T01:01:50.000Z
2021-03-06T17:27:51.000Z
tensortrade/stochastic/processes/fbm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
1
2020-09-01T09:38:23.000Z
2020-09-01T09:38:23.000Z
tensortrade/stochastic/processes/fbm.py
nicomon24/tensortrade
870ae06a4440045edde4f5306e64264bd33d5b67
[ "Apache-2.0" ]
1
2020-09-20T21:39:35.000Z
2020-09-20T21:39:35.000Z
# Copyright 2020 The TensorTrade 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.359551
97
0.706119
798710dddd3fc4e8b19995f682101f9bdddedc1b
834
py
Python
setup.py
fenrisl/cyberwatch_api_toolbox
5bc691c87446f117a9e52acd3c8590eb3693dcd6
[ "MIT" ]
null
null
null
setup.py
fenrisl/cyberwatch_api_toolbox
5bc691c87446f117a9e52acd3c8590eb3693dcd6
[ "MIT" ]
null
null
null
setup.py
fenrisl/cyberwatch_api_toolbox
5bc691c87446f117a9e52acd3c8590eb3693dcd6
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages setup( name='cbw-api-toolbox', description='CyberWatch Api Tools.', long_description=open('README.md').read().strip(), long_description_content_type="text/markdown", version='2.1.0', author='CyberWatch SAS', author_email='support-it+api@cyberwatch...
29.785714
72
0.64988
7987119b5be97b453f05f106227cf8c57ddd06d2
3,666
py
Python
skexplain/main/PermutationImportance/data_verification.py
monte-flora/scikit-explain
d93ca4c77d1d47e613479ae36cc055ffaafea88c
[ "MIT" ]
9
2021-04-12T16:11:38.000Z
2022-03-18T09:03:58.000Z
build/lib/pymint/main/PermutationImportance/data_verification.py
monte-flora/py-mint
0dd22a2e3dce68d1a12a6a99623cb4d4cb407b58
[ "MIT" ]
21
2021-04-13T01:17:40.000Z
2022-03-11T16:06:50.000Z
build/lib/pymint/main/PermutationImportance/data_verification.py
monte-flora/mintpy
23f9a952726dc0e69dfcdda2f8c7c27858aa9a11
[ "MIT" ]
1
2021-11-15T20:56:46.000Z
2021-11-15T20:56:46.000Z
"""These utilities are designed to check whether the given data and variable names match the expected format. For the training or scoring data, we accept either a pandas dataframe with the target column indicated, two different dataframes, or two numpy arrays""" import numpy as np import pandas as pd from .error_ha...
37.793814
110
0.58347
7987119d71f1c3ac74c37ee7cf83b39dbacb9f23
633
py
Python
src/compas_blender/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
235
2017-11-07T07:33:22.000Z
2022-03-25T16:20:00.000Z
src/compas_blender/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
770
2017-09-22T13:42:06.000Z
2022-03-31T21:26:45.000Z
src/compas_blender/utilities/misc.py
XingxinHE/compas
d2901dbbacdaf4694e5adae78ba8f093f10532bf
[ "MIT" ]
99
2017-11-06T23:15:28.000Z
2022-03-25T16:05:36.000Z
import sys __all__ = [ 'unload_modules', ] def unload_modules(top_level_module_name): """Unloads all modules named starting with the specified string. This function eases the development workflow when editing a library that is used from Blender. Parameters ---------- top_level_module_n...
20.419355
86
0.661927
79871258bfc0f13a78b423d442bf69d51f73df52
775
py
Python
data_utils/dataset/__init__.py
hieu1999210/image_compression
3faf90d704782e1d6a186b0c8ea7fb1e2ec97a2c
[ "Apache-2.0" ]
null
null
null
data_utils/dataset/__init__.py
hieu1999210/image_compression
3faf90d704782e1d6a186b0c8ea7fb1e2ec97a2c
[ "Apache-2.0" ]
null
null
null
data_utils/dataset/__init__.py
hieu1999210/image_compression
3faf90d704782e1d6a186b0c8ea7fb1e2ec97a2c
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Hieu Nguyen # # 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, ...
43.055556
80
0.700645
7987129d3551523f6ced75d5a398e30fa99c3fae
3,023
py
Python
openrec/modules/extractions/sdae.py
BoData-Bot/openrec
3d655d21b762b40d50e53cea96d7802fd49c74ad
[ "Apache-2.0" ]
null
null
null
openrec/modules/extractions/sdae.py
BoData-Bot/openrec
3d655d21b762b40d50e53cea96d7802fd49c74ad
[ "Apache-2.0" ]
null
null
null
openrec/modules/extractions/sdae.py
BoData-Bot/openrec
3d655d21b762b40d50e53cea96d7802fd49c74ad
[ "Apache-2.0" ]
null
null
null
from __future__ import print_function import tensorflow as tf from termcolor import colored from openrec.modules.extractions import Extraction from openrec.modules.extractions import MultiLayerFC class SDAE(Extraction): """ The SDAE module implements Stacked Denoising Autoencoders [bn]_. It outputs SDAE's bot...
45.119403
130
0.658286
798713867a21aca7ba1c7ac9b88c0da3caad5c90
3,315
py
Python
lib/telemetry.py
Shakil-Shahadat/sublime-text-plugin
d3e440ed42d0b284501021f7fc5643482e78654a
[ "MIT" ]
207
2019-09-28T00:14:39.000Z
2022-03-30T07:51:07.000Z
lib/telemetry.py
Shakil-Shahadat/sublime-text-plugin
d3e440ed42d0b284501021f7fc5643482e78654a
[ "MIT" ]
165
2019-11-25T14:30:11.000Z
2022-02-14T16:35:09.000Z
lib/telemetry.py
Shakil-Shahadat/sublime-text-plugin
d3e440ed42d0b284501021f7fc5643482e78654a
[ "MIT" ]
31
2020-01-09T14:44:50.000Z
2022-02-07T18:18:12.000Z
import uuid import urllib import sublime from .config import get_settings __doc__ = "Telemetry module: sends anonymous Emmet usage stats to improve user experience" TRACK_ID = 'UA-171521327-1' HOST = 'https://www.google-analytics.com/batch' MAX_BATCH = 20 scheduled = False queue = [] "Queue for pending tracking rec...
24.738806
100
0.623529
798713be2014b5e2fdd1e3d4000decd1183e7e10
3,149
py
Python
backend/import_dataset_file.py
linz/geospatial-data-lake
e92fb2fc0e050da471e3ecbc1c0331c551612092
[ "MIT" ]
5
2021-02-04T01:07:20.000Z
2021-04-16T09:35:21.000Z
backend/import_dataset_file.py
linz/geospatial-data-lake
e92fb2fc0e050da471e3ecbc1c0331c551612092
[ "MIT" ]
252
2020-10-26T10:34:43.000Z
2021-05-17T04:21:08.000Z
backend/import_dataset_file.py
linz/geospatial-data-lake
e92fb2fc0e050da471e3ecbc1c0331c551612092
[ "MIT" ]
1
2021-05-05T04:23:32.000Z
2021-05-05T04:23:32.000Z
from json import dumps, loads from typing import TYPE_CHECKING, Callable, Optional from urllib.parse import unquote_plus from botocore.exceptions import ClientError from .aws_response import AWS_CODE_REQUEST_TIMEOUT from .import_dataset_keys import NEW_KEY_KEY, ORIGINAL_KEY_KEY, TARGET_BUCKET_NAME_KEY from .log impor...
34.988889
96
0.72658
79871493ddb70015db6c243f268b4f6712abb06d
7,773
py
Python
ansible/modules/network/aci/aci_bd_subnet.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/network/aci/aci_bd_subnet.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/network/aci/aci_bd_subnet.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {'metadata_version': '1.1', 'status': ['preview'], ...
37.370192
146
0.664094
798714a553669f6cfe0aad70cef8c3cb4790b994
625
py
Python
myPortfolio/myPortfolio/apps/main/models.py
Dima12101/myPortfolio
5efc1ec6371aa5a72675a93f0cb2abb7d55cf23b
[ "Apache-2.0" ]
null
null
null
myPortfolio/myPortfolio/apps/main/models.py
Dima12101/myPortfolio
5efc1ec6371aa5a72675a93f0cb2abb7d55cf23b
[ "Apache-2.0" ]
null
null
null
myPortfolio/myPortfolio/apps/main/models.py
Dima12101/myPortfolio
5efc1ec6371aa5a72675a93f0cb2abb7d55cf23b
[ "Apache-2.0" ]
null
null
null
from django.db import models from django.utils import timezone import datetime #models.ForeignKey(name_class, on_delete = models.CASCADE) class Comment(models.Model): author_name = models.CharField('имя автора', max_length=50) comment_text = models.CharField('текст комментария', max_length=200) date = mod...
27.173913
73
0.72
79871628fad88970fdcfa0ea5c4041b35d70ba91
8,940
py
Python
themes/minimal/base16-humanoid-light.config.py
pltanton/base16-qutebrowser
dff61f51e10906491034e15f6b78440ce06dbc1a
[ "MIT" ]
null
null
null
themes/minimal/base16-humanoid-light.config.py
pltanton/base16-qutebrowser
dff61f51e10906491034e15f6b78440ce06dbc1a
[ "MIT" ]
null
null
null
themes/minimal/base16-humanoid-light.config.py
pltanton/base16-qutebrowser
dff61f51e10906491034e15f6b78440ce06dbc1a
[ "MIT" ]
null
null
null
# base16-qutebrowser (https://github.com/theova/base16-qutebrowser) # Base16 qutebrowser template by theova and Daniel Mulford # Humanoid light scheme by Thomas (tasmo) Friese base00 = "#f8f8f2" base01 = "#efefe9" base02 = "#deded8" base03 = "#c0c0bd" base04 = "#60615d" base05 = "#232629" base06 = "#2f3337" base07 = "...
30
95
0.7717
798716996d087afe8fa7ec9a324befd041ca8b57
124,522
py
Python
mindspore/ops/operations/math_ops.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
1
2021-04-23T06:35:18.000Z
2021-04-23T06:35:18.000Z
mindspore/ops/operations/math_ops.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "Apache-2.0" ]
null
null
null
mindspore/ops/operations/math_ops.py
Rossil2012/mindspore
8a20b5d784b3fec6d32e058581ec56ec553a06a0
[ "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...
35.415813
119
0.614317
798717226b975cfdf19143972d04a5b33f8abc27
9,876
py
Python
pyvista/jupyter/itkplotter.py
stefsmeets/pyvista
06b1ac01214a4c636395f139b681acea2543960c
[ "MIT" ]
1,107
2019-05-13T06:40:26.000Z
2022-03-31T22:16:32.000Z
pyvista/jupyter/itkplotter.py
stefsmeets/pyvista
06b1ac01214a4c636395f139b681acea2543960c
[ "MIT" ]
1,709
2019-05-13T05:52:42.000Z
2022-03-31T18:16:53.000Z
pyvista/jupyter/itkplotter.py
stefsmeets/pyvista
06b1ac01214a4c636395f139b681acea2543960c
[ "MIT" ]
225
2019-05-16T04:24:20.000Z
2022-03-31T18:14:02.000Z
"""PyVista-like ITKwidgets plotter.""" import numpy as np import pyvista as pv class PlotterITK(): """ITKwidgets plotter. Used for plotting interactively within a jupyter notebook. Requires ``itkwidgets>=0.25.2``. For installation see: https://github.com/InsightSoftwareConsortium/itkwidgets#instal...
36.043796
87
0.588295
7987191378db0cd46f88838f182a32fc3dd91523
3,091
py
Python
azure-servicefabric/azure/servicefabric/models/replicas_health_evaluation.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2021-09-07T18:36:04.000Z
2021-09-07T18:36:04.000Z
azure-servicefabric/azure/servicefabric/models/replicas_health_evaluation.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
2
2019-10-02T23:37:38.000Z
2020-10-02T01:17:31.000Z
azure-servicefabric/azure/servicefabric/models/replicas_health_evaluation.py
JonathanGailliez/azure-sdk-for-python
f0f051bfd27f8ea512aea6fc0c3212ee9ee0029b
[ "MIT" ]
1
2020-07-25T20:36:02.000Z
2020-07-25T20:36:02.000Z
# coding=utf-8 # -------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for # license information. # # Code generated by Microsoft (R) AutoRest Code Generator. # Changes ...
46.134328
124
0.69298
79871a174fe0a5770e150b33acf42da531607fb4
489
py
Python
data/scripts/templates/object/tangible/wearables/armor/composite/shared_armor_composite_leggings.py
obi-two/GameServer
7d37024e2291a97d49522610cd8f1dbe5666afc2
[ "MIT" ]
20
2015-02-23T15:11:56.000Z
2022-03-18T20:56:48.000Z
data/scripts/templates/object/tangible/wearables/armor/composite/shared_armor_composite_leggings.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
null
null
null
data/scripts/templates/object/tangible/wearables/armor/composite/shared_armor_composite_leggings.py
apathyboy/swganh
665128efe9154611dec4cb5efc61d246dd095984
[ "MIT" ]
20
2015-04-04T16:35:59.000Z
2022-03-24T14:54:37.000Z
#### NOTICE: THIS FILE IS AUTOGENERATED #### MODIFICATIONS MAY BE LOST IF DONE IMPROPERLY #### PLEASE SEE THE ONLINE DOCUMENTATION FOR EXAMPLES from swgpy.object import * def create(kernel): result = Tangible() result.template = "object/tangible/wearables/armor/composite/shared_armor_composite_leggings.iff" resu...
28.764706
98
0.748466
79871a1a40127be4b6df315c8584a94cad97cfff
5,481
py
Python
efficientdet/keras/eval.py
vidalmaxime/automl
c7fe34ccc93ca006d47c80df5476ebd34ee29250
[ "Apache-2.0" ]
1
2020-11-25T16:43:11.000Z
2020-11-25T16:43:11.000Z
efficientdet/keras/eval.py
GauravKakade/automl
c4fb2f91d82b29c1116908f86a65a74c8836b2e2
[ "Apache-2.0" ]
null
null
null
efficientdet/keras/eval.py
GauravKakade/automl
c4fb2f91d82b29c1116908f86a65a74c8836b2e2
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. 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...
40.6
80
0.687466
79871aa83fa689ba4b8db5d17b195f69466be823
2,599
py
Python
jcatalog/transform/scielo_avaliacao_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/transform/scielo_avaliacao_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
jcatalog/transform/scielo_avaliacao_update.py
ednilson/jcatalog
e36188e39fbf37c74e37445060e1bafa18a3e20b
[ "BSD-2-Clause" ]
null
null
null
# coding: utf-8 ''' This script reads data from various sources to process and store in MongoDB. ''' import pyexcel import logging import json import models from transform_date import * from accent_remover import * logging.basicConfig(filename='logs/avalicacao.info.txt', level=logging.INFO) logger = logging.getLogger...
25.23301
84
0.482493
79871b4f264dae7cd27074df4ce7767d4514da85
3,061
py
Python
model/pic_level_ftr.py
jingxiang-li/kaggle-yelp
aa13aceef9745e4c0030a1e6eafe7f43cc582211
[ "MIT" ]
null
null
null
model/pic_level_ftr.py
jingxiang-li/kaggle-yelp
aa13aceef9745e4c0030a1e6eafe7f43cc582211
[ "MIT" ]
null
null
null
model/pic_level_ftr.py
jingxiang-li/kaggle-yelp
aa13aceef9745e4c0030a1e6eafe7f43cc582211
[ "MIT" ]
null
null
null
from __future__ import division from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import numpy as np import argparse import os from os import path from predict import get_level4_features def parse_args(): parser = argparse.ArgumentParser() p...
32.913978
71
0.55178
79871bc5e1e3a59f75aeb613152b009ed1759a83
4,293
py
Python
tests/store/test_emissions.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
5
2021-03-02T09:04:07.000Z
2022-01-25T09:58:16.000Z
tests/store/test_emissions.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
229
2020-09-30T15:08:39.000Z
2022-03-31T14:23:55.000Z
tests/store/test_emissions.py
openghg/openghg
9a05dd6fe3cee6123898b8f390cfaded08dbb408
[ "Apache-2.0" ]
null
null
null
import pytest from openghg.store import Emissions from openghg.retrieve import search from openghg.store import recombine_datasets from openghg.objectstore import get_local_bucket from xarray import open_dataset from helpers import get_emissions_datapath def test_read_file(): get_local_bucket(empty=True) te...
30.884892
130
0.678314
79871bfd88d1f5341793679b467f148032a98c29
4,604
py
Python
ej_tkinter/08_ej_billetes.py
crisconru/estacion-dashboard
62c1e859a5ee3e5ee405a5e14138e14a96f3289a
[ "MIT" ]
1
2019-02-19T08:03:11.000Z
2019-02-19T08:03:11.000Z
ej_tkinter/08_ej_billetes.py
crisconru/estacion-dashboard
62c1e859a5ee3e5ee405a5e14138e14a96f3289a
[ "MIT" ]
null
null
null
ej_tkinter/08_ej_billetes.py
crisconru/estacion-dashboard
62c1e859a5ee3e5ee405a5e14138e14a96f3289a
[ "MIT" ]
1
2018-10-28T16:35:29.000Z
2018-10-28T16:35:29.000Z
from tkinter import * from tkinter import ttk # Calcula coste de viaje con validación y cálculo posterior class Aplicacion(): def __init__(self): self.raiz = Tk() self.raiz.title("Alta Velocidad") # Declara variables de control self.num_via = IntVar(value=1) self.ida_vue = ...
46.979592
78
0.582103
79871c46d63cfa971ef781273f27a04a7fd3331a
334
py
Python
examples-tk499-lvgl/exams/widgets_ex/line/__init__.py
bhgv/micropython-tk499
963d0546dda980aa8502c5be29f6aee3d5cd805e
[ "MIT" ]
1
2021-08-31T02:00:44.000Z
2021-08-31T02:00:44.000Z
examples-tk499-lvgl/exams/widgets_ex/line/__init__.py
bhgv/micropython-tk499
963d0546dda980aa8502c5be29f6aee3d5cd805e
[ "MIT" ]
null
null
null
examples-tk499-lvgl/exams/widgets_ex/line/__init__.py
bhgv/micropython-tk499
963d0546dda980aa8502c5be29f6aee3d5cd805e
[ "MIT" ]
null
null
null
import lv_utils import lvgl as lv btn = lv.btn(lv.scr_act()) btn.set_height(lv.SIZE.CONTENT) btn.align(lv.ALIGN.TOP_LEFT, 30, 30) def foo(e): if e.get_code() == lv.EVENT.CLICKED: lv_utils.ex_new_page("exams/widgets_ex/line/p1.py") btn.add_event_cb(foo, lv.EVENT.ALL, None) label = lv.label(btn) label.set_t...
23.857143
59
0.706587
79871c73cb2f9a070b4719608a92423ac177ab90
9,243
py
Python
example/loc9/loc9.py
Principe92/contextualbandits
43cf5be10b3d39d74f9da5c5fe1cfae5bc2dd6f5
[ "BSD-2-Clause" ]
null
null
null
example/loc9/loc9.py
Principe92/contextualbandits
43cf5be10b3d39d74f9da5c5fe1cfae5bc2dd6f5
[ "BSD-2-Clause" ]
null
null
null
example/loc9/loc9.py
Principe92/contextualbandits
43cf5be10b3d39d74f9da5c5fe1cfae5bc2dd6f5
[ "BSD-2-Clause" ]
null
null
null
import pandas as pd, numpy as np, re import dill from sklearn.preprocessing import MultiLabelBinarizer from sklearn.linear_model import LogisticRegression from contextualbandits.online import BootstrappedUCB, BootstrappedTS, SeparateClassifiers,\ EpsilonGreedy, AdaptiveGreedy, ExploreFirst, ActiveExplorer, ...
48.647368
195
0.698691
79871d76f673d48c254131c98e454ae151cfa270
11,296
py
Python
tensorflow_model_analysis/metrics/multi_class_confusion_matrix_metrics.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/metrics/multi_class_confusion_matrix_metrics.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
tensorflow_model_analysis/metrics/multi_class_confusion_matrix_metrics.py
josephw-ml/model-analysis
3105200fd39aa46e4c4d83aa460d92aa08a4b784
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 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 writing, ...
38.684932
83
0.705205
79871df57625e2a6f451a8c9da5673fb86396e3c
501
py
Python
dashboard/dashboard/common/histogram_helpers.py
oneumyvakin/catapult
69d05ea70e77998c86149ac78044470e3ca364ad
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/common/histogram_helpers.py
oneumyvakin/catapult
69d05ea70e77998c86149ac78044470e3ca364ad
[ "BSD-3-Clause" ]
null
null
null
dashboard/dashboard/common/histogram_helpers.py
oneumyvakin/catapult
69d05ea70e77998c86149ac78044470e3ca364ad
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2017 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """Helper methods for working with histograms and diagnostics.""" from tracing.value.diagnostics import reserved_infos def GetTIRLabelFromHistogram(hist):...
31.3125
72
0.746507
79871e57dc0e15f84c5c4ac6f932cdb95426bcb9
21,706
py
Python
mmfewshot/detection/models/dense_heads/two_branch_rpn_head.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
null
null
null
mmfewshot/detection/models/dense_heads/two_branch_rpn_head.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
null
null
null
mmfewshot/detection/models/dense_heads/two_branch_rpn_head.py
BIGWangYuDong/mmfewshot
dac097afc92df176bc2de76b7c90968584865197
[ "Apache-2.0" ]
null
null
null
# Copyright (c) OpenMMLab. All rights reserved. import copy from typing import Dict, List, Optional, Tuple import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.ops import batched_nms from mmcv.runner import force_fp32 from mmcv.utils import ConfigDict from mmdet.core import i...
46.479657
79
0.593154
79871ea81b9d9bea95d2cd85a69ec7b68abbdbc9
154
py
Python
backend/app/api/__init__.py
Nisenco/react_fastapi
fc823f7ef19b6e185c484b2366fc5b0a683fbfac
[ "MIT" ]
null
null
null
backend/app/api/__init__.py
Nisenco/react_fastapi
fc823f7ef19b6e185c484b2366fc5b0a683fbfac
[ "MIT" ]
null
null
null
backend/app/api/__init__.py
Nisenco/react_fastapi
fc823f7ef19b6e185c484b2366fc5b0a683fbfac
[ "MIT" ]
null
null
null
from fastapi import APIRouter from app.api.v1.auth import login router = APIRouter() router.include_router(login.router, tags=['user'], prefix='/api')
19.25
65
0.753247
79871ed61979a605ce634f03a7a6a14f1f933223
188
py
Python
config.py
scaldara55/huzzah-dotstar
c7e048d72dded6baa25622ee9ba9ccb2f29f6add
[ "CC0-1.0" ]
null
null
null
config.py
scaldara55/huzzah-dotstar
c7e048d72dded6baa25622ee9ba9ccb2f29f6add
[ "CC0-1.0" ]
null
null
null
config.py
scaldara55/huzzah-dotstar
c7e048d72dded6baa25622ee9ba9ccb2f29f6add
[ "CC0-1.0" ]
null
null
null
app_config = { 'camera': 'M5CAMERA', # camera -> 'ESP32-CAM' or 'M5CAMERA' 'led': 14, # led -> 4: ESP32-CAM or 14: M5CAMERA } wifi_config = { 'ssid':'', 'password':'' }
17.090909
64
0.531915
79871f5b0775e38bc50d5f528e1b6e026e13f836
45,229
py
Python
pipenv/vendor/pip_shims/models.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
2
2017-12-08T05:38:44.000Z
2018-02-08T13:58:03.000Z
pipenv/vendor/pip_shims/models.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
54
2018-10-07T08:46:09.000Z
2020-08-19T14:25:31.000Z
pipenv/vendor/pip_shims/models.py
GPHemsley/pipenv
f640fcba77fb148b8c3a1fefbc540764d8e4010d
[ "MIT" ]
3
2018-10-17T13:59:30.000Z
2019-01-23T23:46:22.000Z
# -*- coding: utf-8 -*- """ Helper module for shimming functionality across pip versions. """ from __future__ import absolute_import, print_function import collections import functools import importlib import inspect import operator import sys import types import weakref import six from . import compat from .environ...
36.951797
114
0.688054
7987206961ec40c2d6af6b27f1ec9441396a0492
32,970
py
Python
qa/rpc-tests/fundrawtransaction.py
Sandokaaan/Earthcoin2
3f14a2c9f2d163816aadfc838ec483fd3359ef9d
[ "MIT" ]
null
null
null
qa/rpc-tests/fundrawtransaction.py
Sandokaaan/Earthcoin2
3f14a2c9f2d163816aadfc838ec483fd3359ef9d
[ "MIT" ]
null
null
null
qa/rpc-tests/fundrawtransaction.py
Sandokaaan/Earthcoin2
3f14a2c9f2d163816aadfc838ec483fd3359ef9d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2014-2016 The Bitcoin 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 BitcoinTestFramework from test_framework.util import * def ge...
44.19571
223
0.570367
798721cae44a1fc8ae9792f5e60b4e7d47014262
2,120
py
Python
src/textengine/fontlib/convert_fonts.py
traits/Traits3D
09eb850ad4e1054a5574346a6b479dc2d60b1f09
[ "Apache-2.0" ]
null
null
null
src/textengine/fontlib/convert_fonts.py
traits/Traits3D
09eb850ad4e1054a5574346a6b479dc2d60b1f09
[ "Apache-2.0" ]
null
null
null
src/textengine/fontlib/convert_fonts.py
traits/Traits3D
09eb850ad4e1054a5574346a6b479dc2d60b1f09
[ "Apache-2.0" ]
null
null
null
import os hdir = 'include' + os.sep + 'traits3d' + os.sep + 'fonts' hprefix = 'traits3d/fonts' hfile = open(os.path.join(hdir, "stdfonts.h"),'w') s = '''#pragma once // generated private class - don't touch #include "traits3d/fonts/font.h" namespace traits3d { class Font::StandardFonts { ...
27.179487
121
0.54434
7987233b0174d1bd90f5566c5f94ffacc52488b8
21,181
py
Python
ndg/xacml/core/context/result.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
null
null
null
ndg/xacml/core/context/result.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
null
null
null
ndg/xacml/core/context/result.py
philipkershaw/ndg_xacml
f24ccbb4d4c053c585b0369dfe5a5949d49f9715
[ "BSD-3-Clause" ]
null
null
null
"""NDG XACML module for Result type NERC DataGrid """ __author__ = "P J Kershaw" __date__ = "23/03/10" __copyright__ = "(C) 2010 Science and Technology Facilities Council" __contact__ = "Philip.Kershaw@stfc.ac.uk" __license__ = "BSD - see LICENSE file in top-level directory" __contact__ = "Philip.Kershaw@stfc.ac.uk" ...
31.995468
81
0.602993
7987235dfee9ccf5b3c9d26586552daa6beab46a
960
py
Python
minitorneio1/LostBoots/main.py
LucasHenrique-dev/treino_torneio
aa1fc5e9ad5c29bf96f43e09cd2313d3b3f969ea
[ "MIT" ]
null
null
null
minitorneio1/LostBoots/main.py
LucasHenrique-dev/treino_torneio
aa1fc5e9ad5c29bf96f43e09cd2313d3b3f969ea
[ "MIT" ]
null
null
null
minitorneio1/LostBoots/main.py
LucasHenrique-dev/treino_torneio
aa1fc5e9ad5c29bf96f43e09cd2313d3b3f969ea
[ "MIT" ]
null
null
null
while True: try: lotes = int(input()) dicionario = {"pares": 0} for i in range(lotes): [tamanho, pe] = input().split(" ") if tamanho not in dicionario: if pe == "D": dicionario[tamanho] = [0, 1] else: ...
30.967742
51
0.372917
7987251247b32abb9f43f31aa2e7a0a72096ff02
1,740
py
Python
sum_composer.py
SunHaozhe/modular-metalearning
c94dd18c6d105f18667d4de7bb4c81fa538a541c
[ "MIT" ]
70
2018-10-30T01:05:43.000Z
2022-02-11T04:08:19.000Z
sum_composer.py
SunHaozhe/modular-metalearning
c94dd18c6d105f18667d4de7bb4c81fa538a541c
[ "MIT" ]
7
2019-03-25T17:14:22.000Z
2021-06-11T11:57:22.000Z
sum_composer.py
SunHaozhe/modular-metalearning
c94dd18c6d105f18667d4de7bb4c81fa538a541c
[ "MIT" ]
12
2019-01-27T01:14:16.000Z
2021-10-05T17:47:19.000Z
''' Subclass for the composition 'sum' ''' from __future__ import print_function import torch from composition import Composer from structure import Structure if torch.cuda.is_available(): torch.set_default_tensor_type('torch.cuda.FloatTensor') nn_device='cuda:0' else: torch.set_default_tensor_type('torch.FloatTe...
31.636364
78
0.73908