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
7953453e9cd7dc9fc203cac750bddd82b5cb145d
82,725
py
Python
Engine/Extras/Maya_AnimationRiggingTools/ArtToolsOSX/MayaTools/General/Scripts/ART_importMotion.py
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
1
2022-01-29T18:36:12.000Z
2022-01-29T18:36:12.000Z
Engine/Extras/Maya_AnimationRiggingTools/ArtToolsOSX/MayaTools/General/Scripts/ART_importMotion.py
windystrife/UnrealEngine_NVIDIAGameWork
b50e6338a7c5b26374d66306ebc7807541ff815e
[ "MIT" ]
2
2015-06-21T17:38:11.000Z
2015-06-22T20:54:42.000Z
Engine/Extras/Maya_AnimationRiggingTools/ArtToolsOSX/MayaTools/General/Scripts/ART_importMotion.py
PopCap/GameIdea
201e1df50b2bc99afc079ce326aa0a44b178a391
[ "BSD-2-Clause" ]
1
2021-04-27T08:48:33.000Z
2021-04-27T08:48:33.000Z
import maya.cmds as cmds import maya.mel as mel from functools import partial import os, cPickle import math class ImportMotionUI(): def __init__(self): #create class variables self.widgets = {} #find out which project we are in references = cmds.ls(type = "reference") for re...
82,725
82,725
0.473388
7953463774785daa6d20c22092ea902dcf1af37d
825
py
Python
src/test/python/test_servo.py
SmartDogHouse/SmartDogHouse-Software
00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2
[ "MIT" ]
4
2021-05-17T10:42:48.000Z
2021-08-09T15:51:28.000Z
src/test/python/test_servo.py
SmartDogHouse/SmartDogHouse-Software
00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2
[ "MIT" ]
148
2021-05-17T10:03:52.000Z
2021-07-25T15:44:10.000Z
src/test/python/test_servo.py
SmartDogHouse/SmartDogHouse-Software
00caf23e3fe8dae2d30c339f801d7c1a7ddca0c2
[ "MIT" ]
1
2021-06-27T17:25:20.000Z
2021-06-27T17:25:20.000Z
import unittest from src.main.python.servo import Servo class TestServo(unittest.TestCase): servo = Servo(99) def test_create(self): s2 = Servo(34) self.assertEqual(self.servo.get_angle(), s2.get_angle()) def test_angle(self): s3 = Servo(3, range_min=30, range_max=130, frequenc...
25
64
0.630303
7953463e6242e16dea715f8815d795b86f30ac37
24,953
py
Python
efficientdet/inference.py
vincent7293/automl
34279e956ec30877beaec0fc73acd5071ad0a8fd
[ "Apache-2.0" ]
null
null
null
efficientdet/inference.py
vincent7293/automl
34279e956ec30877beaec0fc73acd5071ad0a8fd
[ "Apache-2.0" ]
null
null
null
efficientdet/inference.py
vincent7293/automl
34279e956ec30877beaec0fc73acd5071ad0a8fd
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google Research. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law...
37.187779
119
0.658999
795347be61aeb59ccc4ff862b0c0d71efc5e0dfb
2,387
py
Python
setup.py
dmontaner/pandas_save_profiler
2bda6174a901caaeb30046ab5ebac9d78308ce9a
[ "MIT" ]
null
null
null
setup.py
dmontaner/pandas_save_profiler
2bda6174a901caaeb30046ab5ebac9d78308ce9a
[ "MIT" ]
null
null
null
setup.py
dmontaner/pandas_save_profiler
2bda6174a901caaeb30046ab5ebac9d78308ce9a
[ "MIT" ]
null
null
null
import os from setuptools import setup here = os.path.abspath(os.path.dirname(__file__)) with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: long_description = f.read() with open(os.path.join(here, 'src', 'pandas_save_profiler', '__init__.py'), encoding='utf-8') as f: init_lines = f.readlines()...
36.723077
105
0.623377
7953480ae0a491a9c97c11777c966a853bcb7580
1,501
py
Python
appengine/findit/infra_api_clients/isolate/isolate_util.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
2
2021-04-13T21:22:18.000Z
2021-09-07T02:11:57.000Z
appengine/findit/infra_api_clients/isolate/isolate_util.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
21
2020-09-06T02:41:05.000Z
2022-03-02T04:40:01.000Z
appengine/findit/infra_api_clients/isolate/isolate_util.py
allaparthi/monorail
e18645fc1b952a5a6ff5f06e0c740d75f1904473
[ "BSD-3-Clause" ]
null
null
null
# Copyright 2018 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. """Client library to interact with isolate API.""" import base64 import json import zlib from infra_api_clients import http_client_util def FetchFileFromI...
34.113636
76
0.734843
7953487d46fb5d2ae1081d6b9e98d1f8e9e90990
27,653
py
Python
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations_async/_express_route_ports_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2019-05-17T21:24:53.000Z
2020-02-12T11:13:42.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations_async/_express_route_ports_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
15
2019-07-12T18:18:04.000Z
2019-07-25T20:55:51.000Z
sdk/network/azure-mgmt-network/azure/mgmt/network/v2018_12_01/aio/operations_async/_express_route_ports_operations_async.py
LianwMS/azure-sdk-for-python
612d7bca9de86ee1bd1fa59291d7bf897ba9213f
[ "MIT" ]
2
2020-05-21T22:51:22.000Z
2020-05-26T20:53:01.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 ...
48.599297
203
0.67103
795348a3139d9167a31a49489ab19707a24593b5
705
py
Python
cone_detector/bluetooth_communication/bluetooth_client.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
cone_detector/bluetooth_communication/bluetooth_client.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
cone_detector/bluetooth_communication/bluetooth_client.py
Art31/trekking-pro-cefetrj
37ab58759b42978cbd8d950bd75c487e1292cb2b
[ "Apache-1.1" ]
null
null
null
# --------------------------------------------------------------------------- # # Title: Bluetooth communication client script # Author: Arthur Telles # Date: 02/07/2018 (DD/MM/YYYY) # Description: This function opens up a port for bluetooth communication # and send a message to the server. # -------------------------...
30.652174
79
0.560284
795348d900c86491b7f8c25521aad6105ade0c0e
14,602
py
Python
tests/components/synology_dsm/test_config_flow.py
thomasloven/home-assistant
90fbb150e75f564045fb598c13bc23cb92e9f0da
[ "Apache-2.0" ]
2
2022-01-24T18:59:56.000Z
2022-02-04T22:12:48.000Z
tests/components/synology_dsm/test_config_flow.py
thomasloven/home-assistant
90fbb150e75f564045fb598c13bc23cb92e9f0da
[ "Apache-2.0" ]
null
null
null
tests/components/synology_dsm/test_config_flow.py
thomasloven/home-assistant
90fbb150e75f564045fb598c13bc23cb92e9f0da
[ "Apache-2.0" ]
null
null
null
"""Tests for the Synology DSM config flow.""" import logging from unittest.mock import MagicMock, Mock, patch import pytest from synology_dsm.exceptions import ( SynologyDSMException, SynologyDSMLogin2SAFailedException, SynologyDSMLogin2SARequiredException, SynologyDSMLoginInvalidException, Synolog...
36.873737
101
0.683673
79534994cbe8034b70020631d35d06d2c05c928d
16,861
py
Python
plugins/modules/oracle_user.py
blaf-cgi/ansible-oracle-modules
37905c6ad91808a96f0085c9c1069e166f2e17b4
[ "MIT" ]
null
null
null
plugins/modules/oracle_user.py
blaf-cgi/ansible-oracle-modules
37905c6ad91808a96f0085c9c1069e166f2e17b4
[ "MIT" ]
null
null
null
plugins/modules/oracle_user.py
blaf-cgi/ansible-oracle-modules
37905c6ad91808a96f0085c9c1069e166f2e17b4
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # Copyright: (c) 2014 Mikael Sandström <oravirt@gmail.com> # Copyright: (c) 2021, Ari Stark <ari.stark@netcourrier.com> # 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_functio...
39.672941
129
0.594864
795349bef189292795edc182cb3031ca8fa26be4
1,911
py
Python
cli/check.py
sysdiglabs/syscli
f72f476f7b555ce8be4d1b6d6ce21c53400aeb08
[ "Apache-2.0" ]
null
null
null
cli/check.py
sysdiglabs/syscli
f72f476f7b555ce8be4d1b6d6ce21c53400aeb08
[ "Apache-2.0" ]
3
2019-01-30T12:32:13.000Z
2019-01-30T12:37:38.000Z
cli/check.py
sysdiglabs/syscli
f72f476f7b555ce8be4d1b6d6ce21c53400aeb08
[ "Apache-2.0" ]
2
2019-01-21T11:05:09.000Z
2021-04-19T21:57:57.000Z
# Copyright 2018 Sysdig # # 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 writ...
36.75
118
0.70225
795349f704b71b651d80f5faaaa1f1976e164ccc
1,089
py
Python
convert/widgets.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
1
2015-07-15T07:40:19.000Z
2015-07-15T07:40:19.000Z
convert/widgets.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
null
null
null
convert/widgets.py
aino/aino-convert
f3bd773f02a9645c75bfbd773e747dd8dc6e08f4
[ "BSD-3-Clause" ]
null
null
null
from django import forms from django.forms.util import flatatt from django.utils.safestring import mark_safe from django.utils.encoding import force_unicode from base import MediaFile class AdminMediaFileWidget(forms.TextInput): """ This is just the core of a widget, how it get the actual imput value...
36.3
79
0.645546
79534a10dc30dfdde4c81c528df02c72113a0d37
256
py
Python
gamefixes/397540.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
54
2019-06-21T22:03:45.000Z
2022-03-20T19:24:36.000Z
gamefixes/397540.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
21
2020-06-13T22:49:18.000Z
2022-03-20T08:28:39.000Z
gamefixes/397540.py
manueliglesiasgarcia/protonfixes
d676b6bf39f6e4268b4791d3d71c6d74e2127121
[ "BSD-2-Clause" ]
53
2019-09-11T15:23:25.000Z
2022-03-20T08:18:49.000Z
""" Game fix for Borderlands 3 """ #pylint: disable=C0103 from protonfixes import util def main(): """ Borderlands 3 vcrun2019 fix """ # Fixes the startup process. util.protontricks('vcrun2019_ge') util.protontricks('d3dcompiler_47')
19.692308
39
0.6875
79534a308f6182969b48d37463b5faab47b3623f
4,355
py
Python
artificial_detection/utils.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
12
2021-11-15T08:59:46.000Z
2022-03-06T15:42:24.000Z
artificial_detection/utils.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
2
2021-11-14T15:50:00.000Z
2021-11-20T12:17:29.000Z
artificial_detection/utils.py
MaratSaidov/artificial-text-detection
74b2100294232ec361db84fdc3a24fdeba1fce49
[ "MIT" ]
null
null
null
import os import pickle import random import zlib from os import path from typing import List, Optional import pandas as pd import torch from transformers import DistilBertTokenizerFast import wandb from artificial_detection.data.data import BinaryDataset, TextDetectionDataset class MockDataset: """ Mock da...
31.107143
118
0.676005
79534b01e98eb8b9e3bb04bf5095a778e1671674
10,862
py
Python
genqr.py
mamewotoko/podcast_spider
1e505413ccbb0a7b6c33048e25a42bce55624974
[ "Apache-2.0" ]
null
null
null
genqr.py
mamewotoko/podcast_spider
1e505413ccbb0a7b6c33048e25a42bce55624974
[ "Apache-2.0" ]
null
null
null
genqr.py
mamewotoko/podcast_spider
1e505413ccbb0a7b6c33048e25a42bce55624974
[ "Apache-2.0" ]
null
null
null
# coding:utf-8 data = [ { "station": "Tokyo FM", "data": [{"url": "http://www.tfm.co.jp/podcasts/tfmvoice/podcast.xml", "link": "http://www.tfm.co.jp/podcasts/tfmvoice/", "title": "Voice of TOKYO FM"}, {"url": "http://www.tfm.co.jp/podcasts/future/podcast.xml", "link": "http://www.tfm.co.jp/podcasts/future/", "title"...
132.463415
353
0.715154
79534cb265d44260cde83715f111c446ef4a91a3
11,719
py
Python
ztf_viewer/figures.py
snad-space/ztf-viewer
a0152d415beb11095134d0e407956ea088db1684
[ "MIT" ]
2
2020-11-14T02:24:57.000Z
2021-06-04T06:13:42.000Z
ztf_viewer/figures.py
snad-space/ztf-viewer
a0152d415beb11095134d0e407956ea088db1684
[ "MIT" ]
74
2020-07-13T09:38:41.000Z
2022-03-31T15:58:04.000Z
ztf_viewer/figures.py
snad-space/ztf-viewer
a0152d415beb11095134d0e407956ea088db1684
[ "MIT" ]
null
null
null
from datetime import datetime from io import BytesIO, StringIO import matplotlib import matplotlib.backends.backend_pgf import matplotlib.figure import numpy as np import pandas as pd from astropy.time import Time from flask import Response, request, send_file from immutabledict import immutabledict from matplotlib.ti...
30.920844
120
0.55986
79534d99ab7f86f334c6dd2fdffca3e1a007ae1b
8,521
py
Python
docs/source/conf.py
mtoothman/botocore
dc09517fac9f6c68d0a8dd1f9c1c08ae3ae64b08
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
mtoothman/botocore
dc09517fac9f6c68d0a8dd1f9c1c08ae3ae64b08
[ "Apache-2.0" ]
null
null
null
docs/source/conf.py
mtoothman/botocore
dc09517fac9f6c68d0a8dd1f9c1c08ae3ae64b08
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # # botocore documentation build configuration file, created by # sphinx-quickstart on Sun Dec 2 07:26:23 2012. # # This file is execfile()d with the current directory set to its containing dir. # # Note that not all possible configuration values are present in this # autogenerated file. # # Al...
32.033835
80
0.717169
79534e3802dfc7e7ea11d15d061631af0aa355ad
2,229
py
Python
posthog/api/cohort.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
posthog/api/cohort.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
posthog/api/cohort.py
Kacppian/posthog
faa0696e3219f9162a3fd59501e126a7cd79ec8c
[ "MIT" ]
null
null
null
from rest_framework import request, response, serializers, viewsets from posthog.models import Cohort from typing import Dict, Any, Optional from posthog.api.user import UserSerializer from posthog.tasks.calculate_cohort import calculate_cohort from django.db.models import QuerySet, Count class CohortSerializer(seria...
36.540984
113
0.656797
79534e4eed99d7cfd0a40a3bbba16462f6f1d956
374
py
Python
lbworkflow/tests/permissions.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
194
2017-04-24T15:28:16.000Z
2021-12-29T03:35:28.000Z
lbworkflow/tests/permissions.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
17
2018-05-31T07:45:42.000Z
2021-12-16T08:55:44.000Z
lbworkflow/tests/permissions.py
wearypossum4770/django-lb-workflow
8db36c7a8c5cf3aa2492048cad9fbf26d895c8c7
[ "MIT" ]
67
2017-05-18T02:28:28.000Z
2022-01-20T02:05:10.000Z
from lbworkflow.views.permissions import BasePermission class TestPermission(BasePermission): def has_permission(self, request, view): if request.user.username == "hr": return False return True def has_object_permission(self, request, view, obj): if request.user.username =...
26.714286
56
0.657754
79534ef1e683c584299ffe5f2256bd25202e55ec
3,708
py
Python
contrib/macdeploy/custom_dsstore.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
1
2021-01-23T19:25:39.000Z
2021-01-23T19:25:39.000Z
contrib/macdeploy/custom_dsstore.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
1
2021-01-23T19:29:09.000Z
2021-01-25T03:58:45.000Z
contrib/macdeploy/custom_dsstore.py
catracoin/catracoin
0ecd8ec316e2bdb180325e26ff6bcb857ceea6c9
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) 2013-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. import biplist from ds_store import DSStore from mac_alias import Alias import sys output_file = sys.argv...
61.8
1,817
0.72411
79534f755a8caf7e1bb1b2866cb130753d1c4cd5
1,344
py
Python
similar_images_AE/src/clustering/KNN.py
somaliz/artificio
2279d1fd8d5e8f931e23cafb0b9cfbb802a9d36e
[ "Apache-2.0" ]
11
2019-12-19T08:55:52.000Z
2021-10-01T13:07:13.000Z
clustering/artificio/similar_images_AE/src/clustering/KNN.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
5
2019-10-09T01:41:19.000Z
2022-02-10T00:19:01.000Z
clustering/artificio/similar_images_AE/src/clustering/KNN.py
amitbcp/Scikit_Learn_TensorFlow_Examples
37dda063e316503d53ac45f3b104a5cf1aaa4d78
[ "MIT" ]
7
2019-10-08T06:10:14.000Z
2020-12-01T07:49:21.000Z
''' KNN.py (author: Anson Wong / github: ankonzoid) General kNN model class object using sklearn library. ''' from sklearn.neighbors import NearestNeighbors class KNearestNeighbours(object): def __init__(self): # Parameters from training/test data set self.n_train = None # number of training...
33.6
98
0.65625
795350f77e289effdecbdc0147896e4a644f5e84
3,219
py
Python
python/Command.py
Sbte/hymls
75cb1e70eb0b3d71085e481cc9d418bdfada1a35
[ "Apache-2.0" ]
null
null
null
python/Command.py
Sbte/hymls
75cb1e70eb0b3d71085e481cc9d418bdfada1a35
[ "Apache-2.0" ]
17
2019-03-12T15:26:53.000Z
2021-02-02T20:07:02.000Z
python/Command.py
Sbte/hymls
75cb1e70eb0b3d71085e481cc9d418bdfada1a35
[ "Apache-2.0" ]
2
2019-07-03T14:29:05.000Z
2022-02-21T12:44:40.000Z
"""This file contains classes that implement a thread that runs a command. The process can then be killed after a certain time. """ import subprocess import threading import datetime import os from collections import OrderedDict def git_command(command, suppress_errors=False): p = None if suppress_errors: ...
34.98913
248
0.574713
7953516139c48c15aa2a542890a5affe123f3e87
3,707
py
Python
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
1
2019-09-16T19:13:13.000Z
2019-09-16T19:13:13.000Z
Non-React Stuff/alexa/lambda/skill_env/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py
ReciPull/reciprogram
b8c7e4610f95c5beafad3c9880fc5beceec523e7
[ "MIT" ]
5
2021-03-09T03:30:14.000Z
2022-02-26T10:42:17.000Z
alexa/reciPullLambda/ask_sdk_model/interfaces/amazonpay/model/v1/provider_credit.py
ReciPull/recipull.github.io
e6b800af02658bb7948297c4ddc1b7af6d978839
[ "MIT" ]
null
null
null
# coding: utf-8 # # Copyright 2019 Amazon.com, Inc. or its affiliates. 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. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "lice...
32.517544
103
0.596439
795352afe007d411067caa41e58b4c96efc917ea
392
py
Python
GPy/mappings/__init__.py
ekalosak/GPy
ff82f12c3d321bfc3ce6615447fad25aea9de6bd
[ "BSD-3-Clause" ]
1,685
2015-01-03T14:46:25.000Z
2022-03-30T02:41:35.000Z
GPy/mappings/__init__.py
ekalosak/GPy
ff82f12c3d321bfc3ce6615447fad25aea9de6bd
[ "BSD-3-Clause" ]
778
2015-01-15T18:21:25.000Z
2022-03-30T14:52:32.000Z
GPy/mappings/__init__.py
ekalosak/GPy
ff82f12c3d321bfc3ce6615447fad25aea9de6bd
[ "BSD-3-Clause" ]
584
2015-01-06T06:30:43.000Z
2022-03-29T13:05:33.000Z
# Copyright (c) 2013, 2014 GPy authors (see AUTHORS.txt). # Licensed under the BSD 3-clause license (see LICENSE.txt) from .kernel import Kernel from .linear import Linear from .mlp import MLP from .mlpext import MLPext from .additive import Additive from .compound import Compound from .constant import Constant from ....
28
59
0.80102
795355213abf7605ca18cb432dd3cf95f191ca63
884
py
Python
api/admin.py
codydeny/PlaceMe-Backend
6d89e5384bcefbebf6bd1cc37415f405f9502988
[ "MIT" ]
2
2020-09-29T02:51:33.000Z
2020-10-06T09:38:11.000Z
api/admin.py
codydeny/PlaceMe-Backend
6d89e5384bcefbebf6bd1cc37415f405f9502988
[ "MIT" ]
null
null
null
api/admin.py
codydeny/PlaceMe-Backend
6d89e5384bcefbebf6bd1cc37415f405f9502988
[ "MIT" ]
1
2020-09-29T09:40:32.000Z
2020-09-29T09:40:32.000Z
from django.contrib import admin from .models import UserProfile, Department, Course, Branch, Faculty, Student, HighSchool, Intermediate, Diploma, Graduation, PostGraduation, Project, PrevSemesterData, HR, Company, JobNotification, JNeligibleCourse, AppliedJobNotification # Register your models here. admin.site.regist...
38.434783
239
0.839367
7953562e78bc5e1654617becc2a5d66ae6ccdef6
4,372
py
Python
scripts/payload2generator.py
TheOddZer0/MiShell32
3ea9187ba73cf1efe5396df48aae95a34be370bb
[ "Apache-2.0" ]
5
2021-07-01T19:18:11.000Z
2022-02-23T00:36:08.000Z
scripts/payload2generator.py
TheOddZer0/MiShell32
3ea9187ba73cf1efe5396df48aae95a34be370bb
[ "Apache-2.0" ]
1
2021-09-26T16:23:57.000Z
2021-09-28T15:04:50.000Z
scripts/payload2generator.py
TheOddZer0/MiShell32
3ea9187ba73cf1efe5396df48aae95a34be370bb
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 """ Generate a generator.py from currently built payload """ import os import sys import os.path as path import shutil import subprocess import shlex # Configs # Used to change some usual settings # What will the file name of the backup of generator.py will BACKUP_NAME = "generator.py.old" #...
28.575163
97
0.653477
795356a9717bfbc87d40b3f4c8ab1c4c21917c2b
8,377
py
Python
tools/train.py
dyabel/wsod-mmdet
60fc1993ea298f992b160b5599a6134702ac0d4f
[ "Apache-2.0" ]
6
2021-10-09T05:34:04.000Z
2022-03-31T00:36:55.000Z
tools/train.py
dyabel/wsod-mmdet
60fc1993ea298f992b160b5599a6134702ac0d4f
[ "Apache-2.0" ]
null
null
null
tools/train.py
dyabel/wsod-mmdet
60fc1993ea298f992b160b5599a6134702ac0d4f
[ "Apache-2.0" ]
null
null
null
import argparse import copy import os import os.path as osp import time import warnings import mmcv import torch from mmcv import Config, DictAction from mmcv.runner import get_dist_info, init_dist from mmcv.utils import get_git_hash from mmdet import __version__ from mmdet.apis import set_random_seed, train_detector...
36.903084
79
0.653337
7953574f7e114520f8da618835e7bcfc4bb03f5b
222
py
Python
dadmatools/datasets/datasets/Wikipedia/info.py
njzr/DadmaTools
64ff407d5d818d5a9216340cccf0d1cc909d3b1b
[ "Apache-2.0" ]
25
2021-12-01T15:19:36.000Z
2022-03-12T12:50:28.000Z
dadmatools/datasets/datasets/Wikipedia/info.py
ebad84/DadmaTools
b26ad8aa834f642d49bd120bd7cf1fdf40741be1
[ "Apache-2.0" ]
3
2021-12-14T06:34:52.000Z
2022-02-17T08:23:20.000Z
dadmatools/datasets/datasets/Wikipedia/info.py
ebad84/DadmaTools
b26ad8aa834f642d49bd120bd7cf1fdf40741be1
[ "Apache-2.0" ]
6
2021-10-12T13:44:17.000Z
2022-03-07T13:54:17.000Z
{ "name": "WikipediaCorpus", "version": "20211201", "task": "Corpus", "description": "fawiki dump progress on 20211201 / All pages, current versions only.", "size": 2184117, "filenames": ["cleaned_wiki.txt"] }
24.666667
88
0.653153
79535888e88f0de0b0d2c00d787ad624cfc5d8cc
1,749
py
Python
install_texlive/__init__.py
maxnoe/texlive-batch-installation
13bfdadd9fa951c5edd5830e6da07708bdce43e6
[ "MIT" ]
null
null
null
install_texlive/__init__.py
maxnoe/texlive-batch-installation
13bfdadd9fa951c5edd5830e6da07708bdce43e6
[ "MIT" ]
null
null
null
install_texlive/__init__.py
maxnoe/texlive-batch-installation
13bfdadd9fa951c5edd5830e6da07708bdce43e6
[ "MIT" ]
null
null
null
import logging import subprocess as sp import os import pexpect import re import requests from io import BytesIO import tarfile __version__ = '0.3.0' log = logging.getLogger(__name__) has_curl = sp.call(['which', 'curl'], stdout=sp.PIPE) == 0 has_wget = sp.call(['which', 'wget'], stdout=sp.PIPE) == 0 URL = 'http://...
25.347826
85
0.661521
795358e0f166153b511c0ff13074ec2c6b5dac38
217
py
Python
play/cosmocalc.py
tamarastro/tastro
76f9175531652a86dc938f4fdaf296a9d6f422bc
[ "MIT" ]
null
null
null
play/cosmocalc.py
tamarastro/tastro
76f9175531652a86dc938f4fdaf296a9d6f422bc
[ "MIT" ]
null
null
null
play/cosmocalc.py
tamarastro/tastro
76f9175531652a86dc938f4fdaf296a9d6f422bc
[ "MIT" ]
null
null
null
import numpy as np from astropy.cosmology import FlatLambdaCDM as cosmo cosmo1 = cosmo(H0=70, Om0=0.3) print cosmo1 cosmo2 = cosmo(H0=72, Om0=0.28) print cosmo2 print('But this might be better.... editing master.')
21.7
53
0.746544
79535aa210d61d3739686ab4f0a268719390e451
2,841
py
Python
setup/setup.py
Ordiel/brython
58d9372dd338a6a258df8e867caeb8097002d876
[ "BSD-3-Clause" ]
1
2019-07-28T09:04:44.000Z
2019-07-28T09:04:44.000Z
setup/setup.py
Ordiel/brython
58d9372dd338a6a258df8e867caeb8097002d876
[ "BSD-3-Clause" ]
null
null
null
setup/setup.py
Ordiel/brython
58d9372dd338a6a258df8e867caeb8097002d876
[ "BSD-3-Clause" ]
null
null
null
# Always prefer setuptools over distutils from setuptools import setup, find_packages import os import shutil import sys with open('README.rst', encoding='utf-8') as fobj: LONG_DESCRIPTION = fobj.read() command = sys.argv[1] if command == "sdist": # before creating the distribution, copy files from other lo...
28.128713
82
0.612812
79535af131ff427b006c3e04558d8214ccb87881
355
py
Python
tests/parser/syntax/test_string.py
leonprou/vyper
8228395a9f4d4b55dbb8dcded3f4eb1ccfbbbe4b
[ "MIT" ]
null
null
null
tests/parser/syntax/test_string.py
leonprou/vyper
8228395a9f4d4b55dbb8dcded3f4eb1ccfbbbe4b
[ "MIT" ]
null
null
null
tests/parser/syntax/test_string.py
leonprou/vyper
8228395a9f4d4b55dbb8dcded3f4eb1ccfbbbe4b
[ "MIT" ]
null
null
null
import pytest from vyper import ( compiler, ) valid_list = [ """ @public def foo() -> string[10]: return "badminton" """, """ @public def foo(): x: string[11] = "¡très bien!" """ ] @pytest.mark.parametrize('good_code', valid_list) def test_string_success(good_code): assert compiler.c...
14.791667
55
0.630986
79535bbf2b96668d1adec23c505225ae38a07f08
757
py
Python
tests/test_sqlalchemy.py
tackle-io/woodchipper
d2d92f7c79c940b5263795c0b18b3b46386fbc53
[ "MIT" ]
3
2022-02-04T16:21:00.000Z
2022-02-28T22:33:05.000Z
tests/test_sqlalchemy.py
tackle-io/woodchipper
d2d92f7c79c940b5263795c0b18b3b46386fbc53
[ "MIT" ]
3
2022-01-10T16:53:40.000Z
2022-03-03T13:12:58.000Z
tests/test_sqlalchemy.py
tackle-io/woodchipper
d2d92f7c79c940b5263795c0b18b3b46386fbc53
[ "MIT" ]
null
null
null
import sqlalchemy import woodchipper from woodchipper.configs import DevLogToStdout from woodchipper.context import LoggingContext from woodchipper.monitors.sqlalchemy import SQLAlchemyMonitor engine = sqlalchemy.create_engine("sqlite:///:memory:") def connect(sa_monitor): sa_monitor.engine = engine SQLAlchem...
29.115385
99
0.752972
79535be8f2bf5eb6cc1c2a724758f30cc8995338
5,382
py
Python
website/drawquest/apps/brushes/migrations/0016_paintbucket_copy.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
19
2015-11-10T17:36:20.000Z
2021-04-12T07:36:00.000Z
website/drawquest/apps/brushes/migrations/0016_paintbucket_copy.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
1
2021-06-09T03:45:34.000Z
2021-06-09T03:45:34.000Z
website/drawquest/apps/brushes/migrations/0016_paintbucket_copy.py
bopopescu/drawquest-web
8d8f9149b6efeb65202809a5f8916386f58a1b3b
[ "BSD-3-Clause" ]
6
2015-11-11T00:38:38.000Z
2020-07-25T20:10:08.000Z
# -*- coding: utf-8 -*- import datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): brush = orm.Brush.objects.get(canonical_name='paintbucket') brush.description = "Need to color the whole canvas? ...
68.126582
195
0.570977
79535bfa6ae14371d5b3330bd32c252ae803f203
758
py
Python
pddlrl/validate.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
5
2022-03-24T16:47:21.000Z
2022-03-25T16:04:04.000Z
pddlrl/validate.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
null
null
null
pddlrl/validate.py
IBM/pddlrl
e057cc67426c91c9180286a67acad5b9a1ba7fc6
[ "MIT" ]
null
null
null
# This file is a part of PDDLRL project. # Copyright (c) 2020 Clement Gehring (clement@gehring.io) # Copyright (c) 2021 Masataro Asai (guicho2.71828@gmail.com, masataro.asai@ibm.com), IBM Corporation import os.path import subprocess directory, basename = os.path.split(__file__) VAL = os.path.join(directory, "../VAL/b...
34.454545
100
0.726913
79535c65adca6a84d9e8254147d8830acc7e0335
3,772
py
Python
models/position_encoding.py
miranmanesh/ConditionalDETR
b3ab2ea01208a1c7f4a1668a9c7682d13e59bc45
[ "Apache-2.0" ]
186
2021-08-16T02:53:25.000Z
2022-03-31T14:27:30.000Z
models/position_encoding.py
encounter1997/DE-CondDETR
c7d24c221125daa6322adc9915af77701240f063
[ "Apache-2.0" ]
18
2021-08-24T07:01:18.000Z
2022-03-29T12:53:10.000Z
models/position_encoding.py
encounter1997/DE-CondDETR
c7d24c221125daa6322adc9915af77701240f063
[ "Apache-2.0" ]
19
2021-08-16T06:45:55.000Z
2022-03-20T12:53:57.000Z
# ------------------------------------------------------------------------ # Conditional DETR # Copyright (c) 2021 Microsoft. All Rights Reserved. # Licensed under the Apache License, Version 2.0 [see LICENSE for details] # ------------------------------------------------------------------------ # Copied from DETR (htt...
38.489796
103
0.593849
79535e6f9ec8b54d1c30e03a35fae9edea3be7d0
8,583
py
Python
env/lib/python3.8/site-packages/plotly/graph_objs/layout/ternary/aaxis/title/_font.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
11,750
2015-10-12T07:03:39.000Z
2022-03-31T20:43:15.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/layout/ternary/aaxis/title/_font.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,951
2015-10-12T00:41:25.000Z
2022-03-31T22:19:26.000Z
env/lib/python3.8/site-packages/plotly/graph_objs/layout/ternary/aaxis/title/_font.py
acrucetta/Chicago_COVI_WebApp
a37c9f492a20dcd625f8647067394617988de913
[ "MIT", "Unlicense" ]
2,623
2015-10-15T14:40:27.000Z
2022-03-28T16:05:50.000Z
from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): # class properties # -------------------- _parent_path_str = "layout.ternary.aaxis.title" _path_str = "layout.ternary.aaxis.title.font" _valid_props = {"...
37.480349
84
0.567401
79535ed1ccd50e1bdb203e7b1c2e87432da63a65
5,485
py
Python
tests/datasets/test_iteration_strategies.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
1,928
2020-05-07T19:00:53.000Z
2022-03-31T17:02:59.000Z
tests/datasets/test_iteration_strategies.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
914
2020-05-07T18:36:26.000Z
2022-03-31T05:45:26.000Z
tests/datasets/test_iteration_strategies.py
dk25021999/mmf
218057265a3fc175f656b5ebe8fb44ef5ccca2e9
[ "BSD-3-Clause" ]
490
2020-05-07T20:05:10.000Z
2022-03-31T14:17:23.000Z
# Copyright (c) Facebook, Inc. and its affiliates. import unittest from collections import Counter import numpy as np import torch from mmf.datasets import iteration_strategies from tests.test_utils import NumbersDataset class TestIterationStrategies(unittest.TestCase): NUM_DATALOADERS = 5 def setUp(self):...
32.076023
86
0.606746
79535f80d40456dd7fea9454aae2e12317442684
1,745
py
Python
hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/analysis/vif.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
183
2020-06-03T22:43:14.000Z
2022-03-17T22:39:07.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/analysis/vif.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
31
2020-06-03T22:55:18.000Z
2022-03-27T20:06:17.000Z
hermione/module_templates/__IMPLEMENTED_BASE__/src/ml/analysis/vif.py
RodrigoATorres/hermione
6cbed73e309f8025a48f33165d8f29561c6a3cc7
[ "Apache-2.0" ]
43
2020-06-03T22:45:03.000Z
2021-12-29T19:43:54.000Z
import pandas as pd from statsmodels.stats.outliers_influence import variance_inflation_factor class VIF: @classmethod def analyze(cls, df: pd.DataFrame, thresh=5.0, verbose=True): """ Multicollinearity analysis Parameters ---------- df : pd.DataF...
36.354167
102
0.515186
795360402ea609c7975d15f20573afd238cdcea1
1,661
py
Python
src/harrastuspassi/harrastuspassi/management/commands/import_categories_from_owl.py
seitztimo/harrastuspassi-backend
6933471de644344e1a845e44859112c5b92b0ced
[ "MIT" ]
null
null
null
src/harrastuspassi/harrastuspassi/management/commands/import_categories_from_owl.py
seitztimo/harrastuspassi-backend
6933471de644344e1a845e44859112c5b92b0ced
[ "MIT" ]
null
null
null
src/harrastuspassi/harrastuspassi/management/commands/import_categories_from_owl.py
seitztimo/harrastuspassi-backend
6933471de644344e1a845e44859112c5b92b0ced
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from owlready2 import get_ontology from harrastuspassi.models import HobbyCategory ROOT_CLASS_LABEL = 'Harrastusmuoto' class Command(BaseCommand): def add_arguments(self, parser): parser.add_argument('path_to_owl_file') def handl...
30.2
83
0.646598
795361279438202e862092ff8650d6a835678b33
1,610
py
Python
experimenting/temp_contour.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
experimenting/temp_contour.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
experimenting/temp_contour.py
Shom770/data-science-projects
a85ef8c73fbee66ac060414716e2b0440772f07f
[ "MIT" ]
null
null
null
import logging import cartopy.crs as ccrs import cartopy.feature as cfeature import numpy as np import matplotlib.pyplot as plt from netCDF4 import Dataset logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) data_nam = Dataset( ( f"http://nomads.ncep.noaa.gov/dods/gf...
25.967742
99
0.71118
7953613457162000ddcb7706afba1589d8f2a194
12,710
py
Python
tests/test_build.py
jpmckinney/pydata-sphinx-theme
f54466a646cbc084bd1bb4dacb3f3b196598b495
[ "BSD-3-Clause" ]
1
2021-06-25T03:15:26.000Z
2021-06-25T03:15:26.000Z
tests/test_build.py
jpmckinney/pydata-sphinx-theme
f54466a646cbc084bd1bb4dacb3f3b196598b495
[ "BSD-3-Clause" ]
10
2021-04-16T17:45:06.000Z
2021-06-26T20:59:17.000Z
tests/test_build.py
jpmckinney/pydata-sphinx-theme
f54466a646cbc084bd1bb4dacb3f3b196598b495
[ "BSD-3-Clause" ]
1
2021-04-16T19:48:45.000Z
2021-04-16T19:48:45.000Z
import os from pathlib import Path from shutil import copytree from bs4 import BeautifulSoup from sphinx.testing.util import SphinxTestApp from sphinx.testing.path import path as sphinx_path import sphinx.errors import pytest path_tests = Path(__file__).parent class SphinxBuild: def __init__(self, app: Sphin...
32.757732
88
0.660346
79536246380a091f74e2df341bf9b605acc8dc5b
108,439
py
Python
cvpysdk/job.py
Jayesh-Jain/SDK
5fe5130b1eeacad9944ba34714e583c6c743482f
[ "Apache-2.0" ]
null
null
null
cvpysdk/job.py
Jayesh-Jain/SDK
5fe5130b1eeacad9944ba34714e583c6c743482f
[ "Apache-2.0" ]
null
null
null
cvpysdk/job.py
Jayesh-Jain/SDK
5fe5130b1eeacad9944ba34714e583c6c743482f
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # pylint: disable=W0104, R0205, R1710 # -------------------------------------------------------------------------- # Copyright Commvault Systems, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. #...
39.360799
168
0.493964
795363355d9fde49e4a0e234d935c9d6f171812e
3,247
py
Python
examples/contrib/send_more_money_any_base.py
AlohaChina/or-tools
1ece0518104db435593a1a21882801ab6ada3e15
[ "Apache-2.0" ]
8,273
2015-02-24T22:10:50.000Z
2022-03-31T21:19:27.000Z
examples/contrib/send_more_money_any_base.py
AlohaChina/or-tools
1ece0518104db435593a1a21882801ab6ada3e15
[ "Apache-2.0" ]
2,530
2015-03-05T04:27:21.000Z
2022-03-31T06:13:02.000Z
examples/contrib/send_more_money_any_base.py
AlohaChina/or-tools
1ece0518104db435593a1a21882801ab6ada3e15
[ "Apache-2.0" ]
2,057
2015-03-04T15:02:02.000Z
2022-03-30T02:29:27.000Z
# Copyright 2010 Hakan Kjellerstrand hakank@gmail.com # # 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 ...
29.252252
78
0.665845
795363884197e2349452d08e6048d23654b01b72
19,395
py
Python
sympy/utilities/tests/test_lambdify.py
oliverlee/sympy
961a75bd0adc40fc1d405ffdae9f49b52d96bed0
[ "BSD-3-Clause" ]
null
null
null
sympy/utilities/tests/test_lambdify.py
oliverlee/sympy
961a75bd0adc40fc1d405ffdae9f49b52d96bed0
[ "BSD-3-Clause" ]
null
null
null
sympy/utilities/tests/test_lambdify.py
oliverlee/sympy
961a75bd0adc40fc1d405ffdae9f49b52d96bed0
[ "BSD-3-Clause" ]
null
null
null
from sympy.utilities.pytest import XFAIL, raises from sympy import ( symbols, lambdify, sqrt, sin, cos, tan, pi, acos, acosh, Rational, Float, Matrix, Lambda, Piecewise, exp, Integral, oo, I, Abs, Function, true, false, And, Or, Not, ITE, Min, Max) from sympy.printing.lambdarepr import LambdaPrinter import ...
32.817259
93
0.588244
795364695f8097ba6259b0e646c765192dd0f96b
1,181
py
Python
snowshu/samplings/sample_sizes/brute_force_sample_size.py
norton120/snowshu
3595972a2ab28350f0283c3703adc1ca4b26bec2
[ "Apache-2.0" ]
null
null
null
snowshu/samplings/sample_sizes/brute_force_sample_size.py
norton120/snowshu
3595972a2ab28350f0283c3703adc1ca4b26bec2
[ "Apache-2.0" ]
28
2020-02-06T18:37:51.000Z
2020-02-06T18:38:34.000Z
snowshu/samplings/sample_sizes/brute_force_sample_size.py
norton120/snowshu
3595972a2ab28350f0283c3703adc1ca4b26bec2
[ "Apache-2.0" ]
null
null
null
import math from snowshu.core.samplings.bases.base_sample_size import BaseSampleSize class BruteForceSampleSize(BaseSampleSize): """Implements a static percentage sample size. Args: percentage: The decimal representation of the desired sample size between 1 and 99% (0.01 to 0.99). """ def __i...
30.282051
117
0.651143
795364f421f0374ed701e037313d2d1cd2731a45
858
py
Python
webui/app/controller.py
ahmadika/sce-domain-discovery
034210b5c32fbf364c6501bff5df06f50f63b87c
[ "Apache-2.0" ]
null
null
null
webui/app/controller.py
ahmadika/sce-domain-discovery
034210b5c32fbf364c6501bff5df06f50f63b87c
[ "Apache-2.0" ]
1
2017-06-08T17:53:51.000Z
2017-06-08T17:53:52.000Z
webui/app/controller.py
ahmadika/sce-domain-discovery
034210b5c32fbf364c6501bff5df06f50f63b87c
[ "Apache-2.0" ]
2
2018-07-02T16:31:42.000Z
2018-07-02T16:53:26.000Z
from flask import Blueprint, request, render_template, redirect, url_for, send_from_directory from app import classifier # Define Blueprint(s) mod_app = Blueprint('application', __name__, url_prefix='/explorer') # Define Controller(s) @mod_app.route('/') def index(): return send_from_directory('static/pages', 'i...
26
93
0.712121
79536533e8b3c75e4208745b506205e451cab722
5,180
py
Python
dlcv/object_detection/tensorflow_detect/core/region_similarity_calculator.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
11
2019-10-07T22:06:30.000Z
2020-08-26T22:10:53.000Z
dlcv/object_detection/tensorflow_detect/core/region_similarity_calculator.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
16
2019-11-02T00:32:00.000Z
2022-02-10T00:23:32.000Z
dlcv/object_detection/tensorflow_detect/core/region_similarity_calculator.py
Loonride/deeplens-cv
9e5b31c1a269d364e4912ba8266415fa04277e11
[ "MIT" ]
9
2019-10-07T13:33:13.000Z
2020-09-27T09:50:58.000Z
# 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...
33.419355
80
0.719691
7953654b85f3fdd6f8ea9683baad787e953431b3
304
py
Python
backend/thunder/__init__.py
wikibootup/thunder
d617aa498a2d387c1595ac3f580c4875f05d356b
[ "MIT" ]
null
null
null
backend/thunder/__init__.py
wikibootup/thunder
d617aa498a2d387c1595ac3f580c4875f05d356b
[ "MIT" ]
null
null
null
backend/thunder/__init__.py
wikibootup/thunder
d617aa498a2d387c1595ac3f580c4875f05d356b
[ "MIT" ]
null
null
null
from flask import Flask from flask_sqlalchemy import SQLAlchemy import os app = Flask(__name__, static_url_path='', static_folder='../../front/src/') app.config.from_object(os.environ['APP_SETTINGS']) app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False db = SQLAlchemy(app) from thunder import views
25.333333
75
0.782895
7953660337f78f6e90c2956745551d1d836d429e
1,890
py
Python
pysper/parser/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
pysper/parser/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
pysper/parser/__init__.py
arvy/sperf
c047ae5f3b1daf70cc227784197e4ef37caaf556
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 DataStax, 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,...
38.571429
86
0.710053
79536609758e09b8a3092a07af760bdbf4fcfdbd
1,768
py
Python
Medium/81.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
6
2017-09-25T18:05:50.000Z
2019-03-27T00:23:15.000Z
Medium/81.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
1
2017-10-29T12:04:41.000Z
2018-08-16T18:00:37.000Z
Medium/81.py
Hellofafar/Leetcode
7a459e9742958e63be8886874904e5ab2489411a
[ "CNRI-Python" ]
null
null
null
# ------------------------------ # 81. Search in Rotated Sorted Array II # # Description: # Follow up for "Search in Rotated Sorted Array": # What if duplicates are allowed? # # Would this affect the run-time complexity? How and why? # # Suppose an array sorted in ascending order is rotated at some pivot unknown to ...
27.625
101
0.478507
7953661c6878a19e5ce9edb68892fc7dadb52410
8,703
py
Python
design2.py
Egor-Iudin/damped_oscillations
fbda2acfd3d6ac6e39315e90cdeb345e263a1f6e
[ "MIT" ]
1
2021-10-31T22:55:48.000Z
2021-10-31T22:55:48.000Z
design2.py
Egor-Iudin/damped_oscillations
fbda2acfd3d6ac6e39315e90cdeb345e263a1f6e
[ "MIT" ]
null
null
null
design2.py
Egor-Iudin/damped_oscillations
fbda2acfd3d6ac6e39315e90cdeb345e263a1f6e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'design2.ui' # # Created by: PyQt5 UI code generator 5.10.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWin...
54.39375
122
0.737102
7953663d3a88141f775fc9c395e30153b40524db
4,770
py
Python
examples/cooperation/cooperation/agents.py
cwhd/mesa
9d43e589831ad3a1afe9cfb64a887fa2bd9e3cec
[ "Apache-2.0" ]
1
2021-04-09T10:55:32.000Z
2021-04-09T10:55:32.000Z
examples/cooperation/cooperation/agents.py
cwhd/mesa
9d43e589831ad3a1afe9cfb64a887fa2bd9e3cec
[ "Apache-2.0" ]
null
null
null
examples/cooperation/cooperation/agents.py
cwhd/mesa
9d43e589831ad3a1afe9cfb64a887fa2bd9e3cec
[ "Apache-2.0" ]
null
null
null
from mesa import Agent from cooperation.random_walk import RandomWalker from cooperation.fcmwrapper import FCMAgent """ A cow that uses a mental model to decide what to do Here are some model ids: #666-99-6969 #123456789 #75-325 """ class FCMCow(RandomWalker): def __init__(self, unique_id, ...
37.559055
111
0.606709
7953668e6e6ccaf659cdb0a73a69ffc8db3dac02
302
py
Python
config/local.py
uzura8/flaskbird
6f6bfc5c03286809f103d01a20935c9ce5f93e8f
[ "MIT" ]
null
null
null
config/local.py
uzura8/flaskbird
6f6bfc5c03286809f103d01a20935c9ce5f93e8f
[ "MIT" ]
null
null
null
config/local.py
uzura8/flaskbird
6f6bfc5c03286809f103d01a20935c9ce5f93e8f
[ "MIT" ]
null
null
null
from config import BaseConfig class LocalConfig(BaseConfig): TESTING = False DEBUG = True SQLALCHEMY_TRACK_MODIFICATIONS = True SQLALCHEMY_ECHO = True IS_LOGGING_MAIL = True # Request params PARAMS_LIST_DEFAULT = { 'per_page': 3, 'per_page_max': 10, }
20.133333
41
0.662252
7953671b0dab0ca91b4de7a2b056dd9e7141a45a
3,090
py
Python
src/fast_playlist/views.py
dmvieira/gmusic-playlist
d8114c29aa80985bd3a8725bed76449410bb3d0f
[ "Apache-2.0" ]
null
null
null
src/fast_playlist/views.py
dmvieira/gmusic-playlist
d8114c29aa80985bd3a8725bed76449410bb3d0f
[ "Apache-2.0" ]
null
null
null
src/fast_playlist/views.py
dmvieira/gmusic-playlist
d8114c29aa80985bd3a8725bed76449410bb3d0f
[ "Apache-2.0" ]
null
null
null
from django.shortcuts import render # Create your views here. # form for donation #<form action="https://www.paypal.com/cgi-bin/webscr" method="post" target="_top"> #<input type="hidden" name="cmd" value="_s-xclick"> #<input type="hidden" name="encrypted" value="-----BEGIN PKCS7-----MIIHTwYJKoZIhvcNAQcEoIIHQDCCBzwCAQE...
237.692308
2,586
0.928155
7953684caec750d940ed592ddcef574b40d1bfbd
5,400
py
Python
benchmarks/benchmarks.py
jdcourcol/NeuroM
5a654f6fb00b930391035f46bbbc1a39a11551fb
[ "BSD-3-Clause" ]
1
2016-10-25T09:23:16.000Z
2016-10-25T09:23:16.000Z
benchmarks/benchmarks.py
jdcourcol/NeuroM
5a654f6fb00b930391035f46bbbc1a39a11551fb
[ "BSD-3-Clause" ]
null
null
null
benchmarks/benchmarks.py
jdcourcol/NeuroM
5a654f6fb00b930391035f46bbbc1a39a11551fb
[ "BSD-3-Clause" ]
null
null
null
from pathlib import Path import neurom as nm import neurom.io import neurom.fst._core from neurom.check import neuron_checks as nc from neurom.check import structural_checks as sc DATA_DIR = Path(__file__).parent.parent / 'test_data/' class TimeLoadMorphology(object): def time_swc(self): path = Path(DAT...
30.857143
82
0.717222
7953687e022ac7c464f3d4f3cb3b26dc37fa332c
2,646
py
Python
app.py
tjdaley/twitterswitch
861ec1ae821d6c445bdcf89e40a78fa76fc5973d
[ "BSD-2-Clause" ]
null
null
null
app.py
tjdaley/twitterswitch
861ec1ae821d6c445bdcf89e40a78fa76fc5973d
[ "BSD-2-Clause" ]
null
null
null
app.py
tjdaley/twitterswitch
861ec1ae821d6c445bdcf89e40a78fa76fc5973d
[ "BSD-2-Clause" ]
null
null
null
import RPi.GPIO as GPIO import json import time import twitter # TODO: Turn these into command line arguments OR config file parameters HASHTAG = "%23avianaart" QUERY = f'q={HASHTAG}&result_type=recent&since_id=' PINS = [11, 13, 15, 16] # physical locations on the GPIO strip def setup_gpio(pins: list): """ Set u...
22.05
94
0.656085
795369001d764709b2e4e2794f021be7214c719d
12,826
py
Python
tensorforce/agents/double_dqn.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
1
2021-12-25T16:54:16.000Z
2021-12-25T16:54:16.000Z
tensorforce/agents/double_dqn.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
null
null
null
tensorforce/agents/double_dqn.py
DLPerf/tensorforce
33a2d84fa850e8842dfe2cef3901de32cf7cd221
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Tensorforce Team. 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 la...
55.52381
146
0.641587
7953692b8e474a55cc21e4fc71752d4ce6d819e9
8,538
py
Python
experiments_koord/app_krd_py/dist_delivery_w_markers.krd.py
lyg1597/CyPhyHouseExperiments
7a2604a4c086bb86e10b4188f0b114d31ccdfa37
[ "NCSA" ]
4
2020-08-09T01:34:29.000Z
2021-12-24T18:08:03.000Z
experiments_koord/app_krd_py/dist_delivery_w_markers.krd.py
lyg1597/CyPhyHouseExperiments
7a2604a4c086bb86e10b4188f0b114d31ccdfa37
[ "NCSA" ]
2
2020-01-14T03:23:39.000Z
2020-11-12T17:51:09.000Z
experiments_koord/app_krd_py/dist_delivery_w_markers.krd.py
cyphyhouse/CyPhyHouse-Dev
b72bfc1a2beb379a1c3e429bb979815a82242707
[ "NCSA" ]
3
2021-06-16T22:13:28.000Z
2022-02-16T13:10:58.000Z
import numpy as np import rospy from cym_gazebo import marker_builder from cym_marker.msg import Marker from src.config.configs import AgentConfig, MoatConfig from src.harness.agentThread import AgentThread from src.motion.deconflict import clear_path from src.motion.rectobs import RectObs from src.motion.cylobs impo...
39.527778
116
0.544273
79536a5549e67dd22565fe42a5ca2c8048956069
4,080
py
Python
setup/python_scripts/config.py
CIRCUSPi/ROSKY2
7df75cba4562424c1af5bd0b73597bb78ebaca3c
[ "Apache-2.0" ]
null
null
null
setup/python_scripts/config.py
CIRCUSPi/ROSKY2
7df75cba4562424c1af5bd0b73597bb78ebaca3c
[ "Apache-2.0" ]
null
null
null
setup/python_scripts/config.py
CIRCUSPi/ROSKY2
7df75cba4562424c1af5bd0b73597bb78ebaca3c
[ "Apache-2.0" ]
1
2021-09-10T01:17:02.000Z
2021-09-10T01:17:02.000Z
#!/bin/usr/python3 # #Copyright (c) 2021 Wei-Chih Lin(weichih.lin@protonmail.com) # # 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 # ...
32.64
117
0.601961
79536adfc7068ace3f4850126f7e62b0fb5d2d30
8,543
py
Python
receptor-kv/components/inputform.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
2
2018-07-12T23:03:11.000Z
2018-07-16T19:09:01.000Z
receptor-kv/components/inputform.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
null
null
null
receptor-kv/components/inputform.py
vallemrv/django-tpv
75f738f13ffb7b4ca53a06d79ea6c4aef6eb12aa
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: Manuel Rodriguez <valle> # @Date: 16-Jul-2017 # @Email: valle.mrv@gmail.com # @Filename: imputform.py # @Last modified by: valle # @Last modified time: 09-Feb-2018 # @License: Apache license vesion 2.0 from kivy.uix.relativelayout import RelativeLayout from kivy.uix.anchorlayou...
31.996255
99
0.609388
79536b02902fc734538f9b915077e5d79fce36be
15,369
py
Python
inference.py
banr1jnts/Earthquake_Prediction
13757e3498ef26e8db261fa04c0437f0f1d2e884
[ "Apache-2.0" ]
1
2019-02-28T10:49:00.000Z
2019-02-28T10:49:00.000Z
inference.py
banr1jnts/earthquake_prediction
13757e3498ef26e8db261fa04c0437f0f1d2e884
[ "Apache-2.0" ]
null
null
null
inference.py
banr1jnts/earthquake_prediction
13757e3498ef26e8db261fa04c0437f0f1d2e884
[ "Apache-2.0" ]
null
null
null
import tensorflow as tf import numpy as np import pandas as pd import os import glob import datetime import random import keras.optimizers import keras.backend as K from keras.callbacks import ReduceLROnPlateau, ModelCheckpoint, CSVLogger from params import args import models, naives, losses if __name__ == '__main__'...
43.171348
80
0.554298
79536bbac3905f6519f5644bac1cdb6409632429
9,887
py
Python
saleor/discount/models.py
saurabhsingla15/himichain
f7e446c89951a60383632907fed14bde5c3ad6b5
[ "CC-BY-4.0" ]
null
null
null
saleor/discount/models.py
saurabhsingla15/himichain
f7e446c89951a60383632907fed14bde5c3ad6b5
[ "CC-BY-4.0" ]
16
2020-02-12T03:06:29.000Z
2022-02-10T20:29:25.000Z
saleor/discount/models.py
saurabhsingla15/himichain
f7e446c89951a60383632907fed14bde5c3ad6b5
[ "CC-BY-4.0" ]
null
null
null
from decimal import Decimal from functools import partial from django.conf import settings from django.db import models from django.db.models import F, Q from django.utils import timezone from django.utils.translation import pgettext, pgettext_lazy from django_countries.fields import CountryField from django_prices.mo...
37.309434
107
0.67432
79536ca01ebc2a141ccaac78dc01b0d69fb0903b
998
py
Python
python/pyopenGL/ogl2/ogl_14_plot_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
16
2018-11-26T08:39:42.000Z
2019-05-08T10:09:52.000Z
python/pyopenGL/ogl2/ogl_14_plot_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
8
2020-05-04T06:29:26.000Z
2022-02-12T05:33:16.000Z
python/pyopenGL/ogl2/ogl_14_plot_2.py
SayanGhoshBDA/code-backup
8b6135facc0e598e9686b2e8eb2d69dd68198b80
[ "MIT" ]
5
2020-02-11T16:02:21.000Z
2021-02-05T07:48:30.000Z
#// last done till 43 pg no do the graph inequalities the next day. from OpenGL.GL import * from OpenGL.GLU import * from OpenGL.GLUT import * import sys #from numpy import * import numpy as np import math def init(): glClearColor(1.0,1.0,1.0,1.0) gluOrtho2D(-5.0,5.0,-5.0,5.0) def plotfunc(): glClear(GL_...
25.589744
120
0.602204
79536caa54b0faf0ec6e56ee22ec98ad6ea8876f
484
py
Python
jp.atcoder/abc047/abc047_a/8143659.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-09T03:06:25.000Z
2022-02-09T03:06:25.000Z
jp.atcoder/abc047/abc047_a/8143659.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
1
2022-02-05T22:53:18.000Z
2022-02-09T01:29:30.000Z
jp.atcoder/abc047/abc047_a/8143659.py
kagemeka/atcoder-submissions
91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e
[ "MIT" ]
null
null
null
packs = [int(candies) for candies in input().split()] N = int(len(packs)) X = 2 if sum(packs) % X == 0: A = int(sum(packs) / X) else: print("No") exit() dp = [[False] * (A + 1)] * (N + 1) dp[0][0] = True for i in range(N): for j in range(A + 1): if dp[i][j]: dp[i + 1...
18.615385
54
0.423554
79536ce5d70033439fc5f14ce5a1d2dce405941c
674
py
Python
tests/unit/multi_dimensional_RNN/_test_mdgru_on_2d_grid.py
X-rayLaser/multi-directional-mdrnn
70b0e1c2e07b5f476c264c6700e8d34d41a2ce10
[ "MIT" ]
12
2020-02-27T08:34:44.000Z
2022-03-15T12:22:32.000Z
tests/unit/multi_dimensional_RNN/_test_mdgru_on_2d_grid.py
X-rayLaser/multi-directional-mdrnn
70b0e1c2e07b5f476c264c6700e8d34d41a2ce10
[ "MIT" ]
1
2021-02-23T16:29:05.000Z
2021-05-07T15:05:54.000Z
tests/unit/multi_dimensional_RNN/_test_mdgru_on_2d_grid.py
X-rayLaser/multi-directional-mdrnn
70b0e1c2e07b5f476c264c6700e8d34d41a2ce10
[ "MIT" ]
2
2020-03-31T15:44:06.000Z
2021-05-10T15:26:35.000Z
from .test_mdrnn_on_2d_grid import Degenerate2DInputToMDRNNTests, \ OutputShapeGiven2DTests, OutputShapeGiven6DInputTests import tensorflow as tf from mdrnn import MDGRU class Degenerate2DInputToMDGRUTests(Degenerate2DInputToMDRNNTests): def create_mdrnn(self, **kwargs): return MDGRU(**kwargs) de...
29.304348
81
0.783383
79536d7f5ed5fa48a58aa5c4db4b24f01ec8935b
7,231
py
Python
v3/disentangled training/lib.py
biboamy/instrument-disentangle
bdf6e7d36ce36e6abe0249712cc9b853e77e7a36
[ "MIT" ]
19
2019-05-28T01:11:03.000Z
2021-12-31T01:38:47.000Z
v3/disentangled training/lib.py
biboamy/instrument-disentangle
bdf6e7d36ce36e6abe0249712cc9b853e77e7a36
[ "MIT" ]
3
2020-03-27T03:34:37.000Z
2020-10-04T11:32:17.000Z
v3/disentangled training/lib.py
biboamy/instrument-disentangle
bdf6e7d36ce36e6abe0249712cc9b853e77e7a36
[ "MIT" ]
6
2019-08-23T09:58:25.000Z
2022-02-09T09:35:10.000Z
import librosa, torch #from pypianoroll import Multitrack, Track import numpy as np import torch.nn.init as init from torch.utils.data import Dataset import torch.nn as nn from torch.autograd import Variable import torch.nn.functional as F from random import randint def griffin_lim(mag_spec, n_fft, hop, iterations): ...
38.462766
106
0.604204
79536ef63f58198cea811c93cdfdcd69cee9ecf6
6,303
py
Python
venv/lib/python3.8/site-packages/dateparser/data/date_translation_data/be.py
yuta-komura/vishnu
67173b674d5f4f3be189474103612447ef69ab44
[ "MIT" ]
1
2021-11-17T04:55:14.000Z
2021-11-17T04:55:14.000Z
dateparser/data/date_translation_data/be.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
dateparser/data/date_translation_data/be.py
cool-RR/dateparser
c38336df521cc57d947dc2c9111539a72f801652
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- info = { "name": "be", "date_order": "DMY", "january": [ "студзень", "сту", "студзеня", "Стд" ], "february": [ "люты", "лют", "лютага" ], "march": [ "сакавік", "сак", "сакавіка" ], ...
18.429825
60
0.282088
79536fe6d23d9300fef187569f1e3dd1c238fd63
87
py
Python
test/run/t539.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
test/run/t539.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
test/run/t539.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
print type(int(3999999999.0)) print int(3999999999.0) # print type(int(pow(2,53) + 2))
21.75
32
0.701149
7953700fbabb98154bdc153f27e306bee672e00e
5,864
py
Python
docs/source/conf.py
blakeboswell/valence
0256489804b4c4344bcdbe0de3632896b3d12d5d
[ "BSD-3-Clause" ]
1
2019-07-01T07:27:13.000Z
2019-07-01T07:27:13.000Z
docs/source/conf.py
blakeboswell/valence
0256489804b4c4344bcdbe0de3632896b3d12d5d
[ "BSD-3-Clause" ]
15
2017-07-16T07:14:49.000Z
2017-08-28T04:26:40.000Z
docs/source/conf.py
blakeboswell/valence
0256489804b4c4344bcdbe0de3632896b3d12d5d
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file does only contain a selection of the most common options. For a # full list see the documentation: # http://www.sphinx-doc.org/en/stable/config # -- Path setup ------------------------------------------------------------...
29.918367
79
0.644952
795370adc0852c94152e62abae7c2675ad5d9490
6,733
py
Python
utils/lda.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
2
2021-03-26T03:02:52.000Z
2021-04-01T11:08:46.000Z
utils/lda.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
utils/lda.py
czyczyyzc/WeiboSpider
41b9c97cb01d41cb4a62efdd452451b5ef25bdbc
[ "MIT" ]
null
null
null
# -*- coding:utf-8 -*- import os import csv import random import numpy as np from collections import OrderedDict class Document(object): def __init__(self): self.words = [] self.length = 0 class StatisticalData(object): def __init__(self): self.docs_count = 0 self.words_count...
43.720779
128
0.56379
795370b181690b35191cf045255cd57b67b51efd
953
py
Python
python/p010.py
josola/project-euler
3ef2366af5575806b2e0e604989b0f3e59538475
[ "MIT" ]
null
null
null
python/p010.py
josola/project-euler
3ef2366af5575806b2e0e604989b0f3e59538475
[ "MIT" ]
6
2021-08-03T20:09:29.000Z
2021-08-03T20:55:09.000Z
python/p010.py
josola/project-euler
3ef2366af5575806b2e0e604989b0f3e59538475
[ "MIT" ]
null
null
null
# Project Euler # Problem 10 - Summation of primes # (c) 2020-2022 Jordan Sola. All rights reserved. (MIT License) # Written by Jordan Sola 2020-2021 def compute(LIMIT): # - Uses Sieve of Eratosthenes to eliminate composite # numbers up to the limit. # - The sieve tracks previously marked primes without increas...
22.162791
85
0.644281
79537175e8ba0d7e97ff14e054f2b5ef8c8154c6
1,529
py
Python
scripts/odp_s3.py
CCI-Tools/zarr-cache
23c873966e06440b65406fd633b0c8fe63ca70a1
[ "MIT" ]
null
null
null
scripts/odp_s3.py
CCI-Tools/zarr-cache
23c873966e06440b65406fd633b0c8fe63ca70a1
[ "MIT" ]
null
null
null
scripts/odp_s3.py
CCI-Tools/zarr-cache
23c873966e06440b65406fd633b0c8fe63ca70a1
[ "MIT" ]
null
null
null
import s3fs import os.path import xarray as xr from xcube_cci.cciodp import CciOdp from xcube_cci.chunkstore import CciChunkStore from zarr_cache import CachedStore, S3StoreOpener from zarr_cache import IndexedCacheStorage from zarr_cache import MemoryStoreIndex odp = CciOdp() dataset_names_path = 'dataset_names.txt...
36.404762
107
0.725311
7953719b935ddf911aad3f2db415a5b801c27415
444
py
Python
resource-3/banking-card-pin/same-pin-digits/random.py
dragonwolverines/Datastructures-Python
a3feb13107736e1dab4c5a2e8dc137a6befc2e1b
[ "BSD-2-Clause" ]
null
null
null
resource-3/banking-card-pin/same-pin-digits/random.py
dragonwolverines/Datastructures-Python
a3feb13107736e1dab4c5a2e8dc137a6befc2e1b
[ "BSD-2-Clause" ]
null
null
null
resource-3/banking-card-pin/same-pin-digits/random.py
dragonwolverines/Datastructures-Python
a3feb13107736e1dab4c5a2e8dc137a6befc2e1b
[ "BSD-2-Clause" ]
null
null
null
# What is the probability of one specific person to have the same pin digits with the person next to him? # Assume that the pin is four digits # Generating a random process from random import randint def rand_pin_digits(): a = '{0:04}'.format(randint(0, 10000)) a = set(a) return a match = 0 for i in r...
20.181818
105
0.637387
795373012cb217f71abbabe62f60c733a7c26ff8
980
py
Python
src/python/QueryParquetFile.py
397090770/learning-spark
42fd8baefc4ee215d6acd826b8999b525b7669a6
[ "MIT" ]
null
null
null
src/python/QueryParquetFile.py
397090770/learning-spark
42fd8baefc4ee215d6acd826b8999b525b7669a6
[ "MIT" ]
null
null
null
src/python/QueryParquetFile.py
397090770/learning-spark
42fd8baefc4ee215d6acd826b8999b525b7669a6
[ "MIT" ]
2
2017-09-28T06:54:58.000Z
2018-10-14T06:37:14.000Z
# Finds the names of people who like pandas from a parquet file # consisting of name & favouriteAnimal. # For input you can use the result of MakeParquetFile from pyspark import SparkContext from pyspark.sql import SQLContext import json import sys if __name__ == "__main__": if len(sys.argv) != 3: print "E...
36.296296
90
0.708163
795373ba27f60e4e5b06aaf0acc6497fb20ff6c4
12,726
py
Python
pysnmp/ERI-DNX-PERF-MONT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
11
2021-02-02T16:27:16.000Z
2021-08-31T06:22:49.000Z
pysnmp/ERI-DNX-PERF-MONT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
75
2021-02-24T17:30:31.000Z
2021-12-08T00:01:18.000Z
pysnmp/ERI-DNX-PERF-MONT-MIB.py
agustinhenze/mibs.snmplabs.com
1fc5c07860542b89212f4c8ab807057d9a9206c7
[ "Apache-2.0" ]
10
2019-04-30T05:51:36.000Z
2022-02-16T03:33:41.000Z
# # PySNMP MIB module ERI-DNX-PERF-MONT-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ERI-DNX-PERF-MONT-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 18:51:47 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (def...
114.648649
1,758
0.753968
795375074c4ccb8577eac3bb4f3649a6bcc6c595
3,706
py
Python
scripts/config.py
rohankumardubey/ramcloud
3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f
[ "0BSD" ]
5
2015-11-14T16:49:06.000Z
2019-09-03T13:21:30.000Z
scripts/config.py
rohankumardubey/ramcloud
3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f
[ "0BSD" ]
null
null
null
scripts/config.py
rohankumardubey/ramcloud
3a30ba5edc4a81d5e12ab20fda0360cb9bacf50f
[ "0BSD" ]
1
2018-02-25T11:16:27.000Z
2018-02-25T11:16:27.000Z
#!/usr/bin/env python # Copyright (c) 2011 Stanford University # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above # copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND T...
35.295238
77
0.726929
795377ac4369812cc266aa4a1ff27f0cf1692128
4,453
py
Python
examples/demo_bandits/plot_compare_index_bandits.py
TimotheeMathieu/rlberry
a351ead4209d3f95c1327e8140a83d6bc0214d40
[ "MIT" ]
null
null
null
examples/demo_bandits/plot_compare_index_bandits.py
TimotheeMathieu/rlberry
a351ead4209d3f95c1327e8140a83d6bc0214d40
[ "MIT" ]
null
null
null
examples/demo_bandits/plot_compare_index_bandits.py
TimotheeMathieu/rlberry
a351ead4209d3f95c1327e8140a83d6bc0214d40
[ "MIT" ]
null
null
null
""" ============================================================= Comparison subplots of various index based bandits algorithms ============================================================= This script Compare several bandits agents and as a sub-product also shows how to use subplots in with `plot_writer_data` """ imp...
24.60221
86
0.644285
79537817fb6a1dad4804313f694f55a7c60f370c
8,935
py
Python
powerline_shell/__init__.py
damageboy/powerline-shell
9395706d82a4073b0c2bf210ebf4953674813d17
[ "MIT" ]
null
null
null
powerline_shell/__init__.py
damageboy/powerline-shell
9395706d82a4073b0c2bf210ebf4953674813d17
[ "MIT" ]
null
null
null
powerline_shell/__init__.py
damageboy/powerline-shell
9395706d82a4073b0c2bf210ebf4953674813d17
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import print_function import argparse import os import sys import importlib import json from .utils import warn, py3, import_file import re def _current_dir(): """Returns the full current working directory as the user would have used in their shell...
32.02509
103
0.556128
79537a9523e9503864dfcfcf4413e5ea30661356
3,589
py
Python
detectors/all_rules_generator.py
stworekAsiorek/CRDiS
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
1
2021-09-07T11:17:38.000Z
2021-09-07T11:17:38.000Z
detectors/all_rules_generator.py
KayJay624/SequenceGenerator
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
null
null
null
detectors/all_rules_generator.py
KayJay624/SequenceGenerator
bb95860bbe75f84d7bac0b7ff982855ebaddf287
[ "MIT" ]
1
2019-01-17T18:32:45.000Z
2019-01-17T18:32:45.000Z
# The MIT License # Copyright (c) 2018 Kamil Jurek # # 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, merge...
47.223684
127
0.656172
79537aee41e62f3c25efb16021971447f37811b5
2,475
py
Python
yt/frontends/moab/io.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
360
2017-04-24T05:06:04.000Z
2022-03-31T10:47:07.000Z
yt/frontends/moab/io.py
Xarthisius/yt
321643c3abff64a6f132d98d0747f3558f7552a3
[ "BSD-3-Clause-Clear" ]
2,077
2017-04-20T20:36:07.000Z
2022-03-31T16:39:43.000Z
yt/frontends/moab/io.py
stonnes/yt
aad3cfa3b4ebab7838352ab467275a27c26ff363
[ "BSD-3-Clause-Clear" ]
257
2017-04-19T20:52:28.000Z
2022-03-29T12:23:52.000Z
import numpy as np from yt.funcs import mylog from yt.utilities.io_handler import BaseIOHandler def field_dname(field_name): return f"/tstt/elements/Hex8/tags/{field_name}" # TODO all particle bits were removed class IOHandlerMoabH5MHex8(BaseIOHandler): _dataset_type = "moab_hex8" def __init__(self, d...
32.565789
79
0.564848
79537b4a0340de993843bcb755e46d14cdb672b9
1,173
py
Python
setup.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
setup.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
setup.py
tuxpiper/raduga
e63bdd8f9d4154c0ac0a72a1182da5d137e38514
[ "MIT" ]
null
null
null
''' @author: David Losada Carballo <david@tuxpiper.com> ''' from setuptools import setup, find_packages setup( name = "raduga", version = "0.0.7", packages = find_packages(), description = ("Infrastructure-as-code framework for AWS"), author = "David Losada Carballo", author_email = "david@tu...
30.076923
117
0.602728
79537bd4942df06473aa6d5f69c9e89612983b58
9,966
py
Python
tests/test_losses.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
2,512
2021-01-27T18:44:44.000Z
2022-03-31T19:33:49.000Z
tests/test_losses.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
361
2021-01-27T20:12:09.000Z
2022-03-31T12:39:34.000Z
tests/test_losses.py
blazejdolicki/vissl
9c10748a19fb1c637f32687142c8cd685f2410ff
[ "MIT" ]
277
2021-01-29T08:09:02.000Z
2022-03-31T07:57:35.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import logging import unittest from collections import namedtuple import torch import torch.nn as nn from classy_vision.generic.distributed_ut...
37.466165
88
0.630544
79537c47b0d41b0be1a92a3b9d8e1f8fa41b8e09
1,141
py
Python
setup.py
acpaquette/pysis
c0d84e6e5a803e11844a866ef5e30c6eee63b01b
[ "BSD-3-Clause" ]
11
2015-05-13T01:02:59.000Z
2021-12-24T02:27:02.000Z
setup.py
acpaquette/pysis
c0d84e6e5a803e11844a866ef5e30c6eee63b01b
[ "BSD-3-Clause" ]
20
2015-04-19T23:43:34.000Z
2020-07-31T23:22:06.000Z
setup.py
acpaquette/pysis
c0d84e6e5a803e11844a866ef5e30c6eee63b01b
[ "BSD-3-Clause" ]
8
2016-07-19T20:51:25.000Z
2020-03-24T04:58:25.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- from setuptools import setup, find_packages readme = open('README.rst').read() history = open('HISTORY.rst').read().replace('.. :changelog:', '') setup( name='pysis', version='0.6.1', description='Toolkit for using USGS Isis in Python.', long_description=...
31.694444
66
0.607362
79537c81f1ed0b2781f20d041444a1222898ba98
2,235
py
Python
gym_minigrid/envs/lavagap.py
floringogianu/gym-minigrid
0403f4dc003c393db8111434e58678ccb023eb8d
[ "BSD-3-Clause" ]
null
null
null
gym_minigrid/envs/lavagap.py
floringogianu/gym-minigrid
0403f4dc003c393db8111434e58678ccb023eb8d
[ "BSD-3-Clause" ]
null
null
null
gym_minigrid/envs/lavagap.py
floringogianu/gym-minigrid
0403f4dc003c393db8111434e58678ccb023eb8d
[ "BSD-3-Clause" ]
null
null
null
from gym_minigrid.minigrid import * from gym_minigrid.register import register class LavaGapEnv(MiniGridEnv): """ Environment with one wall of lava with a small gap to cross through This environment is similar to LavaCrossing but simpler in structure. """ def __init__(self, size, obstacle_type=Lav...
27.592593
79
0.624609
79537d8f1a33508e311f0c1c3b9ec001ea8b57cf
13,996
py
Python
django_lazifier/utils/builtin_types/list.py
hotmit/django-lazifier
a2914b7ced955fa91b1961025e1d3ccc7ac3702a
[ "MIT" ]
1
2017-04-27T19:25:34.000Z
2017-04-27T19:25:34.000Z
django_lazifier/utils/builtin_types/list.py
hotmit/django-lazifier
a2914b7ced955fa91b1961025e1d3ccc7ac3702a
[ "MIT" ]
null
null
null
django_lazifier/utils/builtin_types/list.py
hotmit/django-lazifier
a2914b7ced955fa91b1961025e1d3ccc7ac3702a
[ "MIT" ]
null
null
null
from collections import OrderedDict import random from django_lazifier.utils.builtin_types.obj import Obj from django_lazifier.utils.builtin_types.str import Str from django_lazifier.utils.utils import log_exception class Lst: @classmethod def get_random(cls, the_list: list, pop=False, default_value=...
33.88862
127
0.544656
79537e4fbaed0761f44fac8c9b5ffbaaa531a12b
820
py
Python
python/y2019/d01/day01.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
1
2021-01-12T20:04:01.000Z
2021-01-12T20:04:01.000Z
python/y2019/d01/day01.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
null
null
null
python/y2019/d01/day01.py
luke-dixon/aoc
94851a5866a1ef29e3ba10098160cba883882683
[ "MIT" ]
null
null
null
from typing import List from lib import puzzle def calc_fuel(x: int, recursive: bool = False): fuel_required = x // 3 fuel_required -= 2 if recursive and fuel_required > 0: more_fuel = calc_fuel(fuel_required, recursive=recursive) if more_fuel > 0: fuel_required += more_fuel ...
22.777778
65
0.635366
79537ffea4d5375276bfc704c798294f6a262693
113
py
Python
functions.py
rickyu/zspam
f8fffff197c4ed877eafe59ab2f3b9a6d9d7a203
[ "MIT" ]
null
null
null
functions.py
rickyu/zspam
f8fffff197c4ed877eafe59ab2f3b9a6d9d7a203
[ "MIT" ]
null
null
null
functions.py
rickyu/zspam
f8fffff197c4ed877eafe59ab2f3b9a6d9d7a203
[ "MIT" ]
null
null
null
#encoding:utf-8 from datetime import datetime def user_register_time(mid): return datetime.now().toordinal()
22.6
37
0.778761
79538060073eb0974c1a87c7e7ddf25ac2814e61
159
py
Python
exercises/while_loops.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
exercises/while_loops.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
exercises/while_loops.py
gaya19-meet/y2s18-python_review
d867248bc15c4c61fd0ee4535b3c8cb0a6c47eaa
[ "MIT" ]
null
null
null
# Write your solution for 1.3 here! counter = 0 sum = 0 while sum < 10000: counter = counter + 1 sum = sum + counter print (sum) print (counter)
7.571429
35
0.622642
795380d85781f0b183dae973c1626b2ffe6f1fea
3,205
py
Python
trello/member.py
dmwyatt/py-trello
2ad38e7da8b2ed2b57cc589c6886bf891a0c6a20
[ "BSD-3-Clause" ]
2
2021-12-02T11:41:02.000Z
2021-12-27T12:01:53.000Z
trello/member.py
dmwyatt/py-trello
2ad38e7da8b2ed2b57cc589c6886bf891a0c6a20
[ "BSD-3-Clause" ]
null
null
null
trello/member.py
dmwyatt/py-trello
2ad38e7da8b2ed2b57cc589c6886bf891a0c6a20
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import with_statement, print_function, absolute_import from trello import TrelloBase from trello.compat import force_str class Member(TrelloBase): """ Class representing a Trello member. """ def __init__(self, client, member_id, full_name=''): super(Me...
37.267442
148
0.615913
795381ebf8db57bdd4e29dfeb2a9c96e74f0fa48
6,589
py
Python
_unittests/ut_special/test_rue_paris.py
mohamedelkansouli/Ensae_py
8bc867bd2081c259c793fadfa8be5dcc7bd1400b
[ "MIT" ]
null
null
null
_unittests/ut_special/test_rue_paris.py
mohamedelkansouli/Ensae_py
8bc867bd2081c259c793fadfa8be5dcc7bd1400b
[ "MIT" ]
null
null
null
_unittests/ut_special/test_rue_paris.py
mohamedelkansouli/Ensae_py
8bc867bd2081c259c793fadfa8be5dcc7bd1400b
[ "MIT" ]
null
null
null
""" @brief test log(time=25s) """ import os import sys import unittest from pyquickhelper.loghelper import fLOG from pyquickhelper.pycode import fix_tkinter_issues_virtualenv from pyensae.datasource import download_data try: import src except ImportError: path = os.path.normpath( os.path.abspath( ...
31.830918
129
0.524814
7953825265a3c45861364ddfb5d30170f362a594
1,890
py
Python
alipay/aop/api/domain/AlipaySocialQuestionnareGrayUpgradeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
213
2018-08-27T16:49:32.000Z
2021-12-29T04:34:12.000Z
alipay/aop/api/domain/AlipaySocialQuestionnareGrayUpgradeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
29
2018-09-29T06:43:00.000Z
2021-09-02T03:27:32.000Z
alipay/aop/api/domain/AlipaySocialQuestionnareGrayUpgradeModel.py
antopen/alipay-sdk-python-all
8e51c54409b9452f8d46c7bb10eea7c8f7e8d30c
[ "Apache-2.0" ]
59
2018-08-27T16:59:26.000Z
2022-03-25T10:08:15.000Z
#!/usr/bin/env python # -*- coding: utf-8 -*- import json from alipay.aop.api.constant.ParamConstants import * class AlipaySocialQuestionnareGrayUpgradeModel(object): def __init__(self): self._ext_info = None self._gray_percent = None self._qstn_id = None @property def ext_info(...
26.619718
75
0.58836
7953835e57754eaed5e1936da17007e7cc0bf6a8
129
py
Python
backend/user/urls.py
pennlabs/student-life
aaac7109b9bd2617787cb3aa813e5f736abb24a5
[ "MIT" ]
7
2019-12-25T04:11:24.000Z
2021-10-11T05:00:17.000Z
backend/user/urls.py
pennlabs/student-life
aaac7109b9bd2617787cb3aa813e5f736abb24a5
[ "MIT" ]
41
2019-12-25T18:37:35.000Z
2021-10-10T19:50:21.000Z
backend/user/urls.py
pennlabs/student-life
aaac7109b9bd2617787cb3aa813e5f736abb24a5
[ "MIT" ]
null
null
null
from django.urls import path from user import views urlpatterns = [ path("me/", views.UserView.as_view(), name="user"), ]
14.333333
55
0.682171
7953835effae21ee459a7cf919d6afbd67ec969d
43,798
py
Python
sympy/mpmath/libmp/libelefun.py
benjaminmcdonald/sympy
dc44dcc6d6d5f2d0a7ede35eff5f421ab4b11a3e
[ "BSD-3-Clause" ]
1
2016-07-13T04:30:25.000Z
2016-07-13T04:30:25.000Z
sympy/mpmath/libmp/libelefun.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
sympy/mpmath/libmp/libelefun.py
jegerjensen/sympy
3a43310f1957a21a6f095fe2801cc05b5268a2c7
[ "BSD-3-Clause" ]
null
null
null
""" This module implements computation of elementary transcendental functions (powers, logarithms, trigonometric and hyperbolic functions, inverse trigonometric and hyperbolic) for real floating-point numbers. For complex and interval implementations of the same functions, see libmpc and libmpi. """ import math from...
30.670868
83
0.515161
795383a8f9813d81dd05f4ea27a42f59068dd891
383
py
Python
wagtail/migrations/0009_remove_auto_now_add_from_pagerevision_created_at.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
1
2022-02-09T05:25:30.000Z
2022-02-09T05:25:30.000Z
wagtail/migrations/0009_remove_auto_now_add_from_pagerevision_created_at.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
wagtail/migrations/0009_remove_auto_now_add_from_pagerevision_created_at.py
stevedya/wagtail
52e5abfe62547cdfd90ea7dfeb8bf5a52f16324c
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("wagtailcore", "0008_populate_latest_revision_created_at"), ] operations = [ migrations.AlterField( model_name="pagerevision", name="created_a...
21.277778
68
0.600522
795383c5fae3be3d56413c08a117c1d36503a16a
6,125
py
Python
ccnpy/Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
1
2020-12-23T14:17:25.000Z
2020-12-23T14:17:25.000Z
ccnpy/Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
1
2019-07-01T18:19:05.000Z
2019-07-02T05:35:52.000Z
ccnpy/Packet.py
mmosko/ccnpy
20d982e2e3845818fde7f3facdc8cbcdff323dbb
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Marc Mosko # # 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 writ...
39.772727
120
0.670531
795383ee3762bf5346f3509cda4bcc55f6988034
705
py
Python
msgvis/apps/corpus/migrations/0003_auto_20150210_1903.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
10
2015-12-04T07:43:11.000Z
2021-01-23T00:44:56.000Z
msgvis/apps/corpus/migrations/0003_auto_20150210_1903.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
200
2015-02-11T05:41:57.000Z
2015-11-13T03:47:25.000Z
msgvis/apps/corpus/migrations/0003_auto_20150210_1903.py
hds-lab/textvis-drg
bfb136b6105df84fb6c1c89cc595bf9e9f22c5fe
[ "MIT" ]
6
2015-10-02T18:01:09.000Z
2021-01-23T00:44:58.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('corpus', '0002_auto_20150210_1903'), ] operations = [ migrations.AlterField( model_name='person', na...
26.111111
88
0.6
795384eb087f5d16802dbc960fa5567de8cc2757
9,392
py
Python
src/fiz_lernmodule/word2vec.py
gingergenius/patent-embedding-visualization
6c7d34dd5de097fbaafac9f6e837fcbc233563b5
[ "Apache-2.0" ]
2
2021-04-29T08:53:43.000Z
2022-02-17T11:54:52.000Z
src/fiz_lernmodule/word2vec.py
gingergenius/patent-embedding-visualization
6c7d34dd5de097fbaafac9f6e837fcbc233563b5
[ "Apache-2.0" ]
null
null
null
src/fiz_lernmodule/word2vec.py
gingergenius/patent-embedding-visualization
6c7d34dd5de097fbaafac9f6e837fcbc233563b5
[ "Apache-2.0" ]
1
2019-09-20T08:55:14.000Z
2019-09-20T08:55:14.000Z
""" Used for patent landscaping use-case. """ import os import pandas as pd import tensorflow as tf from sklearn.manifold import TSNE import matplotlib.pyplot as plt from scipy.spatial import distance import seaborn as sns; sns.set() class Word2Vec(object): """ Word2Vec embedding. """ def __init__(self, tra...
38.024291
133
0.603599
79538500a99cd40a2b82f4832367a7e3706ca3b0
57
py
Python
conn.py
TechNoteGit/pywebview_example
be8268542fff7c3a415b74c7bf7943d82a5d81c1
[ "MIT" ]
null
null
null
conn.py
TechNoteGit/pywebview_example
be8268542fff7c3a415b74c7bf7943d82a5d81c1
[ "MIT" ]
null
null
null
conn.py
TechNoteGit/pywebview_example
be8268542fff7c3a415b74c7bf7943d82a5d81c1
[ "MIT" ]
2
2021-09-11T01:26:30.000Z
2021-11-30T16:24:56.000Z
""" For Global variable """ parent = None child = None
9.5
21
0.631579
795385336d7a2d15af8fba034862c7ccffce9dd8
9,021
py
Python
tensorpack/tfutils/sessinit.py
awesome-archive/tensorpack
55f640f70e19d538e5082a4712241ee966fcb201
[ "Apache-2.0" ]
2
2021-01-31T11:18:49.000Z
2021-02-24T14:42:16.000Z
tensorpack/tfutils/sessinit.py
yangxue0827/tensorpack
e5e54e07bb47f85fc7efe9c78bde3e153ef0d49b
[ "Apache-2.0" ]
null
null
null
tensorpack/tfutils/sessinit.py
yangxue0827/tensorpack
e5e54e07bb47f85fc7efe9c78bde3e153ef0d49b
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # File: sessinit.py import numpy as np import six import tensorflow as tf from ..utils import logger from .common import get_op_tensor_name from .varmanip import SessionUpdate, get_checkpoint_path, get_savename_from_varname, is_training_name __all__ = ['SessionInit', 'ChainInit', ...
34.431298
110
0.618778
795385d37bf562e4cfb8a28c5c03bb672276b768
401
py
Python
sfaira/unit_tests/conftest.py
johnmous/sfaira
c50240a74530e614ab7681bf9c63b04cb815b361
[ "BSD-3-Clause" ]
110
2020-09-08T07:47:15.000Z
2022-03-29T03:33:56.000Z
sfaira/unit_tests/conftest.py
johnmous/sfaira
c50240a74530e614ab7681bf9c63b04cb815b361
[ "BSD-3-Clause" ]
405
2020-09-15T15:05:46.000Z
2022-03-16T14:44:23.000Z
sfaira/unit_tests/conftest.py
johnmous/sfaira
c50240a74530e614ab7681bf9c63b04cb815b361
[ "BSD-3-Clause" ]
20
2021-03-30T15:30:14.000Z
2022-03-07T12:52:58.000Z
from pytest import fixture def pytest_addoption(parser): parser.addoption( "--doi_sfaira_repr", action="store" ) parser.addoption( "--test_data", action="store" ) @fixture() def doi_sfaira_repr(request): return request.config.getoption("--doi_sfaira_repr") @fixt...
17.434783
56
0.653367