hexsha
stringlengths
40
40
size
int64
3
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
972
max_stars_repo_name
stringlengths
6
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
972
max_issues_repo_name
stringlengths
6
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
972
max_forks_repo_name
stringlengths
6
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
3
1.03M
avg_line_length
float64
1.13
941k
max_line_length
int64
2
941k
alphanum_fraction
float64
0
1
05790cd0c9ded2a82fcb9469a6cdaf4e6a82b4d0
186
py
Python
examples/preypredator/run.py
ScienceGamez/pysimgame
6c89280441358722efbc63b6d8aa914cbe21575e
[ "WTFPL" ]
null
null
null
examples/preypredator/run.py
ScienceGamez/pysimgame
6c89280441358722efbc63b6d8aa914cbe21575e
[ "WTFPL" ]
null
null
null
examples/preypredator/run.py
ScienceGamez/pysimgame
6c89280441358722efbc63b6d8aa914cbe21575e
[ "WTFPL" ]
null
null
null
import os import sys # setting path sys.path.append(os.path.join(".")) from pysimgame.game_manager import GameManager manager = GameManager("PredatorPrey") manager.start_game_loop()
15.5
46
0.77957
27bb8151cc904c388b345892a8414868d19fa768
28,753
py
Python
huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
64
2020-06-12T07:05:07.000Z
2022-03-30T03:32:50.000Z
huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
11
2020-07-06T07:56:54.000Z
2022-01-11T11:14:40.000Z
huaweicloud-sdk-functiongraph/huaweicloudsdkfunctiongraph/v2/model/create_function_response.py
huaweicloud/huaweicloud-sdk-python-v3
7a6270390fcbf192b3882bf763e7016e6026ef78
[ "Apache-2.0" ]
24
2020-06-08T11:42:13.000Z
2022-03-04T06:44:08.000Z
# coding: utf-8 import re import six from huaweicloudsdkcore.sdk_response import SdkResponse from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization class CreateFunctionResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name ...
30.394292
582
0.632699
ed660c323757480629f5d6ea7e67daac92371b6a
587
py
Python
app/services/settings_service.py
GenjiLemon/PETest
97b733489a2c45fef208b0a48fa56c3df2645711
[ "Apache-2.0" ]
null
null
null
app/services/settings_service.py
GenjiLemon/PETest
97b733489a2c45fef208b0a48fa56c3df2645711
[ "Apache-2.0" ]
16
2021-09-09T01:38:49.000Z
2021-12-13T14:14:07.000Z
app/services/settings_service.py
GenjiLemon/PETest
97b733489a2c45fef208b0a48fa56c3df2645711
[ "Apache-2.0" ]
null
null
null
from . import school_service from app.models import Systemsetting def getSchoolTestingLevel(school_id): school = school_service.findById(school_id) if school.type == "本科": testing_level = int(getSystemSetting("level_benke")) elif school.type == "高职高专": testing_level = int(getSystemSetting(...
26.681818
72
0.691652
22150e510d636a6a25175732d0afa9d7db5de233
64,963
py
Python
src/olympia/devhub/tests/test_views_edit.py
smarnach/addons-server
9f2123ae17a06159749753184184207fdb1cf39b
[ "BSD-3-Clause" ]
1
2020-11-15T20:06:40.000Z
2020-11-15T20:06:40.000Z
src/olympia/devhub/tests/test_views_edit.py
smarnach/addons-server
9f2123ae17a06159749753184184207fdb1cf39b
[ "BSD-3-Clause" ]
null
null
null
src/olympia/devhub/tests/test_views_edit.py
smarnach/addons-server
9f2123ae17a06159749753184184207fdb1cf39b
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- import json import os from unittest import mock from django.core.files.storage import default_storage as storage from django.utils.encoding import force_text from pyquery import PyQuery as pq from waffle.testutils import override_switch from olympia import amo from olympia.activity.models imp...
39.854601
79
0.623232
ee49c1db0c62b923141ac40f96281b2b6bf82d91
1,368
py
Python
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/managed_instance_pair_info.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
207
2017-11-29T06:59:41.000Z
2022-03-31T10:00:53.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/managed_instance_pair_info.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
4,061
2017-10-27T23:19:56.000Z
2022-03-31T23:18:30.000Z
src/db-up/azext_db_up/vendored_sdks/azure_mgmt_sql/sql/models/managed_instance_pair_info.py
Mannan2812/azure-cli-extensions
e2b34efe23795f6db9c59100534a40f0813c3d95
[ "MIT" ]
802
2017-10-11T17:36:26.000Z
2022-03-31T22:24:32.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 ...
39.085714
90
0.65424
1386b6d8c95d1f10340c2d934757e750b98b316e
807
py
Python
interim_vision_patch.py
jgard1/COS598D_Assignment3
0ac4b02c8572d3e5757b79b42a83407e55204a04
[ "MIT" ]
1
2021-03-08T19:21:00.000Z
2021-03-08T19:21:00.000Z
interim_vision_patch.py
jgard1/COS598D_Assignment3
0ac4b02c8572d3e5757b79b42a83407e55204a04
[ "MIT" ]
8
2021-08-31T23:35:05.000Z
2022-03-24T10:45:36.000Z
interim_vision_patch.py
rushtehrani/nni
f897829772b8146e0e13ba92b6a51f8fa8227ac5
[ "MIT" ]
2
2021-03-23T17:43:00.000Z
2022-01-18T18:14:17.000Z
import os import torchvision.datasets.mnist as mnist file_name = mnist.__file__ dummy_file_name = os.path.join(os.path.dirname(file_name), 'mnist_dummy.py') with open(file_name, 'r') as fr: firstline = fr.readline() if firstline != 'from six.moves import urllib\n': with open(dummy_file_name, 'w') as f...
36.681818
83
0.60347
f563e73dc088f698d2e70920a1d94a2380b9df14
6,469
py
Python
luigi/contrib/ecs.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
5
2015-02-26T18:52:56.000Z
2017-07-07T05:47:18.000Z
luigi/contrib/ecs.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
6
2015-02-10T17:09:21.000Z
2022-03-22T10:16:09.000Z
luigi/contrib/ecs.py
nathantsoi/luigi
a5f95fe2381f74ed083aa1a5004279d76fafa72f
[ "Apache-2.0" ]
9
2015-01-26T14:47:57.000Z
2020-07-07T17:01:25.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 Outlier Bio, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
34.227513
101
0.641521
029f1e959a63d0cc01661449955a2ed4d0ec278c
13,049
py
Python
exercises/meetup/meetup_test.py
mbernardes19/python
57f799f19e3821db5b84af42a7e98becf62f055b
[ "MIT" ]
9
2020-12-12T03:29:33.000Z
2021-08-11T13:08:06.000Z
exercises/meetup/meetup_test.py
mbernardes19/python
57f799f19e3821db5b84af42a7e98becf62f055b
[ "MIT" ]
null
null
null
exercises/meetup/meetup_test.py
mbernardes19/python
57f799f19e3821db5b84af42a7e98becf62f055b
[ "MIT" ]
1
2021-01-12T10:07:00.000Z
2021-01-12T10:07:00.000Z
from datetime import date import unittest from meetup import meetup, MeetupDayException # Tests adapted from `problem-specifications//canonical-data.json` class MeetupTest(unittest.TestCase): def test_monteenth_of_may_2013(self): self.assertEqual(meetup(2013, 5, "teenth", "Monday"), date(2013, 5, 13)) ...
41.958199
84
0.679286
2badcd80ae5ae0a205fe1b3e9434eda1d8ed7d1f
3,554
py
Python
bindings/python/ensmallen/datasets/string/thiomicrospirakuenenii.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
5
2021-02-17T00:44:45.000Z
2021-08-09T16:41:47.000Z
bindings/python/ensmallen/datasets/string/thiomicrospirakuenenii.py
AnacletoLAB/ensmallen_graph
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
18
2021-01-07T16:47:39.000Z
2021-08-12T21:51:32.000Z
bindings/python/ensmallen/datasets/string/thiomicrospirakuenenii.py
AnacletoLAB/ensmallen
b2c1b18fb1e5801712852bcc239f239e03076f09
[ "MIT" ]
3
2021-01-14T02:20:59.000Z
2021-08-04T19:09:52.000Z
""" This file offers the methods to automatically retrieve the graph Thiomicrospira kuenenii. The graph is automatically retrieved from the STRING repository. References --------------------- Please cite the following if you use the data: ```bib @article{szklarczyk2019string, title={STRING v11: protein--protei...
32.907407
223
0.678109
392d5e7f140c0536b21a4fa08dee75fdeb91ec73
1,681
py
Python
03_calculator.py
GLorieul/learning_selenium
1ca413918616044f9447f02010e814270ba69ad2
[ "Unlicense" ]
null
null
null
03_calculator.py
GLorieul/learning_selenium
1ca413918616044f9447f02010e814270ba69ad2
[ "Unlicense" ]
null
null
null
03_calculator.py
GLorieul/learning_selenium
1ca413918616044f9447f02010e814270ba69ad2
[ "Unlicense" ]
null
null
null
# This script computes the sum of two numbers using calculator.net # Heavily inspired by https://www.tutorialspoint.com/selenium/selenium_webdriver.htm def composeNumber(number): nbStr = str(number) for digit in nbStr: command = 'r(' + digit + ')' xPath = "//span[@onclick=\"" + command + "\"...
25.089552
84
0.696609
928327f1368b0cf2cff92ba6ae72b02a80f394c6
4,831
py
Python
koans/about_proxy_object_project.py
saljuama-katas/koans_python
84a1b91e4588aa3a4bb8f888c02e2736966c99c5
[ "Apache-2.0" ]
null
null
null
koans/about_proxy_object_project.py
saljuama-katas/koans_python
84a1b91e4588aa3a4bb8f888c02e2736966c99c5
[ "Apache-2.0" ]
null
null
null
koans/about_proxy_object_project.py
saljuama-katas/koans_python
84a1b91e4588aa3a4bb8f888c02e2736966c99c5
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # Project: Create a Proxy Class # # In this assignment, create a proxy class (one is started for you # below). You should be able to initialize the proxy object with any # object. Any attributes called on the proxy object should be forwarded # to the target object. As e...
25.973118
92
0.622852
9182a86ac6444b5e823f8c9cc6aaad1e5805d410
479
py
Python
myvenv/lib/python3.5/site-packages/faker/utils/distribution.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
2
2017-06-12T11:08:01.000Z
2017-06-13T00:50:16.000Z
myvenv/lib/python3.5/site-packages/faker/utils/distribution.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
12
2020-07-11T01:42:51.000Z
2020-08-12T17:17:35.000Z
myvenv/lib/python3.5/site-packages/faker/utils/distribution.py
tuvapp/tuvappcom
5ca2be19f4b0c86a1d4a9553711a4da9d3f32841
[ "MIT" ]
1
2019-08-01T20:50:35.000Z
2019-08-01T20:50:35.000Z
# coding=utf-8 import bisect from faker.generator import random def random_sample(): return random.uniform(0.0, 1.0) def cumsum(it): total = 0 for x in it: total += x yield total def choice_distribution(a, p): assert len(a) == len(p) cdf = list(cumsum(p)) normal = cdf[-1] ...
17.740741
51
0.626305
2a961f1484870c0b01a69bbac91b9299076362b0
25
py
Python
excolour/__init__.py
nickdrhodes/excolour
1f8eeb73ce680e506e072f6b803c0ccab4724d11
[ "MIT" ]
null
null
null
excolour/__init__.py
nickdrhodes/excolour
1f8eeb73ce680e506e072f6b803c0ccab4724d11
[ "MIT" ]
null
null
null
excolour/__init__.py
nickdrhodes/excolour
1f8eeb73ce680e506e072f6b803c0ccab4724d11
[ "MIT" ]
null
null
null
import excolour.colourer
12.5
24
0.88
bf10c3181bdf59742cdbbd8248e187d196156174
6,932
py
Python
st2client/st2client/commands/triggerinstance.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
2
2021-08-04T01:04:06.000Z
2021-08-04T01:04:08.000Z
st2client/st2client/commands/triggerinstance.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2022-03-31T03:53:22.000Z
2022-03-31T03:53:22.000Z
st2client/st2client/commands/triggerinstance.py
saucetray/st2
8f507d6c8d9483c8371e386fe2b7998596856fd7
[ "Apache-2.0" ]
1
2019-10-11T14:42:28.000Z
2019-10-11T14:42:28.000Z
# 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.152866
99
0.598096
a371b166361d720f8ed2a2192c5ad2a3be08a7a0
7,109
py
Python
inyourface/Animator.py
yacomink/inyourface
7afbdf46d07f2eb8f27adfd95e48ddd87534e821
[ "MIT" ]
16
2017-04-17T19:42:34.000Z
2022-02-25T14:07:10.000Z
inyourface/Animator.py
yacomink/inyourface
7afbdf46d07f2eb8f27adfd95e48ddd87534e821
[ "MIT" ]
12
2017-08-03T18:33:13.000Z
2022-03-11T23:11:46.000Z
inyourface/Animator.py
yacomink/inyourface
7afbdf46d07f2eb8f27adfd95e48ddd87534e821
[ "MIT" ]
4
2017-08-06T16:21:39.000Z
2021-07-11T07:18:34.000Z
import sys import logging import io import hashlib import pprint import io import os import pickle import inspect import traceback import requests from subprocess import call from PIL import Image, ImageDraw from tempfile import NamedTemporaryFile from inyourface.Face import Face from google.cloud import vision from g...
32.610092
103
0.568434
3df926f2a852df13dbe6b83f46c821f5e32fe7b8
7,887
py
Python
cogdl/models/nn/pyg_gin.py
xssstory/cogdl
ae8de495c365993f19f04774f083960fd282c2a3
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gin.py
xssstory/cogdl
ae8de495c365993f19f04774f083960fd282c2a3
[ "MIT" ]
null
null
null
cogdl/models/nn/pyg_gin.py
xssstory/cogdl
ae8de495c365993f19f04774f083960fd282c2a3
[ "MIT" ]
null
null
null
import random import torch import torch.nn as nn import torch.nn.functional as F from torch_geometric.utils import remove_self_loops from torch_scatter import scatter_add from .. import BaseModel, register_model from cogdl.data import DataLoader class GINLayer(nn.Module): r"""Graph Isomorphism Network layer fro...
36.178899
106
0.590465
e86a8f583b3630db42fe701315be7cadc62f2a31
1,011
py
Python
src/pybel/struct/filters/__init__.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
src/pybel/struct/filters/__init__.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
src/pybel/struct/filters/__init__.py
smoe/pybel
9a45a7b3b62da55b459c8d8acbba45f7aef91442
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This module contains functions for filtering node and edge iterables. It relies heavily on the concepts of `functional programming <https://en.wikipedia.org/wiki/Functional_programming>`_ and the concept of `predicates <https://en.wikipedia.org/wiki/Predicate_(mathematical_logic)>`_. """ f...
31.59375
117
0.744807
e7ec89e65f64cadf82460c00594d5e41ed5d7a37
1,148
py
Python
videointelligence/google/cloud/videointelligence_v1beta2/__init__.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
2
2018-02-01T06:30:24.000Z
2018-04-12T15:39:56.000Z
videointelligence/google/cloud/videointelligence_v1beta2/__init__.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
7
2020-03-24T15:50:06.000Z
2021-06-08T19:57:39.000Z
videointelligence/google/cloud/videointelligence_v1beta2/__init__.py
jo2y/google-cloud-python
1b76727be16bc4335276f793340bb72d32be7166
[ "Apache-2.0" ]
1
2018-09-19T05:55:27.000Z
2018-09-19T05:55:27.000Z
# Copyright 2017, 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...
34.787879
90
0.795296
9575e00843de1c7a4c35837fb6719b1f9b28e08d
5,216
py
Python
visualize_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
87
2018-01-31T02:16:19.000Z
2022-03-28T18:58:25.000Z
visualize_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
18
2017-12-26T11:16:47.000Z
2021-12-18T21:35:40.000Z
visualize_hw.py
Bradan/deepwriting
1c2a9d030d691c88dfc70483adcccb671a313512
[ "MIT" ]
25
2018-02-04T10:04:03.000Z
2021-05-21T06:41:05.000Z
import numpy as np import cv2 import matplotlib import svgwrite matplotlib.use('Agg') def draw_stroke_cv2(strokes_abs, size=(120,1200), margin=(10,20), pen_width=4, factor=1, output_path=None): """ Draws strokes that are used in network training. The pen information consists of 2 possible values namely 0 and ...
30.150289
144
0.589916
b7afad033e4413ed479329d45f72b8ea6b2924a9
17,963
py
Python
collector_center_sdk/model/tool/extra_info_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
5
2019-07-31T04:11:05.000Z
2021-01-07T03:23:20.000Z
collector_center_sdk/model/tool/extra_info_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
collector_center_sdk/model/tool/extra_info_pb2.py
easyopsapis/easyops-api-python
adf6e3bad33fa6266b5fa0a449dd4ac42f8447d0
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: extra_info.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf ...
43.599515
1,587
0.744085
23f35825dc6f8dae23daca12aceae368a412e80d
4,865
py
Python
influxdb_client/domain/telegraf_plugin.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/telegraf_plugin.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
influxdb_client/domain/telegraf_plugin.py
MASIFAYUB/influxdb-client-python
a067fa5670a6fbc600db2ac4e54e29e1b7124998
[ "MIT" ]
null
null
null
# coding: utf-8 """ InfluxDB OSS API Service. The InfluxDB v2 API provides a programmatic interface for all interactions with InfluxDB. Access the InfluxDB API using the `/api/v2/` endpoint. # noqa: E501 OpenAPI spec version: 2.0.0 Generated by: https://openapi-generator.tech """ import pprint import re # noqa:...
27.178771
159
0.560534
e2359c10b3a3aec78ab06e9bde809107c9fb3824
23,339
py
Python
tests/distributions/conftest.py
ashishfarmer/pyro
54d48627a7c5c0575c2fe69d5b6c80f3c47b287b
[ "Apache-2.0" ]
2
2020-06-05T20:40:50.000Z
2020-09-05T15:39:48.000Z
tests/distributions/conftest.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
1
2020-05-12T16:26:21.000Z
2020-05-12T17:23:13.000Z
tests/distributions/conftest.py
Ezecc/pyro
11a96cde05756def826c232d76f9cff66f6e6d4f
[ "Apache-2.0" ]
1
2020-06-04T18:25:38.000Z
2020-06-04T18:25:38.000Z
# Copyright (c) 2017-2019 Uber Technologies, Inc. # SPDX-License-Identifier: Apache-2.0 import math import numpy as np import pytest import scipy.stats as sp import pyro.distributions as dist from pyro.distributions.testing.naive_dirichlet import NaiveBeta, NaiveDirichlet from pyro.distributions.testing.rejection_ex...
46.124506
119
0.412143
b98dd894fe1237e822c631836db7db21ebbf5a87
2,755
py
Python
Athos/tests/conftest.py
kanav99/EzPC
094e75111d00883dd90ef328bd47a7c0a1eb689f
[ "MIT" ]
221
2019-05-16T16:42:49.000Z
2022-03-29T14:05:31.000Z
Athos/tests/conftest.py
kanav99/EzPC
094e75111d00883dd90ef328bd47a7c0a1eb689f
[ "MIT" ]
63
2019-07-02T11:50:15.000Z
2022-03-31T08:14:02.000Z
Athos/tests/conftest.py
kanav99/EzPC
094e75111d00883dd90ef328bd47a7c0a1eb689f
[ "MIT" ]
67
2019-08-30T08:44:47.000Z
2022-03-23T08:08:33.000Z
""" Authors: Pratik Bhatu. Copyright: Copyright (c) 2021 Microsoft Research 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, co...
30.955056
78
0.720145
b7d6cceb469e94823fb2f30d69af0b608c25ec8a
12,263
py
Python
haigha/connections/rabbit_connection.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
haigha/connections/rabbit_connection.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
haigha/connections/rabbit_connection.py
vitaly-krugl/haigha
e5320abfab91b89f4bad33644a7528e4517d96a7
[ "BSD-3-Clause" ]
null
null
null
''' Copyright (c) 2011-2015, Agora Games, LLC All rights reserved. https://github.com/agoragames/haigha/blob/master/LICENSE.txt ''' from collections import deque import copy from haigha.connection import Connection from haigha.classes.basic_class import BasicClass from haigha.classes.exchange_class import ExchangeCl...
33.969529
80
0.616652
1888bb65e4b6db5b2f46d2854040c18943e3b14a
6,536
py
Python
code/environments/LightsOut.py
19428861/DeepCube-and-DeepCubePlus
2b980623242e287580b5ae4c8b4a03dce70a87e5
[ "MIT" ]
2
2021-09-15T06:24:37.000Z
2021-09-15T06:24:40.000Z
code/environments/LightsOut.py
19428861/DeepCube-and-DeepCubePlus
2b980623242e287580b5ae4c8b4a03dce70a87e5
[ "MIT" ]
1
2020-01-14T01:07:07.000Z
2020-01-14T01:07:07.000Z
code/environments/LightsOut.py
Gh-Story/cube
05a5d227fffbeb987ed49d71973ae8bc826f3439
[ "MIT" ]
3
2021-09-15T06:28:44.000Z
2021-11-30T07:15:43.000Z
import numpy as np from random import choice import argparse import matplotlib.patches as patches import matplotlib.pyplot as plt import time import sys sys.path.append('./') from ml_utils import search_utils from ml_utils import nnet_utils import re class LightsOut: def tf_dtype(self): import tensorflow...
32.039216
152
0.591799
339c4e84a51027f2123827f5d9e6cee731112500
3,058
py
Python
document_merge_service/api/serializers.py
winged/document-merge-service
bc6b4098db66cc56ac5aa0d518fe0aa1ea97a4bf
[ "MIT" ]
null
null
null
document_merge_service/api/serializers.py
winged/document-merge-service
bc6b4098db66cc56ac5aa0d518fe0aa1ea97a4bf
[ "MIT" ]
null
null
null
document_merge_service/api/serializers.py
winged/document-merge-service
bc6b4098db66cc56ac5aa0d518fe0aa1ea97a4bf
[ "MIT" ]
null
null
null
from functools import singledispatch from django.conf import settings from django.utils.translation import ugettext as _ from rest_framework import exceptions, serializers from . import engines, models class CurrentGroupDefault: def set_context(self, serializer_field): self.user = serializer_field.conte...
31.204082
87
0.630804
6b4a8f6dff3a1a6d82f6c1a0a25123642dae2acd
848
py
Python
src/utils/render_response.py
HunDeMingMingBaiBai/competitions-v2
745b56274ada40b78cda6e91dd762f2d547cd841
[ "Apache-2.0" ]
null
null
null
src/utils/render_response.py
HunDeMingMingBaiBai/competitions-v2
745b56274ada40b78cda6e91dd762f2d547cd841
[ "Apache-2.0" ]
null
null
null
src/utils/render_response.py
HunDeMingMingBaiBai/competitions-v2
745b56274ada40b78cda6e91dd762f2d547cd841
[ "Apache-2.0" ]
null
null
null
from rest_framework.renderers import JSONRenderer class CustomJsonRenderer(JSONRenderer): def render(self, data, accepted_media_type=None, renderer_context=None): if renderer_context: if renderer_context['response'].status_code >= 400: res = { 'status': 'fail...
29.241379
78
0.523585
e31bf6ede0fcc7400859d87f9e92a201ced96724
305
py
Python
fatura.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
fatura.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
fatura.py
rafabentoss/courses
ced3f5447dea38220b904678c601ed2bf7f2b0f1
[ "CC0-1.0" ]
null
null
null
nome=input("Digite o nome do cliente: ") dia_venc=input("Digite o dia de vencimento: ") mes_venc=input("Digite o mês de vencimento: ") valor=input("Digite o valor da fatura: ") print("Olá,",nome) print("A sua fatura com vencimento em",dia_venc,"de",mes_venc,"no valor de R$", valor,"está fechada.")
43.571429
102
0.704918
3837f5cfa2b981578814137659b58d0c2d99236f
2,696
py
Python
create-topic-markdown.py
TheMinusWorld/Topic-Archiver
9620b97b2fdb7c82ba81a046de18a9818358a5c9
[ "BSD-3-Clause" ]
1
2017-07-03T16:15:16.000Z
2017-07-03T16:15:16.000Z
create-topic-markdown.py
TheMinusWorld/Topic-Archiver
9620b97b2fdb7c82ba81a046de18a9818358a5c9
[ "BSD-3-Clause" ]
null
null
null
create-topic-markdown.py
TheMinusWorld/Topic-Archiver
9620b97b2fdb7c82ba81a046de18a9818358a5c9
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python import sys import json import yaml from datetime import datetime, timedelta from os import linesep, sep, path, makedirs from urllib.parse import urlencode def main(argv, file): configfile = open('config.yaml', 'r') with configfile: config = yaml.load(configfile) if config.get...
37.971831
78
0.432864
ee3ad47f583bb5b518f3bd10f3227e48b2a3907c
1,678
py
Python
oops_fhir/r4/code_system/naming_system_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/naming_system_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
oops_fhir/r4/code_system/naming_system_type.py
Mikuana/oops_fhir
77963315d123756b7d21ae881f433778096a1d25
[ "MIT" ]
null
null
null
from pathlib import Path from fhir.resources.codesystem import CodeSystem from oops_fhir.utils import CodeSystemConcept __all__ = ["NamingSystemType"] _resource = CodeSystem.parse_file(Path(__file__).with_suffix(".json")) class NamingSystemType: """ NamingSystemType Identifies the purpose of the nam...
25.044776
164
0.619785
a44688498e1e52c6bd19af7b91b8c70364c10b8c
3,819
py
Python
tools/curve_fitting/curve_fitting.py
qgao-hd/galaxy-image-analysis
48a4b452bdd7f1845cb924a299b82a93ead17d67
[ "MIT" ]
7
2017-02-10T17:01:36.000Z
2019-08-01T11:59:41.000Z
tools/curve_fitting/curve_fitting.py
qgao-hd/galaxy-image-analysis
48a4b452bdd7f1845cb924a299b82a93ead17d67
[ "MIT" ]
20
2019-01-08T13:04:56.000Z
2022-02-27T17:26:28.000Z
tools/curve_fitting/curve_fitting.py
qgao-hd/galaxy-image-analysis
48a4b452bdd7f1845cb924a299b82a93ead17d67
[ "MIT" ]
6
2017-03-24T17:54:20.000Z
2021-11-29T23:18:44.000Z
""" Copyright 2021 Biomedical Computer Vision Group, Heidelberg University. Author: Qi Gao (qi.gao@bioquant.uni-heidelberg.de) Distributed under the MIT license. See file LICENSE for detail or copy at https://opensource.org/licenses/MIT """ import argparse import numpy as np import pandas as pd from scipy.optimize ...
35.691589
109
0.618225
2ee35c25cca39cd1f42cfe85e4fc12069302c256
456
py
Python
src/envs/__init__.py
wjh720/pymarl
9392407568d440c4808a1c7c98ddf1ef52e0c009
[ "Apache-2.0" ]
null
null
null
src/envs/__init__.py
wjh720/pymarl
9392407568d440c4808a1c7c98ddf1ef52e0c009
[ "Apache-2.0" ]
null
null
null
src/envs/__init__.py
wjh720/pymarl
9392407568d440c4808a1c7c98ddf1ef52e0c009
[ "Apache-2.0" ]
null
null
null
from functools import partial from smac.env import MultiAgentEnv, StarCraft2Env, Tracker1Env import sys import os def env_fn(env, **kwargs) -> MultiAgentEnv: return env(**kwargs) REGISTRY = {} REGISTRY["sc2"] = partial(env_fn, env=StarCraft2Env) REGISTRY["tracker1"] = partial(env_fn, env=Tracker1Env) if sys.pl...
25.333333
79
0.690789
643186e6d82309dd45d69fd747df45a6ca250436
27,046
py
Python
cinder/tests/unit/volume/test_driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/test_driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
cinder/tests/unit/volume/test_driver.py
liangintel/stx-cinder
f4c43797a3f8c0caebfd8fb67244c084d26d9741
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2016 Red Hat 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...
44.410509
78
0.624048
d557ec968017e7c227dd42fa4b9759942e864ad6
746
py
Python
tests/test_integrated.py
OlegSomov/mars_rover
712d9274a7fce04004fee9d6f8da5cdb17b1a240
[ "Apache-2.0" ]
null
null
null
tests/test_integrated.py
OlegSomov/mars_rover
712d9274a7fce04004fee9d6f8da5cdb17b1a240
[ "Apache-2.0" ]
null
null
null
tests/test_integrated.py
OlegSomov/mars_rover
712d9274a7fce04004fee9d6f8da5cdb17b1a240
[ "Apache-2.0" ]
null
null
null
from src.plateau import Mars def test_integrated_file(): with open("tests/test.txt", 'r') as f: plateau = Mars.from_string(f.readline().rstrip('\n')) # init plateau assert plateau.x == 5 assert plateau.y == 5 for line in f: rover = plateau.deploy_rover(line.rstrip('\n'...
35.52381
80
0.58311
4af49b14d531fa6276d5df5c7bb5270c3b104ec2
2,254
py
Python
mcot/core/_scripts/round_bvals.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/round_bvals.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
mcot/core/_scripts/round_bvals.py
MichielCottaar/mcot.core
de00c15b946a99a048694f3d8b6ad822a835b299
[ "MIT" ]
null
null
null
#!/usr/bin/env python """Rounds the input b-values Each b-value is considered to be in the same shell as each other b-value within `b_delta`. For each shell the median b-value of all volumes is used as in the output b-value file. Note that even volumes, which have a difference in b-value of more than `b_delta` can st...
35.21875
133
0.667702
9e991b1feca7400c06c7aeed05093d32424b7ceb
837
py
Python
myshop/orders/migrations/0003_auto_20200612_0655.py
rishabh12360/OnlineShop
9f361af15303aac940c156a643c3476452044e56
[ "CC0-1.0" ]
1
2022-02-14T12:05:23.000Z
2022-02-14T12:05:23.000Z
myshop/orders/migrations/0003_auto_20200612_0655.py
rishabh12360/OnlineShop
9f361af15303aac940c156a643c3476452044e56
[ "CC0-1.0" ]
null
null
null
myshop/orders/migrations/0003_auto_20200612_0655.py
rishabh12360/OnlineShop
9f361af15303aac940c156a643c3476452044e56
[ "CC0-1.0" ]
null
null
null
# Generated by Django 3.0.7 on 2020-06-12 06:55 import django.core.validators from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('coupons', '0001_initial'), ('orders', '0002_order_braintree_id'), ] operation...
31
154
0.647551
5b60df8d61f75565621b033ae469b0a6c58a3395
4,401
py
Python
unittests/commit_list_test.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
1
2021-04-24T04:03:01.000Z
2021-04-24T04:03:01.000Z
unittests/commit_list_test.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
unittests/commit_list_test.py
Acidburn0zzz/luci
d8993f4684839b58f5f966dd6273d1d8fd001eae
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env vpython # Copyright 2017 The LUCI Authors. All rights reserved. # Use of this source code is governed under the Apache License, Version 2.0 # that can be found in the LICENSE file. import hashlib import struct import sys import test_env from recipe_engine.internal.autoroll_impl.commit_list import \ ...
30.143836
79
0.670529
0099e2184b0d25778819ab76c6df7a9d262947bb
3,016
py
Python
videoaugment/base/baseloader.py
iliasprc/video-augment
bd95f415a22f0abc4f85d7836857cd33b211c02e
[ "MIT" ]
3
2021-02-19T15:11:25.000Z
2021-02-21T11:38:36.000Z
videoaugment/base/baseloader.py
iliasprc/videoaugment
bd95f415a22f0abc4f85d7836857cd33b211c02e
[ "MIT" ]
null
null
null
videoaugment/base/baseloader.py
iliasprc/videoaugment
bd95f415a22f0abc4f85d7836857cd33b211c02e
[ "MIT" ]
null
null
null
import numpy as np from torch.utils.data import DataLoader from torch.utils.data import Dataset from torch.utils.data.dataloader import default_collate from torch.utils.data.sampler import SubsetRandomSampler class BaseDataLoader(DataLoader): """ Base class for all data loaders """ def __init__(self,...
26.690265
112
0.612401
65c8f7545bcdc8f08ae89e89a279be394d153f38
280
py
Python
plugins/ledger/__init__.py
seci-nect/electrum-seci
bccffc80c2cdecd8415fe1e0415fbd286d62be36
[ "MIT" ]
null
null
null
plugins/ledger/__init__.py
seci-nect/electrum-seci
bccffc80c2cdecd8415fe1e0415fbd286d62be36
[ "MIT" ]
null
null
null
plugins/ledger/__init__.py
seci-nect/electrum-seci
bccffc80c2cdecd8415fe1e0415fbd286d62be36
[ "MIT" ]
null
null
null
from electrum_seci.i18n import _ fullname = 'Ledger Wallet' description = 'Provides support for Ledger hardware wallet' requires = [('btchip', 'github.com/ledgerhq/btchip-python')] registers_keystore = ('hardware', 'ledger', _("Ledger wallet")) available_for = ['qt', 'cmdline']
35
63
0.739286
f51dc0526e76b18554d50621223331be7762a438
7,071
py
Python
tests/providers/amazon/aws/operators/test_emr_add_steps.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
15,947
2019-01-05T13:51:02.000Z
2022-03-31T23:33:16.000Z
tests/providers/amazon/aws/operators/test_emr_add_steps.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
14,603
2019-01-05T09:43:19.000Z
2022-03-31T23:11:59.000Z
tests/providers/amazon/aws/operators/test_emr_add_steps.py
ChaseKnowlden/airflow
6b71eac1997a7c0db3b8e3aed6b4e65d01871440
[ "Apache-2.0" ]
8,429
2019-01-05T19:45:47.000Z
2022-03-31T22:13:01.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
36.261538
108
0.631311
68ce2f67ae6ca97a897138acb134072613cd7577
2,956
py
Python
Model.py
saadullahkhan51/commaai_speedChallenge
f7e258cd91f047247e8e19a24c2c73d863486252
[ "MIT" ]
null
null
null
Model.py
saadullahkhan51/commaai_speedChallenge
f7e258cd91f047247e8e19a24c2c73d863486252
[ "MIT" ]
null
null
null
Model.py
saadullahkhan51/commaai_speedChallenge
f7e258cd91f047247e8e19a24c2c73d863486252
[ "MIT" ]
null
null
null
from keras.models import Model, Sequential #from keras.layers.convolutional import Conv3D #from keras.layers.convolutional_recurrent import ConvLSTM2D from keras.layers.normalization import BatchNormalization from keras.layers import Input, Dense, Activation, Conv2D, ELU, Flatten, Dropout, Lambda, MaxPooling2D fro...
32.844444
103
0.511164
f4fea5d442b5c03b897944fb8a10cb834c07b1cb
450
py
Python
Mundo1/020.py
eliascastrosousa/exerciciospythonmundo1
ec6326952e69ca60d018476308b96959b92a24d8
[ "MIT" ]
null
null
null
Mundo1/020.py
eliascastrosousa/exerciciospythonmundo1
ec6326952e69ca60d018476308b96959b92a24d8
[ "MIT" ]
null
null
null
Mundo1/020.py
eliascastrosousa/exerciciospythonmundo1
ec6326952e69ca60d018476308b96959b92a24d8
[ "MIT" ]
null
null
null
# desafio 020 - o mesmo professor do desafio anterior quer sortear a ordem de apresentação de trabalhos # dos alunos. faça um programa que leia o nome dos quatro alunos e mostre a ordem sorteada import random as r n1 = str(input('Primeiro Aluno: ')) n2 = str(input('Segundo Aluno: ')) n3 = str(input('Terceiro Aluno: ')...
40.909091
103
0.722222
58e71a4c4711c69542991ae7a9ce48c622b5ad8c
56,960
py
Python
WindFarmGenetic.py
JuXinglong/WFLOP_SUGGA_Python
27ae25a40be7fe2258894a741013aa46e9d1e4b3
[ "MIT" ]
23
2019-12-21T04:14:11.000Z
2021-10-18T13:42:34.000Z
WindFarmGenetic.py
candleinwindsteve/WFLOP_SUGGA_Python
f9b0d0739d3cebfe194605b5696ba012841e3231
[ "MIT" ]
null
null
null
WindFarmGenetic.py
candleinwindsteve/WFLOP_SUGGA_Python
f9b0d0739d3cebfe194605b5696ba012841e3231
[ "MIT" ]
9
2019-07-20T17:52:35.000Z
2021-10-18T13:42:50.000Z
import math import numpy as np import matplotlib.pyplot as plt import matplotlib.patches as patches import time from datetime import datetime __version__ = "1.0.0" class WindFarmGenetic: elite_rate = 0.2 # elite rate: parameter for genetic algorithm cross_rate = 0.6 # crossover rate: parameter fo...
51.269127
161
0.55244
b369dcea05c0a30e7fc1ef9fab04d0d72bfb2ac6
7,719
py
Python
CGAT/scripts/diff_bam.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
87
2015-01-01T03:48:19.000Z
2021-11-23T16:23:24.000Z
CGAT/scripts/diff_bam.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
189
2015-01-06T15:53:11.000Z
2019-05-31T13:19:45.000Z
CGAT/scripts/diff_bam.py
CGATOxford/cgat
326aad4694bdfae8ddc194171bb5d73911243947
[ "BSD-2-Clause", "BSD-3-Clause" ]
56
2015-01-13T02:18:50.000Z
2022-01-05T10:00:59.000Z
'''diff_bam.py - compare multiple bam files against each other =========================================================== :Tags: Genomics NGS BAM Comparison Purpose ------- Compare reads in multiple BAM files against each other. .. note:: BAM files need to be sorted by read name. samtools sort does NOT wo...
31.635246
96
0.531416
3acca20790017b070029321244f079bac851d992
1,023
py
Python
pypy/lib/_fakecompiler/fakecompiler.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
12
2016-01-06T07:10:28.000Z
2021-05-13T23:02:02.000Z
pypy/lib/_fakecompiler/fakecompiler.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
null
null
null
pypy/lib/_fakecompiler/fakecompiler.py
camillobruni/pygirl
ddbd442d53061d6ff4af831c1eab153bcc771b5a
[ "MIT" ]
2
2016-07-29T07:09:50.000Z
2016-10-16T08:50:26.000Z
import parser, marshal, os, __future__ DUMPFILE = 'this_is_the_marshal_file' def reallycompile(tuples_or_src, filename, mode, flag_names): if type(tuples_or_src) is str: flags = 0 if 'nested_scopes' in flag_names: flags |= __future__.CO_NESTED if 'generators' in flag_names: ...
36.535714
71
0.667644
01dd6f8ba6d0714df9fe1b2453a9f320a23fc3d5
23,986
py
Python
grascii/appdirs.py
chanicpanic/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
3
2020-10-02T11:45:47.000Z
2021-06-27T01:16:08.000Z
grascii/appdirs.py
chanicpanic/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
2
2021-07-03T23:09:00.000Z
2021-07-06T17:46:02.000Z
grascii/appdirs.py
grascii/grascii
654d24529dd8373d9df35f07b06323bb17ed7ffb
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2005-2010 ActiveState Software Inc. # Copyright (c) 2013 Eddy Petrișor """Utilities for determining application-specific dirs. See <https://github.com/ActiveState/appdirs> for details and usage. """ # Dev Notes: # - MSDN on where to store app data files: # http://support.micro...
42.755793
122
0.631577
af5736d9efd09b4362789c71cdcbb5cb468f09cf
5,396
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_available_endpoint_services_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
2,728
2015-01-09T10:19:32.000Z
2022-03-31T14:50:33.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_available_endpoint_services_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
17,773
2015-01-05T15:57:17.000Z
2022-03-31T23:50:25.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_07_01/operations/_available_endpoint_services_operations.py
rsdoherty/azure-sdk-for-python
6bba5326677468e6660845a703686327178bb7b1
[ "MIT" ]
1,916
2015-01-19T05:05:41.000Z
2022-03-31T19:36:44.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 ...
45.728814
167
0.659563
9437128a7fc134fdd336e7833b9f280f9e0e6495
45
py
Python
demo.py
culiutudousi/kim-voice-assistant
b3e01fa8235094fbddb5041ff6d717ee00b555bc
[ "MIT" ]
75
2018-02-26T10:26:59.000Z
2022-03-24T15:15:40.000Z
demo.py
tenstone/xiaoyun-smart-speaker
2f93db2a408efe84a3a894fb877b40da073073a7
[ "MIT" ]
2
2018-06-26T01:34:58.000Z
2019-05-15T01:59:55.000Z
demo.py
tenstone/xiaoyun-smart-speaker
2f93db2a408efe84a3a894fb877b40da073073a7
[ "MIT" ]
17
2018-02-26T10:27:01.000Z
2021-11-29T06:07:03.000Z
import os print(os.path.expanduser('~/.kim'))
22.5
35
0.711111
a5fe2d5542d1b54feb0cbdd181a92e51c15923b4
82
py
Python
src/primerfitapi/settings/staging.py
softcodesInt/softcode-admin-api
697c1c6c3c9a3dc524a3e7c2271071e7c9c1f03f
[ "MIT" ]
null
null
null
src/primerfitapi/settings/staging.py
softcodesInt/softcode-admin-api
697c1c6c3c9a3dc524a3e7c2271071e7c9c1f03f
[ "MIT" ]
null
null
null
src/primerfitapi/settings/staging.py
softcodesInt/softcode-admin-api
697c1c6c3c9a3dc524a3e7c2271071e7c9c1f03f
[ "MIT" ]
null
null
null
from primerfitapi.settings.prod import * # NOQA (ignore all errors on this line)
41
81
0.768293
c43ea3ec234aa0c82c03c7d2adb96d431884bfeb
2,073
py
Python
Node.py
gmurro/MCTS
4f4439a52b0c30eac58fc52b91da2662bcffcbe2
[ "MIT" ]
null
null
null
Node.py
gmurro/MCTS
4f4439a52b0c30eac58fc52b91da2662bcffcbe2
[ "MIT" ]
null
null
null
Node.py
gmurro/MCTS
4f4439a52b0c30eac58fc52b91da2662bcffcbe2
[ "MIT" ]
null
null
null
class Node(object): def __init__(self, direction="", parent=None, left_child=None, right_child=None): """ Initializes a node. :param direction: Direction that leads to the node. Can be "L" or "R". :param parent: Pointer to the parent node. :param left_child: Pointer to the le...
31.892308
126
0.601061
94988e7633fa879122cc65f89f5571412ef8ffe0
2,696
py
Python
Image Classification/CGIAR Wheat Growth Stage Challenge/bes/zindi_wheat_growth-master/train.py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
Image Classification/CGIAR Wheat Growth Stage Challenge/bes/zindi_wheat_growth-master/train.py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
Image Classification/CGIAR Wheat Growth Stage Challenge/bes/zindi_wheat_growth-master/train.py
ZindiAfrica/Computer-Vision
bf4c00a0633506270dc6d07df938a100a10ee799
[ "MIT" ]
null
null
null
"""Script for training a single model. Example: >>> python train.py model.model_id=1 """ import logging import hydra import omegaconf import pytorch_lightning as pl import torch from src.lightning_models import LitWheatModel from src import utils logger = logging.getLogger(__name__) @hydra.main(config_pa...
32.481928
96
0.682864
7b491fd40357767df14a22bbfc9904ea18515645
2,366
py
Python
geonames.py
outis/regions
68e0e56ed5b78d4f503a3c3e3bf88987fada8400
[ "CC-BY-3.0" ]
null
null
null
geonames.py
outis/regions
68e0e56ed5b78d4f503a3c3e3bf88987fada8400
[ "CC-BY-3.0" ]
null
null
null
geonames.py
outis/regions
68e0e56ed5b78d4f503a3c3e3bf88987fada8400
[ "CC-BY-3.0" ]
null
null
null
#!/usr/bin/env python3.4 import bs4, csv, signal, sys from urllib import request, parse from copy import copy, deepcopy from collections import OrderedDict from geonames.Row import Row countries='http://www.geonames.org/countries/' def getRegionUrl(url): body = request.urlopen(url).read() doc = bs4.BeautifulS...
34.289855
137
0.629755
a6ceaadebcf22ad98d1f1366f66cf169a675957d
33,459
py
Python
tests/tools/test_StructureData_util.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
tests/tools/test_StructureData_util.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
tests/tools/test_StructureData_util.py
sphuber/aiida-fleur
df33e9a7b993a52c15a747a4ff23be3e19832b8d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the AiiDA-FLEUR package. ...
33.526052
120
0.5704
fea0e304926135611feb9a5e8097d933ae4686f2
4,914
py
Python
wepservice/appV3.3/db/brief_brand.py
lee-edgar/crawling-repo-1
48ec0c5370eb42af1b49b9df240891960b63c88b
[ "MIT" ]
1
2021-07-31T15:17:37.000Z
2021-07-31T15:17:37.000Z
wepservice/appV3.3/db/brief_brand.py
JeonghyunKo/crawling-repo-1
4a4d62d76c19719693a95306cd0306ba3b8dc778
[ "MIT" ]
6
2021-08-04T12:24:54.000Z
2021-08-10T17:40:06.000Z
wepservice/appV3.3/db/brief_brand.py
JeonghyunKo/crawling-repo-1
4a4d62d76c19719693a95306cd0306ba3b8dc778
[ "MIT" ]
2
2021-07-31T15:17:32.000Z
2021-08-01T13:35:30.000Z
from db import login_mysql mydb, cursor = login_mysql.login() import pandas as pd def brief_sub(): qry = """ SELECT c.Brand , c.Timestamp , c.Subscribe , c.Prev_Sub , c.Subscribe - c.Prev_Sub as diff_Sub FROM (SELECT b.Brand , date(a...
29.963415
129
0.615995
9b4bcb551909f8d8d0cd32bd55f190149539f58a
5,029
py
Python
bootcamp/core/views.py
maxwintko/bootcamp
29a545d80e020bdc2cf2d9668fb6dc1bd1c1a603
[ "MIT" ]
null
null
null
bootcamp/core/views.py
maxwintko/bootcamp
29a545d80e020bdc2cf2d9668fb6dc1bd1c1a603
[ "MIT" ]
null
null
null
bootcamp/core/views.py
maxwintko/bootcamp
29a545d80e020bdc2cf2d9668fb6dc1bd1c1a603
[ "MIT" ]
null
null
null
import os from PIL import Image from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.contrib import messages from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from django.conf import settings as django_settings from django.shortcuts im...
36.708029
109
0.658183
78ee12f76f0420afe9aa5ca346c32ff47d916f84
2,857
py
Python
survey/migrations/0009_auto_20200518_2041.py
UNICEFLebanonInnovation/helpdesk
9d9c6bfef4616d67f5e006897e03ba8317dddba1
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
survey/migrations/0009_auto_20200518_2041.py
UNICEFLebanonInnovation/helpdesk
9d9c6bfef4616d67f5e006897e03ba8317dddba1
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
survey/migrations/0009_auto_20200518_2041.py
UNICEFLebanonInnovation/helpdesk
9d9c6bfef4616d67f5e006897e03ba8317dddba1
[ "CC-BY-3.0", "BSD-3-Clause" ]
null
null
null
# Generated by Django 2.2.10 on 2020-05-19 01:41 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0008_research'), ] operations = [ migrations.AlterField( model_name='research', name='description', ...
52.907407
379
0.637382
ea28222f8165d89b96a159815c5c002fc8148699
628
py
Python
src/item_master/urls.py
jabhishek87/croma
4fff327ea37fba3d5e90215db3a1b6860c309f74
[ "bzip2-1.0.6", "MIT" ]
56
2017-11-25T05:13:17.000Z
2022-01-27T15:14:44.000Z
src/item_master/urls.py
jabhishek87/croma
4fff327ea37fba3d5e90215db3a1b6860c309f74
[ "bzip2-1.0.6", "MIT" ]
4
2018-12-10T18:16:36.000Z
2020-06-15T07:34:04.000Z
src/item_master/urls.py
jabhishek87/croma
4fff327ea37fba3d5e90215db3a1b6860c309f74
[ "bzip2-1.0.6", "MIT" ]
25
2018-05-03T19:26:27.000Z
2021-12-20T08:38:06.000Z
from django.conf.urls import url, include from .views import * urlpatterns = [ url(r'^api/', include("item_master.api.urls"), name = "item-api"), url(r'^create/$', CreateItem.as_view(), name = "create"), url(r'^(?P<pk>\d+)$', RetrieveItem, name = "detail"), url(r'^(?P<pk>\d+)/edit$', UpdateItem.as_view(), n...
44.857143
79
0.659236
fbeda7d859c1ab4846d248a09f131844bc04467c
9,979
py
Python
nova/objects/service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/objects/service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
nova/objects/service.py
belmiromoreira/nova
d03ef34b0b1ed96a2f2bea1f5f01f09436c55125
[ "Apache-2.0" ]
null
null
null
# Copyright 2013 IBM Corp. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agree...
40.076305
78
0.629322
fbde59989d139a5c533651c6574feca12c5b5f8e
546
py
Python
test/test.py
AngryMaciek/Computational-Droid
c9c1818bce9164fe3e09b92dc832ab3be36cf335
[ "MIT" ]
1
2020-11-20T00:39:12.000Z
2020-11-20T00:39:12.000Z
test/test.py
AngryMaciek/Computational-Droid
c9c1818bce9164fe3e09b92dc832ab3be36cf335
[ "MIT" ]
null
null
null
test/test.py
AngryMaciek/Computational-Droid
c9c1818bce9164fe3e09b92dc832ab3be36cf335
[ "MIT" ]
1
2020-11-20T00:44:38.000Z
2020-11-20T00:44:38.000Z
############################################################################## # # Test Python script with packages load # # AUTHOR: Maciej_Bak # AFFILIATION: Swiss_Institute_of_Bioinformatics # CONTACT: wsciekly.maciek@gmail.com # CREATED: 05-03-2020 # LICENSE: MIT # #######################################...
20.222222
78
0.554945
47a62eadc16aab8201827918737f51dde44990ea
2,737
py
Python
semtk3/edcclient.py
glguy/semtk-python3
c3ea09f5cc68fe99753eca696591344fe9b89bba
[ "Apache-2.0" ]
1
2020-04-30T16:48:05.000Z
2020-04-30T16:48:05.000Z
semtk3/edcclient.py
glguy/semtk-python3
c3ea09f5cc68fe99753eca696591344fe9b89bba
[ "Apache-2.0" ]
7
2020-07-09T18:31:41.000Z
2021-09-02T12:23:36.000Z
semtk3/edcclient.py
glguy/semtk-python3
c3ea09f5cc68fe99753eca696591344fe9b89bba
[ "Apache-2.0" ]
2
2020-07-17T22:35:41.000Z
2020-07-28T16:16:09.000Z
# # Copyright 2019-20 General Electric Company # # # 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 ...
38.013889
133
0.654001
3bc6d5d52d6a51f8c3a43f85c1be431a5ba78794
2,365
py
Python
exercise/exer4/problemGridworld.py
mebusy/RL_sutton2019
d3584d552002a247ed7cfc2415f12ef1dd682a2e
[ "MIT" ]
null
null
null
exercise/exer4/problemGridworld.py
mebusy/RL_sutton2019
d3584d552002a247ed7cfc2415f12ef1dd682a2e
[ "MIT" ]
null
null
null
exercise/exer4/problemGridworld.py
mebusy/RL_sutton2019
d3584d552002a247ed7cfc2415f12ef1dd682a2e
[ "MIT" ]
null
null
null
import numpy as np import functools from collections import defaultdict N_STATE = 16 ACTION_UP = 0 ACTION_DOWN = 1 ACTION_RIGHT = 2 ACTION_LEFT = 3 class Problem(object): def __init__(self): pass def Initialization(self): self.V = np.zeros( N_STATE ) # np array self.PI = defaultdict...
24.132653
99
0.461734
72a723298615d03e70ab3f3c6e81f98d066d9162
419
py
Python
examples/discover.py
jzebaida/TikTok-Api
030fc08029edc037ed5474a063cb9a4e53a59fac
[ "MIT" ]
null
null
null
examples/discover.py
jzebaida/TikTok-Api
030fc08029edc037ed5474a063cb9a4e53a59fac
[ "MIT" ]
null
null
null
examples/discover.py
jzebaida/TikTok-Api
030fc08029edc037ed5474a063cb9a4e53a59fac
[ "MIT" ]
null
null
null
from TikTokApi import TikTokApi api = TikTokApi() # # Gets array of trending music objects # trendingMusic = api.discoverMusic() # # for tiktok in trendingMusic: # print(tiktok) # Gets array of trending challenges (hashtags) trendingChallenges = api.discoverHashtags() for tiktok in trendingChallenges: print...
20.95
46
0.73747
56356cb287485affcc73daaff8c02eaee54182f0
34,780
py
Python
test/test_packages/reportb/testWorkspace.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
test/test_packages/reportb/testWorkspace.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
test/test_packages/reportb/testWorkspace.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
import os import pickle import unittest import numpy as np import pygsti.protocols.estimate from pygsti.extras import drift from pygsti.modelpacks.legacy import stdQT_XYIMS from ..report.reportBaseCase import ReportBaseCase from ..testutils import compare_files, temp_files bLatex = bool('PYGSTI_LATEX_TESTING' in os....
48.171745
136
0.614549
0a168c3a14c4a1b76ba6469a049e5481fa7308e4
841
py
Python
p452_minimum_number_of_arrows_to_burst_balloons.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p452_minimum_number_of_arrows_to_burst_balloons.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
p452_minimum_number_of_arrows_to_burst_balloons.py
feigaochn/leetcode
abf0877fae02aa9c2549051f0b68df0ace952512
[ "MIT" ]
null
null
null
class Solution: def findMinArrowShots(self, points): """ :type points: List[List[int]] :rtype: int """ arrows = 0 heads = sorted(points) tails = sorted(points, key=lambda p: (p[1], p[0])) # print(heads) # print(tails) last_shot = None ...
25.484848
58
0.425684
85b90833ed5639f42d120d043b03b862ace340bb
1,103
py
Python
tests/utils_test/test_process_caller.py
TCord/paderbox
4b1212d19326fee48c45dd28cc912904573a81db
[ "MIT" ]
25
2019-12-21T21:10:08.000Z
2022-02-04T10:40:19.000Z
tests/utils_test/test_process_caller.py
TCord/paderbox
4b1212d19326fee48c45dd28cc912904573a81db
[ "MIT" ]
32
2019-12-21T21:48:24.000Z
2022-03-31T08:20:39.000Z
tests/utils_test/test_process_caller.py
TCord/paderbox
4b1212d19326fee48c45dd28cc912904573a81db
[ "MIT" ]
254
2019-12-16T08:15:08.000Z
2021-11-26T12:41:12.000Z
import sys import paderbox.utils.process_caller as pc import unittest class ProcessCallerTest(unittest.TestCase): def test_call_std(self): cmds = 5*['echo "Test"'] stdout, stderr, ret_codes = pc.run_processes(cmds) for out in stdout: if sys.platform.startswith("win"): ...
30.638889
58
0.56301
78dbbee326c7918529255d1e089c6ec4ff695781
3,593
py
Python
src/Rewriter/PerfTesting/Specific/make.py
wkl7227/fiat-crypto
ad5026fb98fec64db2fbe312c131e948ba24607c
[ "MIT" ]
491
2015-11-25T23:44:39.000Z
2022-03-29T17:31:21.000Z
src/Rewriter/PerfTesting/Specific/make.py
wkl7227/fiat-crypto
ad5026fb98fec64db2fbe312c131e948ba24607c
[ "MIT" ]
755
2016-02-02T14:03:05.000Z
2022-03-31T16:47:23.000Z
src/Rewriter/PerfTesting/Specific/make.py
wkl7227/fiat-crypto
ad5026fb98fec64db2fbe312c131e948ba24607c
[ "MIT" ]
117
2015-10-25T16:28:15.000Z
2022-02-08T23:01:09.000Z
#!/usr/bin/env python3 import sys, re, os SCRIPT_DIRECTORY = os.path.dirname(os.path.realpath(__file__)) GENERATED_DIRECTORY = os.path.join(SCRIPT_DIRECTORY, 'generated') EXTRACTION_DIRECTORY = os.path.realpath(os.path.join(SCRIPT_DIRECTORY, '..', '..', '..', 'ExtractionOCaml')) BITWIDTHS = ('32', '64') MKINDS = (('un...
46.064103
168
0.608962
6b1d64d90a76d9995cf2c50605c2193d23c14bef
970
py
Python
liBlog/blogs/migrations/0003_auto_20180503_1556.py
pylixm/liBlog
dcd3ff95161750c9680ac6ac418bee4ad8f2a350
[ "MIT" ]
7
2018-06-11T02:01:38.000Z
2019-08-15T03:25:19.000Z
liBlog/blogs/migrations/0003_auto_20180503_1556.py
pylixm/liBlog
dcd3ff95161750c9680ac6ac418bee4ad8f2a350
[ "MIT" ]
5
2020-02-12T00:49:26.000Z
2021-09-07T23:58:28.000Z
liBlog/blogs/migrations/0003_auto_20180503_1556.py
pylixm/liBlog
dcd3ff95161750c9680ac6ac418bee4ad8f2a350
[ "MIT" ]
1
2019-08-14T09:16:02.000Z
2019-08-14T09:16:02.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.11.5 on 2018-05-03 07:56 from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import mdeditor.fields class Migration(migrations.Migration): dependencies = [ ('blogs', '0002_auto_20180209_0939'), ...
29.393939
147
0.621649
fb75fafe69e86d2a5663135e6617d76136db7d22
980
py
Python
packages/fetchai/skills/simple_oracle/__init__.py
etherx-dev/agents-aea
6659920e3d092e049212f521153a9ab52ed2812a
[ "Apache-2.0" ]
1
2021-04-08T17:19:42.000Z
2021-04-08T17:19:42.000Z
packages/fetchai/skills/simple_oracle/__init__.py
etherx-dev/agents-aea
6659920e3d092e049212f521153a9ab52ed2812a
[ "Apache-2.0" ]
null
null
null
packages/fetchai/skills/simple_oracle/__init__.py
etherx-dev/agents-aea
6659920e3d092e049212f521153a9ab52ed2812a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # ------------------------------------------------------------------------------ # # Copyright 2018-2019 Fetch.AI Limited # # 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 ...
37.692308
80
0.614286
02dc148cb6b627b0af2cd714f83f040fccbe2ebd
2,909
py
Python
categories/all_test_sets.py
image72/browserscope
44a63558ee376704d996851099bc7703128201cc
[ "Apache-2.0" ]
22
2015-10-26T15:20:37.000Z
2022-03-11T06:38:17.000Z
categories/all_test_sets.py
image72/browserscope
44a63558ee376704d996851099bc7703128201cc
[ "Apache-2.0" ]
10
2016-01-22T18:46:19.000Z
2019-07-19T12:49:51.000Z
categories/all_test_sets.py
mcauer/browserscope
a9c0e1a250774f14689e06f93ad274d0b9d725e4
[ "Apache-2.0" ]
12
2015-10-17T09:40:44.000Z
2019-06-08T19:54:36.000Z
#!/usr/bin/python2.5 # # Copyright 2009 Google 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 ...
29.989691
78
0.757992
45157ce04b151595da535921172adf5c444013d7
396
py
Python
platyplus/wsgi.py
plmercereau/platyplus-api
e883e6a3a092252af628cd4637cae6eeb826b083
[ "MIT" ]
null
null
null
platyplus/wsgi.py
plmercereau/platyplus-api
e883e6a3a092252af628cd4637cae6eeb826b083
[ "MIT" ]
null
null
null
platyplus/wsgi.py
plmercereau/platyplus-api
e883e6a3a092252af628cd4637cae6eeb826b083
[ "MIT" ]
null
null
null
""" WSGI config for hackernews 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.294118
78
0.787879
7075d871e8abe2b61b8f64c4527fc18db4698de1
1,310
py
Python
week1/opensearch.py
sandeepionic/search_with_machine_learning_course
ff5bd8b1ff35a5c39cc27c36f923b6a8b182ef0e
[ "Apache-2.0" ]
null
null
null
week1/opensearch.py
sandeepionic/search_with_machine_learning_course
ff5bd8b1ff35a5c39cc27c36f923b6a8b182ef0e
[ "Apache-2.0" ]
null
null
null
week1/opensearch.py
sandeepionic/search_with_machine_learning_course
ff5bd8b1ff35a5c39cc27c36f923b6a8b182ef0e
[ "Apache-2.0" ]
null
null
null
from flask import g, current_app from opensearchpy import OpenSearch # Create an OpenSearch client instance and put it into Flask shared space for use by the application def get_opensearch(): if 'opensearch' not in g: host = 'localhost' port = 9200 auth = ('admin', 'admin') # For testing o...
42.258065
122
0.641221
deb21814d679eef4336bc113955bd326290e4b67
285
py
Python
Runner Example/Runner.py
aaraid/TestingAutomation
c9162bf1dc4b481a71813cb15dadb5a0fe1b7ed9
[ "BSL-1.0" ]
null
null
null
Runner Example/Runner.py
aaraid/TestingAutomation
c9162bf1dc4b481a71813cb15dadb5a0fe1b7ed9
[ "BSL-1.0" ]
null
null
null
Runner Example/Runner.py
aaraid/TestingAutomation
c9162bf1dc4b481a71813cb15dadb5a0fe1b7ed9
[ "BSL-1.0" ]
null
null
null
import sys from Functions import * class CN_01_AdvSearch: BrowserSetup('https://github.com/') SearchRepository('react') SearchRefinement('JavaScript', '>45', '>50', 'bsl-1.0') CheckResult('1 repository result', 'mvoloskov/decider') PrintReadMe(300) TearDown()
25.909091
59
0.687719
b00682062b6a9b32b73190482f12c49b2e0bc041
1,433
py
Python
var/spack/repos/builtin/packages/http-get/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
null
null
null
var/spack/repos/builtin/packages/http-get/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
8
2021-11-09T20:28:40.000Z
2022-03-15T03:26:33.000Z
var/spack/repos/builtin/packages/http-get/package.py
jeanbez/spack
f4e51ce8f366c85bf5aa0eafe078677b42dae1ba
[ "ECL-2.0", "Apache-2.0", "MIT-0", "MIT" ]
2
2019-02-08T20:37:20.000Z
2019-03-31T15:19:26.000Z
# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other # Spack Project Developers. See the top-level COPYRIGHT file for details. # # SPDX-License-Identifier: (Apache-2.0 OR MIT) import datetime from spack.package import * class HttpGet(MakefilePackage): """Http_get fetches an HTTP URL and dum...
38.72973
100
0.667132
787a19a7d792c8a59c802d88f0eafb192e0cdc9d
24,682
py
Python
dipy/tracking/metrics.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
1
2016-09-08T19:23:51.000Z
2016-09-08T19:23:51.000Z
dipy/tracking/metrics.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
null
null
null
dipy/tracking/metrics.py
JohnGriffiths/dipy
5fb38e9b77547cdaf5eb140730444535733ae01d
[ "BSD-3-Clause" ]
null
null
null
''' Metrics for tracks, where tracks are arrays of points ''' from __future__ import division, print_function, absolute_import from ..utils.six.moves import xrange import numpy as np from scipy.interpolate import splprep, splev def winding(xyz): '''Total turning angle projected. Project space curve to best...
27.577654
89
0.580585
c28d446dec26cb43a88d8fe74d25e187d0378992
2,801
py
Python
kolibri/core/auth/test/test_deprovisioning.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
2
2021-05-13T10:20:46.000Z
2021-11-15T12:31:03.000Z
kolibri/core/auth/test/test_deprovisioning.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
3
2021-03-10T08:57:45.000Z
2021-09-02T07:03:34.000Z
kolibri/core/auth/test/test_deprovisioning.py
priyanka-choubey/kolibri
4070dc158634ab47c6e127768f0aed7548c0a182
[ "MIT" ]
1
2019-12-04T12:26:16.000Z
2019-12-04T12:26:16.000Z
from __future__ import absolute_import from __future__ import print_function from __future__ import unicode_literals import uuid import mock from django.core.management import call_command from django.test import TestCase from mock import patch from .. import models as auth_models from ..management.commands import d...
38.902778
87
0.707604
469d1918416e3edc09366643e63ab89174492bc4
496
py
Python
samples/corsica_api.py
joshmgrant/svp
fdf64445d8038b4df5ab2181eb6306d56e3b5162
[ "MIT" ]
null
null
null
samples/corsica_api.py
joshmgrant/svp
fdf64445d8038b4df5ab2181eb6306d56e3b5162
[ "MIT" ]
null
null
null
samples/corsica_api.py
joshmgrant/svp
fdf64445d8038b4df5ab2181eb6306d56e3b5162
[ "MIT" ]
null
null
null
from svp.api_object import API from svp.api_object import APIResponse class CorsicaAPI(API): def __init__(self): super().__init__("https://corsica-api-project.herokuapp.com/corsica") def default_normal(self): endpoint = "/normal" return self.get(endpoint) def default_exponentia...
19.84
77
0.659274
f23e8f976d86056879023899280175cfbdbe451e
851
py
Python
fas2ipa/utils.py
nphilipp/fas2ipa
dc72c4692b716a1d955c593c068f8c9ba936445e
[ "MIT" ]
null
null
null
fas2ipa/utils.py
nphilipp/fas2ipa
dc72c4692b716a1d955c593c068f8c9ba936445e
[ "MIT" ]
null
null
null
fas2ipa/utils.py
nphilipp/fas2ipa
dc72c4692b716a1d955c593c068f8c9ba936445e
[ "MIT" ]
null
null
null
import random import click # def chunks(data, n): # return [data[x : x + n] for x in range(0, len(data), n)] def re_auth(config, instances): click.echo("Re-authenticating") for ipa in instances: ipa.logout() ipa.login(config["ipa"]["username"], config["ipa"]["password"]) class ObjectM...
25.029412
72
0.618096
40c0ba4409a2d8c6dd7367392ad550d1dd190f52
1,708
py
Python
whatsapp_redirect/__manifest__.py
Yousif-Mobark/odoo11_cutom
35a09266a1d4d74569316886019c11ce41e9216b
[ "Apache-2.0" ]
null
null
null
whatsapp_redirect/__manifest__.py
Yousif-Mobark/odoo11_cutom
35a09266a1d4d74569316886019c11ce41e9216b
[ "Apache-2.0" ]
null
null
null
whatsapp_redirect/__manifest__.py
Yousif-Mobark/odoo11_cutom
35a09266a1d4d74569316886019c11ce41e9216b
[ "Apache-2.0" ]
1
2020-04-18T02:42:54.000Z
2020-04-18T02:42:54.000Z
# -*- coding: utf-8 -*- ################################################################################### # # Cybrosys Technologies Pvt. Ltd. # Copyright (C) 2018-TODAY Cybrosys Technologies (<https://www.cybrosys.com>). # Author: Nishad (<https://www.cybrosys.com>) # # This program is free software: you ...
37.955556
83
0.589578
75df0a854ed1f0562ac16a76404ee54057095a76
2,927
py
Python
py3status/modules/twitch_streaming.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/twitch_streaming.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
py3status/modules/twitch_streaming.py
laxd/py3status
749e31419e65b5133b9c6b4a4ef4a4904d5cfe91
[ "BSD-3-Clause" ]
null
null
null
""" Checks if a Twitch streamer is online. Checks if a streamer is online using the Twitch Kraken API to see if a channel is currently streaming or not. Configuration parameters: cache_timeout: how often we refresh this module in seconds (default 10) format: Display format when online (default...
30.810526
84
0.634438
3518f1900b2b9fffdcbc7aee38192b2f3b8c5e69
91
py
Python
Harvard's CS50/overflow.py
RichelleT/Python
87aff2392964ca5630ffa44225f9e13d040cdd91
[ "MIT" ]
1
2019-03-04T05:43:35.000Z
2019-03-04T05:43:35.000Z
Harvard's CS50/overflow.py
RichelleT/Python
87aff2392964ca5630ffa44225f9e13d040cdd91
[ "MIT" ]
null
null
null
Harvard's CS50/overflow.py
RichelleT/Python
87aff2392964ca5630ffa44225f9e13d040cdd91
[ "MIT" ]
null
null
null
from time import sleep # interactively double i i = 1 while True: print(i) i *= 2
11.375
24
0.637363
fba9866302d9841a597205dcbea0f0c8f406707f
3,295
py
Python
homeassistant/components/ted5000/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
homeassistant/components/ted5000/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
3
2021-09-08T03:34:57.000Z
2022-03-12T00:59:48.000Z
homeassistant/components/ted5000/sensor.py
VirtualL/home-assistant
301829d02be8d865ab46c8901ac046d060849320
[ "Apache-2.0" ]
null
null
null
"""Support gathering ted500 information.""" import logging from datetime import timedelta import requests import voluptuous as vol from homeassistant.components.sensor import PLATFORM_SCHEMA from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PORT, POWER_WATT) from homeassistant.helpers import config_val...
28.903509
71
0.62519
be8320f4cc34aaa93a80843f902f3cebb26d16c1
147
py
Python
pyspider/database/custom/__init__.py
icamelxiehui/webspider
b04ee41345b4c1ccd2d144cd4aeebbdfc6dfa625
[ "Apache-2.0" ]
null
null
null
pyspider/database/custom/__init__.py
icamelxiehui/webspider
b04ee41345b4c1ccd2d144cd4aeebbdfc6dfa625
[ "Apache-2.0" ]
null
null
null
pyspider/database/custom/__init__.py
icamelxiehui/webspider
b04ee41345b4c1ccd2d144cd4aeebbdfc6dfa625
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- """ File Name: __init__.py Author: xiehui mail: 372623335@qq.com Created Time: 五 7/28 11:37:01 2017 """
16.333333
35
0.646259
a499cccb6379dd09d73c287d0fe19c746118a5eb
9,232
py
Python
pytorchltr/datasets/svmrank/svmrank.py
rjagerman/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
37
2020-05-24T13:40:52.000Z
2022-03-17T09:00:52.000Z
pytorchltr/datasets/svmrank/svmrank.py
SuperXiang/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
22
2020-05-25T11:35:38.000Z
2021-03-20T04:08:07.000Z
pytorchltr/datasets/svmrank/svmrank.py
SuperXiang/pytorchltr
625416e1e7d21fb2bbc485914704fc2e55274556
[ "MIT" ]
4
2020-10-16T13:14:16.000Z
2022-01-31T17:18:20.000Z
"""Data loading for SVMRank-style data sets.""" from typing import Callable from typing import List from typing import Optional from typing import Union import numpy as _np import torch as _torch import logging from scipy.sparse import coo_matrix as _coo_matrix from sklearn.datasets import load_svmlight_file as _load...
37.076305
101
0.552643
01e9bcfc5fb7992b6b1fa6f04955f7a2ff291d42
4,188
py
Python
src/cern/resource/package.py
Eothred/pymad
f560239325452adbb1d37b6408f275ac03674069
[ "ECL-2.0", "Apache-2.0" ]
3
2015-01-21T07:36:11.000Z
2020-05-29T12:18:33.000Z
src/cern/resource/package.py
Eothred/pymad
f560239325452adbb1d37b6408f275ac03674069
[ "ECL-2.0", "Apache-2.0" ]
2
2015-03-22T02:24:57.000Z
2015-10-15T15:50:51.000Z
src/cern/resource/package.py
Eothred/pymad
f560239325452adbb1d37b6408f275ac03674069
[ "ECL-2.0", "Apache-2.0" ]
1
2017-02-08T16:55:01.000Z
2017-02-08T16:55:01.000Z
# encoding: utf-8 #---------------------------------------- # package.py by Thomas Gläßle # # To the extent possible under law, the person who associated CC0 with # package.py has waived all copyright and related or neighboring rights # to package.py. # # You should have received a copy of the CC0 legalcode along wit...
32.71875
79
0.617479
96cb41e2d8845b89a68c2bb7c3cf7118a9d81a41
23,662
py
Python
modules/winrm/tests/conftest.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
modules/winrm/tests/conftest.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
modules/winrm/tests/conftest.py
frankyrumple/smc
975945ddcff754dd95f2e1a8bd4bf6e43a0f91f6
[ "MIT" ]
null
null
null
import os import json import uuid import xmltodict from pytest import skip, fixture from mock import patch open_shell_request = """\ <?xml version="1.0" encoding="utf-8"?> <env:Envelope xmlns:x="http://schemas.xmlsoap.org/ws/2004/09/transfer" xmlns:w="http://schemas.dmtf.org/wbem/wsman/1/wsman.xsd" xmlns:cfg="http://...
69.390029
4,616
0.759234
ce229b80ea8ecfde3a7e23c5eee95b75757d6b7f
4,502
py
Python
qiskit/aqua/components/oracles/custom_circuit_oracle.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
1
2020-08-01T21:07:54.000Z
2020-08-01T21:07:54.000Z
qiskit/aqua/components/oracles/custom_circuit_oracle.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
qiskit/aqua/components/oracles/custom_circuit_oracle.py
tsura-crisaldo/qiskit-aqua
2b4a70bb24a9170c3735124536dce1d7ffe4ed67
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2019, 2020 # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any ...
41.302752
98
0.703021
023ae0f652172c9c777657f41032c6ee2f31356d
506
py
Python
poa-text-analyzer/domain/sentence.py
zzwlstarby/public-opinion-analysis
c65503e2f7481deecfdb11eae40ef57cc7167cbb
[ "MIT" ]
31
2017-12-04T09:30:04.000Z
2022-01-06T09:28:32.000Z
poa-text-analyzer/domain/sentence.py
zzwlstarby/public-opinion-analysis
c65503e2f7481deecfdb11eae40ef57cc7167cbb
[ "MIT" ]
1
2021-01-16T07:59:07.000Z
2021-03-12T14:10:41.000Z
poa-text-analyzer/domain/sentence.py
galaxyyao/public-opinion-analysis
c65503e2f7481deecfdb11eae40ef57cc7167cbb
[ "MIT" ]
22
2017-12-04T09:30:04.000Z
2022-03-04T03:36:32.000Z
# encoding: utf-8 import jieba import codecs class Sentence: SCORE_KEYWORD_NOT_IN_SENTENCE = 0.1 SCORE_KEYWORD_IN_SENTENCE = 1 def __init__(self, article_id, raw_sentence): self.article_id = article_id self.raw_sentence = raw_sentence self.negative_word_count = 0 self.nega...
26.631579
49
0.671937
feb37bd8299824f7ceaef00cfe989ccf05f727eb
3,200
py
Python
tools/perf/contrib/cluster_telemetry/multipage_skpicture_printer.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/multipage_skpicture_printer.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
tools/perf/contrib/cluster_telemetry/multipage_skpicture_printer.py
metux/chromium-deb
3c08e9b89a1b6f95f103a61ff4f528dbcd57fc42
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
# Copyright 2016 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from core import perf_benchmark from contrib.cluster_telemetry import ct_benchmarks_util from contrib.cluster_telemetry import page_set from contrib.cluster...
32.989691
79
0.731563
be9f386e56d75d920afbe14889860d88d27c21eb
32,617
py
Python
osf_tests/test_registrations.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
osf_tests/test_registrations.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
osf_tests/test_registrations.py
sergiy-neurohub/osf.io
bd12fdd4efc2eb58c0a3c805c33aaeb8672f0293
[ "Apache-2.0" ]
null
null
null
import mock import pytest import datetime from addons.wiki.models import WikiVersion from django.core.exceptions import ValidationError from django.utils import timezone from framework.auth.core import Auth from framework.exceptions import PermissionsError from osf.models import Node, Registration, Sanction, Registrat...
39.29759
175
0.679738
6d6b5ace28f7a44ad2acfaefd8cecaacf1e42385
393
py
Python
pydsa/__init__.py
pydsa/pydsa
20410299bfeec2acf803c2185bf0d5c21be43dea
[ "BSD-3-Clause" ]
126
2016-02-09T18:31:16.000Z
2021-11-02T09:24:38.000Z
pydsa/__init__.py
pydsa/pydsa
20410299bfeec2acf803c2185bf0d5c21be43dea
[ "BSD-3-Clause" ]
104
2016-03-01T12:12:56.000Z
2019-04-30T16:13:04.000Z
pydsa/__init__.py
pydsa/pydsa
20410299bfeec2acf803c2185bf0d5c21be43dea
[ "BSD-3-Clause" ]
124
2016-02-11T17:59:39.000Z
2020-01-11T21:55:54.000Z
from pydsa.searching.binary_search import binary_search from pydsa.sorting.bubble_sort import bubble_sort from pydsa.sorting.heap_sort import heap_sort from .bfs import bfs from .binary_tree import BTNode from .bst import BSTNode from .euclid import gcd, extended_euclid from .gnome_sort import gnome_sort from .mod_inve...
32.75
55
0.847328
f06a37384473d82aa4c44a2b4803e81cc4ce8d3c
1,995
py
Python
Python3/542.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
854
2018-11-09T08:06:16.000Z
2022-03-31T06:05:53.000Z
Python3/542.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
29
2019-06-02T05:02:25.000Z
2021-11-15T04:09:37.000Z
Python3/542.py
rakhi2001/ecom7
73790d44605fbd51e8f7e804b9808e364fcfc680
[ "MIT" ]
347
2018-12-23T01:57:37.000Z
2022-03-12T14:51:21.000Z
__________________________________________________________________________________________________ sample 556 ms submission class Solution: def updateMatrix(self, matrix: List[List[int]]) -> List[List[int]]: def connected(i, j): if (i == 0 or matrix[i-1][j] >= level) and (j == 0 or matrix[i][j-1...
39.9
175
0.515288
9bf182010b7da1ac531eb2ea066c10f605579839
166
py
Python
api_backend_server/web_app/app.py
measure-your-life-squad/measure-your-life
27cf5a1d02db7b89cdce4096b6541c7d00f64b2a
[ "MIT" ]
null
null
null
api_backend_server/web_app/app.py
measure-your-life-squad/measure-your-life
27cf5a1d02db7b89cdce4096b6541c7d00f64b2a
[ "MIT" ]
44
2020-03-01T20:32:35.000Z
2020-06-19T20:37:22.000Z
api_backend_server/web_app/app.py
measure-your-life-squad/measure-your-life
27cf5a1d02db7b89cdce4096b6541c7d00f64b2a
[ "MIT" ]
2
2020-02-27T17:09:35.000Z
2020-05-15T15:38:44.000Z
from server import app import database if __name__ == "__main__": database.initialize_db(app.app) app.run(host="0.0.0.0", debug=True, use_reloader=False)
16.6
59
0.710843
bf907fce4fa64fcfe6d834c2d6bd99ecbd2ca3a5
376
py
Python
profiles_api/admin.py
3ugi/profiles-rest-api
8131e702ec7d9c1afe8e7fcf2ca3092fd6927945
[ "MIT" ]
null
null
null
profiles_api/admin.py
3ugi/profiles-rest-api
8131e702ec7d9c1afe8e7fcf2ca3092fd6927945
[ "MIT" ]
null
null
null
profiles_api/admin.py
3ugi/profiles-rest-api
8131e702ec7d9c1afe8e7fcf2ca3092fd6927945
[ "MIT" ]
null
null
null
from django.contrib import admin # 27. Enable django admin (Register newly created model with django admin to display this model in admin interface) from profiles_api import models # 27. Enable django admin (Register model to be visible in admin site) admin.site.register(models.UserProfile) # 61. Add profile feed mod...
37.6
115
0.805851
e240e007607565b6e180f6efb4d229e592a65f39
4,717
py
Python
cargan/data/collate.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
72
2021-10-20T01:17:54.000Z
2022-02-22T07:40:35.000Z
cargan/data/collate.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
7
2021-10-21T21:44:00.000Z
2022-03-17T18:24:42.000Z
cargan/data/collate.py
mdc202002/cargan
5bfb44a1d8c2de8126e8053bed6078ad2e20819c
[ "MIT" ]
16
2021-10-20T02:07:46.000Z
2022-03-16T08:18:37.000Z
import torch import cargan ############################################################################### # Collate function ############################################################################### def cargan_collate(batch, partition='train'): """Collate batch for training cargan""" features, audio...
33.21831
82
0.538054
a1117df9b79c0996a1cd8533f34d23fde8f5d0ac
18,568
py
Python
src/build/__init__.py
hauntsaninja/build
06c2ebce7aafa824478732b8af8747b5d0f4e6a8
[ "MIT" ]
null
null
null
src/build/__init__.py
hauntsaninja/build
06c2ebce7aafa824478732b8af8747b5d0f4e6a8
[ "MIT" ]
null
null
null
src/build/__init__.py
hauntsaninja/build
06c2ebce7aafa824478732b8af8747b5d0f4e6a8
[ "MIT" ]
null
null
null
# SPDX-License-Identifier: MIT """ build - A simple, correct PEP 517 build frontend """ __version__ = '0.7.0' import contextlib import difflib import logging import os import re import subprocess import sys import textwrap import types import warnings import zipfile from collections import OrderedDict from typing im...
36.054369
122
0.652251
a4f914d1449ad1ad4fd38938fe81591a703d6120
7,070
py
Python
youtube_dl/extractor/viidea.py
LyleH/youtube-dl
7564b09ef5c09454908f78cb91c3bd2d6daacac5
[ "Unlicense" ]
10
2020-05-29T03:20:03.000Z
2022-03-29T01:05:20.000Z
youtube_dl/extractor/viidea.py
huyangfeng/youtobedl
7b0d1c28597bd38567e5b4e853f669a5a601c6e8
[ "Unlicense" ]
1
2016-05-18T01:27:28.000Z
2016-05-18T05:00:36.000Z
PythonSamples/library/files/lib/python2.7/site-packages/youtube_dl/extractor/viidea.py
jianglei12138/python2.7
280aa96d8cac98c03ca8c8ed71541f7ff7817055
[ "PSF-2.0" ]
9
2020-05-29T03:21:02.000Z
2021-04-14T03:26:05.000Z
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import ( compat_urlparse, compat_str, ) from ..utils import ( parse_duration, js_to_json, parse_iso8601, ) class ViideaIE(InfoExtractor): _VALID_URL = r'''(?x)https?://(?:www\.)?(?: ...
36.443299
109
0.515559
a53d4bc1e46b9327336c915433ee57f8182c3b4c
4,907
py
Python
bigmler/export/dispatcher.py
mmerce/bigmler
e411bb292a3c8db4cac6754b2b744ffe27fdb47a
[ "Apache-2.0" ]
null
null
null
bigmler/export/dispatcher.py
mmerce/bigmler
e411bb292a3c8db4cac6754b2b744ffe27fdb47a
[ "Apache-2.0" ]
null
null
null
bigmler/export/dispatcher.py
mmerce/bigmler
e411bb292a3c8db4cac6754b2b744ffe27fdb47a
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # Copyright 2017-2020 BigML # # 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 ...
32.496689
79
0.671897
43ecb2928b8ecb24712a266d1b2be2841e05e7ed
662
py
Python
pharmproject/users/tests/test_urls.py
as6338353/site2
d0cebd206a3f9fafffb52a01532ae67c2e4247bd
[ "MIT" ]
null
null
null
pharmproject/users/tests/test_urls.py
as6338353/site2
d0cebd206a3f9fafffb52a01532ae67c2e4247bd
[ "MIT" ]
null
null
null
pharmproject/users/tests/test_urls.py
as6338353/site2
d0cebd206a3f9fafffb52a01532ae67c2e4247bd
[ "MIT" ]
null
null
null
import pytest from django.urls import resolve, reverse from pharmproject.users.models import User pytestmark = pytest.mark.django_db def test_detail(user: User): assert ( reverse("users:detail", kwargs={"username": user.username}) == f"/users/{user.username}/" ) assert resolve(f"/users/{...
26.48
74
0.678248
736692da773cb56f3c273981c5cacf57c28f91cb
2,863
py
Python
bookmarks/images/views.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
null
null
null
bookmarks/images/views.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
13
2020-02-12T00:14:20.000Z
2022-02-10T08:46:42.000Z
bookmarks/images/views.py
mp5maker/django
a2d38e2e9973e755afce1bd0ccb17e58f3db7e33
[ "MIT" ]
null
null
null
from django.shortcuts import render, redirect, get_object_or_404 from django.contrib.auth.decorators import login_required from django.views.decorators.http import require_POST from django.contrib import messages from django.http import JsonResponse, HttpResponse from django.core.paginator import Paginator, EmptyP...
30.457447
85
0.664687
2c0d6da3baed6a937e6e23d46965445532c7d954
1,646
py
Python
src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py
fhoering/autorest
b36c77ebb6a5c92aca72eea0894a683506af5817
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py
fhoering/autorest
b36c77ebb6a5c92aca72eea0894a683506af5817
[ "MIT" ]
null
null
null
src/generator/AutoRest.Python.Tests/Expected/AcceptanceTests/BodyComplex/autorestcomplextestservice/models/salmon.py
fhoering/autorest
b36c77ebb6a5c92aca72eea0894a683506af5817
[ "MIT" ]
null
null
null
# 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 ...
31.653846
88
0.561361