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
43f02b7cb68c695707d6c7cf67b6baad5d7aeea0
34,043
py
Python
nova/exception.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
null
null
null
nova/exception.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
null
null
null
nova/exception.py
bopopescu/Nova-31
cabc3f7a905ea982cf9d2832a3990ae8e061d963
[ "Apache-2.0" ]
1
2020-07-24T08:19:18.000Z
2020-07-24T08:19:18.000Z
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compli...
28.20464
79
0.68622
20945bb55a0b46ce51382f7ada6d45e3696e9857
24,425
py
Python
shapely/geos.py
marqh/Shapely
308e37c3c917e9bb616574fbe655b9d6dbef9f3d
[ "BSD-3-Clause" ]
null
null
null
shapely/geos.py
marqh/Shapely
308e37c3c917e9bb616574fbe655b9d6dbef9f3d
[ "BSD-3-Clause" ]
null
null
null
shapely/geos.py
marqh/Shapely
308e37c3c917e9bb616574fbe655b9d6dbef9f3d
[ "BSD-3-Clause" ]
null
null
null
""" Proxies for the libgeos_c shared lib, GEOS-specific exceptions, and utilities """ import os import re import sys import atexit import logging import threading from ctypes import CDLL, cdll, pointer, c_void_p, c_size_t, c_char_p, string_at from ctypes.util import find_library from . import ftools from .ctypes_decl...
33.321965
79
0.621167
f488e0cc8d2226e9e7b207bd7fb9b95867a864ea
5,051
py
Python
module_outputs.py
NYC00kie/PhysWikiQuiz
4243fd6fa6f23670b9743b6a2c79339a9f3d32fc
[ "Apache-2.0" ]
null
null
null
module_outputs.py
NYC00kie/PhysWikiQuiz
4243fd6fa6f23670b9743b6a2c79339a9f3d32fc
[ "Apache-2.0" ]
null
null
null
module_outputs.py
NYC00kie/PhysWikiQuiz
4243fd6fa6f23670b9743b6a2c79339a9f3d32fc
[ "Apache-2.0" ]
null
null
null
#TODO: slow down print out process #TODO: print out ALL retrieved variables # ISSUES: #TODO: module3.get_random_identifier_values # strToSympy parsing \frac, etc. #TODO: module5.check_value: # allow percentage float tolerance for answer value import module1_formula_and_identifier_retrieval as module1 import m...
36.601449
145
0.649772
1022be61d84817fdf6395f7ac7b728695c0d2bf6
11,041
py
Python
torchvision/io/video.py
spawn08/vision
bf6f908b0141736e0dac2002cb7b1d617b3cec3b
[ "BSD-3-Clause" ]
2
2020-05-27T13:20:38.000Z
2020-05-27T13:20:41.000Z
torchvision/io/video.py
spawn08/vision
bf6f908b0141736e0dac2002cb7b1d617b3cec3b
[ "BSD-3-Clause" ]
null
null
null
torchvision/io/video.py
spawn08/vision
bf6f908b0141736e0dac2002cb7b1d617b3cec3b
[ "BSD-3-Clause" ]
null
null
null
import gc import math import re import warnings from typing import Tuple, List import numpy as np import torch from . import _video_opt from ._video_opt import VideoMetaData try: import av av.logging.set_level(av.logging.ERROR) if not hasattr(av.video.frame.VideoFrame, "pict_type"): av = Import...
31.910405
113
0.626755
85dec694f479019be5c2ea8cb204e88260421570
907
py
Python
leonardo_kkadavy_orders/__init__.py
dresl/leonardo-kkadavy-orders
09f6fefa52af590f080deb5f6e770c44266bd099
[ "BSD-3-Clause" ]
null
null
null
leonardo_kkadavy_orders/__init__.py
dresl/leonardo-kkadavy-orders
09f6fefa52af590f080deb5f6e770c44266bd099
[ "BSD-3-Clause" ]
null
null
null
leonardo_kkadavy_orders/__init__.py
dresl/leonardo-kkadavy-orders
09f6fefa52af590f080deb5f6e770c44266bd099
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from django.apps import AppConfig from django.utils.translation import ugettext_lazy as _ try: from local_settings import APPS except ImportError: pass default_app_config = 'leonardo_kkadavy_orders.Config' class Default(object): if 'leonardo_kkadavy_orders' in APPS: optgr...
21.595238
85
0.631753
a3295dd940e0e25b39eb65d63c11436d05bf861b
25,543
py
Python
Lib/glyphsLib/builder/features.py
hugovk/glyphsLib
0be52cc708e03ec23590a4b9f65c18655b44b40c
[ "Apache-2.0" ]
null
null
null
Lib/glyphsLib/builder/features.py
hugovk/glyphsLib
0be52cc708e03ec23590a4b9f65c18655b44b40c
[ "Apache-2.0" ]
null
null
null
Lib/glyphsLib/builder/features.py
hugovk/glyphsLib
0be52cc708e03ec23590a4b9f65c18655b44b40c
[ "Apache-2.0" ]
null
null
null
# Copyright 2015 Google Inc. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
37.453079
87
0.612771
7d3357031319ceee43088f38d05095bf89959ce6
10,378
py
Python
tests/components/smartthings/test_config_flow.py
fkwp/home-assistant
539d24dd60d7d0d17ddc287995ef57f728d8eeab
[ "Apache-2.0" ]
1
2019-02-18T03:16:32.000Z
2019-02-18T03:16:32.000Z
tests/components/smartthings/test_config_flow.py
bwz3891923/home-assistant
ce7f678b9b505e25ab6d995bedd2fc6544e294f8
[ "Apache-2.0" ]
3
2021-09-08T03:29:36.000Z
2022-03-12T00:59:48.000Z
tests/components/smartthings/test_config_flow.py
bwz3891923/home-assistant
ce7f678b9b505e25ab6d995bedd2fc6544e294f8
[ "Apache-2.0" ]
null
null
null
"""Tests for the SmartThings config flow module.""" from unittest.mock import Mock, patch from uuid import uuid4 from aiohttp import ClientResponseError from pysmartthings import APIResponseError from homeassistant import data_entry_flow from homeassistant.components.smartthings.config_flow import ( SmartThingsFl...
36.542254
79
0.711891
4c1cd780e5be6ed40dfb8f854361e8db719d6364
36,658
py
Python
multi_tracker/nodes/dock_detection_v7.py
nhattruongpham/ROS_experiment
738411ec44e2ed3018a215778242218cafecc6f7
[ "MIT" ]
null
null
null
multi_tracker/nodes/dock_detection_v7.py
nhattruongpham/ROS_experiment
738411ec44e2ed3018a215778242218cafecc6f7
[ "MIT" ]
null
null
null
multi_tracker/nodes/dock_detection_v7.py
nhattruongpham/ROS_experiment
738411ec44e2ed3018a215778242218cafecc6f7
[ "MIT" ]
null
null
null
#!/usr/bin/env python import roslib # import roslib.packages # roslib.load_manifest('rep_cmd_vel') from roslib import scriptutil import sys, select, termios, tty import os import rospy from math import * from sensor_msgs.msg import Image, LaserScan from geometry_msgs.msg import Point32 from geometry_msgs.msg import Poi...
37.406122
236
0.717006
2cd95e48e431ab315fe70bca5ac5f20826fd20ba
3,982
py
Python
build.py
HorizonRobotics/cnest
9a477d1ef5e93fddf7c6aafc5296c81ca6d1827d
[ "MIT" ]
null
null
null
build.py
HorizonRobotics/cnest
9a477d1ef5e93fddf7c6aafc5296c81ca6d1827d
[ "MIT" ]
null
null
null
build.py
HorizonRobotics/cnest
9a477d1ef5e93fddf7c6aafc5296c81ca6d1827d
[ "MIT" ]
null
null
null
# Copyright (c) 2020 Horizon Robotics and ALF Contributors. 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...
30.396947
80
0.630839
93e49e0eb5daaf475d70ab69e972f4abb175e9c0
11,480
py
Python
tests/admin_docs/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
tests/admin_docs/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
tests/admin_docs/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
import unittest from django.conf import settings from django.contrib.sites.models import Site from django.contrib.admindocs import utils from django.contrib.admindocs.views import get_return_data_type from django.contrib.auth.models import User from django.core.urlresolvers import reverse from django.test import TestC...
40.565371
116
0.630052
9f387ce7d4a3615daa6f7fce918b226219b6bb87
14,016
py
Python
tests/test_data_table.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
14
2020-09-30T19:14:31.000Z
2021-08-08T18:34:19.000Z
tests/test_data_table.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
12
2020-10-27T02:12:57.000Z
2022-03-23T10:57:52.000Z
tests/test_data_table.py
howbazaar/dynamoquery
d666565af8cf4253c7601afe90866628b4394991
[ "MIT" ]
3
2020-09-29T19:25:19.000Z
2022-02-22T22:58:29.000Z
from copy import copy, deepcopy from typing import Optional import pytest from typing_extensions import TypedDict from dynamo_query.data_table import DataTable, DataTableError, Filter from dynamo_query.dictclasses.dictclass import DictClass from dynamo_query.dictclasses.dynamo_dictclass import DynamoDictClass class...
36.98153
91
0.541952
330ead185e8a1af5ee180ab0324dca435d182955
3,966
py
Python
src/pix2pix/data_loader.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
src/pix2pix/data_loader.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
src/pix2pix/data_loader.py
sorabatake/article_15701_convert_optical_and_sar
62c21b43e6e364f0131bea6f14e6e4bc0697deb2
[ "CC0-1.0" ]
null
null
null
import scipy from glob import glob import numpy as np import matplotlib.pyplot as plt class DataLoader(): def __init__(self, dataset_name, img_res=(128, 128)): self.dataset_name = dataset_name self.img_res = img_res def load_data(self, batch_size=1, is_testing=False): data_type = "trai...
35.097345
81
0.529249
a044ef63306e4c9ebd548be4a8d37ccee10f77d9
6,726
py
Python
week4/search.py
cuongthamhl/search_with_machine_learning_course
687013e99512392b3d140eb87ee2c29de80cc64c
[ "Apache-2.0" ]
null
null
null
week4/search.py
cuongthamhl/search_with_machine_learning_course
687013e99512392b3d140eb87ee2c29de80cc64c
[ "Apache-2.0" ]
null
null
null
week4/search.py
cuongthamhl/search_with_machine_learning_course
687013e99512392b3d140eb87ee2c29de80cc64c
[ "Apache-2.0" ]
null
null
null
# # The main search hooks for the Search Flask application. # from flask import ( Blueprint, redirect, render_template, request, url_for ) from week4.opensearch import get_opensearch bp = Blueprint('search', __name__, url_prefix='/search') # Process the filters requested by the user and return a tuple that is a...
40.275449
171
0.519625
dd07e44fa72b09aa75a0d416d4b745861427ba3d
186
py
Python
api/api_app/apps.py
AndriiChuzhynov/medicine-for-ukraine
f526953c578a689d9efb032e4471059b2f6f7cbe
[ "MIT" ]
null
null
null
api/api_app/apps.py
AndriiChuzhynov/medicine-for-ukraine
f526953c578a689d9efb032e4471059b2f6f7cbe
[ "MIT" ]
null
null
null
api/api_app/apps.py
AndriiChuzhynov/medicine-for-ukraine
f526953c578a689d9efb032e4471059b2f6f7cbe
[ "MIT" ]
null
null
null
from django.apps import AppConfig class ApiAppConfig(AppConfig): default_auto_field = 'django.db.models.BigAutoField' verbose_name = "Medicine for Ukraine" name = 'api_app'
26.571429
56
0.752688
9f4fbbdf3d3193058e3adae6144a080b0d169b0d
1,851
py
Python
analyses/ScaleGen.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/ScaleGen.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
analyses/ScaleGen.py
ThinkNaive/Matrix-Vector-Multiplication
9a00ba9e4d0d298ce4ff3bfae092f49571a56605
[ "MIT" ]
null
null
null
# coding=utf-8 import random import time import numpy as np from master import run if __name__ == '__main__': rows = [500, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 11000, 12000] col = 10000 iteration = 10 params = [ {'id': '1', 'strategy': 'rep', 'p': 10, 'repNum': 1}, ...
44.071429
135
0.511615
1d0d970580e7fc0aee24e48a9f8f473cda1f4192
8,111
py
Python
lib/utils/bn_helper.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
377
2019-04-17T17:45:45.000Z
2022-03-18T14:02:24.000Z
lib/utils/bn_helper.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
64
2019-04-24T16:19:45.000Z
2021-08-02T02:05:20.000Z
lib/utils/bn_helper.py
kiyoon/video-long-term-feature-banks
f1201555901cf8c04ce45e97551e01fd04b541d4
[ "Apache-2.0" ]
81
2019-04-17T20:15:48.000Z
2022-03-24T12:27:45.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # 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 ...
36.536036
79
0.602269
d9885f189903051d148c055485bcee170d8a0016
1,905
py
Python
gbkfit_web/admin.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
gbkfit_web/admin.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
gbkfit_web/admin.py
ADACS-Australia/ADACS-GBKFIT
20c7cafcabb6e75d8c287df06efb43113fdabd25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- #============================================================================== # # This code was developed as part of the Astronomy Data and Computing Services # (ADACS; https:#adacs.org.au) 2017B Software Support program. # # Written by: Dany Vohl, Lewis Lakerink, Shibli Saleheen # Date: ...
40.531915
80
0.707612
1fe4c6061cdcee6be54220aa190fc156eecb2a3e
5,344
py
Python
tests/components/splunk/test_init.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
3
2020-05-18T10:18:16.000Z
2020-12-08T11:27:55.000Z
tests/components/splunk/test_init.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
39
2016-12-16T12:40:34.000Z
2017-02-13T17:53:42.000Z
tests/components/splunk/test_init.py
petewill/home-assistant
5859dba4344f05fb8774aa1207e47ac28f627a67
[ "Apache-2.0" ]
6
2020-04-10T06:21:11.000Z
2021-07-01T08:53:38.000Z
"""The tests for the Splunk component.""" import json import unittest from unittest import mock from homeassistant.setup import setup_component import homeassistant.components.splunk as splunk from homeassistant.const import STATE_ON, STATE_OFF, EVENT_STATE_CHANGED from homeassistant.helpers import state as state_help...
34.701299
83
0.553892
b2792c92f15bd48a20b82ae066d4a2064f6cc214
5,483
py
Python
examples/linear_model/plot_lasso_model_selection.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
199
2020-08-27T09:03:21.000Z
2021-11-09T11:21:07.000Z
examples/linear_model/plot_lasso_model_selection.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
4
2021-10-07T08:40:50.000Z
2021-11-18T19:11:40.000Z
examples/linear_model/plot_lasso_model_selection.py
MaiRajborirug/scikit-learn
c18d015372f7041099d19c215cd4c36ffd6fe5c5
[ "BSD-3-Clause" ]
2
2018-10-02T03:13:40.000Z
2020-04-27T07:29:18.000Z
""" =================================================== Lasso model selection: Cross-Validation / AIC / BIC =================================================== Use the Akaike information criterion (AIC), the Bayes Information criterion (BIC) and cross-validation to select an optimal value of the regularization paramet...
31.877907
87
0.689221
f999ab1ecf8c66ae8d5451e37228a4320674b409
2,375
py
Python
Aumented Reality 101/Fiducials and Markers/opencv-generate-aruco/opencv_generate_aruco_practice.py
jjaramillo34/pyimagesearchuniversity_course
0a4a26c29a6f8122f6a03d3393ac01ebbc14a391
[ "MIT" ]
1
2022-03-13T16:52:58.000Z
2022-03-13T16:52:58.000Z
Aumented Reality 101/Fiducials and Markers/opencv-generate-aruco/opencv_generate_aruco_practice.py
jjaramillo34/pyimagesearchuniversity_course
0a4a26c29a6f8122f6a03d3393ac01ebbc14a391
[ "MIT" ]
null
null
null
Aumented Reality 101/Fiducials and Markers/opencv-generate-aruco/opencv_generate_aruco_practice.py
jjaramillo34/pyimagesearchuniversity_course
0a4a26c29a6f8122f6a03d3393ac01ebbc14a391
[ "MIT" ]
null
null
null
# USAGE # python opencv_generate_aruco_practice.py --id 24 --type DICT_5X5_100 --output tags/DICT_5X5_100_id24.png # import the necessary packages import numpy as np import argparse import cv2 import sys # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-o", "--ou...
35.447761
106
0.753263
6804295c51ca7af38134d301de145ca9e317e28e
9,701
py
Python
dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/custom_resource.py
pawandayma/lumberyard
e178f173f9c21369efd8c60adda3914e502f006a
[ "AML" ]
null
null
null
dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/custom_resource.py
pawandayma/lumberyard
e178f173f9c21369efd8c60adda3914e502f006a
[ "AML" ]
null
null
null
dev/Gems/CloudGemFramework/v1/AWS/lambda-code/ProjectResourceHandler/custom_resource.py
pawandayma/lumberyard
e178f173f9c21369efd8c60adda3914e502f006a
[ "AML" ]
null
null
null
# # All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or # its licensors. # # For complete copyright and license terms please see the LICENSE at the root of this # distribution (the "License"). All use of this software is governed by the License, # or, if provided, by the license below or th...
50.005155
170
0.631275
2dae6eac62b1c4f0e4b5c56d23623cffe3462497
510
py
Python
tests/base_test.py
kostya-ten/iperon
abbfc12b15cdbd496e50720f957d5bce5ab8f382
[ "Apache-2.0" ]
1
2022-01-11T17:38:30.000Z
2022-01-11T17:38:30.000Z
tests/base_test.py
kostya-ten/iperon
abbfc12b15cdbd496e50720f957d5bce5ab8f382
[ "Apache-2.0" ]
5
2022-01-12T07:59:25.000Z
2022-02-09T20:53:01.000Z
tests/base_test.py
kostya-ten/iperon
abbfc12b15cdbd496e50720f957d5bce5ab8f382
[ "Apache-2.0" ]
1
2022-01-11T18:54:28.000Z
2022-01-11T18:54:28.000Z
import httpx import pytest from httpx import AsyncClient @pytest.mark.asyncio async def test_cors(app): client = AsyncClient(app=app, base_url='http://localhost.local') response: httpx.Response = await client.get( url='/api/v1/health/check/', headers={'Origin': 'http://localhost'} ) as...
30
68
0.707843
94cb525c8cecf16b9f5c71f30d46cb6fc5718570
5,507
py
Python
maint/GenerateUtt.py
Distrotech/pcre2
bf38087eeb3bf224e37c9151cc0a35cffff4c9c5
[ "BSD-3-Clause" ]
null
null
null
maint/GenerateUtt.py
Distrotech/pcre2
bf38087eeb3bf224e37c9151cc0a35cffff4c9c5
[ "BSD-3-Clause" ]
null
null
null
maint/GenerateUtt.py
Distrotech/pcre2
bf38087eeb3bf224e37c9151cc0a35cffff4c9c5
[ "BSD-3-Clause" ]
null
null
null
#! /usr/bin/python # Generate utt tables. Note: this script has now been converted to Python 3. # The source file pcre2_tables.c contains (amongst other things), a table that # is indexed by script name. In order to reduce the number of relocations when # loading the library, the names are held as a single large stri...
44.772358
118
0.63392
cb788798e48d3a6ce570287f32f378b81788aa00
1,757
py
Python
examples/widgets/image.py
Kijewski/pyiced
be8db4c55d61f3f9f48bd5c8c8700b665ffd3e1b
[ "Apache-2.0" ]
1
2022-03-08T10:33:11.000Z
2022-03-08T10:33:11.000Z
examples/widgets/image.py
Kijewski/pyiced
be8db4c55d61f3f9f48bd5c8c8700b665ffd3e1b
[ "Apache-2.0" ]
10
2021-12-16T14:53:58.000Z
2022-03-08T07:36:05.000Z
examples/widgets/image.py
Kijewski/pyiced
be8db4c55d61f3f9f48bd5c8c8700b665ffd3e1b
[ "Apache-2.0" ]
null
null
null
from asyncio import open_connection from contextlib import closing from pyiced import ( Align, container, IcedApp, image, ImageHandle, Length, Settings, text, WindowSettings, ) class ImageExample(IcedApp): def __init__(self): self.__handle = None class settings(Settings): class windo...
24.746479
74
0.579397
c914eea91ca147937df8d97907cec94710d40702
277
py
Python
frappe_backend/config/desktop.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
frappe_backend/config/desktop.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
frappe_backend/config/desktop.py
Nirchains/frappe-backend
8258016e9ece7573ee935e79b3c065eff6616e0b
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from frappe import _ def get_data(): return [ { "module_name": "Frappe Backend", "color": "grey", "icon": "octicon octicon-file-directory", "type": "module", "label": _("Frappe Backend") } ]
18.466667
44
0.624549
1a1ce41245e09a0d6b9b8be45c928cf39ed56268
104
py
Python
concat.py
sudha6/python-personal-archive
6e737cb61f8ce138a81b25285f129262f0bb6385
[ "MIT" ]
null
null
null
concat.py
sudha6/python-personal-archive
6e737cb61f8ce138a81b25285f129262f0bb6385
[ "MIT" ]
null
null
null
concat.py
sudha6/python-personal-archive
6e737cb61f8ce138a81b25285f129262f0bb6385
[ "MIT" ]
null
null
null
a = "THANKS FOR " b = "GIVING THIS " c = "OPPORTUNITY TO DO " d = "THIS INTERNSHIP" e = a+b+c+d print(e)
17.333333
24
0.605769
81c208416d97b1d4ac964e6bab561c5e1a72ae47
756
py
Python
regexlib/python_re_test_file/regexlib_8038.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
1
2022-01-24T14:43:23.000Z
2022-01-24T14:43:23.000Z
regexlib/python_re_test_file/regexlib_8038.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
regexlib/python_re_test_file/regexlib_8038.py
yetingli/ReDoS-Benchmarks
f5b5094d835649e957bf3fec6b8bd4f6efdb35fc
[ "MIT" ]
null
null
null
# 8038 # ^(http\://){1}(((www\.){1}([a-zA-Z0-9\-]*\.){1,}){1}|([a-zA-Z0-9\-]*\.){1,10}){1}([a-zA-Z]{2,6}\.){1}([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])* # EXPONENT # nums:4 # EXPONENT AttackString:"http://www.."+"www.www.."*1024+"! _1_EOD(i2)" import re from time import perf_counter regex = """^(http\://){1}(((www\.)...
39.789474
157
0.490741
a438087abd330590632a146fc0807e34b4c44129
3,823
py
Python
tests/output/timesketch_out.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
2
2016-02-18T12:46:29.000Z
2022-03-13T03:04:59.000Z
tests/output/timesketch_out.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
null
null
null
tests/output/timesketch_out.py
Defense-Cyber-Crime-Center/plaso
4f3a85fbea10637c1cdbf0cde9fc539fdcea9c47
[ "Apache-2.0" ]
6
2016-12-18T08:05:36.000Z
2021-04-06T14:19:11.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- """Tests for the Timesketch output class.""" import unittest from mock import Mock from mock import MagicMock from plaso.lib import event from plaso.lib import eventdata from plaso.lib import timelib from plaso.output import timesketch_out from tests.output import test_lib ...
31.858333
75
0.715407
72fadfe06af3461ceb7f801460cae9d5ac508aa3
2,030
py
Python
configs/_base_/models/retinanet_r50_fpn.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
2,226
2021-01-04T11:13:01.000Z
2022-03-31T11:49:59.000Z
configs/_base_/models/retinanet_r50_fpn.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
300
2021-01-04T11:36:59.000Z
2022-03-31T07:48:28.000Z
configs/_base_/models/retinanet_r50_fpn.py
BigBen0519/mmtracking
61509b301ccbc2ab14f82a682b94c56f82ce09de
[ "Apache-2.0" ]
333
2021-01-04T11:35:12.000Z
2022-03-31T08:11:50.000Z
# model settings model = dict( detector=dict( type='RetinaNet', backbone=dict( type='ResNet', depth=50, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval...
32.222222
73
0.464532
45647d945bc32105a16698fe808962d31283b9a8
3,214
py
Python
basicsr/test.py
jnjaby/DISCNet
63b1859519091f8790afcc47e8c726cbefdcd0fe
[ "MIT" ]
50
2021-04-20T14:38:44.000Z
2022-03-30T03:14:41.000Z
basicsr/test.py
jnjaby/DISCNet
63b1859519091f8790afcc47e8c726cbefdcd0fe
[ "MIT" ]
14
2021-05-23T04:19:28.000Z
2022-01-17T12:29:18.000Z
basicsr/test.py
jnjaby/DISCNet
63b1859519091f8790afcc47e8c726cbefdcd0fe
[ "MIT" ]
4
2021-08-14T03:28:20.000Z
2022-03-03T00:52:58.000Z
import argparse import logging import random import torch from mmcv.runner import get_dist_info, get_time_str, init_dist from mmcv import mkdir_or_exist from os import path as osp from torchsummaryX import summary from basicsr.data import create_dataloader, create_dataset from basicsr.models import create_model from b...
31.821782
79
0.636901
2b09a5545b8066aa1f17a4ab591f9459b0e34a1a
3,452
py
Python
objectModel/Python/cdm/persistence/cdmfolder/types/__init__.py
dciborow/CDM
0bcd0a89854c22ff4d9e451fe5c8d296ec8952ad
[ "CC-BY-4.0", "MIT" ]
1
2021-07-06T17:08:15.000Z
2021-07-06T17:08:15.000Z
objectModel/Python/cdm/persistence/cdmfolder/types/__init__.py
dciborow/CDM
0bcd0a89854c22ff4d9e451fe5c8d296ec8952ad
[ "CC-BY-4.0", "MIT" ]
null
null
null
objectModel/Python/cdm/persistence/cdmfolder/types/__init__.py
dciborow/CDM
0bcd0a89854c22ff4d9e451fe5c8d296ec8952ad
[ "CC-BY-4.0", "MIT" ]
null
null
null
# Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. from .argument import Argument from .attribute_context import AttributeContext from .attribute_group import AttributeGroup from .attribute_group_reference import A...
37.934066
94
0.826767
81030d46b73f195194a9f2804e6274044d1e838c
5,487
py
Python
src/Books.py
ynshah3/Library-Management-System
8f279f152278c568806a179db6bfb7f37846a88f
[ "MIT" ]
null
null
null
src/Books.py
ynshah3/Library-Management-System
8f279f152278c568806a179db6bfb7f37846a88f
[ "MIT" ]
null
null
null
src/Books.py
ynshah3/Library-Management-System
8f279f152278c568806a179db6bfb7f37846a88f
[ "MIT" ]
null
null
null
import pymysql def increment_count(isbn, count): connection = pymysql.connect(read_default_file="~/.my.cnf") try: with connection.cursor() as cursor: quantity = "SELECT `QUANTITY` from `Books` WHERE `ISBN` = %s" cursor.execute(quantity, (isbn,)) result = cursor.fetc...
38.370629
107
0.527428
3fc39b0ccae807c75dce4faa9a131c352e7e1de2
4,599
py
Python
cpgames/modules/core/gobang/gobang.py
Wasabii88/Games
33262ca1958207a24e57e3532feded7e275b1dd1
[ "MIT" ]
1
2022-02-27T10:33:41.000Z
2022-02-27T10:33:41.000Z
cpgames/modules/core/gobang/gobang.py
beiwei365/Games
f6499f378802d3212a08aeca761191b58714b7f0
[ "MIT" ]
null
null
null
cpgames/modules/core/gobang/gobang.py
beiwei365/Games
f6499f378802d3212a08aeca761191b58714b7f0
[ "MIT" ]
null
null
null
''' Function: 五子棋小游戏-支持人机和局域网对战 Author: Charles 微信公众号: Charles的皮卡丘 ''' import os import sys from .modules import * from PyQt5.QtGui import * from PyQt5.QtCore import * from PyQt5.QtWidgets import * '''配置类''' class Config(): # 根目录 rootdir = os.path.split(os.path.abspath(__file__))[0] # 图标路径 ...
37.696721
112
0.624049
025ec6b858b8a0366fe6af615b3cf4c17d6426b9
8,029
py
Python
openmixup/datasets/masked_image.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
10
2021-12-30T10:22:27.000Z
2022-03-30T02:31:38.000Z
openmixup/datasets/masked_image.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
3
2022-01-20T21:02:48.000Z
2022-03-19T13:49:45.000Z
openmixup/datasets/masked_image.py
Westlake-AI/openmixup
ea81250819e740dd823e30cb7ce382d14a3c1b91
[ "Apache-2.0" ]
null
null
null
import torch import numpy as np from openmixup.models.utils import precision_recall_f1, support from openmixup.utils import build_from_cfg, print_log from .registry import DATASETS, PIPELINES from .base import BaseDataset from torchvision.transforms import Compose from .utils import to_numpy try: from skimage.feat...
44.605556
98
0.576909
a0372cd7dd630a5ada22c6f3415ed1b0ef994221
2,311
py
Python
src/CompartmentalSystems/bins/CompatibleTsTpMassFieldsPerPool.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/bins/CompatibleTsTpMassFieldsPerPool.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
src/CompartmentalSystems/bins/CompatibleTsTpMassFieldsPerPool.py
goujou/CompartmentalSystems
4724555c33f11395ddc32738e8dfed7349ee155f
[ "MIT" ]
null
null
null
# vim: set ff=unix expandtab ts=4 sw=4: from copy import deepcopy from .TsTpMassFields import TsTpMassFieldsPerPool class CompatibleTsTpMassFieldsPerPool(TsTpMassFieldsPerPool): # This class is a list of mass Distributions with an entry for every # pool def __init__(self, normal_list): # make sur...
38.516667
122
0.606664
3b9f3a187a7b00959e1316ed91d2e955e40b2478
1,902
py
Python
vivisect/storage/mpfile.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
16
2015-12-10T06:18:16.000Z
2021-09-11T21:42:16.000Z
vivisect/storage/mpfile.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
5
2018-10-12T21:07:24.000Z
2018-10-12T21:08:49.000Z
vivisect/storage/mpfile.py
rnui2k/vivisect
b7b00f2d03defef28b4b8c912e3a8016e956c5f7
[ "ECL-2.0", "Apache-2.0" ]
6
2016-03-20T11:15:51.000Z
2021-08-06T07:32:42.000Z
import base64 import logging import msgpack logger = logging.getLogger(__name__) loadargs = {'use_list': False, 'raw': False, 'max_buffer_size': 2**32 -1} if msgpack.version < (1, 0, 0): loadargs['encoding'] = 'utf-8' else: loadargs['strict_map_key'] = False VSIG = b'MSGVIV'.ljust(8, b'\x00') def vivEvent...
29.261538
81
0.600421
d03172903a60abcd85f3a17d4ef3a086cf7081ae
9,031
py
Python
train.py
Herrccc/DR-TANet
37cc3929833d61451b2fa4a92ccd4286cfc4fd34
[ "MIT" ]
12
2021-05-28T08:57:11.000Z
2022-03-29T02:27:48.000Z
train.py
Herrccc/DR-TANet
37cc3929833d61451b2fa4a92ccd4286cfc4fd34
[ "MIT" ]
7
2021-06-11T09:27:31.000Z
2022-03-05T10:28:00.000Z
train.py
Herrccc/DR-TANet
37cc3929833d61451b2fa4a92ccd4286cfc4fd34
[ "MIT" ]
5
2021-09-15T07:39:23.000Z
2022-03-21T18:38:47.000Z
import os import csv import cv2 import torch from TANet import TANet import numpy as np import datasets import torch.nn as nn import torch.nn.functional as F from tqdm import tqdm from os.path import join as pjoin from torch.utils.data import DataLoader from tensorboardX import SummaryWriter import argparse class cri...
37.945378
164
0.614993
ae9ff92b15b6b2f1e2f589410097ab7e951f1208
7,751
py
Python
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hardware_fcports_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hardware_fcports_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/isi_sdk_9_0_0/models/hardware_fcports_node.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from isi_sdk_9_0_0.models.hardwa...
31.636735
124
0.580699
0d361cb397787a9c86330e63ae458633a39b2a66
287,123
py
Python
src/sdproxy.py
mitotic/slidedown
de5ae20782509cb7c244158190ad825eabe7ef60
[ "BSD-3-Clause" ]
7
2016-11-19T00:40:56.000Z
2018-09-29T16:18:09.000Z
src/sdproxy.py
mitotic/slidedown
de5ae20782509cb7c244158190ad825eabe7ef60
[ "BSD-3-Clause" ]
1
2020-04-14T20:53:53.000Z
2020-04-14T20:53:53.000Z
src/sdproxy.py
mitotic/slidedown
de5ae20782509cb7c244158190ad825eabe7ef60
[ "BSD-3-Clause" ]
1
2020-11-20T21:24:19.000Z
2020-11-20T21:24:19.000Z
""" Python proxy supporting Caches an in-memory copy of Google Sheet sheets and updates them using the same REST interface as slidoc_sheets.js. Updates the Google Sheets version, using one active REST request at a time. admin commands: /_status Display update status /_clear ...
45.194869
284
0.606329
7a3469975d964ace7715fea7947b2c167cf04e0b
975
py
Python
docs/code/minimum_rotated_rectangle.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
2,382
2015-01-04T03:16:59.000Z
2021-12-10T15:48:56.000Z
docs/code/minimum_rotated_rectangle.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
1,009
2015-01-03T23:44:02.000Z
2021-12-10T16:02:42.000Z
docs/code/minimum_rotated_rectangle.py
Jeremiah-England/Shapely
769b203f2b7cbeeb0a694c21440b4025a563f807
[ "BSD-3-Clause" ]
467
2015-01-19T23:18:33.000Z
2021-12-09T18:31:28.000Z
from shapely.geometry import MultiPoint, Polygon, LineString import matplotlib.pyplot as plt from descartes.patch import PolygonPatch from figures import DARKGRAY, GRAY, BLUE, SIZE, set_limits fig = plt.figure(1, figsize=SIZE, dpi=90) fig.set_frameon(True) # 1 ax = fig.add_subplot(121) mp = MultiPoint([(0, 0), (0.5...
25.657895
79
0.693333
c7cacc23ec0bf23f1cb079620d1f94271701d4d2
1,620
py
Python
Clustering/kmeans.py
BigMani/Machine-learning-projects
94574de4d039d67b5699481144023c029104ee1c
[ "MIT" ]
null
null
null
Clustering/kmeans.py
BigMani/Machine-learning-projects
94574de4d039d67b5699481144023c029104ee1c
[ "MIT" ]
null
null
null
Clustering/kmeans.py
BigMani/Machine-learning-projects
94574de4d039d67b5699481144023c029104ee1c
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*- # K-means clustering # Importing the libraries import numpy as np import matplotlib.pyplot as plt import pandas as pd # Importing the dataset dataset = pd.read_csv('Mall_Customers.csv') X = dataset.iloc[:,[3,4]].values # Using the elbow method to find the optimal # of...
35.217391
119
0.667901
2833779bfb213b0dab32a2622b73eecf8aa878f6
622
py
Python
JumpscaleCore/clients/oauth_proxy/OauthProxyClient.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
1
2020-06-21T11:18:52.000Z
2020-06-21T11:18:52.000Z
JumpscaleCore/clients/oauth_proxy/OauthProxyClient.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
644
2019-08-25T10:19:56.000Z
2020-12-23T09:41:04.000Z
JumpscaleCore/clients/oauth_proxy/OauthProxyClient.py
gneumann333/jumpscaleX_core
777d249fa3668c6e802c2f765f4b82fb39c3e5fa
[ "Apache-2.0" ]
11
2019-08-29T21:38:50.000Z
2020-06-21T11:18:55.000Z
from Jumpscale import j from urllib.parse import urlencode import requests class OauthProxyClient(j.baseclasses.object_config): _SCHEMATEXT = """ @url = jumpscale.oauth_proxy.client name** = "main" (S) url = "" (S) verify_key = (S) providers = (LS) """ def providers_list(self): ...
23.923077
82
0.638264
622d495f4503336e765360797aaeb62b133358df
1,049
py
Python
[2] 3'UTR Variant Prevalence.py
JuDong1214/TACG-Var
c251a31678257002ff6afcda146051174c1ccc41
[ "CC0-1.0" ]
null
null
null
[2] 3'UTR Variant Prevalence.py
JuDong1214/TACG-Var
c251a31678257002ff6afcda146051174c1ccc41
[ "CC0-1.0" ]
1
2021-06-26T15:20:15.000Z
2021-06-26T15:21:08.000Z
[2] 3'UTR Variant Prevalence.py
JuDong1214/TACG-Var
c251a31678257002ff6afcda146051174c1ccc41
[ "CC0-1.0" ]
null
null
null
from datetime import datetime import sys, getopt #start time of the program startTime = datetime.now() print("****** start read " + sys.argv[1] + " *********") #if sys.argv[1] != 'TraitsOutputfile.csv': cand = open(sys.argv[1], 'r') #else: #return #cand1 = open('TraitsOutputfile.csv', 'a') try: f = op...
28.351351
70
0.588179
2362e8f762b0da990f099edaa903abf8d601a1f7
8,046
py
Python
gamestonk_terminal/discovery/disc_controller.py
hinxx/GamestonkTerminal
a158e0259468e264c7f11cff16fb144f36b83f7f
[ "MIT" ]
null
null
null
gamestonk_terminal/discovery/disc_controller.py
hinxx/GamestonkTerminal
a158e0259468e264c7f11cff16fb144f36b83f7f
[ "MIT" ]
2
2021-04-17T10:24:06.000Z
2021-04-17T10:44:59.000Z
gamestonk_terminal/discovery/disc_controller.py
hinxx/GamestonkTerminal
a158e0259468e264c7f11cff16fb144f36b83f7f
[ "MIT" ]
null
null
null
""" Disc Controller """ __docformat__ = "numpy" import argparse import os from typing import List from matplotlib import pyplot as plt from prompt_toolkit.completion import NestedCompleter from gamestonk_terminal import feature_flags as gtff from gamestonk_terminal.helper_funcs import get_flair from gamestonk_terminal...
33.247934
113
0.618693
e2f550e1be14fc4de3d3f2c4274e4cb59e59e02d
3,550
py
Python
lib/click-6.6/tests/test_formatting.py
brianrodri/google_appengine
ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43
[ "Apache-2.0" ]
26
2015-01-20T08:02:38.000Z
2020-06-10T04:57:41.000Z
lib/click-6.6/tests/test_formatting.py
brianrodri/google_appengine
ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43
[ "Apache-2.0" ]
4
2016-02-28T05:53:54.000Z
2017-01-03T07:39:50.000Z
lib/click-6.6/tests/test_formatting.py
brianrodri/google_appengine
ec4e7cdfa1afd99de23b0a32eb94563fe5e6ef43
[ "Apache-2.0" ]
13
2016-02-28T00:14:23.000Z
2021-05-03T15:47:36.000Z
# -*- coding: utf-8 -*- import click def test_basic_functionality(runner): @click.command() def cli(): """First paragraph. This is a very long second paragraph and not correctly wrapped but it will be rewrapped. \b This is a paragraph without r...
23.986486
79
0.510704
316180838db34bdc051482afdca395c5c6b302dd
752
py
Python
plug-ins/cmt_py.py
kamilisa/cmt
e2cd1da0cd2f185c67b94e68d4673226b55a54ea
[ "MIT" ]
199
2016-03-02T21:41:05.000Z
2022-03-23T05:44:42.000Z
plug-ins/cmt_py.py
kamilisa/cmt
e2cd1da0cd2f185c67b94e68d4673226b55a54ea
[ "MIT" ]
6
2018-03-20T22:23:02.000Z
2021-06-23T02:35:50.000Z
plug-ins/cmt_py.py
kamilisa/cmt
e2cd1da0cd2f185c67b94e68d4673226b55a54ea
[ "MIT" ]
73
2016-04-12T05:13:49.000Z
2022-03-07T07:58:39.000Z
import maya.OpenMayaMPx as OpenMayaMPx import cmt.plugins.swingtwist as swingtwist def initializePlugin(obj): plugin = OpenMayaMPx.MFnPlugin(obj, 'Chad Vernon', '1.0', 'Any') # plugin.registerNode(swingtwist.SwingTwistNode.name, swingtwist.SwingTwistNode.id, # swingtwist.SwingTwistNod...
37.6
101
0.738032
0fab275bd94229ab7155cee4916815d070df1eff
805
py
Python
djangopolls/djangopolls/urls.py
desmond-rn/django-sites
84fc842379dec68faa0f118ecd07e50fc9b60afc
[ "MIT" ]
null
null
null
djangopolls/djangopolls/urls.py
desmond-rn/django-sites
84fc842379dec68faa0f118ecd07e50fc9b60afc
[ "MIT" ]
null
null
null
djangopolls/djangopolls/urls.py
desmond-rn/django-sites
84fc842379dec68faa0f118ecd07e50fc9b60afc
[ "MIT" ]
null
null
null
"""djangopolls URL Configuration The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/3.2/topics/http/urls/ Examples: Function views 1. Add an import: from my_app import views 2. Add a URL to urlpatterns: path('', views.home, name='home') Class-b...
35
77
0.704348
beef000016266509e914baa094184bfec21329fc
9,702
py
Python
src/python/tests/test_util.py
IBM/alchemy-logging
071d884934d6eda377725511c759685a4364b2b3
[ "MIT" ]
7
2021-08-20T00:21:42.000Z
2022-03-29T23:14:03.000Z
src/python/tests/test_util.py
IBM/alchemy-logging
071d884934d6eda377725511c759685a4364b2b3
[ "MIT" ]
33
2021-07-28T23:40:01.000Z
2022-03-28T21:51:47.000Z
src/python/tests/test_util.py
IBM/alchemy-logging
071d884934d6eda377725511c759685a4364b2b3
[ "MIT" ]
2
2021-09-01T02:56:12.000Z
2022-03-28T18:30:07.000Z
################################################################################ # MIT License # # Copyright (c) 2021 IBM # # 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...
50.53125
107
0.675531
5d4c8cdbc546fb237f365ef954c77cb12a3738d8
1,566
py
Python
dycco/__main__.py
rojalator/dycco
84ace8727aef84bb3d886cdaa3d3aef1089f1935
[ "MIT" ]
null
null
null
dycco/__main__.py
rojalator/dycco
84ace8727aef84bb3d886cdaa3d3aef1089f1935
[ "MIT" ]
1
2022-03-22T07:35:15.000Z
2022-03-22T09:15:44.000Z
dycco/__main__.py
rojalator/dycco
84ace8727aef84bb3d886cdaa3d3aef1089f1935
[ "MIT" ]
null
null
null
import argparse import logging import sys from .dycco import document def main(paths, output_dir, use_ascii:bool, escape_html:bool, single_file:bool): try: document(paths, output_dir, use_ascii, escape_html, single_file) except IOError as e: logging.error('Unable to open file: %s', e) ...
46.058824
121
0.707535
e35bc082140bf2e0d943139056ec15a0c679ad0c
544
py
Python
fileserver/migrations/0007_auto_20201230_1552.py
zsmith3/Photo-Manager-Server
2b531159deadd1291d4a8e029a3cf375fb77156f
[ "MIT" ]
null
null
null
fileserver/migrations/0007_auto_20201230_1552.py
zsmith3/Photo-Manager-Server
2b531159deadd1291d4a8e029a3cf375fb77156f
[ "MIT" ]
10
2019-01-18T17:36:30.000Z
2022-03-11T23:39:04.000Z
fileserver/migrations/0007_auto_20201230_1552.py
zsmith3/Photo-Manager-Server
2b531159deadd1291d4a8e029a3cf375fb77156f
[ "MIT" ]
null
null
null
# Generated by Django 3.1.2 on 2020-12-30 15:52 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fileserver', '0006_auto_20201227_1739'), ] operations = [ migrations.AddField( model_name='face', name='encoding', ...
22.666667
50
0.577206
bf0a6e827951b05e6ec338dfc864ebe50e960d9f
6,489
py
Python
spark_fhir_schemas/stu3/complex_types/attachment.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
2
2020-10-31T23:25:01.000Z
2021-06-09T14:12:42.000Z
spark_fhir_schemas/stu3/complex_types/attachment.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
spark_fhir_schemas/stu3/complex_types/attachment.py
icanbwell/SparkFhirSchemas
8c828313c39850b65f8676e67f526ee92b7d624e
[ "Apache-2.0" ]
null
null
null
from typing import Union, List, Optional from pyspark.sql.types import ( StructType, StructField, StringType, ArrayType, IntegerType, DataType, ) # This file is auto-generated by generate_schema so do not edit manually # noinspection PyPep8Naming class AttachmentSchema: """ For referr...
43.26
96
0.586223
8f056b5d4224d1a22784a2f12b7f6b9d94ccb32b
267
py
Python
evernote/edam/notestore/constants.py
FightingJoey/EvernoteOAuth
5d5cac2feb924d92b222660a6e20b41b4adba0ba
[ "Apache-2.0" ]
1,197
2015-01-01T02:29:40.000Z
2022-01-11T15:47:13.000Z
lib/evernote/edam/notestore/constants.py
darkrut22/evernote-sdk-python3
e0349a366f89db81ef23392746ed8c9ccb6fd2e9
[ "Apache-2.0", "BSD-2-Clause" ]
160
2015-01-01T05:31:58.000Z
2021-10-31T18:12:20.000Z
lib/evernote/edam/notestore/constants.py
darkrut22/evernote-sdk-python3
e0349a366f89db81ef23392746ed8c9ccb6fd2e9
[ "Apache-2.0", "BSD-2-Clause" ]
143
2015-01-07T01:18:45.000Z
2020-06-30T10:01:31.000Z
# # Autogenerated by Thrift Compiler (0.9.0) # # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING # # options string: py:new_style,utf8strings # from thrift.Thrift import TType, TMessageType, TException, TApplicationException from .ttypes import *
22.25
80
0.764045
750a2928d5f9d2324cff7964e66493a233b94826
47,546
py
Python
framework/Samplers/LimitSurfaceSearch.py
bonifak/raven
666978e8546d1f948b2ad55a4c3b0fce5cc8533c
[ "Apache-2.0" ]
null
null
null
framework/Samplers/LimitSurfaceSearch.py
bonifak/raven
666978e8546d1f948b2ad55a4c3b0fce5cc8533c
[ "Apache-2.0" ]
null
null
null
framework/Samplers/LimitSurfaceSearch.py
bonifak/raven
666978e8546d1f948b2ad55a4c3b0fce5cc8533c
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
58.482165
234
0.655786
bef9409f4d4a2faef1ecc215d3db4a3f7bd976c1
2,479
py
Python
docs/ansicolor.py
Vampire/git-spindle
a008af5867d278b62bd45aa74a2adcf2899d7e5b
[ "MIT" ]
1
2018-04-27T13:34:34.000Z
2018-04-27T13:34:34.000Z
docs/ansicolor.py
Vampire/git-spindle
a008af5867d278b62bd45aa74a2adcf2899d7e5b
[ "MIT" ]
null
null
null
docs/ansicolor.py
Vampire/git-spindle
a008af5867d278b62bd45aa74a2adcf2899d7e5b
[ "MIT" ]
1
2018-04-27T13:34:38.000Z
2018-04-27T13:34:38.000Z
import re import glob import os escape_code_re = re.compile('\033\\[([^m]+)m') codes = { 1: {"font-weight": "bold"}, 4: {"text-decoration": "underline"}, 30: {"color": "black"}, 31: {"color": "red"}, 32: {"color": "green"}, 33: {"color": "yellow"}, 34: {"color": "blue"}, 35: {"color": "...
30.604938
111
0.529246
571085aaee24df3e2c7fef3f629250b18434089b
5,409
py
Python
Overig/view_feedback.py
RamonvdW/dof
8798afa4f5b927de8a1ec7937b9b7e7ee675ac62
[ "BSD-3-Clause-Clear" ]
null
null
null
Overig/view_feedback.py
RamonvdW/dof
8798afa4f5b927de8a1ec7937b9b7e7ee675ac62
[ "BSD-3-Clause-Clear" ]
null
null
null
Overig/view_feedback.py
RamonvdW/dof
8798afa4f5b927de8a1ec7937b9b7e7ee675ac62
[ "BSD-3-Clause-Clear" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2019-2021 Ramon van der Winkel. # All rights reserved. # Licensed under BSD-3-Clause-Clear. See LICENSE file for details. from django.views import View from django.views.generic import TemplateView, ListView from django.shortcuts import render, redirect from django.urls impo...
41.930233
111
0.662969
499288a1cd24ffea826ff6a9e96247c47e0d7a6f
297
py
Python
scripts/npc/npc9400025.py
doriyan13/doristory
438caf3b123922da3f5f3b16fcc98a26a8ab85ce
[ "MIT" ]
null
null
null
scripts/npc/npc9400025.py
doriyan13/doristory
438caf3b123922da3f5f3b16fcc98a26a8ab85ce
[ "MIT" ]
null
null
null
scripts/npc/npc9400025.py
doriyan13/doristory
438caf3b123922da3f5f3b16fcc98a26a8ab85ce
[ "MIT" ]
null
null
null
# ObjectID: 1000044 # Character field ID when accessed: 100000000 # ParentID: 9400025 # Object Position X: 5351 # Object Position Y: 14 #Lil' Murgoth - in the right side of henesys sm.sendNext("Checking dmg Mob :D") mobId = 100100 pX = 5256 pY = 94 mob = sm.spawnMob(mobId,pX,pY,False,99999999)
21.214286
45
0.73064
205be63ada66698d1f0da2aeafe777530960c4de
924
py
Python
src/users/migrations/0001_initial.py
PetrushynskyiOleksii/polls
3c3fedec0ad5ad80e971060bbbf039fa97f346f9
[ "MIT" ]
null
null
null
src/users/migrations/0001_initial.py
PetrushynskyiOleksii/polls
3c3fedec0ad5ad80e971060bbbf039fa97f346f9
[ "MIT" ]
20
2018-04-30T09:36:01.000Z
2018-07-18T13:46:35.000Z
src/users/migrations/0001_initial.py
PetrushynskyiOleksii/polls
3c3fedec0ad5ad80e971060bbbf039fa97f346f9
[ "MIT" ]
null
null
null
# Generated by Django 2.0.7 on 2018-08-15 21:57 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('questions', '0001_initial'), migrations.swappable_dependency(se...
30.8
121
0.622294
41905895d95866f8b7a61292e3e739189c99c1b6
647
py
Python
Tutorial/Creating Databases using Python/Creating database.py
hopinggrasshopper/SQLite3-python-tutorial
37ecede26bc8493cc515308df9d6960752ababa2
[ "MIT" ]
1
2021-12-27T08:08:34.000Z
2021-12-27T08:08:34.000Z
Tutorial/Creating Databases using Python/Creating database.py
hopinggrasshopper/SQLite3-python-tutorial
37ecede26bc8493cc515308df9d6960752ababa2
[ "MIT" ]
null
null
null
Tutorial/Creating Databases using Python/Creating database.py
hopinggrasshopper/SQLite3-python-tutorial
37ecede26bc8493cc515308df9d6960752ababa2
[ "MIT" ]
null
null
null
#creating a database by connecting sqlite to python #if a database doesn't exist, this program will create a new database in the specified path import sqlite3 #we need to import the module sqlite 3 first from sqlite3 import Error def create_connection(db_file): conn = None try: conn=sqlite3.connect(db_...
30.809524
112
0.704791
c33f2ee2da3ace3c66fbc7cfc96bfaf1884ca8f3
1,970
py
Python
company/migrations/0001_initial.py
NazmusShakib/django-p1
2b25d7dbbaf8c42aa2e7d66949e2879a94516b0b
[ "MIT" ]
null
null
null
company/migrations/0001_initial.py
NazmusShakib/django-p1
2b25d7dbbaf8c42aa2e7d66949e2879a94516b0b
[ "MIT" ]
9
2020-02-12T00:18:04.000Z
2022-02-10T10:38:45.000Z
company/migrations/0001_initial.py
NazmusShakib/django-p1
2b25d7dbbaf8c42aa2e7d66949e2879a94516b0b
[ "MIT" ]
null
null
null
# Generated by Django 2.2.1 on 2019-09-24 05:50 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Companies', fields=[ ...
40.204082
141
0.561421
c2f1e595271b4f3ed787f0a5d7a1f6a0ff3932a9
4,350
py
Python
src/recognition_from_camera.py
janlle/dlib-face-recognition
394b3665612dd98d5a9104545b1efa55b146e52b
[ "Apache-2.0" ]
13
2020-01-16T02:18:45.000Z
2022-03-23T09:23:43.000Z
src/recognition_from_camera.py
janlle/dlib-face-recognition
394b3665612dd98d5a9104545b1efa55b146e52b
[ "Apache-2.0" ]
null
null
null
src/recognition_from_camera.py
janlle/dlib-face-recognition
394b3665612dd98d5a9104545b1efa55b146e52b
[ "Apache-2.0" ]
4
2020-01-16T02:18:47.000Z
2020-10-30T13:35:56.000Z
# -*- coding:utf-8 -*- # @author leone # @desc 摄像头实时人脸识别 # @version 2018-12-13 import cv2 import dlib import numpy as np import pandas as pd # 人脸识别模型,提取 128D 的特征矢量 face_recognition_model = dlib.face_recognition_model_v1("../data/data_dlib/dlib_face_recognition_resnet_model_v1.dat") # 计算两个向量间的欧式距离 def return_euclid...
29
119
0.603218
6606e66b1191aa4ff54e3dc9ba17de161ae28fe8
2,892
py
Python
tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py
nstapelbroek/fastapi
5592fa0f6f6b9c9b3ae774d80adb8163fcdedfdf
[ "MIT" ]
2
2020-01-21T10:57:59.000Z
2021-11-09T11:27:18.000Z
tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py
nstapelbroek/fastapi
5592fa0f6f6b9c9b3ae774d80adb8163fcdedfdf
[ "MIT" ]
1
2019-11-02T22:03:59.000Z
2019-11-02T22:03:59.000Z
tests/test_tutorial/test_query_params_str_validations/test_tutorial013.py
nstapelbroek/fastapi
5592fa0f6f6b9c9b3ae774d80adb8163fcdedfdf
[ "MIT" ]
1
2020-03-02T05:55:31.000Z
2020-03-02T05:55:31.000Z
from starlette.testclient import TestClient from query_params_str_validations.tutorial013 import app client = TestClient(app) openapi_schema = { "openapi": "3.0.2", "info": {"title": "Fast API", "version": "0.1.0"}, "paths": { "/items/": { "get": { "responses": { ...
31.434783
86
0.375519
03a29742608e553022bc64e34db51e30a392369c
229,831
py
Python
tests/admin_views/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
tests/admin_views/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
tests/admin_views/tests.py
jarvys/django-1.7-jdb
c5c68d2c5d96004e869fbcfda21f42932cab3dc8
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals import os import re import datetime import unittest from django.conf import settings, global_settings from django.core import mail from django.core.checks import Error from django.core.files import temp as tempfile from django.core.exceptions import Impr...
45.556194
251
0.647689
6a738483d76f3136e99987ce93f87b08a97ed117
1,705
py
Python
2022/Round 1B/controlled_inflation.py
williamcwi/Google-Code-Jam
c58ad3b8611e6ca175e6b76d9d372c29b12bba30
[ "Apache-2.0" ]
null
null
null
2022/Round 1B/controlled_inflation.py
williamcwi/Google-Code-Jam
c58ad3b8611e6ca175e6b76d9d372c29b12bba30
[ "Apache-2.0" ]
null
null
null
2022/Round 1B/controlled_inflation.py
williamcwi/Google-Code-Jam
c58ad3b8611e6ca175e6b76d9d372c29b12bba30
[ "Apache-2.0" ]
null
null
null
def solve(n, p): arr = [] for _ in range(n): x = list(map(int, input().split())) arr.append(x) final_list = [] for row in arr: row.sort() for i in range(len(arr)): cost_low = 0 cost_high = 0 low = arr[i][0] high = arr[i][len(arr[i])-1] ...
25.833333
68
0.472727
9d903118494f57a8513d935223caa7f1c743bc66
4,344
py
Python
cal_scores/SummEval/evaluation/summ_eval/bert_score_metric.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
cal_scores/SummEval/evaluation/summ_eval/bert_score_metric.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
cal_scores/SummEval/evaluation/summ_eval/bert_score_metric.py
bzhao2718/ReliableSummEvalReg
ea3281855fb4b922a514cb610fc2b70063534bf5
[ "MIT" ]
null
null
null
import gin import bert_score from summ_eval.metric import Metric @gin.configurable class BertScoreMetric(Metric): def __init__(self, lang='en', model_type='bert-base-uncased', num_layers=8, verbose=False, idf=False, \ nthreads=4, batch_size=64, rescale_with_baseline=False): """ B...
53.62963
117
0.585175
657a2b6b3e264185f798636f6d89251a83a8d91d
3,485
py
Python
helpdesk/views/kb.py
ebeers-png/django-helpdesk
4e820b23662b973727a3f521b3196a2191905953
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
null
null
null
helpdesk/views/kb.py
ebeers-png/django-helpdesk
4e820b23662b973727a3f521b3196a2191905953
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
null
null
null
helpdesk/views/kb.py
ebeers-png/django-helpdesk
4e820b23662b973727a3f521b3196a2191905953
[ "BSD-3-Clause", "CC-BY-4.0", "MIT" ]
1
2021-11-05T01:03:04.000Z
2021-11-05T01:03:04.000Z
""" django-helpdesk - A Django powered ticket tracker for small enterprise. (c) Copyright 2008 Jutda. All Rights Reserved. See LICENSE for details. views/kb.py - Public-facing knowledgebase views. The knowledgebase is a simple categorised question/answer system to show common resolutions t...
33.834951
76
0.676327
7bf0995d1591326da759258caae5fe2013d75cfe
14,378
py
Python
subset/dot1x/authenticator/radius.py
sicada/faucetsdn-daq
04967711fc58c3101c2449d09dbc9dcef95df21e
[ "Apache-2.0" ]
null
null
null
subset/dot1x/authenticator/radius.py
sicada/faucetsdn-daq
04967711fc58c3101c2449d09dbc9dcef95df21e
[ "Apache-2.0" ]
10
2019-12-30T19:46:36.000Z
2020-02-07T01:07:14.000Z
subset/dot1x/authenticator/radius.py
sicada/faucetsdn-daq
04967711fc58c3101c2449d09dbc9dcef95df21e
[ "Apache-2.0" ]
null
null
null
"""RADIUS Packets""" import copy import hashlib import hmac import struct import binascii from radius_attributes import ATTRIBUTE_TYPES, Attribute, MessageAuthenticator from radius_datatypes import Concat from utils import MessageParseError RADIUS_HEADER_LENGTH = 1 + 1 + 2 + 16 PACKET_TYPE_PARSERS = {} class Inval...
38.546917
100
0.62081
266e243e5b97fdae2f4a4c91b020fd07c8a4c0b9
2,705
py
Python
integration_tests/ci_reports/ci_reports_settings.py
ria-ee/monitor
d5cb9384abf38394b35e760729649136cbbc7548
[ "MIT" ]
10
2017-12-01T11:59:54.000Z
2021-11-08T10:30:35.000Z
integration_tests/ci_reports/ci_reports_settings.py
ria-ee/monitor
d5cb9384abf38394b35e760729649136cbbc7548
[ "MIT" ]
16
2019-11-15T08:45:33.000Z
2021-06-10T18:06:03.000Z
integration_tests/ci_reports/ci_reports_settings.py
ria-ee/monitor
d5cb9384abf38394b35e760729649136cbbc7548
[ "MIT" ]
13
2017-11-22T08:46:57.000Z
2021-12-16T06:51:07.000Z
import logging import os from logging import FileHandler class Settings: THREAD_COUNT = 4 COMPARISON_LIST = ['clientMemberClass', 'requestMimeSize', 'serviceSubsystemCode', 'requestAttachmentCount', 'serviceSecurityServerAddress', 'messageProtocolVersion', 'responseSoapSize', 'succeede...
45.847458
119
0.601479
5cf2848fe4e0649cd89a82f1bc7ea0def5623d1e
3,102
py
Python
templater.py
ncreel/TweeTeX
35e37ff200c2ee32f1238e8872a91ded36ef9d06
[ "MIT" ]
null
null
null
templater.py
ncreel/TweeTeX
35e37ff200c2ee32f1238e8872a91ded36ef9d06
[ "MIT" ]
null
null
null
templater.py
ncreel/TweeTeX
35e37ff200c2ee32f1238e8872a91ded36ef9d06
[ "MIT" ]
null
null
null
""" templater.py - This is a simple template library which takes Token objects from the TweeTeX parser and creates an equivalent document in Twee3 syntax using the sugarcube story format. Twee3 Specification: https://github.com/iftechfoundation/twine-specs/blob/master/twee-3-specification.md Sugarcube documentation: h...
31.653061
126
0.670213
cdca66763aa8f87d646589c83011b4de87fb07d7
4,654
py
Python
lstm_seq2seq/tuning_client.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
1
2022-03-20T08:40:20.000Z
2022-03-20T08:40:20.000Z
lstm_seq2seq/tuning_client.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
null
null
null
lstm_seq2seq/tuning_client.py
arkilpatel/Primitive-Generalization
81e568ca3f1b1f4026758db24c05acd4ce2eeb9c
[ "MIT" ]
null
null
null
# Author : Rishabh Joshi # Insti : IISc, Bangalore import os import sys import pdb import numpy as np import random import argparse import codecs import pickle import time import json import subprocess # sys.path.insert(0, '/mnt/kabir/services/queue/') sys.path.insert(0, '/datadrive/global_files/queue/') from queue_cl...
27.702381
186
0.621401
af3778b00ff64fc30978f046e3eaa6c0093ab349
2,414
py
Python
password_manager/controllers/login.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
password_manager/controllers/login.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
password_manager/controllers/login.py
GrzegorzNieuzyla/PasswordManager
f54ebb7f5f86449d3d1f13542402a536bcf264d7
[ "MIT" ]
null
null
null
import password_manager.application_context from password_manager.encryption.key_derivator import KeyDerivator from password_manager.gui.login_dialog import LoginDialog from password_manager.utils.file_helper import FileHelper class LoginController: def __init__(self, application_context: "password_manager.applic...
41.62069
113
0.711268
694c8722b10b724d11829365834d13e7183d9cbe
3,406
py
Python
tests/test_database/test_encode.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
11
2021-03-22T22:07:49.000Z
2022-03-08T16:18:33.000Z
tests/test_database/test_encode.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
12
2021-03-04T05:51:24.000Z
2021-09-22T05:16:18.000Z
tests/test_database/test_encode.py
coboyoshi/uvicore
9cfdeeac83000b156fe48f068b4658edaf51c8de
[ "MIT" ]
2
2021-03-25T14:49:56.000Z
2021-11-17T23:20:29.000Z
import pytest import uvicore import sqlalchemy as sa from uvicore.support.dumper import dump # These will also move into test_* as they each have _builder, _encoed, _hybrid inside them @pytest.mark.asyncio async def test_select_all(app1): from app1.database.tables.posts import Posts query = Posts.table.sele...
30.684685
95
0.63946
49988b3e55655eae5e73d8ebf48acbe7398cb09d
8,223
py
Python
utils/compare_results.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
utils/compare_results.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
utils/compare_results.py
maage/scap-security-guide
06474db16e5de438902162a6f72c9db996c1b6b7
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/python3 import argparse import os import sys try: import ssg.xml from ssg.constants import PREFIX_TO_NS, SSG_REF_URIS, XCCDF12_NS except ImportError: print("The ssg module could not be found.") print("Run .pyenv.sh available in the project root directory," " or add it to PYTHONPAT...
35.908297
95
0.646966
e3750f7581555fb89a3bcbdcfbab2762cd248270
662
py
Python
identity/ecrfs/setup/projects/cmr_guide.py
LCBRU/identity
e8bec964aca9595091bf891bbe41632ce54afd3f
[ "MIT" ]
null
null
null
identity/ecrfs/setup/projects/cmr_guide.py
LCBRU/identity
e8bec964aca9595091bf891bbe41632ce54afd3f
[ "MIT" ]
null
null
null
identity/ecrfs/setup/projects/cmr_guide.py
LCBRU/identity
e8bec964aca9595091bf891bbe41632ce54afd3f
[ "MIT" ]
null
null
null
from identity.ecrfs.setup.standard import STANDARD_DEMOGRAPHICS from identity.setup.participant_identifier_types import ParticipantIdentifierTypeName from identity.setup.redcap_instances import REDCapInstanceDetail from identity.setup.studies import StudyName from identity.ecrfs.setup import crfs, RedCapEcrfDefinition ...
28.782609
85
0.717523
223bd609f27cf1fc3ff98369acb2840e3f08c012
195
py
Python
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/a/lib_logger.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
375
2015-11-02T19:15:30.000Z
2022-03-19T03:32:10.000Z
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/a/lib_logger.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
433
2015-11-03T13:24:40.000Z
2022-03-30T11:20:14.000Z
src/RobotFrameworkCore/org.robotframework.ide.core-functions/src/test/python/scripts/res_test_robot_session_server/a/lib_logger.py
puraner/RED
d41b7c244ff2e449c541fd0691213fcf5a3b30c1
[ "Apache-2.0" ]
133
2016-05-02T02:20:06.000Z
2022-01-06T06:01:28.000Z
from robot.api import logger logger.console('test logger') class lib(object): ROBOT_LIBRARY_VERSION = 1.0 def __init__(self): pass def keyword(self): pass
15
31
0.620513
e1a5e49af91cee06b603222fca9476e3142fccaa
276
py
Python
tests/utils.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
68
2018-01-26T22:02:09.000Z
2022-03-23T08:08:54.000Z
tests/utils.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
46
2018-05-26T09:26:30.000Z
2022-02-04T15:17:45.000Z
tests/utils.py
ixc/wagtail-personalisation
956c1bf4f5846ad86470c41df8b8364bc99ab99b
[ "MIT" ]
27
2018-03-28T10:14:26.000Z
2022-02-08T20:54:00.000Z
from django.template import engines def render_template(value, **context): template = engines['django'].from_string(value) request = context.pop('request', None) return template.render(context, request) def get_custom_ip(request): return '123.123.123.123'
23
51
0.728261
3f74ef255396e643aa4c7bf2b7bcba5247f98711
635
py
Python
backend/manage.py
crowdbotics-apps/tesapp101-33889
0ec85bd0856bc5c9c4b7b306048b65d4e8ced557
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/tesapp101-33889
0ec85bd0856bc5c9c4b7b306048b65d4e8ced557
[ "FTL", "AML", "RSA-MD" ]
null
null
null
backend/manage.py
crowdbotics-apps/tesapp101-33889
0ec85bd0856bc5c9c4b7b306048b65d4e8ced557
[ "FTL", "AML", "RSA-MD" ]
null
null
null
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'tesapp101_33889.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: rais...
28.863636
79
0.686614
5a3a4182722069a8c69489860991a3a9fe7eebec
367
py
Python
PycharmProjects/pythonteste/aula06a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
3
2021-07-09T20:41:47.000Z
2021-11-17T10:25:01.000Z
PycharmProjects/pythonteste/aula06a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
null
null
null
PycharmProjects/pythonteste/aula06a.py
caioalexleme/Curso_Python
6394f60689531c7431765538f1b699aabbf4acb2
[ "MIT" ]
1
2021-09-09T20:24:07.000Z
2021-09-09T20:24:07.000Z
n1 = int(input('Digite um valor: ')) n2 = int(input('Digite outro valor: ')) s = n1 + n2 #print('A soma de', n1, 'com', n2,'vale',s) #funciona porém precisa de muita vírgula e muitas aspas print('A soma entre {} e {} é {}'.format(n1, n2, s)) print('A soma entre {0} e {1} é {2}'.format(n1, n2, s)) #Mesmo resultado, iden...
40.777778
107
0.645777
4944a94a126b468a5301b302ce018d083799de68
1,827
py
Python
okta/komand_okta/connection/connection.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
okta/komand_okta/connection/connection.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
okta/komand_okta/connection/connection.py
xhennessy-r7/insightconnect-plugins
59268051313d67735b5dd3a30222eccb92aca8e9
[ "MIT" ]
null
null
null
import komand from .schema import ConnectionSchema from komand.exceptions import ConnectionTestException # Custom imports below import requests class Connection(komand.Connection): def __init__(self): super(self.__class__, self).__init__(input=ConnectionSchema()) def connect(self, params={}): ...
38.87234
95
0.651888
60cd5a4fdbe617a4d45a886bcfc656ec29730222
4,685
py
Python
pineboolib/core/utils/version.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
2
2017-12-10T23:06:16.000Z
2017-12-10T23:06:23.000Z
pineboolib/core/utils/version.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
36
2017-11-05T21:13:47.000Z
2020-08-26T15:56:15.000Z
pineboolib/core/utils/version.py
Aulla/pineboo
3ad6412d365a6ad65c3bb2bdc03f5798d7c37004
[ "MIT" ]
8
2017-11-05T15:56:31.000Z
2019-04-25T16:32:28.000Z
""" Version number normalization library. """ import re from typing import List, Optional, Tuple, Any from pineboolib.core.utils import logging SubVersionNumber = int SubVersionAppendedText = str SubVersionTuple = Tuple[SubVersionNumber, SubVersionAppendedText] LOGGER = logging.get_logger(__name__) class VersionN...
36.889764
101
0.643757
6d0c0ab603e98fa0acf844f66d6fc50541856f3d
1,491
py
Python
markdown_it/rules_inline/text_collapse.py
tadeu/markdown-it-py
53d9b3379494dc7f4ef53eaf4726399aac875215
[ "MIT" ]
285
2020-04-30T02:45:16.000Z
2022-03-30T03:25:44.000Z
markdown_it/rules_inline/text_collapse.py
tadeu/markdown-it-py
53d9b3379494dc7f4ef53eaf4726399aac875215
[ "MIT" ]
181
2020-04-30T21:31:24.000Z
2022-03-22T12:20:35.000Z
markdown_it/rules_inline/text_collapse.py
tadeu/markdown-it-py
53d9b3379494dc7f4ef53eaf4726399aac875215
[ "MIT" ]
37
2020-05-04T22:30:43.000Z
2022-03-19T22:54:17.000Z
from .state_inline import StateInline def text_collapse(state: StateInline, *args): """ Clean up tokens after emphasis and strikethrough postprocessing: merge adjacent text nodes into one and re-calculate all token levels This is necessary because initially emphasis delimiter markers (``*, _, ~``) ...
33.886364
80
0.595573
a89963324e61702137b2b640cef6d19328b491be
14,029
py
Python
flask_appbuilder/tests/security/test_auth_oauth.py
mjkonarski-b/Flask-AppBuilder
afc8e2c9209a928fa6a791919ceae3ce3cdc48a7
[ "BSD-3-Clause" ]
3,862
2015-01-01T11:59:24.000Z
2022-03-31T19:23:55.000Z
flask_appbuilder/tests/security/test_auth_oauth.py
sanaa-khan/Flask-AppBuilder
211284bc5792d2a24a486f5c2b0f4fc86de89fbe
[ "BSD-3-Clause" ]
1,566
2015-01-01T23:26:11.000Z
2022-03-31T16:23:08.000Z
flask_appbuilder/tests/security/test_auth_oauth.py
sanaa-khan/Flask-AppBuilder
211284bc5792d2a24a486f5c2b0f4fc86de89fbe
[ "BSD-3-Clause" ]
1,352
2015-01-02T10:45:59.000Z
2022-03-26T20:56:48.000Z
import logging import os import unittest from flask import Flask from flask_appbuilder import AppBuilder, SQLA from flask_appbuilder.const import AUTH_OAUTH import jinja2 from ..const import USERNAME_ADMIN, USERNAME_READONLY logging.basicConfig(format="%(asctime)s:%(levelname)s:%(name)s:%(message)s") logging.getLogg...
32.474537
104
0.608525
55a08d19e315c5bb524793f3704d1b5705a28221
3,569
py
Python
buildSystemTests/testModules/runHelper.py
iblis-ms/python_cmake_build_system
9f52f004241c6e8efc4a036d5c58f67a6d40e7ec
[ "MIT" ]
null
null
null
buildSystemTests/testModules/runHelper.py
iblis-ms/python_cmake_build_system
9f52f004241c6e8efc4a036d5c58f67a6d40e7ec
[ "MIT" ]
6
2020-10-11T21:03:24.000Z
2020-10-12T20:32:13.000Z
buildSystemTests/testModules/runHelper.py
iblis-ms/python_cmake_build_system
9f52f004241c6e8efc4a036d5c58f67a6d40e7ec
[ "MIT" ]
null
null
null
import os import shutil import time from .utils import Utils from .sysOp import SysOp class RunHelper: def __init__(self, test_dir_path, output_path): self._test_dir_path = test_dir_path self._output_path = output_path self._current_dir = os.getcwd() self._build_script_dir = os....
33.046296
98
0.613897
ab5660da795bf4c6c3ad8817244fc43d96518b4b
723
py
Python
LeetCode/p1/Two_Sum.py
k82/practice
e8e271faac201dd95358fbcfd1329e40f607cfa9
[ "MIT" ]
1
2017-02-23T14:40:51.000Z
2017-02-23T14:40:51.000Z
LeetCode/p1/Two_Sum.py
k82/practice
e8e271faac201dd95358fbcfd1329e40f607cfa9
[ "MIT" ]
null
null
null
LeetCode/p1/Two_Sum.py
k82/practice
e8e271faac201dd95358fbcfd1329e40f607cfa9
[ "MIT" ]
1
2017-02-18T09:31:03.000Z
2017-02-18T09:31:03.000Z
#!/usr/bin/env python class Solution: # @return a tuple, (index1, index2) def twoSum(self, num, target): d = {}; for i, n in enumerate(num): # put in map if ( n not in d): d[n]=i; for i, n in enumerate(num): ...
30.125
52
0.390041
1e0d5ff619362b99ca91f9dee69c1d13d9a5b807
190
py
Python
Python/05.Itertools/003.itertools.combinations().py
kimchangkyu/HackerrankPractice
84c8a7a73c06f608ba845b35eeb34ce7879abb07
[ "MIT" ]
null
null
null
Python/05.Itertools/003.itertools.combinations().py
kimchangkyu/HackerrankPractice
84c8a7a73c06f608ba845b35eeb34ce7879abb07
[ "MIT" ]
null
null
null
Python/05.Itertools/003.itertools.combinations().py
kimchangkyu/HackerrankPractice
84c8a7a73c06f608ba845b35eeb34ce7879abb07
[ "MIT" ]
null
null
null
from itertools import combinations datas = list(map(str, input().split())) for i in range(1, int(datas[1]) + 1): print(*list(map("".join, combinations(sorted(datas[0]), i))), sep="\n")
31.666667
75
0.647368
1bff5051ac87e655352b50aa845f98e0c5937d33
1,019
py
Python
mab/test/poisson.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
1
2018-12-01T04:10:34.000Z
2018-12-01T04:10:34.000Z
mab/test/poisson.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
null
null
null
mab/test/poisson.py
maartenbreddels/mab
112dcfbc4a74b07aff13d489b3776bca58fe9bdf
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- from kaplot import * import scipy class Light(object): def __init__(self, light_distribution, N=100000, M=50, Nr=100, rmax=1.5): self.light_distribution = light_distribution self.rmax = rmax self.Nr = Nr self.N = N self.M = M def run(self, args, opts, scope): print scipy.i...
26.815789
104
0.652601
78af8a0856eb298d54610d8ae27b702a61fd3f31
217
py
Python
py_tdlib/constructors/message_forward_info.py
Mr-TelegramBot/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
24
2018-10-05T13:04:30.000Z
2020-05-12T08:45:34.000Z
py_tdlib/constructors/message_forward_info.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
3
2019-06-26T07:20:20.000Z
2021-05-24T13:06:56.000Z
py_tdlib/constructors/message_forward_info.py
MrMahdi313/python-tdlib
2e2d21a742ebcd439971a32357f2d0abd0ce61eb
[ "MIT" ]
5
2018-10-05T14:29:28.000Z
2020-08-11T15:04:10.000Z
from ..factory import Type class messageForwardInfo(Type): origin = None # type: "MessageForwardOrigin" date = None # type: "int32" from_chat_id = None # type: "int53" from_message_id = None # type: "int53"
24.111111
46
0.700461
b8770116fcb19b0fba91c6790a35162a85436434
5,305
py
Python
officials/calculations.py
Fabrice-64/advocacy_project
33eb8b71e057ea197be578020436defb015fa000
[ "MIT" ]
null
null
null
officials/calculations.py
Fabrice-64/advocacy_project
33eb8b71e057ea197be578020436defb015fa000
[ "MIT" ]
null
null
null
officials/calculations.py
Fabrice-64/advocacy_project
33eb8b71e057ea197be578020436defb015fa000
[ "MIT" ]
null
null
null
""" This modules calculates the influence and propinquity of an official. The influence calculation relies on a simple equation: number of mandates x level of the mandate. the sum of all mandates gives the level of influence. INFLUENCE_INDEX: Each level of electoral mandate is rated. Futur...
35.13245
118
0.719321
904183c609e4b670d383682785061334deb5a44b
2,295
py
Python
sharding/handler/utils/web3_utils.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
sharding/handler/utils/web3_utils.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
sharding/handler/utils/web3_utils.py
hongsookim/bigchaindb-sharding
b8af70ab77fb4d186cc227a8076e268a3ec8544b
[ "ECL-2.0", "Apache-2.0", "CC-BY-4.0" ]
null
null
null
import rlp from evm.rlp.transactions import ( BaseTransaction, ) from web3 import ( Web3, ) from eth_utils import ( to_checksum_address, ) from typing import ( List, Tuple, ) from eth_typing import ( Address, Hash32, ) def get_code(w3: Web3, address: Address) -> bytes: return w3.eth...
26.079545
86
0.688889
4d0aea62e56bfba47fc464f52b01fbab659bc99a
223
py
Python
apps/core/context_processors.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
null
null
null
apps/core/context_processors.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
4
2020-02-11T21:31:46.000Z
2020-06-05T00:43:08.000Z
apps/core/context_processors.py
xeroz/gshop
d1bd0920d8ffaae9e7f52fcf8d60dd2d009cde2a
[ "MIT" ]
null
null
null
from apps.products.models import ShopDepartment, Product def processors(request): shop_departments = ShopDepartment.objects.activate() data = { 'shop_departments': shop_departments, } return data
20.272727
56
0.717489
5f3227ddf1492fd5c5ec6ebe67d0f06d7e869856
211
py
Python
01 python/lect 5 materials/gcb.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
1
2020-09-26T18:48:11.000Z
2020-09-26T18:48:11.000Z
01 python/lect 5 materials/gcb.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
null
null
null
01 python/lect 5 materials/gcb.py
ksetdekov/HSE_DS
619d5b84f9d9e97b58ca1f12c5914ec65456c2c8
[ "MIT" ]
null
null
null
a_val = int(input()) b_val = int(input()) def gcd(a, b): if b > a: a, b = b, a if a % b == 0: return b else: return gcd(b, a % b) result = gcd(a_val, b_val) print(result)
13.1875
28
0.473934
4cdc416bef8f78e45b23d63ea940046692c88dac
441
py
Python
JobSpiders/utils/url_encode_test.py
Genesis-m/JobSpiders
26427b1bd1bc3c8989e5619ec84864d416419686
[ "Apache-2.0" ]
188
2018-07-23T14:16:26.000Z
2022-03-30T13:53:04.000Z
JobSpiders/utils/url_encode_test.py
lemonbiz/JobSpiders
1b35557eb391ad4e2b73de433c78da1a095ff8bc
[ "Apache-2.0" ]
18
2018-08-15T10:28:41.000Z
2022-03-11T23:46:56.000Z
JobSpiders/utils/url_encode_test.py
lemonbiz/JobSpiders
1b35557eb391ad4e2b73de433c78da1a095ff8bc
[ "Apache-2.0" ]
69
2018-08-22T06:36:45.000Z
2022-03-30T13:53:05.000Z
from urllib import parse # data = '{"p": 10000000, "jl": "489", "kw": "java", "kt": "3"}' # print(data) # # """"%7b%22p%22%3a+1%2c+%22jl%22%3a+%22489%22%2c+%22kw%22%3a+%22java%22%2c+%22kt%22%3a+%223%22%7d # """ # print(parse.quote(string=data, encoding="utf-8")) # print("%7b%22p%22%3a+1%2c+%22jl%22%3a+%22489%22%2c+%22...
40.090909
103
0.62585
e6862f0d9dd7ec05b4e0c4ba26ab5f16a7aa9ad7
32,315
py
Python
tensorflow/compiler/tests/binary_ops_test.py
tianhm/tensorflow
e55574f28257bdacd744dcdba86c839e661b1b2a
[ "Apache-2.0" ]
47
2017-03-08T20:58:54.000Z
2021-06-24T07:07:49.000Z
tensorflow/compiler/tests/binary_ops_test.py
genSud/tensorflow
ec8216568d8cd9810004067558041c11a8356685
[ "Apache-2.0" ]
1
2019-07-11T16:29:54.000Z
2019-07-11T16:29:54.000Z
tensorflow/compiler/tests/binary_ops_test.py
genSud/tensorflow
ec8216568d8cd9810004067558041c11a8356685
[ "Apache-2.0" ]
19
2017-04-17T01:28:40.000Z
2020-08-15T13:01:33.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...
36.065848
80
0.508278
86f804759ee439ca15979e8a65f686ca21361102
6,305
py
Python
admin/rdm_timestampsettings/views.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
11
2018-12-11T16:39:40.000Z
2022-02-26T09:51:32.000Z
admin/rdm_timestampsettings/views.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
52
2018-04-13T05:03:21.000Z
2022-03-22T02:56:19.000Z
admin/rdm_timestampsettings/views.py
tsukaeru/RDM-osf.io
2dc3e539322b6110e51772f8bd25ebdeb8e12d0e
[ "Apache-2.0" ]
16
2018-07-09T01:44:51.000Z
2021-06-30T01:57:16.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.shortcuts import redirect from django.http import HttpResponse from django.views.generic import ListView, View from django.contrib.auth.mixins import UserPassesTestMixin from django.core.urlresolvers import reverse from admin.base import setti...
37.307692
99
0.649802
f90268e5029964d3fdbd99fd8240ff13e1427494
454
py
Python
PythonExercicios/ex071.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex071.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
PythonExercicios/ex071.py
Caio-Moretti/115.Exercicios-Python
7e66fb1f44ea3eb4ade63f37d843242ac42ade84
[ "MIT" ]
null
null
null
valor = int(input('QUANTO VOCÊ QUER SACAR? ')) total = valor ced = 50 totalced = 0 while True: if total >= ced: total -= ced totalced += 1 else: if totalced > 0: print(f'Total de {totalced} cédulas de R$:{ced:.2f}') if ced == 50: ced = 20 elif ced ...
21.619048
65
0.449339
40b107f8eadc129c96a568c981bfbf3ec01a242f
85,329
py
Python
world/dominion/plots/models.py
sgsabbage/arxcode
ff1587721f9896062ffdcaf008dcd842baaec5d2
[ "MIT" ]
null
null
null
world/dominion/plots/models.py
sgsabbage/arxcode
ff1587721f9896062ffdcaf008dcd842baaec5d2
[ "MIT" ]
null
null
null
world/dominion/plots/models.py
sgsabbage/arxcode
ff1587721f9896062ffdcaf008dcd842baaec5d2
[ "MIT" ]
null
null
null
import math from typing import Union, List from datetime import datetime from django.conf import settings from django.core.validators import MinValueValidator from django.db import models from django.db.models import Q from evennia.utils.idmapper.models import SharedMemoryModel from server.utils.arx_utils import inf...
37.573316
119
0.5943
462c1d6686abe66288e8d213ec1a10f2e5a827b2
10,165
py
Python
panoptes/sample_prep.py
rhong3/panoptes-he
f2484c9f54b925cc6a33a9d3b6b3a6e7945081fc
[ "MIT" ]
null
null
null
panoptes/sample_prep.py
rhong3/panoptes-he
f2484c9f54b925cc6a33a9d3b6b3a6e7945081fc
[ "MIT" ]
null
null
null
panoptes/sample_prep.py
rhong3/panoptes-he
f2484c9f54b925cc6a33a9d3b6b3a6e7945081fc
[ "MIT" ]
null
null
null
""" Prepare training and testing datasets as CSV dictionaries 01/21/2020 @author: RH """ import os import pandas as pd import sklearn.utils as sku import numpy as np import re # pair tiles of 10x, 5x, 2.5x of the same area into tile sets for real test image def testpaired_tile_ids_in(imgdirr, root_dir, resolution=N...
45.788288
107
0.545106
4b0eaacedd3a6279683517888035e30e65e3f864
10,364
py
Python
fastreid/modeling/meta_arch/HAA_BASELINE.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
1
2021-03-28T15:03:58.000Z
2021-03-28T15:03:58.000Z
fastreid/modeling/meta_arch/HAA_BASELINE.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
fastreid/modeling/meta_arch/HAA_BASELINE.py
hanleiyu/prcv
df5ad9469b38b8176121357fe5de2b1cf30aae1c
[ "MIT" ]
null
null
null
# encoding: utf-8 """ @author: liaoxingyu @contact: sherlockliao01@gmail.com """ import copy import torch from torch import nn import pdb from .build import META_ARCH_REGISTRY from ..backbones import build_backbone from ..backbones.resnet import Bottleneck from ..heads import build_reid_heads from ..model_utils impor...
43.729958
125
0.620899
053e1d946e3ac189cc5e37454cbdf196fb873c99
3,301
py
Python
tests/test_graph_manipulation.py
kadeng/invertnn
baf6f39d0c94f345f3bbe6dddafd6f08e5e501f0
[ "MIT" ]
null
null
null
tests/test_graph_manipulation.py
kadeng/invertnn
baf6f39d0c94f345f3bbe6dddafd6f08e5e501f0
[ "MIT" ]
null
null
null
tests/test_graph_manipulation.py
kadeng/invertnn
baf6f39d0c94f345f3bbe6dddafd6f08e5e501f0
[ "MIT" ]
null
null
null
from unittest import TestCase from invertnn.tf.graph_manipulation import extract_intermediate_graph from invertnn.general.gpu_usage import grab_gpus grab_gpus(0) import tensorflow as tf import numpy class TestGraphManipulation(TestCase): def test_invertible1(self): rng = numpy.random with tf.Gr...
17.558511
99
0.497728
7ef1c27d6e109dea0addbfed12c0ea924ca1e52b
6,779
py
Python
checkov/cloudformation/parser/cfn_yaml.py
banaboi/checkov
6046dfeebc6056bd4f80bdaee2b25165d07fc955
[ "Apache-2.0" ]
null
null
null
checkov/cloudformation/parser/cfn_yaml.py
banaboi/checkov
6046dfeebc6056bd4f80bdaee2b25165d07fc955
[ "Apache-2.0" ]
2
2022-01-10T10:59:53.000Z
2022-01-12T10:51:58.000Z
checkov/cloudformation/parser/cfn_yaml.py
banaboi/checkov
6046dfeebc6056bd4f80bdaee2b25165d07fc955
[ "Apache-2.0" ]
null
null
null
""" Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 """ import logging import six from yaml import MappingNode from yaml import ScalarNode from yaml import SequenceNode from yaml.composer import Composer from yaml.constructor import ConstructorError from yaml.const...
31.239631
87
0.671633
8a847ecae70ad5b76cd7702bdd2c5d807fa0f004
5,523
py
Python
uq_benchmark_2019/mnist/models_lib.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
uq_benchmark_2019/mnist/models_lib.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
uq_benchmark_2019/mnist/models_lib.py
pedersor/google-research
6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 # Copyright 2022 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
33.883436
79
0.720623