hexsha
stringlengths
40
40
size
int64
4
1.02M
ext
stringclasses
8 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
209
max_stars_repo_name
stringlengths
5
121
max_stars_repo_head_hexsha
stringlengths
40
40
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
4
209
max_issues_repo_name
stringlengths
5
121
max_issues_repo_head_hexsha
stringlengths
40
40
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
4
209
max_forks_repo_name
stringlengths
5
121
max_forks_repo_head_hexsha
stringlengths
40
40
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
4
1.02M
avg_line_length
float64
1.07
66.1k
max_line_length
int64
4
266k
alphanum_fraction
float64
0.01
1
4329c6bed0c7cfac199c7b2fbe597ea715636cb6
2,158
py
Python
nylon/query.py
sarda-devesh/nylon
64829f39ec0b4a613e40599f39fad2236cdd0c68
[ "MIT" ]
null
null
null
nylon/query.py
sarda-devesh/nylon
64829f39ec0b4a613e40599f39fad2236cdd0c68
[ "MIT" ]
null
null
null
nylon/query.py
sarda-devesh/nylon
64829f39ec0b4a613e40599f39fad2236cdd0c68
[ "MIT" ]
null
null
null
from nylon.supplementaries.main import dataset_initializer from nylon.supplementaries.handlers import (preprocess_module, modeling_module, analysis_module) import uuid import pandas as pd class Polymer: ''' Constructor for the Polymer class. :param dataset_path is the path to the dataset :param save_mo...
34.253968
108
0.627433
7215442d21efdc3d4cc1de2d5097b01e7822f129
9,529
py
Python
model/SSFPN.py
mohamedac29/S2-FPN
007b376ab2362b9963c0e81e7b81369a469503e6
[ "MIT" ]
1
2022-02-21T08:33:46.000Z
2022-02-21T08:33:46.000Z
model/SSFPN.py
mohamedac29/S2-FPN
007b376ab2362b9963c0e81e7b81369a469503e6
[ "MIT" ]
null
null
null
model/SSFPN.py
mohamedac29/S2-FPN
007b376ab2362b9963c0e81e7b81369a469503e6
[ "MIT" ]
null
null
null
import torch.nn as nn import torch from torchvision.models import resnet34, resnet50, resnet101, resnet152,resnet18 from torchsummaryX import summary import torch.nn.functional as F from collections import OrderedDict import functools from functools import partial import os, sys from model.sync_batchnorm import Synchro...
36.509579
129
0.635114
08ab1f4a8b7389bd73086ffcd50fb337793cff56
3,028
py
Python
homeassistant/components/binary_sensor/mystrom.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
4
2019-05-14T20:33:43.000Z
2021-09-25T14:56:08.000Z
homeassistant/components/binary_sensor/mystrom.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
null
null
null
homeassistant/components/binary_sensor/mystrom.py
EmitKiwi/home-assistant
0999e2ddc476f4bddf710005168b082f03a7cdc0
[ "Apache-2.0" ]
1
2020-11-04T07:34:41.000Z
2020-11-04T07:34:41.000Z
""" Support for the myStrom buttons. For more details about this platform, please refer to the documentation at https://home-assistant.io/components/binary_sensor.mystrom/ """ import asyncio import logging from homeassistant.components.binary_sensor import (BinarySensorDevice, DOMAIN) from homeassistant.components.ht...
31.541667
79
0.653236
618b4decaf37320a50fab1a8df0b6dbb84467475
1,707
py
Python
idb/common/xctest.py
sergey-plevako-badoo/FBSimulatorControl
117af8508ba7405bdbacd29ec95a0523b3926ad3
[ "MIT" ]
1
2019-06-12T16:46:25.000Z
2019-06-12T16:46:25.000Z
idb/common/xctest.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
null
null
null
idb/common/xctest.py
BalestraPatrick/idb
9deac2af129e7595c303c121944034c556202454
[ "MIT" ]
1
2021-08-20T08:04:16.000Z
2021-08-20T08:04:16.000Z
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. import os import plistlib from enum import Enum from typing import Any, Dict, List class XCTestException(Exception): pass class _XCTestType(Enum): XCTest = 0 XCTestRun = 1 def _get_xctest_type(path: str) ->...
29.431034
87
0.681312
ab6ed5aa318e047beb88fea8558daa7af1aeab88
611
py
Python
supriya/ugens/PV_MagAbove.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_MagAbove.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
supriya/ugens/PV_MagAbove.py
deeuu/supriya
14fcb5316eccb4dafbe498932ceff56e1abb9d27
[ "MIT" ]
null
null
null
import collections from supriya.ugens.PV_ChainUGen import PV_ChainUGen class PV_MagAbove(PV_ChainUGen): """ Passes magnitudes above threshold. :: >>> pv_chain = supriya.ugens.FFT( ... source=supriya.ugens.WhiteNoise.ar(), ... ) >>> pv_mag_above = supriya.ugens.PV...
21.068966
57
0.558101
4cd56a6cde1f40e2a0bc35f5a9955949e13334d3
18,271
py
Python
networkxtest.py
SoBeRBot94/ST-Project-NetworkX-Testing
91de603edf11fb1e3bb887422b43a921eb17a59b
[ "MIT" ]
null
null
null
networkxtest.py
SoBeRBot94/ST-Project-NetworkX-Testing
91de603edf11fb1e3bb887422b43a921eb17a59b
[ "MIT" ]
null
null
null
networkxtest.py
SoBeRBot94/ST-Project-NetworkX-Testing
91de603edf11fb1e3bb887422b43a921eb17a59b
[ "MIT" ]
null
null
null
#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- ''' Softwaretesting project: Networkx 1.11 Team Number: 2 Student Names: Sudarsan Bhargavan, Valeria Helle, Agnes Lind, Anna Westergren ''' import unittest import networkx as nx class TestFreezingGraphStructure(unittest.TestCase): def test_freeze(self): g...
38.14405
118
0.630288
07d9ac4235e160291bc275a84d6af2a2ae6999a0
14,626
py
Python
autosynth/synth_toolbox.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "Apache-2.0" ]
3
2020-12-31T05:26:56.000Z
2021-03-01T07:28:06.000Z
autosynth/synth_toolbox.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "Apache-2.0" ]
null
null
null
autosynth/synth_toolbox.py
jskeet/synthtool
d73e8dea90af1b463a7f9d4a33244cf4612ada7c
[ "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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.591029
88
0.64734
2cf0cd4addc31e342331a16f03ba8ad9b2d9d4f4
897
py
Python
accounts/models.py
felipe-dna/product-api
ada5962e30ac0b6b895a6500328d2ae75033e6d7
[ "MIT" ]
1
2020-10-10T08:31:41.000Z
2020-10-10T08:31:41.000Z
accounts/models.py
felipe-dna/product-api
ada5962e30ac0b6b895a6500328d2ae75033e6d7
[ "MIT" ]
1
2020-06-05T23:29:32.000Z
2020-06-05T23:29:32.000Z
accounts/models.py
felipe-dna/product-api
ada5962e30ac0b6b895a6500328d2ae75033e6d7
[ "MIT" ]
null
null
null
"""Contains the accounts app models.""" import uuid from django.contrib.auth.models import AbstractUser from djongo import models class User(AbstractUser, models.Model): """Define the user model.""" id = models.UUIDField(primary_key=True, unique=True, editable=False, default=uuid.uuid4) email = models.Em...
28.935484
92
0.655518
396781e2d5ee777ecbccfe9b399d998dcd31cbe4
13,682
py
Python
sdk/python/pulumi_azure_native/compute/v20190701/dedicated_host_group.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20190701/dedicated_host_group.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/compute/v20190701/dedicated_host_group.py
sebtelko/pulumi-azure-native
711ec021b5c73da05611c56c8a35adb0ce3244e4
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities fro...
48.176056
842
0.667008
91066a9cc576d998ba06b030f40f00a319ead645
12,470
py
Python
example/home/test/test_general.py
ARogovskyy/wagtail-grapple
c9bae44b7695118516859a1212148d0788aad954
[ "BSD-3-Clause" ]
58
2020-07-29T06:34:47.000Z
2022-03-27T18:36:28.000Z
example/home/test/test_general.py
ARogovskyy/wagtail-grapple
c9bae44b7695118516859a1212148d0788aad954
[ "BSD-3-Clause" ]
124
2020-07-13T12:38:04.000Z
2022-03-31T15:20:41.000Z
example/home/test/test_general.py
ARogovskyy/wagtail-grapple
c9bae44b7695118516859a1212148d0788aad954
[ "BSD-3-Clause" ]
28
2020-08-09T22:50:02.000Z
2022-03-23T09:13:16.000Z
from django.contrib.auth.base_user import AbstractBaseUser from django.contrib.auth.models import AnonymousUser from django.test import RequestFactory, override_settings from example.tests.test_grapple import BaseGrappleTest from home.factories import BlogPageFactory, SimpleModelFactory import uuid class Authenticat...
31.974359
94
0.545549
e6148cf68cc644e7fe8e1cc0e54a48117162fcb5
2,876
py
Python
watchmen/common/presto/presto_utils.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
125
2021-03-13T07:39:46.000Z
2022-02-28T03:14:17.000Z
watchmen/common/presto/presto_utils.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
null
null
null
watchmen/common/presto/presto_utils.py
Insurance-Metrics-Measure-Advisory/watchman-data-connector
8ecab0c5b28174f1611e51deba8d94a42f53d51d
[ "MIT" ]
17
2021-03-13T07:31:58.000Z
2021-05-20T09:38:02.000Z
import logging from model.model.topic.factor import Factor from model.model.topic.topic import Topic from pydantic import Field from pydantic.main import BaseModel from watchmen.common.constants import presto_constants from watchmen.common.constants.parameter_constants import RAW from watchmen.common.utils.data_utils...
36.405063
113
0.723227
b647b47a3ac6b04db4bae71a73f9db1e0894e3b8
56,271
py
Python
beer/rpc/wallet_rpc_api.py
beer-network/beer-blockchain
c05b9c8d8351d78fc813ef32020a2819f6b387a7
[ "Apache-2.0" ]
8
2021-07-08T00:11:49.000Z
2022-02-09T04:28:40.000Z
beer/rpc/wallet_rpc_api.py
beer-network/beer-blockchain
c05b9c8d8351d78fc813ef32020a2819f6b387a7
[ "Apache-2.0" ]
15
2021-07-29T06:37:42.000Z
2021-08-29T17:26:08.000Z
beer/rpc/wallet_rpc_api.py
beer-network/beer-blockchain
c05b9c8d8351d78fc813ef32020a2819f6b387a7
[ "Apache-2.0" ]
3
2021-10-04T17:51:04.000Z
2022-03-01T04:23:01.000Z
import asyncio import logging import time from datetime import datetime from pathlib import Path from typing import Callable, Dict, List, Optional, Tuple from blspy import PrivateKey, G1Element from beer.cmds.init_funcs import check_keys from beer.consensus.block_rewards import calculate_base_farmer_reward from beer....
45.270314
120
0.613051
8dc1aee3029d2911d69893b8b956921136a9aee4
4,906
py
Python
bench/sqlite3-search-bench.py
crs4/PyTables
02d23d41f714122fd5fd4f7e1063c0b31d1a774b
[ "BSD-3-Clause" ]
1
2020-12-27T13:53:00.000Z
2020-12-27T13:53:00.000Z
bench/sqlite3-search-bench.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
bench/sqlite3-search-bench.py
mrgloom/PyTables
c30c6f40cd3d5996ee711d5685328085f3569cfc
[ "BSD-3-Clause" ]
null
null
null
import os, os.path from time import time import numpy import random # in order to always generate the same random sequence random.seed(19) def fill_arrays(start, stop): col_i = numpy.arange(start, stop, dtype=numpy.int32) if userandom: col_j = numpy.random.uniform(0, nrows, stop-start) else: ...
27.407821
81
0.551773
4cc6ec63bbc6729386a75e87178a02d252ac8220
4,757
py
Python
dm_control/suite/lqr_solver.py
hzm2016/dm_control
c24ec9f5f3cb3c25c6571c89c9f60bf3350f5711
[ "Apache-2.0" ]
2
2019-02-14T23:41:45.000Z
2022-02-10T04:08:44.000Z
dm_control/suite/lqr_solver.py
jiajunhua/deepmind-dm_control
c24ec9f5f3cb3c25c6571c89c9f60bf3350f5711
[ "Apache-2.0" ]
1
2019-03-02T13:37:17.000Z
2019-03-02T13:37:17.000Z
dm_control/suite/lqr_solver.py
svikramank/dm_control
c24ec9f5f3cb3c25c6571c89c9f60bf3350f5711
[ "Apache-2.0" ]
1
2018-11-20T04:39:05.000Z
2018-11-20T04:39:05.000Z
# Copyright 2017 The dm_control 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 i...
32.582192
94
0.663233
ea200a94a0c92b0ca1529036aabf6217aec302a0
1,613
py
Python
src/model_svm.py
hari170894/subreddit-predictor
518bcac3d309595336bba3886d1b22f14422c557
[ "MIT" ]
1
2019-01-09T19:06:09.000Z
2019-01-09T19:06:09.000Z
src/model_svm.py
hari170894/subreddit-predictor
518bcac3d309595336bba3886d1b22f14422c557
[ "MIT" ]
2
2017-12-12T18:38:06.000Z
2017-12-22T22:23:15.000Z
src/model_svm.py
hari170894/subreddit-predictor
518bcac3d309595336bba3886d1b22f14422c557
[ "MIT" ]
null
null
null
#!/usr/bin/python2 from __future__ import nested_scopes, generators, division, absolute_import, with_statement, print_function, unicode_literals import logistics_pickler from sklearn.svm import SVC def create_predictions(train_file, test_file, output_file): print("loading pickled feature representation {}".format...
34.319149
125
0.683199
eac3bde86db158423b6764c9aedfbff1fdf68574
1,811
py
Python
dizoo/pomdp/config/pomdp_dqn_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
1
2022-03-21T16:15:39.000Z
2022-03-21T16:15:39.000Z
dizoo/pomdp/config/pomdp_dqn_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
dizoo/pomdp/config/pomdp_dqn_config.py
jayyoung0802/DI-engine
efbb35ddaf184d1009291e6842fbbae09f193492
[ "Apache-2.0" ]
null
null
null
from easydict import EasyDict pong_dqn_config = dict( exp_name='pomdp_dqn_seed0', env=dict( collector_env_num=8, evaluator_env_num=8, n_evaluator_episode=8, stop_value=20, env_id='Pong-ramNoFrameskip-v4', frame_stack=4, warp_frame=False, use_ram=T...
27.861538
85
0.582551
c8d5793d6cd5b0dd839b3893490e784c66a76509
488
py
Python
rename.py
worksofindustry/machinevision
df29ae05f4d448d1bd6c30034f148bfe7538a5a4
[ "MIT" ]
null
null
null
rename.py
worksofindustry/machinevision
df29ae05f4d448d1bd6c30034f148bfe7538a5a4
[ "MIT" ]
null
null
null
rename.py
worksofindustry/machinevision
df29ae05f4d448d1bd6c30034f148bfe7538a5a4
[ "MIT" ]
null
null
null
# a simple script to rename files from 1 to +++N import os import sys #update dir to your location path = "R:\\Temp\\training\\data\\images" new_filename= "" i=0 filename=os.listdir(path) for dir,subdir,listfilename in os.walk(path): for filename in listfilename: i += 1 new_filename =...
27.111111
74
0.641393
10700b8512effb2694685c54a198e998144ece36
4,807
py
Python
nnabla_nas/module/batchnorm.py
sony/nnabla-nas
269deb8229fda0f0901c47d21ac5ce244f403f63
[ "Apache-2.0" ]
16
2020-07-10T08:31:18.000Z
2022-03-24T13:28:15.000Z
nnabla_nas/module/batchnorm.py
sony/nnabla-nas
269deb8229fda0f0901c47d21ac5ce244f403f63
[ "Apache-2.0" ]
1
2020-10-21T12:46:30.000Z
2021-02-03T00:18:29.000Z
nnabla_nas/module/batchnorm.py
sony/nnabla-nas
269deb8229fda0f0901c47d21ac5ce244f403f63
[ "Apache-2.0" ]
3
2020-07-15T11:42:11.000Z
2022-03-25T16:54:49.000Z
# Copyright (c) 2020 Sony Corporation. 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 applicabl...
41.439655
78
0.598086
d21cc57fada44ffe4cbe5c72dff98fea066c8d90
4,264
py
Python
Resource/toQuery.py
qiaw99/DBS_Project
c22e1395dfa528b01bd65ac8266b10ac93b0f36b
[ "Apache-2.0" ]
null
null
null
Resource/toQuery.py
qiaw99/DBS_Project
c22e1395dfa528b01bd65ac8266b10ac93b0f36b
[ "Apache-2.0" ]
null
null
null
Resource/toQuery.py
qiaw99/DBS_Project
c22e1395dfa528b01bd65ac8266b10ac93b0f36b
[ "Apache-2.0" ]
null
null
null
#Das Skript habe ich genutzt um die Queries für das Hinzufügen der EU Daten für meine Datenbank zu nutzen #Es baut aus den JSON Dateien einen UpdateString für die bei mir schon bestehenden Einträge - das fällt bei #dir wahrscheinlich weg import json import urllib.request data = json.load(open('EU_Dataset.json'))['rec...
63.641791
1,346
0.668621
1c2d0684c89b81f50f514cc0436a71df4e75e4cf
5,057
py
Python
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
mmdet/models/detectors/querytrack.py
Joanna0123/QueryInst
6f75240610439e92bca5398054e3f7adc37bfd53
[ "MIT" ]
null
null
null
from ..builder import DETECTORS from .two_stage import TwoStageDetector @DETECTORS.register_module() class QueryTrack(TwoStageDetector): r"""Implementation of `QueryTrack: Parallelly Supervised Mask Query for Instance Segmentation <https://arxiv.org/abs/2105.01928>`, based on SparseRCNN detector. """ ...
38.603053
86
0.57366
681dbef1eecac381838b185a513cabf052b7a875
4,629
py
Python
oslo_messaging/_drivers/pool.py
mail2nsrajesh/oslo.messaging
58eb8ab4aa7230cefadfde6cc048e3f86f868ff1
[ "Apache-1.1" ]
null
null
null
oslo_messaging/_drivers/pool.py
mail2nsrajesh/oslo.messaging
58eb8ab4aa7230cefadfde6cc048e3f86f868ff1
[ "Apache-1.1" ]
null
null
null
oslo_messaging/_drivers/pool.py
mail2nsrajesh/oslo.messaging
58eb8ab4aa7230cefadfde6cc048e3f86f868ff1
[ "Apache-1.1" ]
null
null
null
# Copyright 2013 Red Hat, 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 or agre...
31.067114
78
0.586088
1da88e13db75772c24857f6c57216c805fa171c2
3,202
py
Python
dispatches/actions/push_actions.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
1,582
2015-01-05T02:41:44.000Z
2022-03-30T20:03:22.000Z
dispatches/actions/push_actions.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
66
2015-01-23T07:58:04.000Z
2021-11-12T02:23:27.000Z
dispatches/actions/push_actions.py
mubashshirjamal/code
d9c7adf7efed8e9c1ab3ff8cdeb94e7eb1a45382
[ "BSD-3-Clause" ]
347
2015-01-05T07:47:07.000Z
2021-09-20T21:22:32.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import urllib import urllib2 import json from dateutil import parser from vilya.libs.signals import push_signal from vilya.models.project import CodeDoubanProject from vilya.models.user import get_author_by_email from vilya.models.lru_counter import (ProjectOwnLRUCounter, ...
32.673469
79
0.543723
7304dff7af48fed19a6010b834f92378453f3ece
4,222
py
Python
obcy/extras/prepare_view.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
null
null
null
obcy/extras/prepare_view.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
2
2021-03-19T21:54:17.000Z
2021-06-10T19:20:12.000Z
obcy/extras/prepare_view.py
jchmura/suchary-django
af2e8a62d222fd6eb18f29af95c23ab098ccc2a6
[ "MIT" ]
null
null
null
from functools import reduce import operator import datetime import time from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage from django.db.models import Q from django.utils.timezone import make_aware, get_current_timezone from obcy.models import Joke SITE_URL = { 'wykop': 'http://wykop.pl'...
29.732394
119
0.647087
4ef0f38bf9da2a5c9a05e33e47a664b1043c7329
8,289
py
Python
python/cuml/metrics/_ranking.py
beckernick/cuml
36b4c7fe2bb98d12bec12a22781c5ad0a7f0d964
[ "Apache-2.0" ]
null
null
null
python/cuml/metrics/_ranking.py
beckernick/cuml
36b4c7fe2bb98d12bec12a22781c5ad0a7f0d964
[ "Apache-2.0" ]
null
null
null
python/cuml/metrics/_ranking.py
beckernick/cuml
36b4c7fe2bb98d12bec12a22781c5ad0a7f0d964
[ "Apache-2.0" ]
null
null
null
# # Copyright (c) 2020, 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 ...
33.695122
79
0.622391
69fb61cfce700cd7c8481f3a6a016c0202ea2173
1,819
py
Python
web/addons/website_blog/__openerp__.py
diogocs1/comps
63df07f6cf21c41e4527c06e2d0499f23f4322e7
[ "Apache-2.0" ]
1
2019-12-29T11:53:56.000Z
2019-12-29T11:53:56.000Z
odoo/addons/website_blog/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
null
null
null
odoo/addons/website_blog/__openerp__.py
tuanquanghpvn/odoo8-tutorial
52d25f1ca5f233c431cb9d3b24b79c3b4fb5127e
[ "MIT" ]
3
2020-10-08T14:42:10.000Z
2022-01-28T14:12:29.000Z
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>). # # This program is free software: you can redistribute it and/or modify # it under the terms ...
33.072727
78
0.578889
27ad4fda2323732820fc399e4004f3d3fd8151dc
1,161
py
Python
lab/gendata.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
1
2019-09-10T07:19:57.000Z
2019-09-10T07:19:57.000Z
lab/gendata.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
1
2018-11-04T10:30:13.000Z
2018-11-04T10:30:13.000Z
lab/gendata.py
AboudFayad/coveragepy
b9c84eb813ad23f053120b8dad31b635c81376ae
[ "Apache-2.0" ]
2
2018-10-23T08:54:38.000Z
2018-11-22T10:14:26.000Z
# Run some timing tests of JsonData vs SqliteData. import random import time from coverage.data import CoverageJsonData from coverage.sqldata import CoverageSqliteData NUM_FILES = 1000 NUM_LINES = 1000 def gen_data(cdata): rnd = random.Random() rnd.seed(17) def linenos(num_lines, prob): return ...
27
71
0.689061
6935d8fe8a93d17016ca62ff94e9d1dc7df45943
1,405
py
Python
mdnbot.py
cpelite/mdnbottest
0b746f73356ae1f4162155639515d329e6484045
[ "MIT" ]
1
2021-03-13T15:04:14.000Z
2021-03-13T15:04:14.000Z
mdnbot.py
cpelite/mdnbottest
0b746f73356ae1f4162155639515d329e6484045
[ "MIT" ]
null
null
null
mdnbot.py
cpelite/mdnbottest
0b746f73356ae1f4162155639515d329e6484045
[ "MIT" ]
null
null
null
# imports import discord import os from dotenv import load_dotenv from discord.ext import commands # loading token load_dotenv() TOKEN = os.getenv("DISCORD_TOKEN") # intents festlegen intents = discord.Intents.default() intents.members = True bot = commands.Bot(command_prefix='$', intents=intents) #Load cogs. bot.lo...
30.543478
124
0.731673
b846c077637a59d348a8c28db5329974b8508023
122
py
Python
pyweatherman/wsgi.py
brian32768/twilio-weatherman
570fd1ce46d4bab58c6b2437426ac3c3ab2544aa
[ "MIT" ]
null
null
null
pyweatherman/wsgi.py
brian32768/twilio-weatherman
570fd1ce46d4bab58c6b2437426ac3c3ab2544aa
[ "MIT" ]
null
null
null
pyweatherman/wsgi.py
brian32768/twilio-weatherman
570fd1ce46d4bab58c6b2437426ac3c3ab2544aa
[ "MIT" ]
null
null
null
# # This is invoked from nginx config to launch this app. # from app import app if __name__ == "__main__": app.run()
17.428571
56
0.680328
64ee9f920f64689dd2a2299379c9f1ba1c34de92
1,927
py
Python
bikeshed/publish.py
mikewest/bikeshed
a248daec9b3bb10d7085166eb8ab6c8c73ce5611
[ "CC0-1.0" ]
null
null
null
bikeshed/publish.py
mikewest/bikeshed
a248daec9b3bb10d7085166eb8ab6c8c73ce5611
[ "CC0-1.0" ]
null
null
null
bikeshed/publish.py
mikewest/bikeshed
a248daec9b3bb10d7085166eb8ab6c8c73ce5611
[ "CC0-1.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import division, unicode_literals import tempfile import tarfile import os import logging from .messages import * from . import extensions from .requests import requests def publishEchidna(doc, username, password, decision): logging.captureWarnings(True) # Silence SNIMis...
33.224138
147
0.654385
dacef8e88e2b5f0b70e139cd8211001580dd85a3
2,559
py
Python
ad_hoc_scripts/old/mss_register/__main__.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
2
2021-03-06T16:07:30.000Z
2021-03-17T10:27:25.000Z
ad_hoc_scripts/old/mss_register/__main__.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
null
null
null
ad_hoc_scripts/old/mss_register/__main__.py
IgorZyktin/MediaStorageSystem
df8d260581cb806eb54f320d63aa674c6175c17e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """Main file. """ import json import os from shutil import copyfile from ad_hoc_scripts.common import utils_filesystem from mss.utils import utils_identity from ad_hoc_scripts.old.mss_register import settings from ad_hoc_scripts.old.mss_register.media_type import UnregisteredMedia def main()...
31.9875
77
0.674091
49044037587b9f64c268215c19bc3ae09cac4537
443
py
Python
Numeric Patterns/numericpattern83.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
null
null
null
Numeric Patterns/numericpattern83.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
471
2022-01-15T07:07:18.000Z
2022-02-28T16:01:42.000Z
Numeric Patterns/numericpattern83.py
vaidehisinha1/Python-PatternHouse
49f71bcc5319a838592e69b0e49ef1edba32bf7c
[ "MIT" ]
2
2022-01-17T09:43:16.000Z
2022-01-29T15:15:47.000Z
def pypart2(n): k = 2*n - 2 counter = 1 flag=n for i in range(0, n): for j in range(0, k): print(end=" ") k = k - 2 for j in range(0, i+1): print(counter-j, end=" ") counter=counter+flag flag = flag-1 print("\r") print("Enter the number of rows: ") n = int(input()) p...
15.821429
35
0.494357
6341144d8144c1fe8f7a1b9ca2be32c7aa1fd751
8,135
py
Python
src/operation/extensioninstallation.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
216
2015-01-05T12:48:10.000Z
2022-03-08T00:12:23.000Z
src/operation/extensioninstallation.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
55
2015-02-28T12:10:26.000Z
2020-11-18T17:45:16.000Z
src/operation/extensioninstallation.py
fekblom/critic
a6b60c9053e13d4c878d50531860d7389568626d
[ "Apache-2.0" ]
34
2015-05-02T15:15:10.000Z
2020-06-15T19:20:37.000Z
# -*- mode: python; encoding: utf-8 -*- # # Copyright 2012 Jens Lindström, Opera Software ASA # # 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...
39.110577
91
0.541119
ab00019b01a2cddc573d3cdb506caa0897e4a516
11,727
py
Python
procgen/examples/ppg.py
jerryzhucs21/procgen
0e644f899f3ef15c820c92981424bee6cf1980c3
[ "MIT" ]
null
null
null
procgen/examples/ppg.py
jerryzhucs21/procgen
0e644f899f3ef15c820c92981424bee6cf1980c3
[ "MIT" ]
null
null
null
procgen/examples/ppg.py
jerryzhucs21/procgen
0e644f899f3ef15c820c92981424bee6cf1980c3
[ "MIT" ]
null
null
null
import os from collections import deque, namedtuple from tqdm import tqdm import numpy as np import torch from torch import nn from torch.utils.data import Dataset, DataLoader from torch.optim import Adam from torch.distributions import Categorical import torch.nn.functional as F import gym # constants device = tor...
30.779528
153
0.603479
63e7981d903e68c9bfbde3a2035538bb20785aa0
6,711
py
Python
beancount_dkb/ec.py
bratekarate/beancount-dkb
c8862ca176ded2ff4f6f2fc5954dc31fd4e10fca
[ "MIT" ]
null
null
null
beancount_dkb/ec.py
bratekarate/beancount-dkb
c8862ca176ded2ff4f6f2fc5954dc31fd4e10fca
[ "MIT" ]
null
null
null
beancount_dkb/ec.py
bratekarate/beancount-dkb
c8862ca176ded2ff4f6f2fc5954dc31fd4e10fca
[ "MIT" ]
null
null
null
import csv import re from datetime import datetime, timedelta from beancount.core import data from beancount.core.amount import Amount from beancount.ingest import importer from .helpers import fmt_number_de, InvalidFormatError from .categorizer import DefaultCategorizer FIELDS = ( 'Buchungstag', 'Wertstellu...
31.805687
79
0.453435
81c6386884ef1960994efbc2e29a4d5b1b8c988f
2,185
py
Python
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_response.py
githubmilesma/huaweicloud-sdk-python-v3
9d9449ed68a609ca65f0aa50b5b2a1c28445bf03
[ "Apache-2.0" ]
1
2021-04-16T07:59:28.000Z
2021-04-16T07:59:28.000Z
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-cce/huaweicloudsdkcce/v3/model/hibernate_cluster_response.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
1
2022-01-17T02:24:18.000Z
2022-01-17T02:24:18.000Z
# coding: utf-8 import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class HibernateClusterResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (...
26.646341
75
0.534096
05b5a24ff4075604c67ba5b7b03b83683a3195a0
6,525
py
Python
plotly/validators/surface/contours/x/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
6
2019-05-03T02:12:04.000Z
2020-03-01T06:33:21.000Z
plotly/validators/surface/contours/x/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
null
null
null
plotly/validators/surface/contours/x/__init__.py
piyush1301/plotly.py
50cd5c4cd4732042422751c7760acbab8dd8a50d
[ "MIT" ]
5
2019-05-18T16:50:11.000Z
2021-07-06T21:14:36.000Z
import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, plotly_name='width', parent_name='surface.contours.x', **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=p...
28.49345
77
0.602759
af47affb7df35dce6b27a7da9d304d3ebf8cf4c6
1,351
py
Python
kaylee/testsuite/projects/auto_test_project/auto_test_project.py
BasicWolf/archived-kaylee
91e5c9025a525f3b0033b067d810a38c9e6be4d3
[ "MIT" ]
2
2018-02-18T09:52:23.000Z
2018-03-04T06:23:15.000Z
kaylee/testsuite/projects/auto_test_project/auto_test_project.py
BasicWolf/archived-kaylee
91e5c9025a525f3b0033b067d810a38c9e6be4d3
[ "MIT" ]
6
2017-08-03T18:51:38.000Z
2017-08-03T18:51:38.000Z
kaylee/testsuite/projects/auto_test_project/auto_test_project.py
BasicWolf/archived-kaylee
91e5c9025a525f3b0033b067d810a38c9e6be4d3
[ "MIT" ]
null
null
null
from kaylee import Project from kaylee.project import AUTO_PROJECT_MODE from kaylee.errors import InvalidResultError class AutoTestProject(Project): RESULT_KEY = 'res' TASKS_COUNT = 10 def __init__(self, *args, **kwargs): super(AutoTestProject, self).__init__(script_url='', ...
32.166667
70
0.565507
9f89a8a7af697625df67edc786f283241b038fa7
2,291
py
Python
packaging/build-telepresence.py
wiremind/telepresence
13d607823eb83745a0cfba4157981e34390a7e35
[ "Apache-2.0" ]
1
2021-03-12T20:17:43.000Z
2021-03-12T20:17:43.000Z
packaging/build-telepresence.py
wiremind/telepresence
13d607823eb83745a0cfba4157981e34390a7e35
[ "Apache-2.0" ]
3
2020-06-14T15:31:51.000Z
2021-11-15T16:25:14.000Z
packaging/build-telepresence.py
wiremind/telepresence
13d607823eb83745a0cfba4157981e34390a7e35
[ "Apache-2.0" ]
1
2020-12-01T17:28:45.000Z
2020-12-01T17:28:45.000Z
#!/usr/bin/env python3 """ Create a standalone telepresence """ import sys from io import BytesIO from pathlib import Path from subprocess import check_output from tempfile import TemporaryDirectory from zipapp import create_archive from zipfile import ZIP_DEFLATED, ZipFile def make_compressed_zipapp(source: Path, o...
28.6375
79
0.654736
258936c83bf0e0da44f09d829daf28b1ffe08454
874
py
Python
apps/utils/cache.py
zhangzhw8/bk-nodeman
befda1dcb0fd137874d28f99fa9eaa0a5ba3ddac
[ "MIT" ]
null
null
null
apps/utils/cache.py
zhangzhw8/bk-nodeman
befda1dcb0fd137874d28f99fa9eaa0a5ba3ddac
[ "MIT" ]
null
null
null
apps/utils/cache.py
zhangzhw8/bk-nodeman
befda1dcb0fd137874d28f99fa9eaa0a5ba3ddac
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ TencentBlueKing is pleased to support the open source community by making 蓝鲸智云-节点管理(BlueKing-BK-NODEMAN) available. Copyright (C) 2017-2021 THL A29 Limited, a Tencent company. All rights reserved. Licensed under the MIT License (the "License"); you may not use this file except in compliance ...
58.266667
115
0.784897
a9c7fae321ab40fe36b64b3d05e84702eff7811e
3,557
py
Python
kikit/fab/common.py
maribu/KiKit
d926f90074dced3b790f27dbcb9e351f146c8402
[ "MIT" ]
null
null
null
kikit/fab/common.py
maribu/KiKit
d926f90074dced3b790f27dbcb9e351f146c8402
[ "MIT" ]
null
null
null
kikit/fab/common.py
maribu/KiKit
d926f90074dced3b790f27dbcb9e351f146c8402
[ "MIT" ]
null
null
null
import csv import pcbnew from math import sin, cos, radians from kikit.common import * from kikit.defs import MODULE_ATTR_T from kikit.eeshema import getField def hasNonSMDPins(module): for pad in module.Pads(): if pad.GetAttribute() != pcbnew.PAD_ATTRIB_SMD: return True return False clas...
36.670103
87
0.662918
826b61dfd0bd0e06560e44d6aa5657d5a8b51bbb
27,181
py
Python
parlai/core/dict.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
null
null
null
parlai/core/dict.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
null
null
null
parlai/core/dict.py
pgoel92/ParlAI
9db71ed4d09763c166ec6fb811dac5617167c76d
[ "BSD-3-Clause" ]
null
null
null
# Copyright (c) 2017-present, Facebook, Inc. # All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. """Contains code for parsin...
38.55461
85
0.588757
894e9e4c6750891d22a734e2c8902bde5ea208a0
15,693
py
Python
rnn/numpy_binary.py
shadowleaves/deep_learning
4cb9cc79c706c611b35cb420bf87a5e245325494
[ "MIT" ]
null
null
null
rnn/numpy_binary.py
shadowleaves/deep_learning
4cb9cc79c706c611b35cb420bf87a5e245325494
[ "MIT" ]
null
null
null
rnn/numpy_binary.py
shadowleaves/deep_learning
4cb9cc79c706c611b35cb420bf87a5e245325494
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ from http://peterroelants.github.io/posts/rnn_implementation_part02/ """ # Python imports import itertools import numpy as np # Matrix and vector computation package # import matplotlib # import matplotlib.pyplot as plt # Plotting library # Allow matplotlib to plot inside this notebook # %...
41.297368
79
0.596253
450250c2edb26e476c5015b894c376e135f8860a
1,580
py
Python
google_shopping/merchant.py
geeknam/python-google-shopping
fdc4dfe185fab6c859f90172affddcf8f1390291
[ "MIT" ]
6
2015-06-22T00:38:08.000Z
2021-12-10T00:26:22.000Z
google_shopping/merchant.py
geeknam/python-google-shopping
fdc4dfe185fab6c859f90172affddcf8f1390291
[ "MIT" ]
null
null
null
google_shopping/merchant.py
geeknam/python-google-shopping
fdc4dfe185fab6c859f90172affddcf8f1390291
[ "MIT" ]
1
2017-12-29T03:34:15.000Z
2017-12-29T03:34:15.000Z
import os from requests import request from products import ProductManager from product_statuses import ProductStatusManager from google_shopping.oauth import OAuth class MerchantBase(object): BASE_CONTENT_API_URL = 'https://www.googleapis.com/content/v2' oauth_class = OAuth # Resource manager classes ...
32.244898
70
0.668987
c99bf8915880976eb2143e100bf93408ae76e82d
6,793
py
Python
app/fednlp/data/data_preprocessing/span_extraction_preprocessor.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fednlp/data/data_preprocessing/span_extraction_preprocessor.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
app/fednlp/data/data_preprocessing/span_extraction_preprocessor.py
ray-ruisun/FedML
24ff30d636bb70f64e94e9ca205375033597d3dd
[ "Apache-2.0" ]
null
null
null
import logging import os import re import string import pandas as pd import torch from collections import defaultdict from torch.utils.data import TensorDataset from tqdm import tqdm from ..data_preprocessing.base.base_example import SpanExtractionInputExample from ..data_preprocessing.base.base_preprocessor import B...
34.835897
106
0.5831
437096006c2e218f8579d09b1b70f154b83b48de
11,219
py
Python
nova/tests/unit/objects/test_service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/tests/unit/objects/test_service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # 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 agree...
40.501805
79
0.654871
96f21412e7fc88ca76e4929f05c10187edb5a9fd
14,764
py
Python
ecpy/point.py
jadeblaquiere/ecpy
e6a63712b4ba455bb105a8c6fa89229890fa322a
[ "MIT" ]
null
null
null
ecpy/point.py
jadeblaquiere/ecpy
e6a63712b4ba455bb105a8c6fa89229890fa322a
[ "MIT" ]
2
2016-05-12T15:09:32.000Z
2018-10-22T15:05:55.000Z
ecpy/point.py
jadeblaquiere/ecpy
e6a63712b4ba455bb105a8c6fa89229890fa322a
[ "MIT" ]
null
null
null
# Copyright (c) 2016, Joseph deBlaquiere <jadeblaquiere@yahoo.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: # # * Redistributions of source code must retain the above copyright notice, this ...
34.018433
88
0.542197
3dee4090c2bc04bc5ff42f79b61daafa05cca60e
391
py
Python
dictionaries.py
EzechielD/twitter_guessing_game
d2bab0766a8f087e5ddf1ef9489b64f9cc3c82ae
[ "BSD-2-Clause" ]
null
null
null
dictionaries.py
EzechielD/twitter_guessing_game
d2bab0766a8f087e5ddf1ef9489b64f9cc3c82ae
[ "BSD-2-Clause" ]
null
null
null
dictionaries.py
EzechielD/twitter_guessing_game
d2bab0766a8f087e5ddf1ef9489b64f9cc3c82ae
[ "BSD-2-Clause" ]
null
null
null
import tweepy from keys import consumer_key, consumer_secret, access_token, access_secret from scrape import auth, api, get_tweets from create import markov, dict_maker auth.set_access_token(access_token, access_secret) #Dictionaries for specific accounts are created here playstation = dict_maker("PlayStation") lil_...
32.583333
75
0.831202
9ed9d3c26d74ed5daa2dbcc44881a80f74015b39
702
py
Python
src/python/grpcio_testing/grpc_version.py
thiagoss/grpc
3eb743ba4c9e38941aeac3a54420628b46335d20
[ "Apache-2.0" ]
1
2020-11-22T03:49:41.000Z
2020-11-22T03:49:41.000Z
src/python/grpcio_testing/grpc_version.py
thiagoss/grpc
3eb743ba4c9e38941aeac3a54420628b46335d20
[ "Apache-2.0" ]
null
null
null
src/python/grpcio_testing/grpc_version.py
thiagoss/grpc
3eb743ba4c9e38941aeac3a54420628b46335d20
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 gRPC 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 in writing...
39
98
0.762108
dfefde66d7510422521894306473c66a85dde70e
1,165
py
Python
ninfs/gui/osver.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
213
2019-04-18T04:43:18.000Z
2022-03-29T06:25:38.000Z
ninfs/gui/osver.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
55
2019-04-20T01:21:26.000Z
2022-03-26T02:40:17.000Z
ninfs/gui/osver.py
Jhynjhiruu/ninfs
9e0f5889cafd595c56e2db936177ef1b0f4ac02e
[ "MIT" ]
17
2019-05-11T22:15:31.000Z
2021-10-06T03:46:51.000Z
# This file is a part of ninfs. # # Copyright (c) 2017-2021 Ian Burgwin # This file is licensed under The MIT License (MIT). # You can find the full license text in LICENSE.md in the root of this project. import platform import sys def get_os_ver(): if sys.platform == 'win32': import winreg ver ...
30.657895
106
0.583691
fc8c53fe1dce8b08a93eb3b662079a5d641764a7
10,531
py
Python
grr/server/grr_response_server/flows/cron/system.py
acidburn0zzz/grr
44e1a5b1630e8101610faaaebe15b19b5ad30cb1
[ "Apache-2.0" ]
1
2019-08-28T23:48:20.000Z
2019-08-28T23:48:20.000Z
grr/server/grr_response_server/flows/cron/system.py
acidburn0zzz/grr
44e1a5b1630e8101610faaaebe15b19b5ad30cb1
[ "Apache-2.0" ]
2
2022-01-15T03:18:12.000Z
2022-02-13T22:02:43.000Z
grr/server/grr_response_server/flows/cron/system.py
acidburn0zzz/grr
44e1a5b1630e8101610faaaebe15b19b5ad30cb1
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """These flows are system-specific GRR cron flows.""" from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals import collections from future.utils import iteritems from grr_response_core import config from grr_response_core.lib import rdfva...
38.018051
80
0.743614
add2f293eef53ef7287e45b0bbd4997fdb0e5a7b
959
py
Python
application/util.py
wmorellato/gpt-2-sentences
4a4c913e8f27a0c9da0bec1c3728563956abd48a
[ "MIT" ]
1
2021-03-06T00:45:25.000Z
2021-03-06T00:45:25.000Z
application/util.py
wmorellato/gpt-2-sentences
4a4c913e8f27a0c9da0bec1c3728563956abd48a
[ "MIT" ]
1
2022-02-10T02:48:43.000Z
2022-02-10T02:48:43.000Z
application/util.py
wmorellato/gpt-2-sentences
4a4c913e8f27a0c9da0bec1c3728563956abd48a
[ "MIT" ]
null
null
null
import os import gdown import requests from tqdm import tqdm from gdown import extractall from urllib.parse import urlparse def download_file_with_progress(url, output_dir): """ Utility borrowed from gpt-2-simple. """ CHUNK_SIZE = 1024 * 1024 if 'drive.google.com' in url: ...
29.96875
75
0.630865
1dd3786759fd6cb92ccb90bd285cc3b54800a8d8
6,198
py
Python
tests/models/imagegpt/test_feature_extraction_imagegpt.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
8,028
2018-11-05T15:19:44.000Z
2019-07-16T09:14:59.000Z
tests/models/imagegpt/test_feature_extraction_imagegpt.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
731
2018-11-05T21:35:52.000Z
2019-07-16T09:51:26.000Z
tests/models/imagegpt/test_feature_extraction_imagegpt.py
bugface/transformers
ba286fe7d51db12ad663effac83bed8199dd7141
[ "Apache-2.0" ]
2,106
2018-11-05T15:29:15.000Z
2019-07-16T08:51:57.000Z
# coding=utf-8 # Copyright 2021 HuggingFace 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 or ag...
34.820225
104
0.695708
cce9d0648e9ac356171b62e963597eb3456100fb
15,620
py
Python
beginner_source/data_loading_tutorial.py
mariosasko/tutorials
1e3f540906746bd6a1a4558ad2028141fab6199e
[ "BSD-3-Clause" ]
2
2018-01-26T23:03:52.000Z
2020-04-16T05:27:25.000Z
beginner_source/data_loading_tutorial.py
lanpa/tutorials
f1a94fb1511732534bc00c36e044899d588e9d41
[ "BSD-3-Clause" ]
null
null
null
beginner_source/data_loading_tutorial.py
lanpa/tutorials
f1a94fb1511732534bc00c36e044899d588e9d41
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- """ Writing Custom Datasets, DataLoaders and Transforms =================================================== **Author**: `Sasank Chilamkurthy <https://chsasank.github.io>`_ A lot of effort in solving any machine learning problem goes in to preparing the data. PyTorch provides many tools to make ...
33.956522
116
0.613252
0f2440323bb3cfdee79a1d5e8387c3cbaf2959b1
961
py
Python
src/interpreters/spacy_sklearn_interpreter.py
samhavens/rasa_nlu
0687d1498d26ef67d7f5ddaa5c2cfce0b2331cdd
[ "Apache-2.0" ]
1
2021-07-13T19:38:44.000Z
2021-07-13T19:38:44.000Z
src/interpreters/spacy_sklearn_interpreter.py
samhavens/rasa_nlu
0687d1498d26ef67d7f5ddaa5c2cfce0b2331cdd
[ "Apache-2.0" ]
null
null
null
src/interpreters/spacy_sklearn_interpreter.py
samhavens/rasa_nlu
0687d1498d26ef67d7f5ddaa5c2cfce0b2331cdd
[ "Apache-2.0" ]
1
2019-09-09T07:13:50.000Z
2019-09-09T07:13:50.000Z
from rasa_nlu import Interpreter import cloudpickle import spacy from rasa_nlu.featurizers.spacy_featurizer import SpacyFeaturizer from rasa_nlu.extractors.spacy_entity_extractor import SpacyEntityExtractor class SpacySklearnInterpreter(Interpreter): def __init__(self, entity_extractor=None, intent_classifier=No...
35.592593
100
0.726327
7b88c69d2db2330654277a4d17cb35fdb1937174
49
py
Python
src/matkirpack/plotload/__init__.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
src/matkirpack/plotload/__init__.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
src/matkirpack/plotload/__init__.py
matkir/Master_programs
70c4c399f9c9fc3e1643e78694223b24d7b94b18
[ "MIT" ]
null
null
null
from .PlotLoad import * test="PlotLoad Imported"
16.333333
24
0.77551
0a4980019b8eb32fcd9b764ad3f4bca069bb438a
6,015
py
Python
azurelane/load_scenes.py
yue-litam/arknights-auto-scripts
4670b7a0c3e0b6b4c0e269ef13cf3d75c0b06a24
[ "Apache-2.0" ]
24
2019-12-01T18:18:06.000Z
2021-09-25T06:47:02.000Z
azurelane/load_scenes.py
yue-litam/arknights-auto-scripts
4670b7a0c3e0b6b4c0e269ef13cf3d75c0b06a24
[ "Apache-2.0" ]
5
2020-05-22T12:09:59.000Z
2022-01-13T01:51:27.000Z
azurelane/load_scenes.py
yue-litam/arknights-auto-scripts
4670b7a0c3e0b6b4c0e269ef13cf3d75c0b06a24
[ "Apache-2.0" ]
6
2020-06-19T06:35:13.000Z
2021-11-29T06:04:06.000Z
from common.logutil import logger from common.scene import Scene from common.tool import * from azurelane.scenes.enemy_search import EnemySearch import time def battle_fighting(prefix): s = Scene("检测战斗进行时", identify_image=load_resource("stop_auto_battle_detection.png", prefix), ...
34.568966
99
0.655694
7a4f67f53a219988c83dc231e4b66c406f0db1ce
4,390
py
Python
script.py
phongvu0403/DRL
e0585473cf83a7806475dd20d668b8c5fff28ba6
[ "MIT" ]
2
2021-03-11T13:09:07.000Z
2022-01-11T09:51:09.000Z
script.py
stwerner97/NFVdeep
01f9879883fb484234a3dab339552ae4996a3989
[ "MIT" ]
null
null
null
script.py
stwerner97/NFVdeep
01f9879883fb484234a3dab339552ae4996a3989
[ "MIT" ]
3
2021-05-24T06:45:00.000Z
2022-03-22T08:53:14.000Z
import os import argparse import logging import sys import pandas as pd from pathlib import Path from stable_baselines3.common.env_checker import check_env from stable_baselines3 import A2C, PPO, DQN from evaluation import evaluate_final_policy, safe_experiment from nfvdeep.environment.arrival import StochasticProcess ...
37.521368
99
0.663554
987ee6c09114be71d1d6d4481a0fb8f52f468c34
1,280
py
Python
infrared/common/filter_plugins/from_csv.py
asyedham/infrared
cf5984ffe8d4b05be1e6fd70bd1726834be2f372
[ "Apache-2.0" ]
80
2017-03-16T14:25:03.000Z
2021-12-26T05:38:40.000Z
infrared/common/filter_plugins/from_csv.py
asyedham/infrared
cf5984ffe8d4b05be1e6fd70bd1726834be2f372
[ "Apache-2.0" ]
120
2017-02-06T12:47:47.000Z
2021-12-27T21:35:55.000Z
infrared/common/filter_plugins/from_csv.py
asyedham/infrared
cf5984ffe8d4b05be1e6fd70bd1726834be2f372
[ "Apache-2.0" ]
82
2017-02-21T12:22:54.000Z
2022-01-17T15:36:07.000Z
import csv try: from io import StringIO except ImportError: from StringIO import StringIO def csv_to_dict(string, delimiter=','): r"""Creates a list of dicts from a string. Creates a list of dicts from a string in the format: [ "a, b, c\n"\ {'a': '1', 'b...
31.219512
94
0.507813
d13ed169329a836f9c4942c0d23ede216a719ceb
196
py
Python
src/Softmax.py
neblar/numpynn
b33c5f671c8e835b55ed775ababa358e14c987bc
[ "MIT" ]
null
null
null
src/Softmax.py
neblar/numpynn
b33c5f671c8e835b55ed775ababa358e14c987bc
[ "MIT" ]
null
null
null
src/Softmax.py
neblar/numpynn
b33c5f671c8e835b55ed775ababa358e14c987bc
[ "MIT" ]
null
null
null
import numpy as np class Softmax: def __call__(self, x, axis): e_x = np.exp(x - np.expand_dims(np.amax(x, axis), axis)) return e_x / np.expand_dims(np.sum(e_x, axis), axis)
21.777778
64
0.622449
d18e20e1342f475c2af1355cdc387de3ca3e9802
80,681
py
Python
torchvision/transforms/transforms.py
willfrey/vision
56fb0bf5796ac374d4e353032e418236cd73c554
[ "BSD-3-Clause" ]
1
2022-01-07T11:30:24.000Z
2022-01-07T11:30:24.000Z
torchvision/transforms/transforms.py
willfrey/vision
56fb0bf5796ac374d4e353032e418236cd73c554
[ "BSD-3-Clause" ]
null
null
null
torchvision/transforms/transforms.py
willfrey/vision
56fb0bf5796ac374d4e353032e418236cd73c554
[ "BSD-3-Clause" ]
null
null
null
import math import numbers import random import warnings from collections.abc import Sequence from typing import Tuple, List, Optional import torch from torch import Tensor try: import accimage except ImportError: accimage = None from ..utils import _log_api_usage_once from . import functional as F from .fun...
39.39502
134
0.611928
0feccbc2fca02d4b7b415ca58fddc2684d8d33ce
4,748
py
Python
src/fluctmatch/parameter/utils.py
tclick/python-fluctmatch
6ec04aca68222a04a397121b1a92cd57f99edd19
[ "BSD-3-Clause" ]
2
2017-11-11T10:13:53.000Z
2020-04-06T07:39:05.000Z
src/fluctmatch/parameter/utils.py
tclick/python-fluctmatch
6ec04aca68222a04a397121b1a92cd57f99edd19
[ "BSD-3-Clause" ]
2
2019-05-09T09:15:31.000Z
2019-11-25T13:03:32.000Z
src/fluctmatch/parameter/utils.py
tclick/python-fluctmatch
6ec04aca68222a04a397121b1a92cd57f99edd19
[ "BSD-3-Clause" ]
3
2017-11-11T10:21:09.000Z
2020-08-31T15:57:57.000Z
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding: utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # fluctmatch --- https://github.com/tclick/python-fluctmatch # Copyright (c) 2013-2017 The fluctmatch Development Team and contributors # (see the file AUTHORS for the full list of names) # ...
35.17037
79
0.624473
f5caa991f96b9a0f6c4f2eb2cb9555577ef133c3
4,378
py
Python
Python_OCR_JE/venv/Lib/site-packages/PIL/MpoImagePlugin.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/PIL/MpoImagePlugin.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
Python_OCR_JE/venv/Lib/site-packages/PIL/MpoImagePlugin.py
JE-Chen/je_old_repo
a8b2f1ac2eec25758bd15b71c64b59b27e0bcda5
[ "MIT" ]
null
null
null
# # The Python Imaging Library. # $Id$ # # MPO file handling # # See "Multi-Picture Format" (CIPA DC-007-Translation 2009, Standard of the # Camera & Imaging Products Association) # # The multi-picture object combines multiple JPEG images (with a modified EXIF # data format) into a single file. While it can t...
32.42963
89
0.616035
7b4093c0748ba1300154a074d7f2468f279a68c3
11,141
py
Python
dafne/evaluation/icdar15_evaluation.py
steven-lang/DAFNe
b13912041a263904cf26ca5f3468c6bc64ce800c
[ "MIT" ]
35
2021-09-14T03:09:34.000Z
2022-03-30T21:29:59.000Z
dafne/evaluation/icdar15_evaluation.py
steven-lang/DAFNe
b13912041a263904cf26ca5f3468c6bc64ce800c
[ "MIT" ]
5
2021-11-28T07:49:36.000Z
2022-03-25T10:40:46.000Z
dafne/evaluation/icdar15_evaluation.py
steven-lang/DAFNe
b13912041a263904cf26ca5f3468c6bc64ce800c
[ "MIT" ]
10
2021-09-15T12:59:56.000Z
2022-03-30T10:15:33.000Z
from dafne.data.datasets.icdar15 import load_annotation, parse_annotation from detectron2.utils.visualizer import _create_text_labels from detectron2.structures.masks import PolygonMasks from detectron2.utils.colormap import colormap from detectron2.evaluation.evaluator import DatasetEvaluator from detectron2.structure...
31.650568
128
0.64698
10fd127608c4efbbe9ad532da2c66c3199c9f8ea
9,278
py
Python
pymagnitude/third_party/allennlp/models/semantic_parsing/nlvr/nlvr_direct_semantic_parser.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
1,520
2018-03-01T13:37:49.000Z
2022-03-25T11:40:20.000Z
pymagnitude/third_party/allennlp/models/semantic_parsing/nlvr/nlvr_direct_semantic_parser.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
87
2018-03-03T15:12:50.000Z
2022-02-21T15:24:12.000Z
pymagnitude/third_party/allennlp/models/semantic_parsing/nlvr/nlvr_direct_semantic_parser.py
tpeng/magnitude
aec98628b5547773ca8c4114ec6d1ad51e21b230
[ "MIT" ]
121
2018-03-03T08:40:53.000Z
2022-03-16T05:19:38.000Z
from __future__ import absolute_import import logging #typing #overrides import torch from allennlp.data.fields.production_rule_field import ProductionRuleArray from allennlp.data.vocabulary import Vocabulary from allennlp.modules import Attention, TextFieldEmbedder, Seq2SeqEncoder from allennlp.nn.decoding import ...
52.418079
101
0.57728
b09c0f819e33601edc63c9a78f79e89bc5886627
1,888
py
Python
Staging/sandbox2.py
mccolm-robotics/Claver-AI-Assistant
12b31633b4a45709403ed9599c626e63743318c7
[ "MIT" ]
1
2020-05-22T18:45:07.000Z
2020-05-22T18:45:07.000Z
Staging/sandbox2.py
mccolm-robotics/Claver-AI-Assistant
12b31633b4a45709403ed9599c626e63743318c7
[ "MIT" ]
null
null
null
Staging/sandbox2.py
mccolm-robotics/Claver-AI-Assistant
12b31633b4a45709403ed9599c626e63743318c7
[ "MIT" ]
null
null
null
class Foo: def __init__(self, id): self.id = id def __str__(self): return 'Foo instance id: {}'.format(self.id) class Bar: def __init__(self, id): self.id = id def __str__(self): return 'Bar instance id: {}'.format(self.id) class Baz: def __init__(self, id): ...
22.47619
93
0.630826
0116567a3ff722d0489a7064585c62c44c5f555b
4,670
py
Python
ggshield/filter.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
null
null
null
ggshield/filter.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
2
2022-03-03T14:41:30.000Z
2022-03-30T09:02:57.000Z
ggshield/filter.py
rgajason/gg-shield
45c3534bdd174880710b97aedac068f6ddd52eaf
[ "MIT" ]
1
2022-03-03T14:36:28.000Z
2022-03-03T14:36:28.000Z
import hashlib import math import operator import re from collections import OrderedDict from pathlib import Path from typing import Any, Dict, Iterable, List, Set from pygitguardian.models import Match, PolicyBreak, ScanResult REGEX_MATCH_HIDE = re.compile(r"[^+\-\s]") MAXIMUM_CENSOR_LENGTH = 60 def is_ignored( ...
29.935897
88
0.672163
63894fc5b575f019ef64f2775f7cf0cf303f2ef7
8,114
py
Python
01cleaning_data.py
xuchengj031/py_illustrator
34a68618eda36474da45f3dd32534ae76990e13c
[ "MIT" ]
null
null
null
01cleaning_data.py
xuchengj031/py_illustrator
34a68618eda36474da45f3dd32534ae76990e13c
[ "MIT" ]
null
null
null
01cleaning_data.py
xuchengj031/py_illustrator
34a68618eda36474da45f3dd32534ae76990e13c
[ "MIT" ]
null
null
null
''' 对客户提供的表格,进行数据清理,拆分并输出json文件 input: ROOT/raw/*.xlsx output: ROOT/src/data/*.json ''' import pandas as pd import os import shutil import json import re ROOT = os.getcwd() RAW = 'raw' RAW_PRODS = os.path.join(ROOT, RAW, '2019年产品手册汇总.xlsx') RAW_SRVS = os.path.join(ROOT, RAW, '终端厂商服务网点收集.xlsx') DIR_TEMP = os.path.join(...
27.97931
79
0.508504
8e5f80928a05e89b3e80ae496dc00f170b174ccf
3,856
py
Python
tenant_users/permissions/models.py
foarsitter/django-tenant-users
4ff5d7293436c720f1af567a8088ac1305502c8c
[ "MIT" ]
null
null
null
tenant_users/permissions/models.py
foarsitter/django-tenant-users
4ff5d7293436c720f1af567a8088ac1305502c8c
[ "MIT" ]
null
null
null
tenant_users/permissions/models.py
foarsitter/django-tenant-users
4ff5d7293436c720f1af567a8088ac1305502c8c
[ "MIT" ]
null
null
null
from django.conf import settings from django.contrib.auth.models import PermissionsMixin from django.db import models from django.utils.translation import ugettext_lazy as _ class PermissionsMixinFacade(object): """ This class is designed to shim the PermissionMixin class functions and delegate them down ...
35.054545
103
0.680498
964ca1d976f4fc7dbb3ad0ec941536244b411b89
14,104
py
Python
notebooks/eta_modules/preprocessing.py
DavidVann/latin-greek-text-analytics
0c6f5982077ca4ab313514801da1cefc25732756
[ "MIT" ]
null
null
null
notebooks/eta_modules/preprocessing.py
DavidVann/latin-greek-text-analytics
0c6f5982077ca4ab313514801da1cefc25732756
[ "MIT" ]
null
null
null
notebooks/eta_modules/preprocessing.py
DavidVann/latin-greek-text-analytics
0c6f5982077ca4ab313514801da1cefc25732756
[ "MIT" ]
null
null
null
"""preprocessing.py: Collection of classes to aid in processing XML files for project.""" # David Vann (dv6bq@virginia.edu) # DS 5001 # 5 May 2021 from __future__ import annotations import os import nltk import numpy as np import pandas as pd from bs4 import BeautifulSoup from nltk.stem.porter import PorterStemmer ...
44.075
176
0.562394
b34d3080516a97877aff95748bc30f800d3ca143
87
py
Python
froniusconfig.py
martink173/FroniusSymo
ee833dbc268b11b9056865e87cf99baec2a8c4cc
[ "BSD-2-Clause" ]
1
2021-12-28T11:34:50.000Z
2021-12-28T11:34:50.000Z
froniusconfig.py
martink173/FroniusSymo
ee833dbc268b11b9056865e87cf99baec2a8c4cc
[ "BSD-2-Clause" ]
null
null
null
froniusconfig.py
martink173/FroniusSymo
ee833dbc268b11b9056865e87cf99baec2a8c4cc
[ "BSD-2-Clause" ]
null
null
null
hostname = "192.168.1.208" dbname = "fronius.db" figurepath = '/var/www/html/fronius/'
21.75
37
0.689655
f05e0a1120f454645e9fd4bfcde547c11c9b107f
16,735
py
Python
foreman_hostgroup.py
Nosmoht/ansible-module-foreman
d5509cc74025c842fb1c63aae4e1d36c31ce026d
[ "Apache-2.0" ]
53
2016-05-05T03:36:17.000Z
2022-01-04T18:02:05.000Z
foreman_hostgroup.py
Nosmoht/ansible-module-foreman
d5509cc74025c842fb1c63aae4e1d36c31ce026d
[ "Apache-2.0" ]
29
2016-03-11T15:29:21.000Z
2020-10-22T02:56:18.000Z
foreman_hostgroup.py
Nosmoht/ansible-module-foreman
d5509cc74025c842fb1c63aae4e1d36c31ce026d
[ "Apache-2.0" ]
33
2016-03-01T18:48:35.000Z
2021-01-16T13:55:09.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- # # Ansible module to manage Foreman hostgroup resources. # # This module is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at you...
36.942605
120
0.610696
31887fe5bbb8368aabb403954543580fc9f0b3c0
271
py
Python
tests/artificial/transf_Difference/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Difference_PolyTrend_12__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
tests/artificial/transf_Difference/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Difference_PolyTrend_12__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
1
2019-11-30T23:39:38.000Z
2019-12-01T04:34:35.000Z
tests/artificial/transf_Difference/trend_PolyTrend/cycle_12/ar_/test_artificial_32_Difference_PolyTrend_12__100.py
jmabry/pyaf
afbc15a851a2445a7824bf255af612dc429265af
[ "BSD-3-Clause" ]
null
null
null
import pyaf.Bench.TS_datasets as tsds import pyaf.tests.artificial.process_artificial_dataset as art art.process_dataset(N = 32 , FREQ = 'D', seed = 0, trendtype = "PolyTrend", cycle_length = 12, transform = "Difference", sigma = 0.0, exog_count = 100, ar_order = 0);
38.714286
166
0.734317
4eea9b37d978e9be920d0708527bab1d56cd481e
782
py
Python
services/api/app/utils/create_user.py
reidemeister94/EnrichYourData
3f62f69798daaa3acf84dba3531d8f550da771f9
[ "MIT" ]
null
null
null
services/api/app/utils/create_user.py
reidemeister94/EnrichYourData
3f62f69798daaa3acf84dba3531d8f550da771f9
[ "MIT" ]
null
null
null
services/api/app/utils/create_user.py
reidemeister94/EnrichYourData
3f62f69798daaa3acf84dba3531d8f550da771f9
[ "MIT" ]
null
null
null
import bcrypt from pymongo import MongoClient import os import sys from hashlib import sha256 def insert_user(username, password): mongourl = os.environ["MONGO_URL"] mongo_client = MongoClient(mongourl) # username = "username" # password = "password" username = sha256(str.encode(username)).hexdig...
24.4375
77
0.682864
62c8384d78e25cfdba6e7216e4a509ec8622644b
1,450
py
Python
venv/lib/python3.8/site-packages/statsmodels/emplike/tests/test_origin.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
6,931
2015-01-01T11:41:55.000Z
2022-03-31T17:03:24.000Z
venv/lib/python3.8/site-packages/statsmodels/emplike/tests/test_origin.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
6,137
2015-01-01T00:33:45.000Z
2022-03-31T22:53:17.000Z
venv/lib/python3.8/site-packages/statsmodels/emplike/tests/test_origin.py
johncollinsai/post-high-frequency-data
88533b0e0afc7e7f82fee1d3ca4b68abc30aaeb4
[ "MIT" ]
2,608
2015-01-02T21:32:31.000Z
2022-03-31T07:38:30.000Z
import numpy as np from numpy.testing import assert_almost_equal from statsmodels.datasets import cancer from statsmodels.emplike.originregress import ELOriginRegress from .results.el_results import OriginResults class GenRes(object): """ Loads data and creates class instance ot be tested. """ @clas...
32.222222
73
0.622069
a12a0649811ea4742619d1e539f15a26c06bf971
757
py
Python
src/medius/rtpackets/clientecho.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
8
2021-07-14T16:55:04.000Z
2022-03-07T22:03:03.000Z
src/medius/rtpackets/clientecho.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
22
2021-07-13T02:17:00.000Z
2022-02-13T03:26:52.000Z
src/medius/rtpackets/clientecho.py
Metroynome/robo
78c389decce98d0d1e4e4e02ccbfcba7b465209c
[ "MIT" ]
5
2021-07-30T05:49:09.000Z
2022-02-14T18:02:07.000Z
from enums.enums import RtIdEnum from utils import utils class ClientEchoSerializer: data_dict = [ {'name': 'rtid', 'n_bytes': 1, 'cast': None}, {'name': 'len', 'n_bytes': 2, 'cast': utils.bytes_to_int_little}, {'name': 'heartbeat', 'n_bytes': 1, 'cast': None} ] def serialize(self,...
29.115385
73
0.60502
83dac82bceb45c0009802d72feddda0292c886cf
10,401
py
Python
sdk/python/pulumi_azure_nextgen/network/v20190901/get_express_route_port.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20190901/get_express_route_port.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_nextgen/network/v20190901/get_express_route_port.py
test-wiz-sec/pulumi-azure-nextgen
20a695af0d020b34b0f1c336e1b69702755174cc
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from...
37.959854
325
0.655898
e85d9662a96386f26fa67047d6a82ee58e122937
270
py
Python
qcloudsdkcam/OperateCamStrategyRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcam/OperateCamStrategyRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
qcloudsdkcam/OperateCamStrategyRequest.py
f3n9/qcloudcli
b965a4f0e6cdd79c1245c1d0cd2ca9c460a56f19
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from qcloudsdkcore.request import Request class OperateCamStrategyRequest(Request): def __init__(self): super(OperateCamStrategyRequest, self).__init__( 'cam', 'qcloudcliV1', 'OperateCamStrategy', 'cam.api.qcloud.com')
27
77
0.696296
8d036fb8bbdc3b8d674adc117ae08575a9750059
408
py
Python
setup.py
scizzorz/gethub
5798ad5c8d2ab25eced9855bb03366e872720e34
[ "MIT" ]
1
2015-08-29T18:08:25.000Z
2015-08-29T18:08:25.000Z
setup.py
scizzorz/gethub
5798ad5c8d2ab25eced9855bb03366e872720e34
[ "MIT" ]
null
null
null
setup.py
scizzorz/gethub
5798ad5c8d2ab25eced9855bb03366e872720e34
[ "MIT" ]
null
null
null
from setuptools import setup setup( name='gethub', version='0.1.0', install_requires=[ 'githubpy', ], description='Clone all of your GitHub repositories', long_description=open('README.rst').read(), url='http://github.com/scizzorz/gethub', license='MIT', author='John Weachock', author_email='jweachock@gma...
21.473684
53
0.718137
454f23edeeaa1c5340e57e995ad94e0166e9ae4a
2,446
py
Python
tests/test_cpac_installation.py
radiome-lab/cpac
61d79fdec8ffbbacd7d152e4cbab5792e99dba4b
[ "MIT" ]
null
null
null
tests/test_cpac_installation.py
radiome-lab/cpac
61d79fdec8ffbbacd7d152e4cbab5792e99dba4b
[ "MIT" ]
23
2020-01-31T20:10:27.000Z
2020-07-22T16:52:02.000Z
tests/test_cpac_installation.py
radiome-lab/cpac
61d79fdec8ffbbacd7d152e4cbab5792e99dba4b
[ "MIT" ]
1
2020-06-30T22:35:26.000Z
2020-06-30T22:35:26.000Z
import setuptools from pip._internal.utils.misc import get_installed_distributions from setuptools.config import read_configuration def test_requirements(): requirements = { 'setup.cfg': requirements_list(read_configuration( 'setup.cfg' )['options']['install_requires'] ...
25.747368
72
0.553557
35e6626309a1ff8913afc40bc09ec9e5a56cbd34
2,003
py
Python
conda/gateways/anaconda_client.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
6
2017-09-09T04:47:49.000Z
2020-09-30T11:20:46.000Z
conda/gateways/anaconda_client.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
2
2015-11-08T05:03:41.000Z
2016-08-27T17:58:48.000Z
conda/gateways/anaconda_client.py
peschue/conda
dc25e8c8765c5dfd1f99d697617bc6148224e194
[ "BSD-3-Clause" ]
4
2015-11-08T04:46:01.000Z
2016-05-27T15:48:37.000Z
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals import os import re from glob import glob from logging import getLogger from os.path import basename, isdir, isfile, join from stat impor...
28.614286
82
0.689965
68b2b441a81d8c51eb722fe32c27d711b113bfc7
3,929
py
Python
ros_helper/test/test_transforms.py
cmower/ros_helper
75e4764566b69366f04772b816d0d8b5359ae12c
[ "BSD-2-Clause" ]
null
null
null
ros_helper/test/test_transforms.py
cmower/ros_helper
75e4764566b69366f04772b816d0d8b5359ae12c
[ "BSD-2-Clause" ]
null
null
null
ros_helper/test/test_transforms.py
cmower/ros_helper
75e4764566b69366f04772b816d0d8b5359ae12c
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python import os import pickle import unittest import rosunit import rospkg import numpy PKG = 'ros_helper' PKG_PATH = rospkg.RosPack().get_path(PKG) # Methods to test from ros_helper.transforms import load_tf from ros_helper.transforms import position_from_msg from ros_helper.transforms import quater...
34.464912
130
0.698142
794bcb659c3b95c512e3489b131be74998ac04e6
8,673
py
Python
basic2/practice_3/cliff_td_comparison.py
linklab/e_learning_rl
16c11c17dfb304959cb80912e29d0540e6ed6cd5
[ "MIT" ]
1
2020-11-22T06:30:45.000Z
2020-11-22T06:30:45.000Z
basic2/practice_3/cliff_td_comparison.py
linklab/e_learning_rl
16c11c17dfb304959cb80912e29d0540e6ed6cd5
[ "MIT" ]
null
null
null
basic2/practice_3/cliff_td_comparison.py
linklab/e_learning_rl
16c11c17dfb304959cb80912e29d0540e6ed6cd5
[ "MIT" ]
null
null
null
import numpy as np import os import matplotlib.pyplot as plt import random from basic.practice_1.cliff import CliffGridWorld # 그리드월드 높이와 너비 GRID_HEIGHT = 4 GRID_WIDTH = 12 NUM_ACTIONS = 4 # 탐색 확률 EPSILON = 0.1 # 스텝 사이즈 ALPHA = 0.5 # 감가율 GAMMA = 1.0 # 초기 상태와 종료 상태 START_STATE = (3, 0) TERMINAL_STATES = [(3, 11)] ...
30.975
135
0.617318
a5db8a11c5f672413f724aff0f2bec6c2f35a281
42,506
py
Python
Lib/test/test_capi.py
atomassi/cpython
8fb36494501aad5b0c1d34311c9743c60bb9926c
[ "0BSD" ]
2
2017-06-29T15:59:56.000Z
2017-12-01T20:10:18.000Z
Lib/test/test_capi.py
atomassi/cpython
8fb36494501aad5b0c1d34311c9743c60bb9926c
[ "0BSD" ]
3
2022-01-11T15:34:07.000Z
2022-03-01T14:04:45.000Z
Lib/test/test_capi.py
atomassi/cpython
8fb36494501aad5b0c1d34311c9743c60bb9926c
[ "0BSD" ]
3
2017-10-18T09:35:14.000Z
2018-09-09T16:40:13.000Z
# Run the _testcapi module tests (tests for the Python/C API): by defn, # these are all functions _testcapi exports whose name begins with 'test_'. from collections import OrderedDict import _thread import importlib.machinery import importlib.util import os import pickle import random import re import subprocess impo...
39.577281
119
0.60902
1c65f9e09402cff36e188ffd8bac0cd871a22be6
5,845
py
Python
runway/lookups/handlers/cfn.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/lookups/handlers/cfn.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
runway/lookups/handlers/cfn.py
troyready/runway
4fd299961a4b73df39e14f4f19a7236f7be17dd8
[ "Apache-2.0" ]
null
null
null
"""Retrieve a value from CloudFormation Stack Outputs. The query syntax for this lookup is ``<stack-name>.<output-name>``. When specifying the output name, be sure to use the *Logical ID* of the output; not the *Export.Name*. If the Lookup is unable to find a CloudFormation Stack Output matching the provided query, t...
33.210227
97
0.621557
dc9087c28fcbd24c9f7077a570b983df76a816b2
760
py
Python
tracks/the_ridge.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
10
2020-09-25T19:48:50.000Z
2021-10-13T13:42:56.000Z
tracks/the_ridge.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
null
null
null
tracks/the_ridge.py
djhedges/exit_speed
86c8a36dd7c53d9f67157c359625b8d33715f917
[ "Apache-2.0" ]
1
2021-02-08T14:50:48.000Z
2021-02-08T14:50:48.000Z
#!/usr/bin/python3 # Copyright 2021 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 agr...
33.043478
74
0.739474
da6abd8475a81b08ab6083a6e0e5483aba661f26
4,543
py
Python
examples/dfp/v201805/line_item_service/create_video_line_item.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:22.000Z
2019-10-21T04:10:22.000Z
examples/dfp/v201805/line_item_service/create_video_line_item.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
null
null
null
examples/dfp/v201805/line_item_service/create_video_line_item.py
christineyi3898/googleads-python-lib
cd707dc897b93cf1bbb19355f7424e7834e7fb55
[ "Apache-2.0" ]
1
2019-10-21T04:10:51.000Z
2019-10-21T04:10:51.000Z
#!/usr/bin/env python # # Copyright 2015 Google Inc. 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 requir...
33.404412
78
0.59278
a53defe9cb66da0db80aec1bcc246ca87ade272d
6,887
py
Python
tests/test_7_using_the_language.py
knittl/diy-lang
2f52ce8a4dbd6f88695000a3fd1502d3a0659693
[ "BSD-3-Clause" ]
108
2016-11-19T02:18:29.000Z
2021-12-30T19:11:03.000Z
tests/test_7_using_the_language.py
knittl/diy-lang
2f52ce8a4dbd6f88695000a3fd1502d3a0659693
[ "BSD-3-Clause" ]
4
2015-10-01T17:12:20.000Z
2016-02-13T11:53:34.000Z
tests/test_7_using_the_language.py
knittl/diy-lang
2f52ce8a4dbd6f88695000a3fd1502d3a0659693
[ "BSD-3-Clause" ]
18
2015-01-20T13:50:34.000Z
2016-06-22T23:25:51.000Z
# -*- coding: utf-8 -*- from nose.tools import assert_equals from os.path import dirname, relpath, join from diylang.interpreter import interpret, interpret_file from diylang.types import Environment env = Environment() path = join(dirname(relpath(__file__)), '..', 'stdlib.diy') interpret_file(path, env) """ Consid...
31.591743
80
0.598083
51671b3eec4d0f2372ba1ac341b7b176f3f4239b
10,595
py
Python
cloudflare_dyndns.py
shiift/cloudflare-dyndns
4cd03bc1200378b4509d73bd993c000b491c9700
[ "MIT" ]
null
null
null
cloudflare_dyndns.py
shiift/cloudflare-dyndns
4cd03bc1200378b4509d73bd993c000b491c9700
[ "MIT" ]
null
null
null
cloudflare_dyndns.py
shiift/cloudflare-dyndns
4cd03bc1200378b4509d73bd993c000b491c9700
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 import os import re import pickle import ipaddress from typing import Iterable from pathlib import Path from collections import namedtuple import click import certifi # Workaround for certifi resource location doesn't work with PyOxidizer. # See: https://github.com/psf/requests/blob/v2.23.0/requ...
30.358166
117
0.618688
21ba43e4ee86e46b58242b9a1fcc9e7d3d6515f9
4,875
py
Python
demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
1
2021-07-19T22:55:05.000Z
2021-07-19T22:55:05.000Z
demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
null
null
null
demos/python/sdk_wireless_camera_control/open_gopro/proto/preset_status_pb.py
hypoxic/OpenGoPro
2c3efd3ef39ef3ae502981cd494d48ececff2bc6
[ "MIT" ]
null
null
null
# preset_status_pb.py/Open GoPro, Version 1.0 (C) Copyright 2021 GoPro, Inc. (http://gopro.com/OpenGoPro). # This copyright was auto-generated on Tue May 18 22:08:50 UTC 2021 # Generated by the protocol buffer compiler. DO NOT EDIT! # sources: preset_status.proto # plugin: python-betterproto from dataclasses import d...
30.279503
106
0.745641
19cbee6a9b1ceaa69e3ce08c5e50447d4389757a
356
py
Python
listings/forms.py
JayTDawgzone/real_estate_tracker
f671898fed7e8f746ce6ffc47e4b5066cd70b94a
[ "MIT" ]
4
2020-04-14T07:05:00.000Z
2021-09-14T17:12:41.000Z
listings/forms.py
JayTDawgzone/real_estate_tracker
f671898fed7e8f746ce6ffc47e4b5066cd70b94a
[ "MIT" ]
13
2020-05-08T09:36:05.000Z
2022-01-13T02:44:14.000Z
listings/forms.py
JayTDawgzone/real_estate_tracker
f671898fed7e8f746ce6ffc47e4b5066cd70b94a
[ "MIT" ]
2
2021-02-08T05:26:19.000Z
2021-03-12T01:48:15.000Z
from django import forms from listings.models import Listing, Maintenance class MaintenanceForm(forms.ModelForm): class Meta(): model = Maintenance fields = ('maintenance_notes', 'title') widgets = { 'maintenance_notes': forms.Textarea(attrs={'class':'editable medium-editor-te...
27.384615
114
0.674157
f3f8887a7cbb1363205f36d972fd59ad95781234
643
py
Python
E_searching/problems/F_peak_element.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
58
2021-01-06T10:05:51.000Z
2022-02-10T05:15:19.000Z
E_searching/problems/F_peak_element.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
5
2021-02-22T04:14:24.000Z
2021-12-26T09:19:17.000Z
E_searching/problems/F_peak_element.py
Princeton21/DSA
0f2321b284fc54f4ddf73733cc1a8d05e549aeea
[ "MIT" ]
27
2021-02-09T13:58:33.000Z
2022-03-06T03:48:08.000Z
def findPeakUtil(ll: list, low: int, high: int, n: int) -> list: mid = low + (high - low) / 2 mid = int(mid) if (mid == 0 or ll[mid - 1] <= ll[mid]) and ( mid == n - 1 or ll[mid + 1] <= ll[mid] ): return mid elif mid > 0 and ll[mid - 1] > ll[mid]: return findPeakUtil(ll, low,...
25.72
64
0.517885
aa73d6ca2ea6d26dffbec237b437a5b48a88b48b
4,829
py
Python
debloat.py
r4reetik/debloat-android
20f21b3a0bbe0f1d63d25e1bca88066c56304707
[ "MIT" ]
null
null
null
debloat.py
r4reetik/debloat-android
20f21b3a0bbe0f1d63d25e1bca88066c56304707
[ "MIT" ]
null
null
null
debloat.py
r4reetik/debloat-android
20f21b3a0bbe0f1d63d25e1bca88066c56304707
[ "MIT" ]
null
null
null
import eel import subprocess as sp import json eel.init("web") appsJSON = {} storageDumps = {} def dumpStorage(): storageDumps["output"] = sp.getoutput("adb shell dumpsys diskstats") def fetchAll(): allAppsOutput = sp.getoutput("adb shell pm list packages -e") splitedAllAppsOutput = allAppsOutput.repl...
32.85034
88
0.639263
93e780ae0df9baf85803a97509dd808ef8abe43c
2,235
py
Python
bnn_optimization/train.py
CuauSuarez/Bop2ndOrder
ff680fbb142b32f8d8061be6c3f2fe0e757b4a03
[ "Apache-2.0" ]
4
2021-04-13T16:08:21.000Z
2021-06-15T15:48:15.000Z
bnn_optimization/train.py
MarioDuran/Bop2ndOrder
b2c314c23c7e8398364bd7122b430c4a21fdc533
[ "Apache-2.0" ]
null
null
null
bnn_optimization/train.py
MarioDuran/Bop2ndOrder
b2c314c23c7e8398364bd7122b430c4a21fdc533
[ "Apache-2.0" ]
1
2021-03-21T00:43:53.000Z
2021-03-21T00:43:53.000Z
from zookeeper import cli, build_train from os import path import click from bnn_optimization import utils @cli.command() @click.option("--tensorboard", default=True) @build_train(utils.prepare_registry) def train(build_model, dataset, hparams, output_dir, tensorboard): import larq as lq from bnn_optimization...
32.391304
84
0.660403
4ff85bb597af4382e336b3c1cafa09f9a915e74b
542
py
Python
jp.atcoder/agc034/agc034_a/8558745.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/agc034/agc034_a/8558745.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/agc034/agc034_a/8558745.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
# 2019-11-22 19:46:21(JST) import sys def main(): n, a, b, c, d = [int(x) for x in sys.stdin.readline().split()] s = '#' + sys.stdin.readline().rstrip() if '##' in s[a+1:max(c, d)-1]: ans = 'No' else: # そうでなければFnukeはどこでもいける # '...'があればSnukeが追い越すことも可能 if c <...
21.68
67
0.409594
7a9f16bc2b5aea325ff599fd20b45ecfd86ab13b
22,547
py
Python
python-profiles/STANDA/8MRB240-152-59D.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
3
2020-12-08T14:41:48.000Z
2022-02-23T13:42:42.000Z
python-profiles/STANDA/8MRB240-152-59D.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
4
2020-12-08T20:15:06.000Z
2021-12-08T14:15:24.000Z
python-profiles/STANDA/8MRB240-152-59D.py
EPC-MSU/libximc
b0349721f57c8274b098a7b646d7ae67b8e70b9d
[ "BSD-2-Clause" ]
2
2020-11-02T02:17:35.000Z
2021-03-18T14:13:56.000Z
def set_profile_8MRB240_152_59D(lib, id): worst_result = Result.Ok result = Result.Ok feedback_settings = feedback_settings_t() feedback_settings.IPS = 4000 class FeedbackType_: FEEDBACK_ENCODER_MEDIATED = 6 FEEDBACK_NONE = 5 FEEDBACK_EMF = 4 FEEDBACK_ENCODER = 1 ...
35.675633
185
0.692199
88418031d28d3c8f10a4404b7bf48e61183398b5
2,908
py
Python
mara_pipelines/incremental_processing/incremental_copy_status.py
timgates42/mara-pipelines
ae17c34e7759915b5e37799c486c4c03443aedae
[ "MIT" ]
1,398
2018-04-07T11:57:57.000Z
2020-06-11T06:17:53.000Z
mara_pipelines/incremental_processing/incremental_copy_status.py
timgates42/mara-pipelines
ae17c34e7759915b5e37799c486c4c03443aedae
[ "MIT" ]
30
2018-05-09T19:58:05.000Z
2020-06-11T09:05:34.000Z
mara_pipelines/incremental_processing/incremental_copy_status.py
timgates42/mara-pipelines
ae17c34e7759915b5e37799c486c4c03443aedae
[ "MIT" ]
76
2018-05-02T03:50:57.000Z
2020-06-08T15:02:52.000Z
"""Tracks the last comparison value of an incremental copy""" import sqlalchemy from sqlalchemy.ext.declarative import declarative_base import mara_db.config import mara_db.dbs import mara_db.postgresql Base = declarative_base() class IncrementalCopyStatus(Base): """The last `modification_value` for a table th...
36.810127
104
0.736933
026153d6561aac8535f12b7e18391aded9ab9bc6
43,170
py
Python
msc_pygeoapi/loader/ltce.py
Dukestep/msc-pygeoapi
a7376ed0031f2cb4675ebd9f17d802c1783a2941
[ "MIT" ]
9
2020-12-11T04:21:42.000Z
2022-01-04T19:00:22.000Z
msc_pygeoapi/loader/ltce.py
Dukestep/msc-pygeoapi
a7376ed0031f2cb4675ebd9f17d802c1783a2941
[ "MIT" ]
25
2020-04-22T22:17:06.000Z
2022-01-31T12:12:40.000Z
msc_pygeoapi/loader/ltce.py
Dukestep/msc-pygeoapi
a7376ed0031f2cb4675ebd9f17d802c1783a2941
[ "MIT" ]
18
2020-04-22T23:40:40.000Z
2022-02-07T14:07:19.000Z
# ================================================================= # # Author: Etienne Pelletier <etienne.pelletier@canada.ca> # # Copyright (c) 2020 Etienne Pelletier # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation # files (the "Software...
35.975
95
0.520199
4d6d5d6477c02339febacbf6dad86eddd2eaeebe
1,516
py
Python
app/user/views.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
app/user/views.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
app/user/views.py
jackyng88/recipe-app-api
234c0c7c05d850f68aeacbede9d37bac8ab25bfe
[ "MIT" ]
null
null
null
from rest_framework import generics, authentication, permissions from rest_framework.authtoken.views import ObtainAuthToken from rest_framework.settings import api_settings from user.serializers import UserSerializer, AuthTokenSerializer # Django REST Framework APIView documentation - # https://www.django-rest-frame...
39.894737
80
0.782322
8fdbabff094e10ccba58ac386dd4d88067f1c7e5
423
py
Python
tensortools/logging.py
jacsmith21/tensortools
8d3f3811ede88accbf2c43f1984fdadd410da842
[ "MIT" ]
null
null
null
tensortools/logging.py
jacsmith21/tensortools
8d3f3811ede88accbf2c43f1984fdadd410da842
[ "MIT" ]
null
null
null
tensortools/logging.py
jacsmith21/tensortools
8d3f3811ede88accbf2c43f1984fdadd410da842
[ "MIT" ]
null
null
null
import logging import time def get_logger(name, level=logging.INFO): logger = logging.getLogger(name) logger.setLevel(level) console_handler = logging.StreamHandler() formatter = logging.Formatter('[%(levelname)s/%(asctime)s/%(module)s:%(lineno)s] - %(message)s') formatter.converter = time.gmtime...
26.4375
100
0.728132
05e07ab686cd017554d21c0e944f575acd596c19
3,006
py
Python
users/migrations/0001_initial.py
mateusvictor/Authentication-System
c94d97f38bfaf5d6861de633a4f7e2c375874d7e
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
mateusvictor/Authentication-System
c94d97f38bfaf5d6861de633a4f7e2c375874d7e
[ "MIT" ]
null
null
null
users/migrations/0001_initial.py
mateusvictor/Authentication-System
c94d97f38bfaf5d6861de633a4f7e2c375874d7e
[ "MIT" ]
null
null
null
# Generated by Django 3.1.4 on 2021-04-24 21:38 import django.contrib.auth.models import django.contrib.auth.validators from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): initial = True dependencies = [ ('auth', '0012_alter_user_first_name_m...
63.957447
329
0.660013