hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
4a0b2bfc27d686dbbcf69621c567c9d6c54f9e13
1,066
py
Python
admindash/views.py
ricksaha2000/StayConnected
f5632cca785d8c4679a2edb8ab33d1321603c658
[ "MIT" ]
null
null
null
admindash/views.py
ricksaha2000/StayConnected
f5632cca785d8c4679a2edb8ab33d1321603c658
[ "MIT" ]
5
2021-03-19T11:20:25.000Z
2022-02-10T10:32:50.000Z
admindash/views.py
ricksaha2000/StayConnected
f5632cca785d8c4679a2edb8ab33d1321603c658
[ "MIT" ]
1
2020-06-07T11:08:04.000Z
2020-06-07T11:08:04.000Z
from django.shortcuts import render from meetups.models import Meetup from django.views.decorators.csrf import csrf_exempt from django.shortcuts import render from meetups.models import Meetup from django.views.decorators.csrf import csrf_exempt from meetups.models import Meetup # Create your views here. def home(req...
23.688889
66
0.673546
4a0b2d07d9ee8c0dc801d7af3edeaf72dcc3456c
78,631
py
Python
lib/sqlalchemy/orm/persistence.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/persistence.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
null
null
null
lib/sqlalchemy/orm/persistence.py
dand-oss/sqlalchemy
4fa657ae549d11b09ba3a641a17268f3dc78d3cb
[ "MIT" ]
1
2021-10-06T07:03:07.000Z
2021-10-06T07:03:07.000Z
# orm/persistence.py # Copyright (C) 2005-2020 the SQLAlchemy authors and contributors # <see AUTHORS file> # # This module is part of SQLAlchemy and is released under # the MIT License: http://www.opensource.org/licenses/mit-license.php """private module containing functions used to emit INSERT, UPDATE and DELETE sta...
33.38896
79
0.547252
4a0b2d99f55b781bc71128cd6af4835240da9e44
1,820
py
Python
libneko/pag/abc.py
Natsurii/b00t
09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4
[ "MIT" ]
1
2018-09-22T23:58:55.000Z
2018-09-22T23:58:55.000Z
libneko/pag/abc.py
Natsurii/b00t
09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4
[ "MIT" ]
null
null
null
libneko/pag/abc.py
Natsurii/b00t
09fac50434fd6692d6f1a07e8c8f4a5df20ce9d4
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # MIT License # # Copyright (c) 2018-2019 Nekoka.tt # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without li...
33.703704
79
0.734066
4a0b2dae16418e5358e2d7af6c856df4bf92c1b5
4,430
py
Python
test/functional/rpc_signrawtransaction.py
lulworm/core
6a046551e403b336644c2ce8fde60123cc212cc6
[ "MIT" ]
24
2018-05-08T15:01:48.000Z
2022-03-27T19:33:35.000Z
test/functional/rpc_signrawtransaction.py
lulworm/core
6a046551e403b336644c2ce8fde60123cc212cc6
[ "MIT" ]
7
2018-01-03T00:06:07.000Z
2018-10-06T17:04:40.000Z
test/functional/rpc_signrawtransaction.py
lulworm/core
6a046551e403b336644c2ce8fde60123cc212cc6
[ "MIT" ]
25
2017-12-18T12:09:38.000Z
2021-05-15T16:44:41.000Z
#!/usr/bin/env python3 # Copyright (c) 2015-2017 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test transaction signing using the signrawtransaction RPC.""" from test_framework.test_framework impor...
42.190476
118
0.676749
4a0b2e9e0e169a699c2e1068274cc0fb9ba052bf
1,687
py
Python
spark_auto_mapper_fhir/value_sets/claim_processing_codes.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/value_sets/claim_processing_codes.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/value_sets/claim_processing_codes.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from __future__ import annotations from spark_auto_mapper_fhir.fhir_types.uri import FhirUri from spark_auto_mapper_fhir.value_sets.generic_type import GenericTypeCode from spark_auto_mapper.type_definitions.defined_types import AutoMapperTextInputType # This file is auto-generated by generate_classes so do not edi...
33.078431
84
0.739775
4a0b31af7c7b26a59c35d4e199fa79268a8a9358
15,998
py
Python
ansible/modules/cloud/cloudstack/cs_storage_pool.py
EnjoyLifeFund/macHighSierra-py36-pkgs
5668b5785296b314ea1321057420bcd077dba9ea
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
1
2022-01-25T22:52:58.000Z
2022-01-25T22:52:58.000Z
ansible/modules/cloud/cloudstack/cs_storage_pool.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
ansible/modules/cloud/cloudstack/cs_storage_pool.py
EnjoyLifeFund/Debian_py36_packages
1985d4c73fabd5f08f54b922e73a9306e09c77a5
[ "BSD-3-Clause", "BSD-2-Clause", "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # # (c) 2017, Netservers Ltd. <support@netservers.co.uk> # (c) 2017, René Moser <mail@renemoser.net> # # This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
31.430255
116
0.636205
4a0b31c4cfe360e867b55daf3f0ff81fac7f7c64
1,306
py
Python
_bin/word_perm.py
HongxuChen/dotfiles
4a51a74ae3345273514faccf40a47e1a39048049
[ "MIT" ]
13
2015-09-11T14:53:06.000Z
2021-12-19T23:07:06.000Z
_bin/word_perm.py
HongxuChen/dotfiles
4a51a74ae3345273514faccf40a47e1a39048049
[ "MIT" ]
5
2015-03-18T17:08:01.000Z
2020-01-07T08:51:47.000Z
_bin/word_perm.py
HongxuChen/dotfiles
4a51a74ae3345273514faccf40a47e1a39048049
[ "MIT" ]
4
2016-12-27T14:52:19.000Z
2019-05-16T07:07:53.000Z
#!/usr/bin/env python3 from __future__ import print_function import sys import os import subprocess from itertools import permutations def get_words(fname): word_set = set() try: with open(fname, "r") as f: for word in f.readlines(): word = word.lower().strip() ...
28.391304
91
0.584992
4a0b33571c5c863e951106940326af22f36973de
4,819
py
Python
sdk/python/pulumi_azure_native/recoveryservices/v20180710/get_replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20180710/get_replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "Apache-2.0" ]
null
null
null
sdk/python/pulumi_azure_native/recoveryservices/v20180710/get_replication_storage_classification_mapping.py
pulumi-bot/pulumi-azure-native
f7b9490b5211544318e455e5cceafe47b628e12c
[ "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.648438
202
0.654078
4a0b337ca4ad9dd5f008d03255af2e82697423da
1,357
py
Python
week_9_serverless/lambda_function.py
razekmaiden/ml_zoomcamp
fe26bb2fc611cb22b5da6178544c4f1dfd30f9ee
[ "MIT" ]
null
null
null
week_9_serverless/lambda_function.py
razekmaiden/ml_zoomcamp
fe26bb2fc611cb22b5da6178544c4f1dfd30f9ee
[ "MIT" ]
null
null
null
week_9_serverless/lambda_function.py
razekmaiden/ml_zoomcamp
fe26bb2fc611cb22b5da6178544c4f1dfd30f9ee
[ "MIT" ]
1
2021-10-11T12:18:36.000Z
2021-10-11T12:18:36.000Z
#!/usr/bin/env python # coding: utf-8 #import tensorflow.lite as tflite import tflite_runtime.interpreter as tflite import numpy as np from io import BytesIO from urllib import request from PIL import Image def download_image(url): with request.urlopen(url) as resp: buffer = resp.read() stream = Byte...
24.232143
59
0.707443
4a0b33f947823869ca0565bd9710db59d7a21ab4
324
py
Python
aqueduct/exceptions.py
artemcpp/aqueduct
2fc177b9e533dbe900f5878b9cc7a9c0e9eed179
[ "MIT" ]
null
null
null
aqueduct/exceptions.py
artemcpp/aqueduct
2fc177b9e533dbe900f5878b9cc7a9c0e9eed179
[ "MIT" ]
null
null
null
aqueduct/exceptions.py
artemcpp/aqueduct
2fc177b9e533dbe900f5878b9cc7a9c0e9eed179
[ "MIT" ]
null
null
null
class AqueductError(Exception): """Base class for all Aqueduct errors.""" class FlowError(AqueductError): """Flow can raise this if something was wrong.""" class NotRunningError(FlowError): """Flow can raise this if it's not already running.""" class BadReferenceCount(AqueductError, ValueError): p...
21.6
58
0.722222
4a0b34226443e1817a1480efa09073fb889e70a6
5,668
py
Python
tests/replication/tcp/streams/test_typing.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
1
2021-09-09T08:50:13.000Z
2021-09-09T08:50:13.000Z
tests/replication/tcp/streams/test_typing.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
null
null
null
tests/replication/tcp/streams/test_typing.py
rkfg/synapse
0b3112123da5fae4964db784e3bab0c4d83d9d62
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright 2020 The Matrix.org Foundation C.I.C. # # 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 require...
36.567742
83
0.687368
4a0b34655023b3137b80ba53099777e07c058bae
1,992
py
Python
Bioinformatics V/Week I/diauxic_shift_clustering.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
3
2021-04-03T23:46:42.000Z
2021-08-08T01:19:32.000Z
Bioinformatics V/Week I/diauxic_shift_clustering.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
Bioinformatics V/Week I/diauxic_shift_clustering.py
egeulgen/Bioinformatics_Specialization
38581b471a54c41d780d9eeb26a7033eb57f3a01
[ "MIT" ]
null
null
null
import pandas as pd from copy import deepcopy import k_means_initializer import SquaredErrorDistortion def Euclidean_distance(PointA, PointB): if len(PointA) != len(PointB): raise ValueError('The dimensions are not the same!') dist = 0 for i in range(len(PointA)): dist += ((PointA[i] - Poin...
30.646154
90
0.615462
4a0b3483971daa6613afe70a7548d41570654076
3,837
py
Python
apps/agents_ppo/trainer/trigger.py
cwbeitel/kubeflow-agents-demo
4b70afc7434901111e7733e6f83ad218afd5cbd5
[ "Apache-2.0" ]
8
2018-01-08T10:41:10.000Z
2019-12-23T15:17:43.000Z
apps/agents_ppo/trainer/trigger.py
cwbeitel/kubeflow-agents-demo
4b70afc7434901111e7733e6f83ad218afd5cbd5
[ "Apache-2.0" ]
6
2018-01-07T19:12:55.000Z
2018-01-24T18:28:51.000Z
apps/agents_ppo/trainer/trigger.py
cwbeitel/kubeflow-rl
4b70afc7434901111e7733e6f83ad218afd5cbd5
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Agents 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 ag...
42.633333
114
0.681001
4a0b350a0c0025e444a9ecd766c1b2b31182548a
3,095
py
Python
setup.py
williamholland/django-rest-messaging
c9d5405fed7db2d79ec5c93c721a8fe42ea86958
[ "0BSD" ]
43
2016-02-22T16:34:22.000Z
2021-12-08T01:11:21.000Z
setup.py
williamholland/django-rest-messaging
c9d5405fed7db2d79ec5c93c721a8fe42ea86958
[ "0BSD" ]
6
2016-04-07T12:38:29.000Z
2019-07-05T10:58:45.000Z
setup.py
williamholland/django-rest-messaging
c9d5405fed7db2d79ec5c93c721a8fe42ea86958
[ "0BSD" ]
12
2016-04-07T12:20:20.000Z
2021-06-24T17:29:38.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import re import os import sys from setuptools import setup name = 'django-rest-messaging' package = 'rest_messaging' description = 'The project provides a Facebook-like messaging API for Django Rest Framework.' url = 'https://github.com/raphaelgyory/django-rest-messaging...
30.343137
93
0.624233
4a0b36f9c3b8ed0a60ccc5fd28f057508843d7b4
1,005
py
Python
errorify/parse_verbs.py
wangwang110/PIE
474769e3c4266deefcb7dd5daf802a1306bc7c99
[ "MIT" ]
165
2019-10-08T09:54:46.000Z
2022-03-17T06:50:32.000Z
errorify/parse_verbs.py
wangwang110/PIE
474769e3c4266deefcb7dd5daf802a1306bc7c99
[ "MIT" ]
28
2019-11-02T07:06:26.000Z
2022-03-24T09:20:58.000Z
errorify/parse_verbs.py
wangwang110/PIE
474769e3c4266deefcb7dd5daf802a1306bc7c99
[ "MIT" ]
38
2019-12-05T06:01:54.000Z
2022-03-21T09:35:23.000Z
import pickle verbs_file = "morphs.txt" def expand_dict(d): result = {} for key in d: if key in result: result[key] = result[key].union(d[key].difference({key})) else: result[key] = d[key].difference({key}) for item in d[key]: if item in result: if item != key: result[item] = result[item].uni...
22.333333
78
0.633831
4a0b3728fdf621269ec9150c733834a4e955653e
288
py
Python
project/db/admin.py
Moshood-Wale/Bouncer-E-commerce-api
5f07bab970bf3d20f3e98ae8b7e4e284ee52baa8
[ "MIT" ]
null
null
null
project/db/admin.py
Moshood-Wale/Bouncer-E-commerce-api
5f07bab970bf3d20f3e98ae8b7e4e284ee52baa8
[ "MIT" ]
null
null
null
project/db/admin.py
Moshood-Wale/Bouncer-E-commerce-api
5f07bab970bf3d20f3e98ae8b7e4e284ee52baa8
[ "MIT" ]
1
2022-02-09T14:13:20.000Z
2022-02-09T14:13:20.000Z
from django.contrib import admin from db.models import * # Register your models here. admin.site.register(Product) admin.site.register(User) admin.site.register(Category) admin.site.register(Cart) admin.site.register(SubCategory) admin.site.register(Payment) admin.site.register(Brand)
22.153846
32
0.809028
4a0b38a6199a79d381d370a3a79e7b3279337c5d
9,648
py
Python
src/natives/python/repeat_lib.py
hptruong93/Repeat
b1306e13e529e7317a57faf36b86e113cb893cdf
[ "MIT" ]
13
2015-04-13T03:11:32.000Z
2021-08-22T11:16:43.000Z
src/natives/python/repeat_lib.py
hptruong93/Repeat
b1306e13e529e7317a57faf36b86e113cb893cdf
[ "MIT" ]
1
2017-05-29T14:38:49.000Z
2017-05-29T15:17:14.000Z
src/natives/python/repeat_lib.py
hptruong93/Repeat
b1306e13e529e7317a57faf36b86e113cb893cdf
[ "MIT" ]
1
2016-09-09T23:22:37.000Z
2016-09-09T23:22:37.000Z
import json import os import sys import signal import traceback import time import imp import socket import select import threading import Queue import specifications import shared_memory_request import keyboard_request import mouse_request import tool_request import system_host_request import system_client_request ...
34.212766
145
0.570377
4a0b38e231817cf6040b27f2d88b63d93a547406
798
py
Python
app/core/admin.py
afelopez/growing-recipies
89e2690f37701ea6aaa32123120b266cbe76a250
[ "MIT" ]
null
null
null
app/core/admin.py
afelopez/growing-recipies
89e2690f37701ea6aaa32123120b266cbe76a250
[ "MIT" ]
null
null
null
app/core/admin.py
afelopez/growing-recipies
89e2690f37701ea6aaa32123120b266cbe76a250
[ "MIT" ]
null
null
null
from django.contrib import admin from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.utils.translation import gettext as _ from core import models class UserAdmin(BaseUserAdmin): ordering = ['id'] list_display = ['email', 'name'] fieldsets = ( (None, {"fields": ('email', ...
26.6
65
0.571429
4a0b38f174093110c00e780df9f4cb79ae38857a
5,267
py
Python
ros/src/twist_controller/dbw_node.py
nialldevlin/Self-driving-car-complete
e2b4288a0ebcf2e370fae78809cdafbff4a79466
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
nialldevlin/Self-driving-car-complete
e2b4288a0ebcf2e370fae78809cdafbff4a79466
[ "MIT" ]
null
null
null
ros/src/twist_controller/dbw_node.py
nialldevlin/Self-driving-car-complete
e2b4288a0ebcf2e370fae78809cdafbff4a79466
[ "MIT" ]
null
null
null
#!/usr/bin/env python import rospy from std_msgs.msg import Bool from dbw_mkz_msgs.msg import ThrottleCmd, SteeringCmd, BrakeCmd, SteeringReport from geometry_msgs.msg import TwistStamped import math from twist_controller import Controller ''' You can build this node only after you have built (or partially built) th...
42.136
101
0.612113
4a0b3919ac8aa179abff64344b2fac6bad742e16
7,793
py
Python
spekev2_verification_testsuite/helpers/utils.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
spekev2_verification_testsuite/helpers/utils.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
spekev2_verification_testsuite/helpers/utils.py
amphied/speke-reference-server
7b589a333fb3c619c6f7e53483d43de9a588f7b7
[ "Apache-2.0" ]
null
null
null
import re import base64 from urllib.parse import urlparse import xml.etree.ElementTree as ET from io import StringIO from collections import Counter import m3u8 import requests from aws_requests_auth.aws_auth import AWSRequestsAuth from aws_requests_auth import boto_utils # FILES USED FOR TESTS # SpekeV2 test request...
33.882609
136
0.744771
4a0b39392ce9248a0a42ed95686bd0deac9405cf
442
py
Python
recipes/android-ndk/all/test_package/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
1
2021-02-07T12:33:15.000Z
2021-02-07T12:33:15.000Z
recipes/android-ndk/all/test_package/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
5
2021-03-25T01:49:56.000Z
2021-03-28T16:42:12.000Z
recipes/android-ndk/all/test_package/conanfile.py
nadzkie0/conan-center-index
fde12bf20f2c4cb6a7554d09a5c9433a0f5cb72c
[ "MIT" ]
4
2021-06-03T23:24:03.000Z
2022-03-03T17:16:09.000Z
from conans import ConanFile, tools class TestPackgeConan(ConanFile): settings = "os", "arch" def build(self): pass #nothing to do, not warnings please def test(self): if not tools.cross_building(self): if self.settings.os == "Windows": self.run("ndk-build.cmd ...
29.466667
73
0.606335
4a0b396f94dc8c4bd092d3c36dbb5bc46364a210
5,042
py
Python
imagenet_training/data/imagenet/download_images.py
daniilgaltsev/ImageNet-Training
9ca1d26cde07782398c7f366d5bf510c9e988236
[ "MIT" ]
null
null
null
imagenet_training/data/imagenet/download_images.py
daniilgaltsev/ImageNet-Training
9ca1d26cde07782398c7f366d5bf510c9e988236
[ "MIT" ]
null
null
null
imagenet_training/data/imagenet/download_images.py
daniilgaltsev/ImageNet-Training
9ca1d26cde07782398c7f366d5bf510c9e988236
[ "MIT" ]
null
null
null
"""A module containing function to download images.""" import asyncio import os from pathlib import Path from typing import Dict, List, Union import aiofiles import aiohttp async def _download_image( url: str, filename: Union[Path, str], semaphore: asyncio.Semaphore, timeout: float ) -> bool: "...
32.74026
96
0.644585
4a0b39e8150c88bf80466c2273d33646b71c11ea
28,778
py
Python
mesonbuild/modules/pkgconfig.py
mscofield0/meson
007c4659c2154755fc1f57d415afc8a736f81af2
[ "Apache-2.0" ]
2
2021-12-06T21:07:10.000Z
2021-12-06T21:20:39.000Z
mesonbuild/modules/pkgconfig.py
eli-schwartz/meson
40343fae9fb0acae6509753a5879bf4964276053
[ "Apache-2.0" ]
1
2021-09-03T18:10:25.000Z
2021-09-03T18:10:25.000Z
mesonbuild/modules/pkgconfig.py
eli-schwartz/meson
40343fae9fb0acae6509753a5879bf4964276053
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 The Meson development team # 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 ...
48.776271
160
0.583606
4a0b39f6f41aeab7f133236db291a7fd7bbaf610
5,172
py
Python
kubernetes_asyncio/client/api/scheduling_api.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/scheduling_api.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
kubernetes_asyncio/client/api/scheduling_api.py
jnschaeffer/kubernetes_asyncio
05f42510e7acb8d229bf7c2d4e2455e6328486a6
[ "Apache-2.0" ]
null
null
null
# coding: utf-8 """ Kubernetes No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501 The version of the OpenAPI document: v1.15.11 Generated by: https://openapi-generator.tech """ from __future__ import absolute_import import re #...
37.478261
124
0.610209
4a0b3ad2ee32c21e4eb6602eae33edaac3806fcd
6,853
py
Python
airflow/operators/s3_file_transform_operator.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
4
2019-01-17T06:21:45.000Z
2020-06-20T01:59:57.000Z
airflow/operators/s3_file_transform_operator.py
RSEnergyGroup/incubator-airflow
e947c6c034238ede29a6c8f51307458d3e40c1b5
[ "Apache-2.0" ]
14
2018-10-24T03:15:11.000Z
2019-01-02T19:02:58.000Z
airflow/operators/s3_file_transform_operator.py
cse-airflow/incubator-airflow
215b8c8170bd63f4c449614945bb4b6d90f6a860
[ "Apache-2.0" ]
6
2018-12-04T12:15:23.000Z
2020-11-23T03:51:41.000Z
# -*- coding: utf-8 -*- # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the #...
40.791667
88
0.649497
4a0b3b1a46ef8be15ba71d66004c53386dce7022
8,742
py
Python
st2common/st2common/transport/connection_retry_wrapper.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
st2common/st2common/transport/connection_retry_wrapper.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
null
null
null
st2common/st2common/transport/connection_retry_wrapper.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Extreme Networks, 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 i...
44.830769
99
0.610844
4a0b3b4bad2851b97325a33e3fe2a46c4683e6e8
916
py
Python
30-Day-Challange/Day-16/course-schedule-1.py
EashanKaushik/LeetCode
8ee2a61cefa42b332b6252fafff4a2772d25aa31
[ "Apache-2.0" ]
null
null
null
30-Day-Challange/Day-16/course-schedule-1.py
EashanKaushik/LeetCode
8ee2a61cefa42b332b6252fafff4a2772d25aa31
[ "Apache-2.0" ]
null
null
null
30-Day-Challange/Day-16/course-schedule-1.py
EashanKaushik/LeetCode
8ee2a61cefa42b332b6252fafff4a2772d25aa31
[ "Apache-2.0" ]
null
null
null
from collections import defaultdict class Solution: def canFinish(self, numCourses, prerequisites): adj_matrix = {num:[] for num in range(0, numCourses)} for prereq in prerequisites: adj_matrix[prereq[0]].append(prereq[1]) cycle = set() def dfs(course): ...
22.341463
61
0.501092
4a0b3c2df8c3456289794765d16ce26bd4a32c1c
925
py
Python
src/configreader.py
sconos/super-octo-chainsaw
392abf6c6fa6a15a82f7f442c108da2a0613c9d0
[ "MIT" ]
null
null
null
src/configreader.py
sconos/super-octo-chainsaw
392abf6c6fa6a15a82f7f442c108da2a0613c9d0
[ "MIT" ]
null
null
null
src/configreader.py
sconos/super-octo-chainsaw
392abf6c6fa6a15a82f7f442c108da2a0613c9d0
[ "MIT" ]
null
null
null
import sys,os, ConfigParser class ConfigReader: """ Read configuration file in dosini format """ conf = 'config' dotconf = '.SuperOctoChainsaw.conf' def __init__(self, projectName): self.projectName = projectName self.config = None self.fileLocs = dict() s...
28.030303
97
0.578378
4a0b3c4710b6af22b6aeb2eb7c41c722776c3da4
474
py
Python
accounts/migrations/0003_user_avatar.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
accounts/migrations/0003_user_avatar.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
accounts/migrations/0003_user_avatar.py
yogoh31/Repath-App-Backend
c2cc85b05457ae7338de6f299ce369358402ce12
[ "MIT" ]
null
null
null
# Generated by Django 4.0.2 on 2022-02-26 10:23 import accounts.models from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounts', '0002_alter_user_date_joined'), ] operations = [ migrations.AddField( model_name='user', ...
23.7
114
0.647679
4a0b3d0ab8731e48f04bb2b2074d2c197a82b4cb
5,816
py
Python
tf2onnx/optimizer/const_fold_optimizer.py
wangqiaoshi/tensorflow-onnx
7ef484c5deae6213cd18cf2548b2551f7bbc8b48
[ "MIT" ]
null
null
null
tf2onnx/optimizer/const_fold_optimizer.py
wangqiaoshi/tensorflow-onnx
7ef484c5deae6213cd18cf2548b2551f7bbc8b48
[ "MIT" ]
null
null
null
tf2onnx/optimizer/const_fold_optimizer.py
wangqiaoshi/tensorflow-onnx
7ef484c5deae6213cd18cf2548b2551f7bbc8b48
[ "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT license. """const fold Optimizer. if op's inputs are all const then do op computation when building the graph to improve performance for example, input of transpose node is const then we can do transpose statically instead of at...
39.033557
111
0.662827
4a0b3efc08a6a2bbb248352182dd3a39d10b767e
4,068
py
Python
switch/sonoff.py
2016for/HASS-sonoff-ewelink
cbe39b183be19911663b65d9fcc71af666f9ec97
[ "MIT" ]
null
null
null
switch/sonoff.py
2016for/HASS-sonoff-ewelink
cbe39b183be19911663b65d9fcc71af666f9ec97
[ "MIT" ]
null
null
null
switch/sonoff.py
2016for/HASS-sonoff-ewelink
cbe39b183be19911663b65d9fcc71af666f9ec97
[ "MIT" ]
1
2019-03-08T14:09:55.000Z
2019-03-08T14:09:55.000Z
import logging, time, json from homeassistant.components.switch import SwitchDevice from homeassistant.components.switch import DOMAIN # from homeassistant.components.sonoff import (DOMAIN as SONOFF_DOMAIN, SonoffDevice) from custom_components.sonoff import (DOMAIN as SONOFF_DOMAIN, SonoffDevice) _LOGGER = logging.ge...
39.882353
113
0.602262
4a0b40300be9a28633709a6b10908603918e5805
8,230
py
Python
lib/ansible/plugins/connection/lxc.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
37
2017-08-15T15:02:43.000Z
2021-07-23T03:44:31.000Z
lib/ansible/plugins/connection/lxc.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
12
2018-01-10T05:25:25.000Z
2021-11-28T06:55:48.000Z
lib/ansible/plugins/connection/lxc.py
Container-Projects/ansible-provider-docs
100b695b0b0c4d8d08af362069557ffc735d0d7e
[ "PSF-2.0", "BSD-2-Clause", "MIT" ]
49
2017-08-15T09:52:13.000Z
2022-03-21T17:11:54.000Z
# (c) 2015, Joerg Thalheim <joerg@higgsboson.tk> # Copyright (c) 2017 Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = """ author: Joerg Thalheim <joe...
35.627706
95
0.576306
4a0b40481502f6e12e2eced913f41305cdbe61c7
1,339
py
Python
setup.py
xtacocorex/chip-python-aREST
bc9bb01f569ae32adf4717b9d7414a4f3c481874
[ "MIT" ]
6
2017-01-02T19:24:02.000Z
2019-02-14T06:45:07.000Z
setup.py
xtacocorex/chip-python-aREST
bc9bb01f569ae32adf4717b9d7414a4f3c481874
[ "MIT" ]
10
2017-01-03T05:25:40.000Z
2017-12-16T19:53:41.000Z
setup.py
xtacocorex/chip-python-aREST
bc9bb01f569ae32adf4717b9d7414a4f3c481874
[ "MIT" ]
2
2017-08-06T23:35:46.000Z
2018-10-17T02:07:36.000Z
import distribute_setup distribute_setup.use_setuptools() from setuptools import setup, Extension, find_packages classifiers = ['Development Status :: 3 - Alpha', 'Operating System :: POSIX :: Linux', 'License :: OSI Approved :: MIT License', 'Intended Audience :: Developer...
46.172414
92
0.5646
4a0b415f8fe0a27dac87ceda1a3be9d30350494f
29,075
py
Python
electrum/base_wizard.py
ProjectMerge/electrum-merge
9a77ca74fec434ccdc862aeb82093f90e96cb550
[ "MIT" ]
null
null
null
electrum/base_wizard.py
ProjectMerge/electrum-merge
9a77ca74fec434ccdc862aeb82093f90e96cb550
[ "MIT" ]
null
null
null
electrum/base_wizard.py
ProjectMerge/electrum-merge
9a77ca74fec434ccdc862aeb82093f90e96cb550
[ "MIT" ]
1
2020-12-18T17:13:10.000Z
2020-12-18T17:13:10.000Z
# -*- coding: utf-8 -*- # # Electrum - lightweight Merge client # Copyright (C) 2016 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
44.868827
145
0.598246
4a0b4282bd342428c9fc2b1d56148fc26e464531
243
py
Python
python_exercises/48numerical_sets.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
python_exercises/48numerical_sets.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
python_exercises/48numerical_sets.py
Matheus-IT/lang-python-related
dd2e5d9b9f16d3838ba1670fdfcba1fa3fe305e9
[ "MIT" ]
null
null
null
x = {1, 2, 3} y = {2, 3, 4} print('x =', x) print('x =', y) # Union print('Union:', x | y) # Intersection print('Intersection:', x & y) # Difference print('Difference:', x - y) # Symmetric difference print('Symmetric difference:', x ^ y)
13.5
37
0.584362
4a0b42ad8fa149537003b47c237a32b13311bf8b
5,170
py
Python
demystifying/feature_extraction/rbm_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
16
2020-01-04T14:46:03.000Z
2021-07-10T05:54:05.000Z
demystifying/feature_extraction/rbm_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
11
2020-01-10T16:18:17.000Z
2022-03-20T09:53:33.000Z
demystifying/feature_extraction/rbm_feature_extractor.py
delemottelab/demystifying
e8527b52d5fbe0570cd391921ecda5aefceb797a
[ "MIT" ]
3
2020-03-16T04:35:01.000Z
2022-02-10T12:39:01.000Z
import logging import sys logging.basicConfig( stream=sys.stdout, level=logging.INFO, format='%(asctime)s %(name)s-%(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S') import numpy as np from .. import relevance_propagation as relprop from .feature_extractor import FeatureExtractor from sklearn.n...
42.03252
114
0.604062
4a0b42f8c14c61686a4a94664b1c713895cfde02
1,202
py
Python
cogs/utils/Events.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
cogs/utils/Events.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
null
null
null
cogs/utils/Events.py
MisakaMikoto0502/zeroday
e0a7a652ccca1af10e3ded01eef0baa8eccf0976
[ "MIT" ]
1
2020-11-12T23:02:15.000Z
2020-11-12T23:02:15.000Z
import discord import time import datetime from discord.ext import commands from discord.ext.commands import Context, Bot from app.controller.logger import Logger class Events(commands.Cog): def __init__(self, bot: Bot) -> None: self.bot = bot self.logger = Logger.generate_log() ...
30.05
90
0.578203
4a0b43588e2408c1aec112417199b6e118fac969
2,952
py
Python
product/create_product.py
t-karasova/grs-samples-python
0941265a6b8dd0bd6bd1db540b49307674360db7
[ "Apache-2.0" ]
1
2021-12-22T14:47:30.000Z
2021-12-22T14:47:30.000Z
product/create_product.py
t-karasova/grs-samples-python
0941265a6b8dd0bd6bd1db540b49307674360db7
[ "Apache-2.0" ]
null
null
null
product/create_product.py
t-karasova/grs-samples-python
0941265a6b8dd0bd6bd1db540b49307674360db7
[ "Apache-2.0" ]
2
2021-10-05T09:40:02.000Z
2021-12-17T16:04:26.000Z
# Copyright 2021 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 required by applicable law or ...
32.8
121
0.747967
4a0b43818489845fccffa7e7f6cdd3b91eb2aa6c
6,881
py
Python
models/experimental/cifar_keras/cifar_keras.py
bileschi/tpu
0731831addc47d45342708093697492e4e9a68ca
[ "Apache-2.0" ]
null
null
null
models/experimental/cifar_keras/cifar_keras.py
bileschi/tpu
0731831addc47d45342708093697492e4e9a68ca
[ "Apache-2.0" ]
null
null
null
models/experimental/cifar_keras/cifar_keras.py
bileschi/tpu
0731831addc47d45342708093697492e4e9a68ca
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
37.396739
80
0.692051
4a0b43c492fbc466e2b9ed302424668560e82a6e
4,154
py
Python
lstm.py
NehaPendem/Classical-Music-Combination
e1d084ed718ccca5b7d9bfe42ad7fe0a14ed7640
[ "MIT" ]
null
null
null
lstm.py
NehaPendem/Classical-Music-Combination
e1d084ed718ccca5b7d9bfe42ad7fe0a14ed7640
[ "MIT" ]
null
null
null
lstm.py
NehaPendem/Classical-Music-Combination
e1d084ed718ccca5b7d9bfe42ad7fe0a14ed7640
[ "MIT" ]
null
null
null
""" This module prepares midi file data and feeds it to the neural network for training """ import glob import pickle import numpy from music21 import converter, instrument, note, chord from keras.models import Sequential from keras.layers import Dense from keras.layers import Dropout from keras.layers import LSTM ...
32.453125
124
0.689697
4a0b4714dd5cac1b633c1d58c1b0d4eb81a04d88
2,371
py
Python
labscript_devices/NI_DAQmx/models/NI_USB_6008.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
1
2022-03-03T04:22:47.000Z
2022-03-03T04:22:47.000Z
labscript_devices/NI_DAQmx/models/NI_USB_6008.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
43
2020-05-12T20:34:36.000Z
2022-03-29T21:47:29.000Z
labscript_devices/NI_DAQmx/models/NI_USB_6008.py
chrisjbillington/labscript_devices
75b175d44c1fdca55b7cae30a898bbea59c2a5d7
[ "BSD-2-Clause", "BSD-3-Clause" ]
23
2020-05-31T03:15:59.000Z
2022-02-25T14:36:45.000Z
##################################################################### # # # /NI_DAQmx/models/_subclass_template.py # # # # Copyright 2018, Christopher Billington...
41.596491
69
0.432307
4a0b474b46ef02386e18f168c988b1edcaf549a5
16,859
py
Python
dsf_cnn/model/utils/gconv_utils.py
EJOOSTEROP/dsf-cnn
cdf9478365814eab57668f20cbab713783540496
[ "MIT" ]
1
2021-03-05T08:19:57.000Z
2021-03-05T08:19:57.000Z
dsf_cnn/model/utils/gconv_utils.py
EJOOSTEROP/dsf-cnn
cdf9478365814eab57668f20cbab713783540496
[ "MIT" ]
null
null
null
dsf_cnn/model/utils/gconv_utils.py
EJOOSTEROP/dsf-cnn
cdf9478365814eab57668f20cbab713783540496
[ "MIT" ]
null
null
null
""" Group equivariant convolution utils """ import math import numpy as np import tensorflow as tf from tensorflow.python.framework import dtypes from tensorflow.python.ops import random_ops from tensorpack import * from tensorpack.tfutils.symbolic_functions import * from tensorpack.tfutils.summary import * from ten...
35.122917
127
0.634023
4a0b4751c09b32db0da5010591062cb95c7c3983
7,500
py
Python
mathics/builtin/assignments/assignment.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
null
null
null
mathics/builtin/assignments/assignment.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
null
null
null
mathics/builtin/assignments/assignment.py
adamantinum/mathics-core
c8f5d7a7645a17a6a8833f750fb93a352d1ac9b4
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Forms of Assignment """ from mathics.builtin.base import Builtin, BinaryOperator from mathics.core.symbols import Symbol from mathics.core.systemsymbols import ( SymbolFailed, ) from mathics.core.definitions import PyMathicsLoadException from mathics.builtin.assignments.internals im...
26.315789
155
0.548933
4a0b4765771b044bd6dd2b63d6654c1c699d63aa
8,202
py
Python
src/python2.7/THINCARB_py27_math.py
smk78/thincarb
9d3ce615b10405ccc6fa6063b0d2e0f51f41d100
[ "MIT" ]
null
null
null
src/python2.7/THINCARB_py27_math.py
smk78/thincarb
9d3ce615b10405ccc6fa6063b0d2e0f51f41d100
[ "MIT" ]
null
null
null
src/python2.7/THINCARB_py27_math.py
smk78/thincarb
9d3ce615b10405ccc6fa6063b0d2e0f51f41d100
[ "MIT" ]
null
null
null
# THINCARB_py27_math.py # # (c)2015 S. King, H Jarvie & C Neal (Sci. Tot. Env. 575 (2017) 496-512) # # Calculates CO2 & CO3 saturation indices, CO2 partial pressures, and total dissolved inorganic carbon # concentrations from hydrochemical data # # For the detail behind the calculations, see C. Neal, A. House & ...
37.623853
144
0.541209
4a0b47915d0e31a5f54d37296aa3739d37f13ced
10,890
py
Python
corehq/apps/domain/deletion.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
corehq/apps/domain/deletion.py
rochakchauhan/commcare-hq
aa7ab3c2d0c51fe10f2b51b08101bb4b5a376236
[ "BSD-3-Clause" ]
null
null
null
import itertools import logging from datetime import date from django.apps import apps from django.conf import settings from django.db import connection, transaction from django.db.models import Q from dimagi.utils.chunked import chunked from corehq.apps.accounting.models import Subscription from corehq.apps.account...
40.634328
108
0.726354
4a0b47fbe3046efb9803f9308b125587251c225f
4,260
py
Python
ernie/split_strategies.py
MarcosFP97/ernie
62632e66c425be9ea09ab4a1724a315a297612a1
[ "Apache-2.0" ]
147
2020-02-23T19:07:00.000Z
2020-06-08T08:42:27.000Z
ernie/split_strategies.py
MarcosFP97/ernie
62632e66c425be9ea09ab4a1724a315a297612a1
[ "Apache-2.0" ]
9
2020-03-02T03:26:48.000Z
2020-06-08T18:50:46.000Z
ernie/split_strategies.py
MarcosFP97/ernie
62632e66c425be9ea09ab4a1724a315a297612a1
[ "Apache-2.0" ]
14
2020-03-02T02:48:04.000Z
2020-06-05T07:49:58.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import re class RegexExpressions: split_by_dot = re.compile(r'[^.]+(?:\.\s*)?') split_by_semicolon = re.compile(r'[^;]+(?:\;\s*)?') split_by_colon = re.compile(r'[^:]+(?:\:\s*)?') split_by_comma = re.compile(r'[^,]+(?:\,\s*)?') url = re.compile( ...
33.809524
79
0.592254
4a0b4821000f24089671de66eb1be0471c555d2d
15,201
py
Python
SensiScan/sensors.py
MadScientistHK/ScanWifiBLE-python
92db6f61b089495732d0f99ace489c05c6c29e06
[ "MIT" ]
null
null
null
SensiScan/sensors.py
MadScientistHK/ScanWifiBLE-python
92db6f61b089495732d0f99ace489c05c6c29e06
[ "MIT" ]
null
null
null
SensiScan/sensors.py
MadScientistHK/ScanWifiBLE-python
92db6f61b089495732d0f99ace489c05c6c29e06
[ "MIT" ]
2
2018-05-15T12:29:49.000Z
2018-07-24T14:06:54.000Z
import sys import wifi import base64 import csv import json import threading from datetime import datetime import subprocess import socket import urllib import os import configparser import subprocess as sp os.system('sudo systemctl start bluetooth') import pygatt from binascii import hexlify import time import binasci...
41.532787
181
0.596079
4a0b48727259600e5e90e851ffbc7d70b5a86485
1,712
py
Python
src/current_year_data_loader.py
ma-kain/vscode-remote-python
2337508b496ad78978aeba4f83120120dee46de9
[ "MIT" ]
null
null
null
src/current_year_data_loader.py
ma-kain/vscode-remote-python
2337508b496ad78978aeba4f83120120dee46de9
[ "MIT" ]
null
null
null
src/current_year_data_loader.py
ma-kain/vscode-remote-python
2337508b496ad78978aeba4f83120120dee46de9
[ "MIT" ]
null
null
null
import sqlite3 as sl import pandas as pd import nse_india import datetime import one_time_data_loader def import_into_db(data, sql, con, index): rows = [] for row in data[1:]: row = list(row) row[0] = datetime.datetime.strptime(row[0], '%d-%b-%Y').strftime('%Y-%m-%d') rows.append(row + ...
33.568627
114
0.675234
4a0b4a05187385879426d4744d7387442891c1a9
2,799
py
Python
scsr_api/social/models/transaction.py
hiperlogic/scsr-api
d1c40d7b86b94c50c88833149c29f413e6d39843
[ "MIT" ]
1
2021-02-09T21:33:56.000Z
2021-02-09T21:33:56.000Z
scsr_api/social/models/transaction.py
hiperlogic/scsr-api
d1c40d7b86b94c50c88833149c29f413e6d39843
[ "MIT" ]
null
null
null
scsr_api/social/models/transaction.py
hiperlogic/scsr-api
d1c40d7b86b94c50c88833149c29f413e6d39843
[ "MIT" ]
null
null
null
import json from mongoengine import signals from email.utils import parseaddr from application import db class FriendTransaction(db.Document): """ Class that represents a friend request/cancelation/block transaction Attributes: type: The type of transaction - [REQUEST, CANCEL, BLOCK, UNBLOCK] ...
36.350649
119
0.67274
4a0b4a070b712dd659d0c776f0c17472e43cd29c
927
py
Python
agents/abstract.py
NunoEdgarGFlowHub/reco-gym
42701b7ae115b879edf6881f368878c458a2a368
[ "Apache-2.0" ]
null
null
null
agents/abstract.py
NunoEdgarGFlowHub/reco-gym
42701b7ae115b879edf6881f368878c458a2a368
[ "Apache-2.0" ]
null
null
null
agents/abstract.py
NunoEdgarGFlowHub/reco-gym
42701b7ae115b879edf6881f368878c458a2a368
[ "Apache-2.0" ]
null
null
null
from numpy.random import choice class Agent: """This is an abstract Agent class. It shows you the methods you need to implement to create your own reccomendation agent""" def __init__(self, env): self.env = env def act(self, observation): """An act method takes in an observation,...
33.107143
79
0.648328
4a0b4be34c40601d11035cc95c24a8f6c615a23e
1,346
py
Python
setup.py
s-sajid-ali/xwp_cython
b95610b9bfb2af7a1fc69a3cee2e20e7970c7c46
[ "MIT" ]
null
null
null
setup.py
s-sajid-ali/xwp_cython
b95610b9bfb2af7a1fc69a3cee2e20e7970c7c46
[ "MIT" ]
null
null
null
setup.py
s-sajid-ali/xwp_cython
b95610b9bfb2af7a1fc69a3cee2e20e7970c7c46
[ "MIT" ]
null
null
null
from setuptools import setup from setuptools.extension import Extension from Cython.Distutils.build_ext import new_build_ext import numpy as np ext_modules = [ Extension('xwp_cython.prop1d', sources=['xwp_cython/prop1d.pyx'], extra_compile_args=['-O3', '-fopenmp', '-march=native'], ...
32.829268
70
0.590639
4a0b4cf7f9836feb79e1f381c3ef1cd7492233a2
2,495
py
Python
web/service/github/api/v3/authentication/OAuthTokenFromDatabaseAndCreateApiAuthentication.py
ytyaru/GitHub.UserRegister.Authentication.Abstract.201704201525
b7d41894be6a9ebcafdc065505aebf0222524f1f
[ "CC0-1.0" ]
1
2017-06-08T10:40:56.000Z
2017-06-08T10:40:56.000Z
web/service/github/api/v3/authentication/OAuthTokenFromDatabaseAndCreateApiAuthentication.py
ytyaru/Python.OTP.tools.201704200841
120239f96e40467203939492fd7ad9c5967fac0f
[ "CC0-1.0" ]
null
null
null
web/service/github/api/v3/authentication/OAuthTokenFromDatabaseAndCreateApiAuthentication.py
ytyaru/Python.OTP.tools.201704200841
120239f96e40467203939492fd7ad9c5967fac0f
[ "CC0-1.0" ]
null
null
null
#!python3 #encoding:utf-8 import traceback from web.service.github.api.v3.authentication.OAuthTokenFromDatabaseAuthentication import OAuthTokenFromDatabaseAuthentication import pyotp import dataset class OAuthTokenFromDatabaseAndCreateApiAuthentication(OAuthTokenFromDatabaseAuthentication): def __init__(self, db, u...
34.178082
126
0.627255
4a0b4d64e178d4888ee4d28841ef98128525d761
14,829
py
Python
tests/test_diff.py
dxenonb/hangar-py
a47aaf0ab69333e5d2629b231e0f9b4ca835c801
[ "Apache-2.0" ]
null
null
null
tests/test_diff.py
dxenonb/hangar-py
a47aaf0ab69333e5d2629b231e0f9b4ca835c801
[ "Apache-2.0" ]
null
null
null
tests/test_diff.py
dxenonb/hangar-py
a47aaf0ab69333e5d2629b231e0f9b4ca835c801
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np def create_meta_nt(name): from hangar.records.parsing import MetadataRecordKey res = MetadataRecordKey(name) return res class TestReaderDiff(object): def test_diff_by_commit_and_branch(self, repo_2_br_no_conf): repo = repo_2_br_no_conf testco = repo.c...
38.718016
114
0.606312
4a0b4dbe7bd81cb0ee2332ba66acb8eaf9e1a4bf
2,356
py
Python
datahub/company/test/models/test_adviser.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
6
2019-12-02T16:11:24.000Z
2022-03-18T10:02:02.000Z
datahub/company/test/models/test_adviser.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
1,696
2019-10-31T14:08:37.000Z
2022-03-29T12:35:57.000Z
datahub/company/test/models/test_adviser.py
Staberinde/data-hub-api
3d0467dbceaf62a47158eea412a3dba827073300
[ "MIT" ]
9
2019-11-22T12:42:03.000Z
2021-09-03T14:25:05.000Z
import pytest from django.core.exceptions import ValidationError from django.db.utils import IntegrityError from datahub.company.models import Advisor from datahub.company.test.factories import AdviserFactory pytestmark = pytest.mark.django_db @pytest.mark.parametrize( 'email, domain', ( ('adviser@d...
34.647059
96
0.701188
4a0b4e3e52d11f811baabd144c14ee0c675103ea
2,391
py
Python
magenta/models/latent_transfer/configs/joint_exp_2mnist_parameterized.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
null
null
null
magenta/models/latent_transfer/configs/joint_exp_2mnist_parameterized.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
null
null
null
magenta/models/latent_transfer/configs/joint_exp_2mnist_parameterized.py
workproduct/magenta
ba43c3e1a2b3b6a5731fa10a5a6bddd0c821eb84
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 The Magenta 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 ...
28.807229
74
0.737767
4a0b4e5acefa9b9def6ca5a01c75a450e7449dbd
3,475
py
Python
widgets/list_box/list_box.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
widgets/list_box/list_box.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
widgets/list_box/list_box.py
ardovm/wxGlade
a4cf8e65bcc6df5f65cf8ca5c49b9a628bf1e8eb
[ "MIT" ]
null
null
null
"""\ wxListBox objects @copyright: 2002-2007 Alberto Griggio @copyright: 2014-2016 Carsten Grohmann @license: MIT (see LICENSE.txt) - THIS PROGRAM COMES WITH NO WARRANTY """ import wx import common from edit_windows import ManagedBase, EditStylesMixin import new_properties as np from ChoicesProperty import * class ...
37.771739
102
0.684029
4a0b503e4193269154a98f895378cc4e36d7df59
30,946
py
Python
bpy_lambda/2.78/scripts/addons/object_skinify.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
null
null
null
bpy_lambda/2.78/scripts/addons/object_skinify.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
null
null
null
bpy_lambda/2.78/scripts/addons/object_skinify.py
resultant-gamedev/bpy_lambda
c8cf46c10c69e74a0892b621d76c62edaa5b04bc
[ "MIT" ]
1
2019-11-24T18:43:42.000Z
2019-11-24T18:43:42.000Z
# ##### BEGIN GPL LICENSE BLOCK ##### # # 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 2 # of the License, or (at your option) any later version. # # This program is distrib...
37.239471
109
0.591676
4a0b5075db862add1b9fc7397469b3e4acac45aa
1,251
py
Python
src/sms.py
trevtravtrev/PetDiabetesAssistant
2c4bff97ac1854eee2a27086d4ebf063172b86f1
[ "MIT" ]
null
null
null
src/sms.py
trevtravtrev/PetDiabetesAssistant
2c4bff97ac1854eee2a27086d4ebf063172b86f1
[ "MIT" ]
null
null
null
src/sms.py
trevtravtrev/PetDiabetesAssistant
2c4bff97ac1854eee2a27086d4ebf063172b86f1
[ "MIT" ]
null
null
null
import smtplib import ssl class Sms: def __init__(self, number, phone_carrier, username, password, email_domain, email_port): self.CARRIERS = { 'att': '@mms.att.net', 'tmobile': '@tmomail.net', 'verizon': '@vtext.com', 'sprint': '@messaging.sprintpcs.com', ...
32.921053
92
0.60032
4a0b518f1ee03f484e329c5315a813ca74c5d414
244
py
Python
data_analysis/test_moving_average.py
parevalo/2018-agu-workshop
2e7f93ce1e20d7de56a4cb7bd89c57211908c4d6
[ "MIT" ]
1
2021-06-14T18:09:55.000Z
2021-06-14T18:09:55.000Z
data_analysis/test_moving_average.py
parevalo/2018-agu-workshop
2e7f93ce1e20d7de56a4cb7bd89c57211908c4d6
[ "MIT" ]
null
null
null
data_analysis/test_moving_average.py
parevalo/2018-agu-workshop
2e7f93ce1e20d7de56a4cb7bd89c57211908c4d6
[ "MIT" ]
null
null
null
import numpy as np from .data_analysis import moving_average def test_moving_avg(): avg = moving_average(np.ones(10), 2) assert np.all(np.isnan(avg[0:2])) assert np.all(np.isnan(avg[-2:])) assert np.allclose(avg[2:-2] == 1, 1)
27.111111
41
0.672131
4a0b5199d5d60156f3ea355fd6c558f9df538d4b
766
py
Python
rta/align/strategies.py
MatteoLacki/rta
93944d6fc934126e0bb4d076c8b4213cadbe49a1
[ "BSD-2-Clause" ]
1
2018-05-31T14:31:18.000Z
2018-05-31T14:31:18.000Z
rta/align/strategies.py
MatteoLacki/rta
93944d6fc934126e0bb4d076c8b4213cadbe49a1
[ "BSD-2-Clause" ]
null
null
null
rta/align/strategies.py
MatteoLacki/rta
93944d6fc934126e0bb4d076c8b4213cadbe49a1
[ "BSD-2-Clause" ]
null
null
null
from rta.reference import stat_reference def Tenzerize(X, n, a): """Perform a hunt for correct alignment. Args: X (pd.DataFrame): DataFrame with columns x, y (reference), and run. n (int): number of repeated fittings. a (Aligner): an initialized aligner. """ for i in range(n): a.fit(X) ...
20.702703
72
0.590078
4a0b5287356bff72bde40a441a5a9158d438eb91
829
py
Python
core/database/FreeBSDx64/execc.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
6
2018-10-29T19:46:49.000Z
2022-03-10T15:39:47.000Z
core/database/FreeBSDx64/execc.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
null
null
null
core/database/FreeBSDx64/execc.py
xorond/l0l
bb0c2bb23fc49997b695cf27d2b2b25169395521
[ "WTFPL" ]
4
2018-10-16T13:28:27.000Z
2022-02-05T18:43:57.000Z
def execc( command): shellcode = r"\x48\x31\xd2\xe8\x06\x00\x00\x00\x68\x65\x6c" shellcode += r"\x6c\x6f\x00\x5f\x52\x57\x48\x89\xe6\x48\x31\xc0\x48\x83\xc8\x3b\x0f\x05" shellcode += command return shellcode #Shellcode disassembly with 32bit so must be edit little bit.Instructions are wrong. """ 00000000 48 ...
36.043478
89
0.610374
4a0b52dbac49abf01d4dd0404a6e67d0e6e24238
13,223
py
Python
train_samm2.py
IcedDoggie/Micro-Expression-with-Deep-Learning
2ae489bf1040b29a2b535fb4178d6e7bbe7bba49
[ "BSD-3-Clause-Attribution" ]
249
2018-04-19T08:30:19.000Z
2022-03-30T06:31:09.000Z
train_samm2.py
IcedDoggie/Micro-Expression-with-Deep-Learning
2ae489bf1040b29a2b535fb4178d6e7bbe7bba49
[ "BSD-3-Clause-Attribution" ]
40
2018-05-17T03:02:06.000Z
2021-04-16T02:28:24.000Z
train_samm2.py
IcedDoggie/Micro-Expression-with-Deep-Learning
2ae489bf1040b29a2b535fb4178d6e7bbe7bba49
[ "BSD-3-Clause-Attribution" ]
111
2018-04-09T01:53:29.000Z
2022-03-19T08:59:28.000Z
import numpy as np import sys import math import operator import csv import glob,os import xlrd import cv2 import pandas as pd import matplotlib.pyplot as plt from sklearn.svm import SVC from collections import Counter from sklearn.metrics import confusion_matrix import scipy.io as sio import pydot, graphviz from PIL ...
37.888252
144
0.701732
4a0b54454af49f91ae69d9980aef3b2b5764e55d
3,197
py
Python
examples/janheapen.py
tenkeyaikoukaint/cggpyg
af381da19486e7f6f990e6a70660815266a5d75c
[ "MIT" ]
1
2021-08-01T09:30:01.000Z
2021-08-01T09:30:01.000Z
examples/janheapen.py
tenkeyaikoukaint/cggpyg
af381da19486e7f6f990e6a70660815266a5d75c
[ "MIT" ]
null
null
null
examples/janheapen.py
tenkeyaikoukaint/cggpyg
af381da19486e7f6f990e6a70660815266a5d75c
[ "MIT" ]
null
null
null
import random import time import pygame from syslcd1l import CGGPYG from cggframe import cggframe class gamevals: def __init__(self): self.sc=0 self.chr="r" self.emtx=["","","","","","","","","","","","","","","","","","","","",""] self.ex=20 self.mx=0 self.ct=0 ...
25.373016
87
0.464811
4a0b545cd9d4e23e8e72530a0ff883ad31ef24c5
412
py
Python
tests/ecosystem/destroy/test_destroy_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/ecosystem/destroy/test_destroy_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
tests/ecosystem/destroy/test_destroy_cluster.py
zmc/ocs-ci
fcf51f3637f657689ba5a8ac869f2b14ac04b0cf
[ "MIT" ]
null
null
null
import logging from ocs_ci.framework import config from ocs_ci.framework.testlib import EcosystemTest, destroy from ocs_ci.utility.utils import destroy_cluster log = logging.getLogger(__name__) @destroy class TestDestroy(EcosystemTest): def test_destroy_cluster(self, log_cli_level): log.info("Running OC...
27.466667
71
0.793689
4a0b5565f98fd02b6fbc63d466c9378a1840b127
903
py
Python
hyperverlet/loss.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
7
2021-08-02T09:10:35.000Z
2022-03-16T13:24:22.000Z
hyperverlet/loss.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
2
2021-06-15T11:50:59.000Z
2021-06-16T12:23:51.000Z
hyperverlet/loss.py
Zinoex/hyperverlet
431ef92fa2448ce69c357f01c0862353067bfa8a
[ "MIT" ]
null
null
null
import torch from torch import nn, Tensor class TimeDecayMSELoss(nn.Module): def __init__(self, decay_factor=0.99): super().__init__() self.decay_factor = decay_factor def forward(self, input: Tensor, target: Tensor) -> Tensor: size = [input.size(0), -1] input = input.view(*si...
28.21875
81
0.619048
4a0b558998e8f89146f5e4be5175a6b6d9218a67
1,066
py
Python
imagepy/menus/Image/Adjust/colorstairs_plg.py
dada1437903138/imagepy
65d9ce088894eef587054e04018f9d34ff65084f
[ "BSD-4-Clause" ]
1,178
2017-05-25T06:59:01.000Z
2022-03-31T11:38:53.000Z
imagepy/menus/Image/Adjust/colorstairs_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
76
2017-06-10T17:01:50.000Z
2021-12-23T08:13:29.000Z
imagepy/menus/Image/Adjust/colorstairs_plg.py
TomisTony/imagepy
3c378ebaf72762b94f0826a410897757ebafe689
[ "BSD-4-Clause" ]
315
2017-05-25T12:59:53.000Z
2022-03-07T22:52:21.000Z
# -*- coding: utf-8 -*- """ Created on Sun Nov 27 00:56:00 2016 @author: yxl """ import numpy as np from sciapp.action import Filter #from imagepy.ui.widgets import HistCanvas class Plugin(Filter): title = 'Color Stairs' note = ['rgb', 'auto_msk', 'auto_snap', 'not_channel', 'preview'] para = {'th...
34.387097
69
0.508443
4a0b559e99fb88613cc4709bc77b1b57357718fe
12,726
py
Python
improver_tests/blending/blend_across_adjacent_points/test_TriangularWeightedBlendAcrossAdjacentPoints.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
null
null
null
improver_tests/blending/blend_across_adjacent_points/test_TriangularWeightedBlendAcrossAdjacentPoints.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
2
2020-03-30T17:25:18.000Z
2021-06-25T15:30:29.000Z
improver_tests/blending/blend_across_adjacent_points/test_TriangularWeightedBlendAcrossAdjacentPoints.py
LaurenceBeard/improver
b7cfe44f3a802d2a3d65f76a325215033c9de074
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # ----------------------------------------------------------------------------- # (C) British Crown Copyright 2017-2019 Met Office. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions a...
42.993243
79
0.666274
4a0b55e6d26562e0008015bbb243feda2a21147d
632
py
Python
tools/help-center-exporter/print-article.py
mpillar/zendesk-tools
0ebaaac2d1481f4459fef60be352b223e75099e3
[ "MIT" ]
2
2015-03-04T16:42:52.000Z
2016-03-24T04:00:03.000Z
tools/help-center-exporter/print-article.py
mpillar/zendesk-tools
0ebaaac2d1481f4459fef60be352b223e75099e3
[ "MIT" ]
null
null
null
tools/help-center-exporter/print-article.py
mpillar/zendesk-tools
0ebaaac2d1481f4459fef60be352b223e75099e3
[ "MIT" ]
null
null
null
""" Python script to print a single zendesk article. """ import sys from zendesk.api import DomainConfiguration from zendesk.api import HelpCenter from zendesk.formatter import format_tags_remote def main(sub_domain, aid): config = DomainConfiguration(sub_domain) hc = HelpCenter(config) article = HelpCen...
26.333333
81
0.697785
4a0b565a3582b685f936fa6268803daae6d62b2f
12,096
py
Python
openaset/dinkestebingtinggi/admin.py
muntaza/Open-Aset
f5eb6770a9f7184e3860a18cd655b35b248a9dd5
[ "BSD-2-Clause" ]
null
null
null
openaset/dinkestebingtinggi/admin.py
muntaza/Open-Aset
f5eb6770a9f7184e3860a18cd655b35b248a9dd5
[ "BSD-2-Clause" ]
null
null
null
openaset/dinkestebingtinggi/admin.py
muntaza/Open-Aset
f5eb6770a9f7184e3860a18cd655b35b248a9dd5
[ "BSD-2-Clause" ]
2
2019-02-18T05:25:23.000Z
2021-02-01T16:45:23.000Z
### $Id: admin.py,v 1.13 2017/12/04 08:16:37 muntaza Exp $ from django.contrib import admin from umum.models import Provinsi, Kabupaten, LokasiBidang, SKPD, SUBSKPD, KodeBarang, HakTanah, SatuanBarang, KeadaanBarang, SKPenghapusan, MutasiBerkurang, JenisPemanfaatan, AsalUsul, Tahun, GolonganBarang, Tanah, KontrakTanah...
41.56701
311
0.809441
4a0b567ae96fa06f32cb0b2d82ece41be4c65eee
3,491
py
Python
perest.py
georgelegrand/first_gog
50510f392e19662ee56b863698dec1963460f1f9
[ "MIT" ]
null
null
null
perest.py
georgelegrand/first_gog
50510f392e19662ee56b863698dec1963460f1f9
[ "MIT" ]
null
null
null
perest.py
georgelegrand/first_gog
50510f392e19662ee56b863698dec1963460f1f9
[ "MIT" ]
null
null
null
''' ОТКРЫТЫЙ ТЕКСТ: двойная перестановка МАРШРУТ ВПИСЫВАНИЯ: слева - направо МАРШРУТ ВЫПИСЫВАНИЯ: сверху - вниз СТОЛБЦЫ: ( 3, 1, 4, 2) СТРОКИ: ( 3, 2, 4, 1, 5) ''' def checker(col_set, col_dim): for i in range(1, len(col_set)): if col_set[i] == col_set[i-1]: print("Неправильная последовательность! Вве...
29.091667
120
0.670581
4a0b56836a3e7eb5dce0dee5da999a2bc47c0f32
3,305
py
Python
rllib/agents/mbmpo/model_vector_env.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
rllib/agents/mbmpo/model_vector_env.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
rllib/agents/mbmpo/model_vector_env.py
carlos-aguayo/ray
fedbdd5dc6a47aa9cba170816f8c0950193b4fd6
[ "Apache-2.0" ]
null
null
null
import logging import numpy as np from ray.rllib.utils.annotations import override from ray.rllib.env.vector_env import VectorEnv from ray.rllib.evaluation.rollout_worker import get_global_worker from ray.rllib.env.base_env import BaseEnv logger = logging.getLogger(__name__) def custom_model_vector_env(env): ""...
31.778846
75
0.632678
4a0b576b504a43635db63a3649d789a15ee83059
3,639
py
Python
mimic/model/mailgun_objects.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
141
2015-01-07T19:28:31.000Z
2022-02-11T06:04:13.000Z
mimic/model/mailgun_objects.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
575
2015-01-04T20:23:08.000Z
2019-10-04T08:20:04.000Z
mimic/model/mailgun_objects.py
ksheedlo/mimic
c84b6a0d336e8a37a685b5d71537aec5e44d9a8f
[ "Apache-2.0" ]
63
2015-01-09T20:39:41.000Z
2020-07-06T14:20:56.000Z
""" Mailgun object storage """ from __future__ import absolute_import, division, unicode_literals import attr import time @attr.s class Message(object): """ A :obj:`Message` is a representation of an email in Mailgun. It can produce JSON-serializable objects for various pieces of state that are requ...
28.209302
77
0.508107
4a0b58b8442242a34b0d4c6bf303dbd918cc41a7
786
py
Python
examples/locations/make_enum.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
6
2015-04-22T15:17:51.000Z
2019-03-01T16:26:35.000Z
examples/locations/make_enum.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
174
2015-02-18T13:32:39.000Z
2019-06-26T18:56:18.000Z
examples/locations/make_enum.py
mconlon17/vivo-org-ingest
7ea3130c78322c18cc263263ee369588c3e1fc0a
[ "BSD-2-Clause" ]
11
2015-04-22T15:17:59.000Z
2019-06-24T10:49:40.000Z
#!/usr/bin/env/python """ make_enum.py -- make enumerations for locations """ __author__ = "Michael Conlon" __copyright__ = "Copyright 2016 (c) Michael Conlon" __license__ = "BSD 3-Clause license" __version__ = "0.1.2" from datetime import datetime from pump.vivopump import get_parms, create_enum def main(): ...
18.27907
51
0.62341
4a0b58cfc65f32366188f761ff5f2dc3394301eb
8,664
py
Python
tests/testTrack.py
zivkaplan/gensound
4d4120f429ab2e9334a1a52b6d6c2f1a050bc260
[ "Apache-2.0" ]
null
null
null
tests/testTrack.py
zivkaplan/gensound
4d4120f429ab2e9334a1a52b6d6c2f1a050bc260
[ "Apache-2.0" ]
null
null
null
tests/testTrack.py
zivkaplan/gensound
4d4120f429ab2e9334a1a52b6d6c2f1a050bc260
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sat Aug 17 23:28:31 2019 @author: Dror This is for internal purposes; many errors due to changing code! """ import numpy as np from gensound.signals import Signal, Sine, Square, Triangle, Sawtooth, WhiteNoise, WAV, Step from gensound.transforms import Fade, SineAM, Shift, P...
34.380952
142
0.634349
4a0b58d96e2203704c53921c10ca1be8f3352c10
1,429
py
Python
alveo/examples/caffe/pix2pix/bw2color/convert_rgb_bw.py
dendisuhubdy/Vitis-AI
524f65224c52314155dafc011d488ed30e458fcb
[ "Apache-2.0" ]
1
2021-04-01T06:38:48.000Z
2021-04-01T06:38:48.000Z
alveo/examples/caffe/pix2pix/bw2color/convert_rgb_bw.py
dendisuhubdy/Vitis-AI
524f65224c52314155dafc011d488ed30e458fcb
[ "Apache-2.0" ]
null
null
null
alveo/examples/caffe/pix2pix/bw2color/convert_rgb_bw.py
dendisuhubdy/Vitis-AI
524f65224c52314155dafc011d488ed30e458fcb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Xilinx 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...
28.019608
74
0.688593
4a0b5a57a8876b2faca3ed7b09a6d22783750601
12,918
py
Python
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/session_528e31d9c93d0ad2afb513a10d9d8be3.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
20
2019-05-07T01:59:14.000Z
2022-02-11T05:24:47.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/session_528e31d9c93d0ad2afb513a10d9d8be3.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
60
2019-04-03T18:59:35.000Z
2022-02-22T12:05:05.000Z
ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocols/session_528e31d9c93d0ad2afb513a10d9d8be3.py
OpenIxia/ixnetwork_restpy
f628db450573a104f327cf3c737ca25586e067ae
[ "MIT" ]
13
2019-05-20T10:48:31.000Z
2021-10-06T07:45:44.000Z
# MIT LICENSE # # Copyright 1997 - 2020 by IXIA Keysight # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), # to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
45.167832
198
0.662796
4a0b5a922d8c1e410523a2612d5379622a4d5dbd
2,918
py
Python
VoronoiWall/structures.py
donsheehy/VoronoiWall
4d85dfa3c1b3ae302f841fb16204c15eaa8398e4
[ "MIT" ]
null
null
null
VoronoiWall/structures.py
donsheehy/VoronoiWall
4d85dfa3c1b3ae302f841fb16204c15eaa8398e4
[ "MIT" ]
null
null
null
VoronoiWall/structures.py
donsheehy/VoronoiWall
4d85dfa3c1b3ae302f841fb16204c15eaa8398e4
[ "MIT" ]
null
null
null
from scipy.spatial import Voronoi from sys import stderr class Point: def __init__(self, point, region_obj): self.point = point self.region = region_obj region_obj.point = self class Region: def __init__(self, voronoi, vertices_i): self.vertices_i = vertices_i self.ve...
32.786517
117
0.61035
4a0b5ac416edb3b91a9fbf20633c85ca2f8dc3bb
2,211
py
Python
python/xml2text.py
lappsgrid-incubator/galaxy-paper-rank
db5f87a159d78e643c89b94462a91401fca306ca
[ "Apache-2.0" ]
null
null
null
python/xml2text.py
lappsgrid-incubator/galaxy-paper-rank
db5f87a159d78e643c89b94462a91401fca306ca
[ "Apache-2.0" ]
12
2020-09-21T17:08:59.000Z
2020-10-24T19:48:37.000Z
python/xml2text.py
lappsgrid-incubator/galaxy-paper-rank
db5f87a159d78e643c89b94462a91401fca306ca
[ "Apache-2.0" ]
null
null
null
import os import sys from bs4 import BeautifulSoup failed = 0 passed = 0 skipped = list() def extract(xml_path, outdir): global failed, passed try: with open(xml_path, "r") as xml_file: doc = BeautifulSoup(xml_file, 'xml') except: print(sys.exc_info()[0]) failed += 1 ...
29.48
97
0.601538
4a0b5ac7be865a15abf34a68847b2a9156823608
5,756
py
Python
Scripts/sims4communitylib/enums/common_age.py
ColonolNutty/Sims4CommunityLibrary
684f28dc3c7deb4d9fd520e21e63942b65a91d31
[ "CC-BY-4.0" ]
118
2019-08-31T04:33:18.000Z
2022-03-28T21:12:14.000Z
Scripts/sims4communitylib/enums/common_age.py
ColonolNutty/Sims4CommunityLibrary
684f28dc3c7deb4d9fd520e21e63942b65a91d31
[ "CC-BY-4.0" ]
15
2019-12-05T01:29:46.000Z
2022-02-18T17:13:46.000Z
Scripts/sims4communitylib/enums/common_age.py
ColonolNutty/Sims4CommunityLibrary
684f28dc3c7deb4d9fd520e21e63942b65a91d31
[ "CC-BY-4.0" ]
28
2019-09-07T04:11:05.000Z
2022-02-07T18:31:40.000Z
""" The Sims 4 Community Library is licensed under the Creative Commons Attribution 4.0 International public license (CC BY 4.0). https://creativecommons.org/licenses/by/4.0/ https://creativecommons.org/licenses/by/4.0/legalcode Copyright (c) COLONOLNUTTY """ from typing import Dict, Union, Tuple from sims.sim_info i...
36.66242
155
0.648714
4a0b5b041382c7332bec4125b3965d39cf329ddf
2,851
py
Python
python/geospark/core/formatMapper/geo_json_reader.py
Maxar-Corp/GeoSpark
6248c6773dc88bf3354ea9b223f16ceb064e7627
[ "Apache-2.0", "MIT" ]
1
2021-10-19T07:57:29.000Z
2021-10-19T07:57:29.000Z
python/geospark/core/formatMapper/geo_json_reader.py
mayankkt9/GeoSpark
618da90413f7d86c59def92ba765fbd6d9d49761
[ "Apache-2.0", "MIT" ]
3
2020-03-24T18:20:35.000Z
2021-02-02T22:36:37.000Z
python/geospark/core/formatMapper/geo_json_reader.py
mayankkt9/GeoSpark
618da90413f7d86c59def92ba765fbd6d9d49761
[ "Apache-2.0", "MIT" ]
1
2021-09-26T15:51:22.000Z
2021-09-26T15:51:22.000Z
from pyspark import SparkContext, RDD from geospark.core.SpatialRDD.spatial_rdd import SpatialRDD from geospark.core.formatMapper.geo_reader import GeoDataReader from geospark.core.jvm.config import since from geospark.utils.decorators import require from geospark.utils.meta import MultipleMeta class GeoJsonReader(G...
30.010526
134
0.65591
4a0b5d11610add74b98f98b5492fcbe085beee93
57,827
py
Python
discord/abc.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/abc.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
discord/abc.py
brotherelric/deezcord.py
f7419bf2c67c2006702cccc4850cd9332bce00c6
[ "MIT" ]
null
null
null
""" The MIT License (MIT) Copyright (c) 2015-present Rapptz Copyright (c) 2021-present 404kuso Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation th...
34.298339
154
0.594791
4a0b5fa72af71599b106b26877b44f7317e9ae20
3,163
py
Python
tests/data_context/test_data_context_store_configs.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
1
2021-01-20T18:29:52.000Z
2021-01-20T18:29:52.000Z
tests/data_context/test_data_context_store_configs.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
47
2020-07-15T06:32:50.000Z
2022-03-29T12:03:23.000Z
tests/data_context/test_data_context_store_configs.py
joshuataylor/great_expectations
19dcead43aef9a833b3aa894a1226714a80ab840
[ "Apache-2.0" ]
null
null
null
import os import pytest from ruamel.yaml import YAML import great_expectations as ge yaml = YAML() yaml.default_flow_style = False @pytest.fixture(scope="function") def totally_empty_data_context(tmp_path_factory): # NOTE: This sets up a DataContext with a real path and a config saved to that path. # Now t...
32.608247
119
0.67025
4a0b5fe4a7a5f2332568257d12055aa709e38a5b
1,138
py
Python
client.py
Scauting-Burgum/ScautNet-python
665d9f6a9d981aeec8cb17290653121e76a3bf96
[ "MIT" ]
1
2018-06-11T16:51:48.000Z
2018-06-11T16:51:48.000Z
client.py
Scauting-Burgum/ScautNet-python
665d9f6a9d981aeec8cb17290653121e76a3bf96
[ "MIT" ]
null
null
null
client.py
Scauting-Burgum/ScautNet-python
665d9f6a9d981aeec8cb17290653121e76a3bf96
[ "MIT" ]
null
null
null
from . import connection as connection_module from . import pipeline as pipeline_module from threading import Thread from socket import socket class Client(Thread): def __init__(self, hostname, port): super().__init__() self.hostname = hostname self.port = port self._alive = True ...
25.863636
62
0.623902
4a0b602f115a2e4234cff8f72c6fd59498c0c1e0
1,038
py
Python
test/test_add_contact.py
vyacheslavmarkov/python_training
ccf3e565e2eda3f04b29931b6fad3c70069959cc
[ "Apache-2.0" ]
null
null
null
test/test_add_contact.py
vyacheslavmarkov/python_training
ccf3e565e2eda3f04b29931b6fad3c70069959cc
[ "Apache-2.0" ]
null
null
null
test/test_add_contact.py
vyacheslavmarkov/python_training
ccf3e565e2eda3f04b29931b6fad3c70069959cc
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- from model.contact import Contact def test_add_contact(app, db, json_contacts, check_ui): contact = json_contacts # concatenate emails and phones for the future comparison with db data contact.all_emails_from_homepage = contact.email + contact.email_2 + contact.email_3 contact....
51.9
124
0.760116
4a0b60878aa6ccf9746e26f6052357e9987ab4bb
2,490
py
Python
pytorch/cifer10_half.py
0h-n0/py-dnn-tuto
ad21714652e6e3591b914f0a8e23a7be8cd5d2e4
[ "MIT" ]
null
null
null
pytorch/cifer10_half.py
0h-n0/py-dnn-tuto
ad21714652e6e3591b914f0a8e23a7be8cd5d2e4
[ "MIT" ]
null
null
null
pytorch/cifer10_half.py
0h-n0/py-dnn-tuto
ad21714652e6e3591b914f0a8e23a7be8cd5d2e4
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import numpy import torch import torch.nn as nn import torch.optim as optim import torch.nn.functional as F from torchvision import datasets, transforms def get_data(): DATAPATH = '../datasets/cifar-10-batches-py' file_list = ['data_batch_1', 'data_batch_2', ...
30
75
0.554618
4a0b60f9237bb21310fcbe4e50c41f5ec824ceb0
718
py
Python
com/algorithm/kNN.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
com/algorithm/kNN.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
com/algorithm/kNN.py
liuyangyang2015/PythonDemo
a72c009a31ff833dd12405bb97e688ae91ceda6c
[ "MIT" ]
null
null
null
import numpy as np import operator from imp import reload # k近邻算法实现 # data=[[1,1.1],[1,1],[0,0],[0,0.1]] # dataSet=np.array(data) # labels=['A','A','B','B'] def classify0(inX,dataSet,labels,k): dataSetSize = dataSet.shape[0] diffMat = np.tile(inX,(dataSetSize,1)) - dataSet sqDiffMat = diffMat**2 sqDis...
28.72
88
0.682451
4a0b61921eb124568e6fb9f1d552292e245c7044
244
py
Python
src/test/tls.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
5,156
2015-01-01T06:10:28.000Z
2020-11-13T15:12:34.000Z
src/test/tls.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
1,214
2015-01-02T02:32:13.000Z
2020-11-09T04:36:26.000Z
src/test/tls.py
jalapenopuzzle/rr
6f8b3c73868d9fd3e6ac14a1322b92dbe9958807
[ "BSD-1-Clause" ]
402
2015-01-13T22:54:32.000Z
2020-11-05T15:02:25.000Z
from util import * send_gdb('break breakpoint_fn') expect_gdb('Breakpoint 1') send_gdb('c') expect_gdb('Breakpoint 1') send_gdb('print tlsvar') expect_gdb(' = 97') send_gdb('reverse-stepi') send_gdb('print tlsvar') expect_gdb(' = 97') ok()
15.25
31
0.717213
4a0b6246888a7357a020eb9166da58f542d13042
2,483
py
Python
saleor/order/migrations/0102_auto_20210310_1552.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
15,337
2015-01-12T02:11:52.000Z
2021-10-05T19:19:29.000Z
saleor/order/migrations/0102_auto_20210310_1552.py
fairhopeweb/saleor
9ac6c22652d46ba65a5b894da5f1ba5bec48c019
[ "CC-BY-4.0" ]
7,486
2015-02-11T10:52:13.000Z
2021-10-06T09:37:15.000Z
saleor/order/migrations/0102_auto_20210310_1552.py
aminziadna/saleor
2e78fb5bcf8b83a6278af02551a104cfa555a1fb
[ "CC-BY-4.0" ]
5,864
2015-01-16T14:52:54.000Z
2021-10-05T23:01:15.000Z
# Generated by Django 3.1.7 on 2021-03-10 15:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("order", "0101_auto_20210308_1213"), ] operations = [ migrations.AlterField( model_name="order", name="language_code"...
34.013699
55
0.306081
4a0b627640802f52d9ee6bfc605553802d8f36e0
585
py
Python
backend/prog-hist/backend/src/code/test/playground/chapter02_13.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
backend/prog-hist/backend/src/code/test/playground/chapter02_13.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
backend/prog-hist/backend/src/code/test/playground/chapter02_13.py
halilagin/d3studies
fbcf50a845cd17bcb469a428afce9854b1b63971
[ "CC0-1.0" ]
null
null
null
import code.book_plots as bp import code.gh_internal as gh import matplotlib.pyplot as plt import matplotlib.pyplot as plt import numpy as np; from filterpy.discrete_bayes import normalize def perfect_predict(belief, move): n = len(belief) result = np.zeros(n) for i in range(n): result[i] = belie...
20.172414
56
0.683761
4a0b62e49dfaf1404a8bae771a001d5966a1c5f7
1,558
py
Python
astroscrappy/tests/test_gmos.py
saimn/astroscrappy
631ae4dc8eb0d9f4775bba7680baf817007d30a8
[ "BSD-3-Clause" ]
48
2015-08-10T03:07:48.000Z
2022-03-26T11:11:02.000Z
astroscrappy/tests/test_gmos.py
saimn/astroscrappy
631ae4dc8eb0d9f4775bba7680baf817007d30a8
[ "BSD-3-Clause" ]
72
2015-06-23T21:36:13.000Z
2021-12-13T04:25:01.000Z
astroscrappy/tests/test_gmos.py
saimn/astroscrappy
631ae4dc8eb0d9f4775bba7680baf817007d30a8
[ "BSD-3-Clause" ]
36
2015-06-26T14:26:56.000Z
2022-03-30T17:04:11.000Z
# Licensed under a 3-clause BSD style license - see LICENSE.rst import os import numpy as np import scipy.ndimage as ndi from astropy.io import fits from ..astroscrappy import detect_cosmics TESTFILE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'data', 'gmos.fits') def test_g...
32.458333
82
0.643132
4a0b64aaa8b1d042be5aa44631b07f8644b9c616
6,808
py
Python
Bot/bot.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/bot.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
Bot/bot.py
ChrissisCodeXD/Hikari-TestProject
236c8fc9081172d9edff6d629e5d11c5abe64205
[ "MIT" ]
null
null
null
import hikari import lightbulb import utils from imports import * _BotT = t.TypeVar("_BotT", bound="Bot") from Bot.DataBase.Connection import DBConnection from Bot.DataBase.prefix import DBPrefix from Bot.DataBase.warnsys import DBwarn from Bot.DataBase.mutesys import DBMute from Bot.DataBase.settings import DBSetti...
39.126437
112
0.611633
4a0b6666c074189021a817dc7a5bd64e4972f236
397
py
Python
platzigram/wsgi.py
AlejoRMinetti/my-django-clonegram
c8ace136cbea6d5250925b2b42ad1e8cd7458b23
[ "MIT" ]
68
2018-06-28T04:18:47.000Z
2022-01-27T03:01:22.000Z
platzigram/wsgi.py
AlejoRMinetti/my-django-clonegram
c8ace136cbea6d5250925b2b42ad1e8cd7458b23
[ "MIT" ]
12
2020-02-12T00:37:53.000Z
2022-03-11T23:50:33.000Z
platzigram/wsgi.py
JavierGlezB/platzigram
29cce12de133154f9c537c23285925492c615d3d
[ "MIT" ]
80
2018-08-16T00:31:46.000Z
2022-02-12T17:24:00.000Z
""" WSGI config for platzigram project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefault("DJANGO_SE...
23.352941
78
0.788413
4a0b6755997287020efa70d09cd6c9ec88111bc2
662
py
Python
tests/return/test_at_top_level.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
2
2021-12-18T01:52:50.000Z
2022-01-17T19:41:52.000Z
tests/return/test_at_top_level.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
18
2021-11-30T04:05:53.000Z
2022-02-01T03:30:04.000Z
tests/return/test_at_top_level.py
sco1/pylox
b4820828306c20cee3f8533c2547fafb92c6c1bd
[ "MIT" ]
null
null
null
from textwrap import dedent import pytest from pylox.lox import Lox # Base cases from https://github.com/munificent/craftinginterpreters/blob/master/test/return/at_top_level.lox TEST_SRC = dedent( """\ return "wat"; // Error at 'return': Can't return from top-level code. """ ) EXPECTED_STDOUTS = ["1:1: ...
25.461538
109
0.732628
4a0b678794c4fc9b044ac7f6d54dfa3b9eb6e313
781
py
Python
config.py
Kevson102/Phoenix-Blogs
78e2728cf050752ad45957887eb52067eda718dd
[ "MIT" ]
null
null
null
config.py
Kevson102/Phoenix-Blogs
78e2728cf050752ad45957887eb52067eda718dd
[ "MIT" ]
null
null
null
config.py
Kevson102/Phoenix-Blogs
78e2728cf050752ad45957887eb52067eda718dd
[ "MIT" ]
null
null
null
import os class Config: SECRET_KEY = os.environ.get('SECRET_KEY') UPLOADED_PHOTOS_DEST ='app/static/photos' QUOTE_API_BASE_URL = 'http://quotes.stormconsultancy.co.uk/random.json' class ProdConfig(Config): ''' Production Configuration child class Args: Config: The parent configuration class with ...
25.193548
101
0.751601
4a0b695bf01e9148ad252e511b81300e43f53a9f
1,516
py
Python
pythran/tests/cases/lu.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,647
2015-01-13T01:45:38.000Z
2022-03-28T01:23:41.000Z
pythran/tests/cases/lu.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
1,116
2015-01-01T09:52:05.000Z
2022-03-18T21:06:40.000Z
pythran/tests/cases/lu.py
davidbrochart/pythran
24b6c8650fe99791a4091cbdc2c24686e86aa67c
[ "BSD-3-Clause" ]
180
2015-02-12T02:47:28.000Z
2022-03-14T10:28:18.000Z
#runas import numpy as np; x = np.arange(1., 26.).reshape(5,5); factorMatrix0(x), factorMatrix1(x) import numpy as np #pythran export factorMatrix0(float[:,:]) def factorMatrix0(M): # Gaussian elimination, partial pivoting. # M must be an (n,n+1) numpy array. Not tested! n = M.shape[0] m= M.shape[1] for l...
29.72549
98
0.513852
4a0b69ad5d272c0d184da0f4e5c335f1b8669506
40,375
py
Python
addons/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
khasvictor/glTF-Blender-IO
9f2c4eb42b0415f887ecdcec8a92ff70adb3a561
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
khasvictor/glTF-Blender-IO
9f2c4eb42b0415f887ecdcec8a92ff70adb3a561
[ "Apache-2.0" ]
null
null
null
addons/io_scene_gltf2/blender/exp/gltf2_blender_extract.py
khasvictor/glTF-Blender-IO
9f2c4eb42b0415f887ecdcec8a92ff70adb3a561
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 The glTF-Blender-IO 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 agree...
36.113596
159
0.57605
4a0b6a4384ebc50d25a7747e3b55deac1f97ec42
5,570
py
Python
GURA/avg_xwc.py
tony10101105/HEAR-2021-NeurIPS-Challenge---NTU
9a5349f95e6b980fbc9b44e18f263c725043a350
[ "MIT" ]
5
2021-11-09T17:50:48.000Z
2022-01-04T08:34:46.000Z
GURA/avg_xwc.py
tony10101105/HEAR-2021-NeurIPS-Challenge---NTU-GURA
9a5349f95e6b980fbc9b44e18f263c725043a350
[ "MIT" ]
null
null
null
GURA/avg_xwc.py
tony10101105/HEAR-2021-NeurIPS-Challenge---NTU-GURA
9a5349f95e6b980fbc9b44e18f263c725043a350
[ "MIT" ]
1
2022-01-13T12:30:16.000Z
2022-01-13T12:30:16.000Z
from typing import Tuple import torch import torch.nn.functional as F from torch import Tensor ####### Crepe ####### import torchcrepe SAMPLE_RATE = 16000 TIMESTAMP_HOP_SIZE = 50 SCENE_HOP_SIZE = 250 TIMESTAMP_HOP_SIZE_SAMPLES = (SAMPLE_RATE * TIMESTAMP_HOP_SIZE) // 1000 SCENE_HOP_SIZE_SAMPLES = (SAMPLE_RATE * SCEN...
31.292135
97
0.625494
4a0b6a7e9bd34a3d2a260400219ba67d050799c5
568
py
Python
Section 1/1.3_objects.py
PacktPublishing/-Getting-Started-with-Object-Oriented-Programming-in-Python-3
bf52dcad71f962177f8b73c9510bbcbbcaacf315
[ "MIT" ]
9
2019-01-03T15:22:19.000Z
2021-10-01T22:06:00.000Z
Section 1/1.3_objects.py
anupsingh/-Getting-Started-with-Object-Oriented-Programming-in-Python-3
b30059c1902773d6d6ae781e3ab473b28288435d
[ "MIT" ]
null
null
null
Section 1/1.3_objects.py
anupsingh/-Getting-Started-with-Object-Oriented-Programming-in-Python-3
b30059c1902773d6d6ae781e3ab473b28288435d
[ "MIT" ]
7
2018-06-10T23:16:48.000Z
2021-06-24T06:39:34.000Z
class Car: 'Common base class for all cars' carCount = 0 def __init__(self, name, year): self.name = name self.year = year Car.carCount += 1 def displayCount(self): print ("Total Car %d" % Car.carCount) def displayCar(self): print ("Name : ", self.name, ",...
24.695652
59
0.610915
4a0b6ad262659b23f5d9acf414164980de591344
304
py
Python
atgym/atstrategies/__init__.py
liv20/atgym
848ba65e89928e1cebb994fa5000f8afe026c76b
[ "MIT" ]
null
null
null
atgym/atstrategies/__init__.py
liv20/atgym
848ba65e89928e1cebb994fa5000f8afe026c76b
[ "MIT" ]
null
null
null
atgym/atstrategies/__init__.py
liv20/atgym
848ba65e89928e1cebb994fa5000f8afe026c76b
[ "MIT" ]
null
null
null
from .base_strategy import AbstractStrategy from .engulfing_pattern_strategy import EngulfingStrategy from .ma_strategy import SMAStrategy, WMAStrategy, EMAStrategy from .rsi_strategy import RSIStrategy from .rl_strategy import RLStrategy from .rl_strategy import A2CStrategy, DQNStrategy, PPOStrategy
33.777778
62
0.868421
4a0b6b4580ee102e9806a898cb7f40204c7c0037
584
py
Python
pexels-crawler/crawler.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
pexels-crawler/crawler.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
null
null
null
pexels-crawler/crawler.py
sudhanshu-jha/Scrapers
1203c5ed3ebb4b0664af41e95bde3fc15662af64
[ "MIT" ]
1
2019-05-29T09:54:14.000Z
2019-05-29T09:54:14.000Z
#!/usr/bin/python # -*- coding: UTF-8 -*- import os import configparser from yaml import load import sys import getopt from run import run cur_path = os.path.dirname(os.path.realpath(__file__)) config_path = os.path.join(cur_path, "config.yaml") with open(config_path, "rb") as f: cont = f.read() cf = load(cont) ...
20.857143
56
0.690068