hexsha
stringlengths
40
40
size
int64
5
2.06M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
248
max_stars_repo_name
stringlengths
5
125
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
248
max_issues_repo_name
stringlengths
5
125
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
248
max_forks_repo_name
stringlengths
5
125
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
5
2.06M
avg_line_length
float64
1
1.02M
max_line_length
int64
3
1.03M
alphanum_fraction
float64
0
1
count_classes
int64
0
1.6M
score_classes
float64
0
1
count_generators
int64
0
651k
score_generators
float64
0
1
count_decorators
int64
0
990k
score_decorators
float64
0
1
count_async_functions
int64
0
235k
score_async_functions
float64
0
1
count_documentation
int64
0
1.04M
score_documentation
float64
0
1
1a8287bb24f4652787ef08c0f07c41db1efb2cd8
1,529
py
Python
src/sql_injection/bad_authentication.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
src/sql_injection/bad_authentication.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
src/sql_injection/bad_authentication.py
Enprogames/SQL-Injection-Example
6c89fd388373c58c7bfcfd3db431d33df28df30a
[ "Apache-2.0" ]
null
null
null
# sql_injection/bad_authentication.py from django.conf import settings from django.contrib.auth.backends import BaseBackend from django.contrib.auth.hashers import check_password from django.contrib.auth.hashers import make_password from django.contrib.auth.models import User class SettingsBackend(BaseBackend): "...
39.205128
140
0.683453
1,249
0.816874
0
0
0
0
0
0
611
0.399608
1a853f3174943b2868458e3fd5209f38f6c49f91
26,053
py
Python
humaniq.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
humaniq.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
humaniq.py
Dexter-Maine/Eeveaem
ba9b551971d64274a7e5dd5ac87f820a96ab5060
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import time from web3 import Web3, KeepAliveRPCProvider, IPCProvider web3 = Web3(KeepAliveRPCProvider(host='127.0.0.1', port='8545')) # Global Declarations global true global false global hmq_account_0_a global hmq_account_1_a global hmq_account_2_a global hmq_account_3_a global hmq_accou...
56.269978
3,870
0.734196
0
0
0
0
0
0
0
0
10,608
0.40717
1a854f27f0f56d7e922198cf9ddc37bf19fd9e75
731
py
Python
translations/en.py
fossabot/snips-app-say-it-again
9a73575667ce4958c989b8ee8fa49cf64cde09a8
[ "MIT" ]
7
2018-12-01T15:00:05.000Z
2019-03-21T22:11:00.000Z
translations/en.py
fossabot/snips-app-say-it-again
9a73575667ce4958c989b8ee8fa49cf64cde09a8
[ "MIT" ]
15
2018-12-23T14:39:32.000Z
2020-02-01T18:59:15.000Z
translations/en.py
fossabot/snips-app-say-it-again
9a73575667ce4958c989b8ee8fa49cf64cde09a8
[ "MIT" ]
10
2018-12-21T20:52:22.000Z
2020-03-30T19:05:10.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ This module contains the result sentences and intents for the English version of the Say it again skill. """ # Result sentences RESULT_SAY_SORRY = "Sorry, I don't remember what I said. I must have fallen asleep." RESULT_TEXT_SORRY = "Sorry, I don't remember what you s...
38.473684
90
0.753762
0
0
0
0
0
0
0
0
550
0.752394
1a85a960a6472eb85416df8f920eee65f1eef307
65
py
Python
authentication/account/__init__.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
authentication/account/__init__.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
4
2020-05-06T17:22:00.000Z
2021-12-13T20:43:30.000Z
authentication/account/__init__.py
vo0doO/pydj-persweb
efcd6b7090230f7c0b9ec056008f6d1d9e876ed9
[ "CC0-1.0" ]
null
null
null
default_app_config = 'authentication.account.apps.AccountConfig'
32.5
64
0.861538
0
0
0
0
0
0
0
0
43
0.661538
1a85f5e8e7e8c3eb8c8d249a4d30db324f44895e
1,065
py
Python
dlib/tools/python/test/generate_numpy_returns_test_data.py
asm-jaime/facerec
e5e101b9f478168ead179e6b08b5605ea7607da2
[ "CC0-1.0" ]
11,719
2015-01-03T22:38:57.000Z
2022-03-30T21:45:04.000Z
tools/python/test/generate_numpy_returns_test_data.py
KiLJ4EdeN/dlib
eb1f08ce6ab3ca6f9d10425d899103de3c0df56c
[ "BSL-1.0" ]
2,518
2015-01-04T04:38:06.000Z
2022-03-31T11:55:43.000Z
tools/python/test/generate_numpy_returns_test_data.py
KiLJ4EdeN/dlib
eb1f08ce6ab3ca6f9d10425d899103de3c0df56c
[ "BSL-1.0" ]
3,308
2015-01-01T14:34:16.000Z
2022-03-31T07:20:07.000Z
#!/usr/bin/python # The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt # # This utility generates the test data required for the tests contained in test_numpy_returns.py # # Also note that this utility requires Numpy which can be installed # via the command: # pip insta...
32.272727
98
0.738028
0
0
0
0
0
0
0
0
641
0.601878
1a85fcc456833de5c744c6e5ff7017326cb330f4
788
py
Python
Chapter 4/4-2.py
Nolazco1/pythonProjects
33938487cb2e4771ea4ff6716703868844d04e52
[ "MIT" ]
null
null
null
Chapter 4/4-2.py
Nolazco1/pythonProjects
33938487cb2e4771ea4ff6716703868844d04e52
[ "MIT" ]
null
null
null
Chapter 4/4-2.py
Nolazco1/pythonProjects
33938487cb2e4771ea4ff6716703868844d04e52
[ "MIT" ]
null
null
null
# This program assists a technician in the process # of checking a substance's temperature. # Nmaed constant to represent the maximum # temperature. MAX_TEMP = 102.5 # Get the substance's temperature. temperature = float(input("Enter the subtance's Celsius temperature: ")) # As long as necessary, instruct ...
32.833333
73
0.717005
0
0
0
0
0
0
0
0
588
0.746193
1a89418df5aafa2cea0e5892d56ee2b5f2a950c1
9,495
py
Python
custom/aaa/tests/test_eligible_couple_query_helper.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
custom/aaa/tests/test_eligible_couple_query_helper.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
custom/aaa/tests/test_eligible_couple_query_helper.py
dannyroberts/commcare-hq
4b0b8ecbe851e46307d3a0e635d6d5d6e31c3598
[ "BSD-3-Clause" ]
null
null
null
from __future__ import absolute_import from __future__ import unicode_literals from datetime import date from django.test.testcases import TestCase from custom.aaa.dbaccessors import EligibleCoupleQueryHelper from custom.aaa.models import Child, Woman, WomanHistory from six.moves import range class TestEligibleCou...
37.98
108
0.562717
9,192
0.968088
0
0
545
0.057399
0
0
2,318
0.244128
1a89de4b46f00e88cfbed3e6547fad63b83b5448
31,473
py
Python
sapextractor/algo/prod/obj_centr_log.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
sapextractor/algo/prod/obj_centr_log.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
sapextractor/algo/prod/obj_centr_log.py
aarkue/sap-meta-explorer
613bf657bbaa72a3781a84664e5de7626516532f
[ "Apache-2.0" ]
null
null
null
import pandas as pd from dateutil import parser from pm4pymdl.objects.mdl.exporter import exporter as mdl_exporter from pm4pymdl.objects.ocel.exporter import exporter as ocel_exporter from sapextractor.utils.dates import timestamp_column_from_dt_tm from pandas.core.frame import DataFrame from sapextractor.database_conn...
71.205882
293
0.722302
0
0
0
0
0
0
0
0
12,539
0.398405
1a8c55fdde1ff4ebdfeb884f8d8ccf37742a0471
2,676
py
Python
src/tempgen/parsers/docx.py
k5md/Templated-Generator
f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530
[ "MIT" ]
null
null
null
src/tempgen/parsers/docx.py
k5md/Templated-Generator
f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530
[ "MIT" ]
null
null
null
src/tempgen/parsers/docx.py
k5md/Templated-Generator
f3cd2bc6c7de6f68fa1e5835471e8eaa9163d530
[ "MIT" ]
null
null
null
import docx from tempgen.parsers.parser import AbstractParser class Parser(AbstractParser): def paragraph_replace_text(self, paragraph, str, replace_str): ''' https://github.com/python-openxml/python-docx/issues/30#issuecomment-881106471 ''' count = 0 search_pos = 0 ...
39.940299
125
0.563901
2,613
0.976457
0
0
0
0
0
0
155
0.057922
1a8e5dbcf98db15a0749e18b881fa87a7833778c
523
py
Python
Contract/models.py
Hyped-247/rp
9e3c6287ec2a183998f6ddadc20153736bbefaf3
[ "MIT" ]
null
null
null
Contract/models.py
Hyped-247/rp
9e3c6287ec2a183998f6ddadc20153736bbefaf3
[ "MIT" ]
null
null
null
Contract/models.py
Hyped-247/rp
9e3c6287ec2a183998f6ddadc20153736bbefaf3
[ "MIT" ]
null
null
null
from django.db import models from Apt.models import Apt from Owner.models import Owner from Renter.models import Renter class Contract(models.Model): owner = models.ForeignKey(Owner) renter = models.ForeignKey(Renter) apt = models.ForeignKey(Apt) active = models.BooleanField(default=True) start_d...
27.526316
54
0.745698
398
0.760994
0
0
0
0
0
0
0
0
1a90e4197c82e64e65616870e1cd90e24176a9dd
466
py
Python
tf/easytensorflow.py
mutazag/mdsi_deeplearn
45776b3ec3ed952d59477c5f29e444c4de277f11
[ "MIT" ]
null
null
null
tf/easytensorflow.py
mutazag/mdsi_deeplearn
45776b3ec3ed952d59477c5f29e444c4de277f11
[ "MIT" ]
null
null
null
tf/easytensorflow.py
mutazag/mdsi_deeplearn
45776b3ec3ed952d59477c5f29e444c4de277f11
[ "MIT" ]
null
null
null
# https://github.com/easy-tensorflow/easy-tensorflow/blob/master/1_TensorFlow_Basics/Tutorials/1_Graph_and_Session.ipynb #%% import tensorflow as tf # tf.disable_eager_execution() #%% a = 2 b = 3 c = tf.add(a, b, name='Add') print(c) #%% # to run the graph, put it in a session and run sess = tf.Session() print(s...
13.314286
120
0.665236
0
0
0
0
0
0
0
0
264
0.566524
1a92064954db18af7514af8bb12eb3b5c7406db8
639
py
Python
msk/consumer.py
wingkwong/aws-playground
5d395bb63e6f47bb4a536bab9e34ca0744e79c5d
[ "MIT" ]
1
2021-09-10T05:21:39.000Z
2021-09-10T05:21:39.000Z
msk/consumer.py
wingkwong/aws-playground
5d395bb63e6f47bb4a536bab9e34ca0744e79c5d
[ "MIT" ]
null
null
null
msk/consumer.py
wingkwong/aws-playground
5d395bb63e6f47bb4a536bab9e34ca0744e79c5d
[ "MIT" ]
null
null
null
from kafka import KafkaConsumer from json import loads # Define Amazon MSK Brokers brokers=['<YOUR_MSK_BROKER_1>:9092', '<YOUR_MSK_BROKER_2>:9092'] # Define Kafka topic to be consumed from kafka_topic='<YOUR_KAFKA_TOPIC>' # A Kafka client that consumes records from a Kafka cluster consumer = KafkaConsumer( ...
31.95
64
0.690141
0
0
0
0
0
0
0
0
230
0.359937
1a9611f6590b2309ddd6925053805e4c14110715
12,176
py
Python
MNIST_VAE.py
federicobergamin/Variational-Autoencoders
6cae335c82ec55aa5fa9f260e7daa2ad6ace453e
[ "MIT" ]
1
2019-12-23T12:12:13.000Z
2019-12-23T12:12:13.000Z
MNIST_VAE.py
federicobergamin/Variational-Autoencoders
6cae335c82ec55aa5fa9f260e7daa2ad6ace453e
[ "MIT" ]
null
null
null
MNIST_VAE.py
federicobergamin/Variational-Autoencoders
6cae335c82ec55aa5fa9f260e7daa2ad6ace453e
[ "MIT" ]
null
null
null
''' We are going to learn a latent space and a generative model for the MNIST dataset. ''' import numpy as np import torch import torch.utils import torch.utils.data from torch.utils.tensorboard import SummaryWriter import torchvision import torch.nn.functional as F from torchvision import datasets, transforms, utils...
37.931464
185
0.634938
0
0
0
0
0
0
0
0
4,159
0.341574
1a965592916f1ea93fda3c740173e3525efb4396
513
py
Python
sqrt_test.py
patrickjwolf/lambdata
10098611d4a074ab6685a14eb1d3ef183975e814
[ "MIT" ]
null
null
null
sqrt_test.py
patrickjwolf/lambdata
10098611d4a074ab6685a14eb1d3ef183975e814
[ "MIT" ]
null
null
null
sqrt_test.py
patrickjwolf/lambdata
10098611d4a074ab6685a14eb1d3ef183975e814
[ "MIT" ]
null
null
null
import unittest from sqrt import lazy_sqrt, builtin_sqrt, newton_sqrt1 class SqrtTests(unittest.TestCase): """obligatory docstring, tests square root functions""" def test_sqrt9(self): self.assertEqual(newton_sqrt1(9), 3) self.assertEqual(lazy_sqrt(9), 3) def test_sqrt2(self): ...
28.5
61
0.68616
383
0.746589
0
0
0
0
0
0
65
0.126706
1a97c3f3a52c4076a37c5647166b601d480b1378
5,202
py
Python
examples/allennlp/allennlp_simple.py
kevtran23/optuna
4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434
[ "MIT" ]
null
null
null
examples/allennlp/allennlp_simple.py
kevtran23/optuna
4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434
[ "MIT" ]
null
null
null
examples/allennlp/allennlp_simple.py
kevtran23/optuna
4f2fa9c60d9a216ff3cfbc0f3ca12cb32ff53434
[ "MIT" ]
null
null
null
""" Optuna example that optimizes a classifier configuration for IMDB movie review dataset. This script is based on the example of allentune (https://github.com/allenai/allentune). In this example, we optimize the validation accuracy of sentiment classification using AllenNLP. Since it is too time-consuming to use the...
33.133758
113
0.716455
305
0.058631
140
0.026913
0
0
0
0
1,381
0.265475
1a989a264435ff4aa2d09487fe41bd4339c5d13b
4,145
pyp
Python
bootstrapper.pyp
NiklasRosenstein/c4ddocs
9be4efba47d0dbd5787622933b21fdcf8fb5272e
[ "MIT" ]
29
2017-03-10T18:00:11.000Z
2021-02-22T22:56:36.000Z
bootstrapper.pyp
NiklasRosenstein/c4ddev
9be4efba47d0dbd5787622933b21fdcf8fb5272e
[ "MIT" ]
17
2017-04-26T14:13:49.000Z
2018-07-07T21:37:35.000Z
bootstrapper.pyp
NiklasRosenstein/c4ddocs
9be4efba47d0dbd5787622933b21fdcf8fb5272e
[ "MIT" ]
5
2017-07-21T22:24:15.000Z
2020-08-17T05:51:19.000Z
# localimport-v1.7.3-blob-mcw99 import base64 as b, types as t, zlib as z; m=t.ModuleType('localimport'); m.__file__ = __file__; blob=b'\ eJydWUuP20YSvutXEMiBpIfmeOLDAkJo7GaRAMEGORiLPUQrEBTVkumhSKK75Uhj5L+nHv2iSNpyfBiTXY+uqq76qpoqy+qsP\ /SyLIv4t+a5rVT0vleiU1o0XfSDdM8dEf95PFVNm9f96V28KstPQqqm71D4Kf9H/jZeNaehlzqq++Fqn49t...
61.865672
99
0.895537
0
0
0
0
0
0
0
0
3,399
0.820024
1a98b5e99f3f08c40346d868f154e3474a9471fd
703
py
Python
main/increasing-order-search-tree/increasing-order-search-tree.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/increasing-order-search-tree/increasing-order-search-tree.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
main/increasing-order-search-tree/increasing-order-search-tree.py
EliahKagan/old-practice-snapshot
1b53897eac6902f8d867c8f154ce2a489abb8133
[ "0BSD" ]
null
null
null
# Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # self.val = x # self.left = None # self.right = None class Solution: def increasingBST(self, root: TreeNode) -> TreeNode: head = TreeNode(None) link = head def dfs(subroot :...
26.037037
56
0.479374
539
0.766714
0
0
0
0
0
0
156
0.221906
1a9922af72c1516621850ee44f2b5c699c589d4b
2,715
py
Python
src/lex.py
urlordjames/pointysnake
cac720068d55ffec8e7b220285e460faf6ceaa3e
[ "MIT" ]
1
2020-07-12T14:20:58.000Z
2020-07-12T14:20:58.000Z
src/lex.py
urlordjames/pointysnake
cac720068d55ffec8e7b220285e460faf6ceaa3e
[ "MIT" ]
5
2020-07-16T15:58:41.000Z
2020-07-24T01:42:59.000Z
src/lex.py
urlordjames/pointysnake
cac720068d55ffec8e7b220285e460faf6ceaa3e
[ "MIT" ]
null
null
null
def lex(filename): f = open(filename, "r") src = f.read() f.close() lines = src.split("\n") newlines = [] for line in lines: if len(line) < 1 or line[0] == "#": continue newlines.append(line) tokens = [] for line in newlines: tokens.append(toke...
28.882979
92
0.467403
0
0
0
0
0
0
0
0
539
0.198527
1a9934c641a8e06786f568b40c4021e92eb93c05
7,678
py
Python
__init__.py
wailord90/Capstone
5d82339e31905f5c7ef3131f15526d9bc29f0a98
[ "Apache-2.0" ]
1
2019-03-14T19:29:55.000Z
2019-03-14T19:29:55.000Z
__init__.py
wailord90/Capstone
5d82339e31905f5c7ef3131f15526d9bc29f0a98
[ "Apache-2.0" ]
null
null
null
__init__.py
wailord90/Capstone
5d82339e31905f5c7ef3131f15526d9bc29f0a98
[ "Apache-2.0" ]
2
2019-02-09T21:13:50.000Z
2019-03-14T21:03:52.000Z
from flask_bootstrap import Bootstrap # from pipenv.vendor.dotenv import load_dotenv from flask import Flask, render_template, request, jsonify, redirect, Response import os import thread import json import pprint import pusher import cv2 import sys import numpy import time import serial from time_convert import pretty...
33.973451
165
0.586481
0
0
4,581
0.59664
2,181
0.284058
0
0
2,003
0.260875
1a99b203e16bffe37d41eec19674afc04eae9420
129
py
Python
djatracker/data/admin.py
na0495/Djatracker
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
[ "MIT" ]
null
null
null
djatracker/data/admin.py
na0495/Djatracker
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
[ "MIT" ]
null
null
null
djatracker/data/admin.py
na0495/Djatracker
1a7a57897b87b70c1543ed6f4ab4e3b02a7da899
[ "MIT" ]
null
null
null
from django.contrib import admin from .models import MappingData # Register your models here. admin.site.register(MappingData)
18.428571
32
0.813953
0
0
0
0
0
0
0
0
28
0.217054
1a9abd84e1be3db2d14bf1598d2908aacba99eaf
417
py
Python
DailyChallenge/LC_198.py
iphyer/LeetcodeSummary
ad5229bbb8e76083e5c7f0312fa0c8ff78d516a9
[ "MIT" ]
null
null
null
DailyChallenge/LC_198.py
iphyer/LeetcodeSummary
ad5229bbb8e76083e5c7f0312fa0c8ff78d516a9
[ "MIT" ]
null
null
null
DailyChallenge/LC_198.py
iphyer/LeetcodeSummary
ad5229bbb8e76083e5c7f0312fa0c8ff78d516a9
[ "MIT" ]
null
null
null
class Solution: def rob(self, nums: List[int]) -> int: # DP # dp[i]: the max value until house i dp = [0] * len(nums) N = len(nums) if N == 1: return nums[0] if N == 2: return max(nums[0], nums[1]) dp[0] = nums[0] dp[1] = max(nums[0], nums[1]) ...
29.785714
51
0.446043
416
0.997602
0
0
0
0
0
0
40
0.095923
1a9bf2335bf26bc4c9f9e7623fc0e9e3be656abc
3,381
py
Python
experiment_basic.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
null
null
null
experiment_basic.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
null
null
null
experiment_basic.py
caranha/GDMC_experiments
9cbef15c5fe2cb1703535586aded0cde5112cd3e
[ "MIT" ]
null
null
null
import random import interfaceUtils # Add text to a sign def setSignText(x, y, z, line1 = "", line2 = "", line3 = "", line4 = ""): l1 = 'Text1:\'{"text":"'+line1+'"}\'' l2 = 'Text2:\'{"text":"'+line2+'"}\'' l3 = 'Text3:\'{"text":"'+line3+'"}\'' l4 = 'Text4:\'{"text":"'+line4+'"}\'' blockNBT = "{"+...
33.81
100
0.572316
0
0
0
0
0
0
0
0
1,295
0.383023
1a9d1bf580afd0ee0a24298894018f257f2969f5
351
py
Python
MyGame/code/constants.py
Chad474/2dPyGame
22d2c19a5407fa4b539b772facfc5c08e6860ddd
[ "MIT" ]
null
null
null
MyGame/code/constants.py
Chad474/2dPyGame
22d2c19a5407fa4b539b772facfc5c08e6860ddd
[ "MIT" ]
null
null
null
MyGame/code/constants.py
Chad474/2dPyGame
22d2c19a5407fa4b539b772facfc5c08e6860ddd
[ "MIT" ]
null
null
null
import pygame TITLE = 'Gravity' BLOCK_SIZE = 32 SCREEN_WIDTH = 1024 # 32 * 32 SCREEN_HEIGHT = 576 # 32* 18 SCREEN = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT)) COLOR_KEY = (200,0,200) MAX_FPS = 60 def split(frame, x, y, w, h): img = pygame.Surface([w, h]) img.blit(frame, (0,0), (x...
18.473684
64
0.612536
0
0
0
0
0
0
0
0
28
0.079772
1a9d7cda48b1e296206076d3d46cfc71b4de07c2
1,852
py
Python
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
ytdlscript.py
antsareflying/ytdlscript
e03e965bfab1b7148982ea9fef04d06b6b5a84c1
[ "MIT" ]
null
null
null
""" MIT License Copyright (c) 2021 Moon Seongmu 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, publish, ...
38.583333
418
0.759179
0
0
0
0
0
0
0
0
1,590
0.858531
1a9dcbe44706cc17ddb463f1054c5280c08ef119
36,033
py
Python
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
1
2020-05-08T18:00:28.000Z
2020-05-08T18:00:28.000Z
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
null
null
null
grid_generator/body_fitted_grid_generator.py
Mayu14/2D_comp_viscos
a62633d8684b218b52e39d47a13717a1edfa4a46
[ "MIT" ]
1
2020-02-20T09:26:27.000Z
2020-02-20T09:26:27.000Z
# coding: utf-8 from math import sqrt from scipy import interpolate from scipy.spatial import Delaunay import numpy as np from numpy.linalg import norm from naca_4digit_test import Naca_4_digit, Naca_5_digit from joukowski_wing import joukowski_wing_complex, karman_trefftz_wing_complex import matplotlib.pyplot as plt i...
38.537968
219
0.532512
0
0
0
0
0
0
0
0
14,682
0.381767
1a9e25b8e38841c4bac70ac6ccb33656070cf168
868
py
Python
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
slot/d/water.py
smashwidget/dl-1
352a65b9e40a623d7a9e5a693fa2b412f27d8cff
[ "Apache-2.0" ]
null
null
null
from slot import * class Leviathan(DragonBase): ele = 'water' att = 125 a = [('a', 0.6)] class Siren(DragonBase): ele = 'water' att = 125 a = [('s', 0.9), ('a', 0.2)] class Dragonyule_Jeanne(DragonBase): ele = 'water' att = 125 a = [('a', 0.30), ('cc', 0.15)] DJ = Dragonyule_Jeann...
20.186047
45
0.559908
777
0.895161
0
0
0
0
0
0
127
0.146313
1a9e2fd106422503a1e5fac850661d45c2df7299
4,238
py
Python
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
1
2020-02-13T16:52:57.000Z
2020-02-13T16:52:57.000Z
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
null
null
null
cmp/gnfa.py
kikeXD/Grammar-Analyser
ca8f35c0e36e3d8181dab78bb0231e101f953437
[ "MIT" ]
1
2020-02-13T16:44:26.000Z
2020-02-13T16:44:26.000Z
from cmp.regex import Regex from cmp.nfa_dfa import NFA import pydot from pprint import pprint class GNFA: def __init__(self, nfa :NFA): self.nfa = nfa self.states = nfa.states + 2 self.start = 0 self.finals = [nfa.states + 1] self.transitions = { state: {} for state in rang...
37.175439
119
0.51345
4,145
0.977364
0
0
0
0
0
0
889
0.20962
1a9e301a01427b553ef254d21db7775e0f228100
4,203
py
Python
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
python/venv/lib/python2.7/site-packages/openstackclient/tests/image/v2/fakes.py
sjsucohort6/openstack
8471e6e599c3f52319926a582358358ef84cbadb
[ "MIT" ]
null
null
null
# Copyright 2013 Nebula 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...
27.116129
121
0.520343
777
0.184868
0
0
0
0
0
0
1,731
0.411849
1a9f200093ff908223023512ea9b5b6f00c68650
312
py
Python
tools_queue.py
sohamkor/TeachMeWebApp
820eff092c6891cf556ee22e47b14f7c4047fd60
[ "MIT" ]
null
null
null
tools_queue.py
sohamkor/TeachMeWebApp
820eff092c6891cf556ee22e47b14f7c4047fd60
[ "MIT" ]
null
null
null
tools_queue.py
sohamkor/TeachMeWebApp
820eff092c6891cf556ee22e47b14f7c4047fd60
[ "MIT" ]
null
null
null
class Queue(object): def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def enqueue(self, itemToAdd): self.items.insert(0, itemToAdd) def dequeue(self): return self.items.pop() def size(self): return len(self.items)
19.5
39
0.583333
311
0.996795
0
0
0
0
0
0
0
0
1aa1225f975c24c5462e87cbb4bbe01830ca0112
2,557
py
Python
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
1
2021-03-24T18:00:03.000Z
2021-03-24T18:00:03.000Z
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
null
null
null
wwyfcs/utils/create_examples.py
shc558/wwyfcs
05ca6c94f59f7317e4e597d3df18f549dcadf7c1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import argparse import os import pandas as pd from sklearn.model_selection import train_test_split # load data and tag lines with source characters' names def load_data(args): data = pd.read_csv(args.file_path) data['id:data'] = data[args.id_colname]+':'+data[args.data_colname] return dat...
36.014085
96
0.678138
0
0
0
0
0
0
0
0
678
0.265154
1aa1a697528836b8f497782c36ef0f059f0914be
2,445
py
Python
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
dottyDrawings.py
riyap/DottyDrawings
33691c390ef939507e6499c56ab3e0f33485734f
[ "MIT" ]
null
null
null
from tkinter import * color = 'black' def red(): global color color = 'red' def orange(): global color color = 'orange' def yellow(): global color color = 'yellow' def green(): global color color = 'lime green' def lime_green(): global color color = 'green' def ...
26.010638
77
0.592229
0
0
0
0
0
0
0
0
279
0.11411
1aa1c12c8ef5bbdcb0a900983b817113c8754fc5
1,080
py
Python
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
metrics.py
mrhhodd/capsnet-keras
3e4f9024552072f27d124dda3ff346855c1ca5ca
[ "MIT" ]
null
null
null
from tensorflow.keras import backend as K EPSILON = K.epsilon() def accuracy(y_true, y_pred): [tp, tn, fp, fn] = _analyse_data(y_true, y_pred) return K.mean((tp + tn) / (tp + tn + fp + fn + EPSILON)) def specificity(y_true, y_pred): [_, tn, fp, _] = _analyse_data(y_true, y_pred) return K.mean(tn / ...
30.857143
76
0.641667
0
0
0
0
0
0
0
0
0
0
1aa1ca7c87724c54b585e2a6a3bad71ad929799e
2,598
py
Python
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
tests/test_envfile.py
jaysonsantos/prettyconf
3c6a17340d040b6b39b7185b888f0a2bdc04fb0c
[ "MIT" ]
null
null
null
import os from prettyconf.loaders import EnvFile from .base import BaseTestCase class EnvFileTestCase(BaseTestCase): def setUp(self): super(EnvFileTestCase, self).setUp() self.envfile = os.path.join(self.test_files_path, "envfile") def test_basic_config_object(self): config = EnvFile...
38.776119
108
0.667821
2,514
0.967667
0
0
0
0
0
0
678
0.26097
1aa29587a4eba407d37fdbf858f15f5c5df32ab9
68
py
Python
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
geotrek/feedback/tests/__init__.py
jmdecastel/GEOTADMIN
15547c0a99ae4c541ca517cdbc2cf17ab5c96f87
[ "BSD-2-Clause" ]
null
null
null
from .test_views import * # NOQA from .test_email import * # NOQA
22.666667
33
0.705882
0
0
0
0
0
0
0
0
12
0.176471
1aa3b2b635b5e0fe136530f149a2852716edea06
163
py
Python
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
ExamPrep/Shit Comp/Python Code/RootsOriginal/BisectionMethod.py
FHomewood/ScientificComputing
bc3477b4607b25a700f2d89ca4f01cb3ea0998c4
[ "IJG" ]
null
null
null
#Imports from bisection import * #Constants LowerLimit = 0.0 UpperLimit = 10.0 def f(x): return (x)**2 Root = bisection(f,LowerLimit,UpperLimit) print Root
12.538462
41
0.711656
0
0
0
0
0
0
0
0
18
0.110429
1aa4b3a113ac926ca89f8c9615ae6678dd7f9cd5
5,622
py
Python
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
hand_of_ros/roomba_control/scripts/create_controller.py
robertsatya/ros-bot
12ef876beee36ebb1d9af90c6e9d8b1b0a4a76d2
[ "MIT" ]
null
null
null
#!/usr/bin/env python from Tkinter import * import tkMessageBox import tkSimpleDialog import struct import sys, glob # for listing serial ports import rospy from roomba_control.srv import * send_mode = None def create_control_service_client(x): global send_mode try: if send_mode == None: ...
31.58427
98
0.544468
4,250
0.755959
0
0
0
0
0
0
1,935
0.344184
1aa5ff8d79fad0cf1844b76d7b3b8225587726b3
1,248
py
Python
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
search/nlp/qu/alpha_numbers.py
octabytes/search
750124d2de0e349249e3183daccc83ba5a82af36
[ "Apache-2.0" ]
null
null
null
alpha_numbers = [ { "alpha": "one", "number": 1 }, { "alpha": "two", "number": 2 }, { "alpha": "three", "number": 3 }, { "alpha": "four", "number": 4 }, { "alpha": "five", "number": 5 }, { ...
14.682353
51
0.310096
0
0
0
0
0
0
0
0
441
0.353365
1aa66e4a88e8039f0db550652234c2a41fa7e240
2,510
py
Python
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
pdfmerge3/pdfmerge3.py
marciojmo/pdfmerge3
f1fa598000dd304fc85bcb60bb72e35e1121feea
[ "MIT" ]
null
null
null
#!/usr/bin/env python """ Merge pdf files into a single file. EXAMPLES pdfmerge3 -o output.pdf Merges all pdf files from the current folder in lexicographic order and put the result in output.pdf pdfmerge3 -o output.pdf file1.pdf file2.pdf file3.pdf Merges file1.pdf, file2.pdf, file3.pdf (in t...
30.987654
111
0.657371
0
0
0
0
0
0
0
0
1,196
0.476494
1aa707c8a85977c3cb01e58f2e7d0ab3b1f10872
2,685
py
Python
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
openGaussBase/testcase/KEYWORDS/restrict/Opengauss_Function_Keyword_Restrict_Case0020.py
opengauss-mirror/Yat
aef107a8304b94e5d99b4f1f36eb46755eb8919e
[ "MulanPSL-1.0" ]
null
null
null
""" Copyright (c) 2022 Huawei Technologies Co.,Ltd. openGauss is licensed under Mulan PSL v2. You can use this software according to the terms and conditions of the Mulan PSL v2. You may obtain a copy of Mulan PSL v2 at: http://license.coscl.org.cn/MulanPSL2 THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, W...
36.283784
124
0.665922
2,043
0.712095
0
0
0
0
0
0
1,454
0.506797
1aa7f5994534e2c541d01b757ecf3f65fc58d25f
17,858
py
Python
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
acwingcli/__main__.py
jasonsun0310/acwingcli
ef5de599b8fceeb16563aa4f2ac10db106b374da
[ "MIT" ]
null
null
null
import json import acwingcli.actions as actions import sys import os import acwingcli.commandline_writer as cmdwrite # import acwingcli import argparse import subprocess import acwingcli.update as update import os import websocket import json import threading import psutil import acwingcli.utils as utils import ti...
46.264249
134
0.582708
0
0
0
0
0
0
0
0
3,144
0.175329
1aa9303e674b4308db627878870a3d77956ca97a
9,760
py
Python
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
main.py
Readix/TrafficMonitoring
eaaf63b4973d44de37b7593eb4507e65b24b4e95
[ "MIT" ]
null
null
null
import cv2 import numpy as np import json import os import re import yolo.darknet.darknet as darknet import haversine import imutils as imu from tracker.sort import * #-------------------------------------------- ''' res_path - path to: - calibration.npy - perspective_matrix.npy - mask.png - sides.png...
38.27451
175
0.569365
0
0
0
0
0
0
0
0
1,257
0.128791
1aaa5460c4001c62707a01ed99a09b49ed09db38
1,975
py
Python
otindex/scripts/load_taxonomy_files.py
OpenTreeOfLife/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
1
2017-03-10T22:27:18.000Z
2017-03-10T22:27:18.000Z
otindex/scripts/load_taxonomy_files.py
OpenTreeOfLife/otindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
31
2016-08-17T20:00:51.000Z
2020-10-08T20:35:28.000Z
otindex/scripts/load_taxonomy_files.py
kcranston/ottreeindex
cc5b5ae0d191317be5ed98febcb3bfca99c07b86
[ "BSD-2-Clause" ]
null
null
null
# Imports ott.csv, synonyms.csv, tree_otu_assoc.csv into the database # Assumes database already set up. This happends either in initializedb.py # if running pyramid app or setup_db.py for testing (both in # this same directory) import datetime as dt import argparse import psycopg2 as psy import os # other databa...
35.909091
82
0.696203
0
0
0
0
0
0
0
0
713
0.361013
1aaad603bf5e83f2d58f456fd2cb27bd0fae1730
15,679
py
Python
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
1
2022-02-04T20:24:35.000Z
2022-02-04T20:24:35.000Z
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
ghostwriter/home/tests/test_views.py
bbhunter/Ghostwriter
1b684ddd119feed9891e83b39c9b314b41d086ca
[ "BSD-3-Clause" ]
null
null
null
# Standard Libraries import logging from datetime import date, timedelta # Django Imports from django.conf import settings from django.db.models import Q from django.test import Client, TestCase from django.test.utils import override_settings from django.urls import reverse # Ghostwriter Libraries from ghostwriter.fa...
34.611479
96
0.675553
14,967
0.954589
0
0
4,770
0.304229
0
0
1,402
0.089419
1aad579bb647de889b27f15e5b9e096cbdc98efc
1,400
py
Python
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
null
null
null
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
1
2019-04-23T01:23:17.000Z
2019-05-01T15:53:20.000Z
05_topic_modeling/topic_modeling.py
alyonavyshnevska/text_visualization_course
882a49290edf98640d20805ade14d6dfa7903e51
[ "MIT" ]
null
null
null
from gensim.models.ldamodel import LdaModel as ldamodel from gensim import corpora import pprint from gensim.test.utils import datapath import pyLDAvis import pyLDAvis.gensim from clean_data import clean as clean def train_model(texts): # turn our tokenized documents into a id <-> term dictionary dictionary =...
30.434783
71
0.730714
0
0
0
0
0
0
0
0
364
0.26
1ab14723dda2ad5abaa75d0e99e89f0f9a425b1d
3,480
py
Python
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
selenium/test_login_unfollow_follow_message_check.py
civicboom/civicboom
239cb9c2f1e8afa42ea2736c171e6043b04a7ff0
[ "MIT" ]
null
null
null
#!/usr/bin/env python from selenium import selenium import unittest, time, re class Login_Unfollow_Follow_SendMessage_ReceiveMessage(unittest.TestCase): def setUp(self): self.verificationErrors = [] self.selenium = selenium("test-browser-linux-master", 4444, "IE on Windows", "http://test.civicboom...
40.465116
114
0.609483
3,351
0.962931
0
0
0
0
0
0
886
0.254598
1ab294b9434a7343b63cc5b761a5e72a521a3292
3,681
py
Python
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
118
2015-01-04T06:55:14.000Z
2022-01-14T08:32:41.000Z
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
21
2015-01-03T02:16:28.000Z
2021-03-24T06:10:57.000Z
pylons/decorators/secure.py
KinSai1975/Menira.py
ca275ce244ee4804444e1827ba60010a55acc07c
[ "BSD-3-Clause" ]
53
2015-01-04T03:21:08.000Z
2021-08-04T20:52:01.000Z
"""Security related decorators""" import logging import urlparse from decorator import decorator try: import webhelpers.html.secure_form as secure_form except ImportError: import webhelpers.pylonslib.secure_form as secure_form from pylons.controllers.util import abort, redirect from pylons.decorators.util imp...
32.008696
75
0.653355
0
0
0
0
891
0.242054
0
0
1,868
0.507471
1ab4bfddddae575d022743618b16597b55734005
393
py
Python
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
ntu_data.py
qiuwch/lt
3a36f325a70a37f8152e8f62387628f6dabcabeb
[ "MIT" ]
null
null
null
import os import glob seq_id = 'S001' # cam_id = 'C001' cam_id = '*' pid = 'P001' rid = 'R001' aid = 'A007' data_root = './data/NTU' seq_path = '{seq_id}{cam_id}{pid}{rid}{aid}_rgb/img_00001.jpg'.format(**locals()) seq_path = os.path.join(data_root, seq_path) print(seq_path) def get_images(path): files = glob...
16.375
81
0.676845
0
0
0
0
0
0
0
0
107
0.272265
1ab581d03430d3b70b00302350af75c95eb520dd
6,876
py
Python
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
11
2020-11-12T21:51:49.000Z
2021-07-12T15:47:09.000Z
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
138
2020-11-14T01:35:08.000Z
2021-07-22T05:52:29.000Z
pydax/_schema.py
cclauss/pydax
75c7d7041041043695d693c0f36110a3f4cd1d9c
[ "Apache-2.0" ]
5
2020-12-03T22:04:39.000Z
2021-07-13T17:03:53.000Z
# # Copyright 2020 IBM Corp. 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...
39.517241
119
0.681792
5,992
0.871183
0
0
399
0.058011
0
0
4,283
0.62271
1ab5f348f3b648c7e38b865f80541d5d68554892
1,760
py
Python
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
6
2015-08-05T09:59:45.000Z
2018-07-13T04:09:43.000Z
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
null
null
null
pliki_przejsciowe/kolorujemy_ksiazki.py
stared/wizualizacja-wolnych-lektur
ad4219b4587aeb7d8ade3546ad9922ad1b5104b2
[ "CC-BY-3.0" ]
8
2016-09-13T11:13:43.000Z
2021-03-18T08:01:56.000Z
import requests from collections2 import Counter import simplejson as json import re books = json.load(open("books2.json")) color_stem = json.load(open("stemmizer_kolory.json")) colors = json.load(open("kolory_nowe.json")) def root_word(word, stem_dict): if word in stem_dict: return stem_dict[word] ...
35.918367
127
0.572727
0
0
0
0
0
0
0
0
327
0.185795
1ab79890c8715d44cb5a582ad20c54a470f52918
1,259
py
Python
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
null
null
null
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
null
null
null
turngeneration/forms.py
jbradberry/django-turn-generation
dbfec9d0addbff2d8d54597b7520e171938c9107
[ "MIT" ]
1
2019-12-12T19:36:15.000Z
2019-12-12T19:36:15.000Z
from django.contrib.contenttypes.models import ContentType from django import forms from . import models class PauseForm(forms.ModelForm): class Meta: model = models.Pause fields = ('reason',) def clean(self): cleaned_data = super(PauseForm, self).clean() if not self.instanc...
29.27907
80
0.652105
1,147
0.911041
0
0
0
0
0
0
93
0.073868
1ab98a6d7dd06d056ddf62a198dd9ded5f6d2846
2,047
py
Python
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
3
2018-06-03T00:58:27.000Z
2021-10-06T09:41:11.000Z
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
null
null
null
bot.py
technicalwritingEditor/Discord2FB-Bot
e5e10329ea2056adf451f352c4d582dc281281d1
[ "MIT" ]
1
2018-07-13T19:45:33.000Z
2018-07-13T19:45:33.000Z
import discord from discord.ext import commands import facebook from discord.ext.commands import Bot Client = discord.Client() bot = commands.Bot(command_prefix = "/") #Tells what the prefix before every command should be. @bot.event async def on_ready(): ''' Function to just tell us that the bot is not active. Ev...
37.218182
170
0.72936
0
0
0
0
1,699
0.829995
1,626
0.794333
1,137
0.555447
1ab9ac6dd4bb10c4ea54f939af124df3ccd014f8
561
py
Python
tool/click_demo.py
KEVINYZY/python-tutorial
ae43536908eb8af56c34865f52a6e8644edc4fa3
[ "Apache-2.0" ]
2
2021-01-04T10:44:44.000Z
2022-02-13T07:53:41.000Z
tool/click_demo.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
null
null
null
tool/click_demo.py
zm79287/python-tutorial
d0f7348e1da4ff954e3add66e1aae55d599283ee
[ "Apache-2.0" ]
2
2019-02-28T07:53:30.000Z
2021-07-28T07:11:20.000Z
# -*- coding: utf-8 -*- # Author: XuMing <xuming624@qq.com> # Brief: import click @click.command() @click.option('--count', default=1, help="num") @click.option('--rate', type=float, help='rate') @click.option('--gender', type=click.Choice(['man', 'woman']), default='man', help='select sex') @click.option('--center'...
25.5
96
0.632799
0
0
0
0
434
0.773619
0
0
208
0.370766
1abbc4f259e0af349f90eba1f861bc51de4ccaec
2,780
py
Python
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
vertigo/datasets/fetchers.py
rmarkello/vertigo
35c79faf3a62b9b3941f0c989640c2f5de8f819e
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Functions for fetching datasets from the internet """ from collections import namedtuple import os.path as op from .osf import _get_data_dir, _get_dataset_info from .utils import _fetch_files ANNOT = namedtuple('Surface', ('lh', 'rh')) def fetch_fsaverage(version='fsaverage', data_dir=N...
31.235955
79
0.611871
0
0
0
0
0
0
0
0
1,464
0.526619
1abc0cd17b3be692c4ae6a95012e1e744129a64f
6,798
py
Python
rdkit/ML/ModelPackage/UnitTestPackage.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
1,609
2015-01-05T02:41:13.000Z
2022-03-30T21:57:24.000Z
rdkit/ML/ModelPackage/UnitTestPackage.py
kazuyaujihara/rdkit
06027dcd05674787b61f27ba46ec0d42a6037540
[ "BSD-3-Clause" ]
3,412
2015-01-06T12:13:33.000Z
2022-03-31T17:25:41.000Z
rdkit/ML/ModelPackage/UnitTestPackage.py
bp-kelley/rdkit
e0de7c9622ce73894b1e7d9568532f6d5638058a
[ "BSD-3-Clause" ]
811
2015-01-11T03:33:48.000Z
2022-03-28T11:57:49.000Z
# # Copyright (C) 2002-2008 greg Landrum and Rational Discovery LLC # """ unit tests for the model and descriptor packager """ import os import random import unittest from xml.dom import minidom from xml.etree import ElementTree as ET from rdkit import Chem from rdkit import RDConfig from rdkit.Chem import Descripto...
38.191011
104
0.597823
5,899
0.867755
0
0
0
0
0
0
1,546
0.22742
1abce33b89f98cb52f1c4e73fa1fee092929d3eb
9,545
py
Python
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
plugins/logger/standardout/standard_out.py
Ghostkeeper/Luna
0dfc8694538c9d1ad3941602de2d4b6b815db657
[ "CC0-1.0" ]
null
null
null
#!/usr/bin/env python #-*- coding: utf-8 -*- #This software is distributed under the Creative Commons license (CC0) version 1.0. A copy of this license should have been distributed with this software. #The license can also be read online: <https://creativecommons.org/publicdomain/zero/1.0/>. If this online license dif...
42.995495
227
0.753064
0
0
0
0
0
0
0
0
5,959
0.624306
1abdc7d1f6e3c3d399749e13a801f518de7ed6a4
147
py
Python
6kyu/(6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py
e1r0nd/codewars
9b05e32a26ee5f36a4b3f1e76a71e0c79b3c865b
[ "MIT" ]
49
2018-04-30T06:42:45.000Z
2021-07-22T16:39:02.000Z
(6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
1
2020-08-31T02:36:53.000Z
2020-08-31T10:14:00.000Z
(6 kyu) Square Digits Sequence/(6 kyu) Square Digits Sequence.py
novsunheng/codewars
c54b1d822356889b91587b088d02ca0bd3d8dc9e
[ "MIT" ]
25
2018-04-02T20:57:58.000Z
2021-05-28T15:24:51.000Z
def square_digits_sequence(n): s = set() while n not in s: s.add(n) n = sum(int(d)**2 for d in str(n)) return len(s)+1
21
42
0.52381
0
0
0
0
0
0
0
0
0
0
1abdcea8efc0ca3c44292b62fd849e170b45bca7
1,466
py
Python
forge/blade/entity/npc/mobs.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
1,450
2019-03-04T15:47:38.000Z
2022-03-30T03:33:35.000Z
forge/blade/entity/npc/mobs.py
jarbus/neural-mmo
7ad02fab50f2781c0a71f7d2afd10c1503110736
[ "MIT" ]
34
2019-03-05T09:50:38.000Z
2021-08-31T15:20:27.000Z
forge/blade/entity/npc/mobs.py
LaudateCorpus1/neural-mmo
a9a7c34a1fb24fbf252e2958bdb869c213e580a3
[ "MIT" ]
164
2019-03-04T16:09:19.000Z
2022-02-26T15:43:40.000Z
#NPC definitions with AI overrides per NPC, as required. from forge.blade.entity import NPC from forge.blade.item import Item, RawMeat, Sword from forge.blade.lib import AI from forge.blade.lib.Enums import Material from forge.blade.modules import DropTable, Skill class Chicken(NPC.Passive): def __init__(self, po...
30.541667
71
0.662347
1,194
0.814461
0
0
0
0
0
0
150
0.102319
1abe13c8550d375e49e3544c2d226393aab8428e
1,638
py
Python
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
backend/apps/api/system/models/enums.py
offurface/smsta
b8a1f2e6efe6c71703c8d57e8aae255ad213863c
[ "MIT" ]
null
null
null
"""Перечисления""" from enum import Enum, unique from django.utils.translation import gettext_lazy as _ from etc.choices import ChoicesEnumMixin, get_choices @unique class Gender(ChoicesEnumMixin, Enum): """ Пол """ FEMALE = 1, _("Женский") MALE = 2, _("Мужской") @unique class DisabilityGroup(C...
18.613636
54
0.655067
1,343
0.715503
0
0
1,399
0.745338
0
0
648
0.345232
1abe388e69a825f7770361eb67cf1c3461ead767
2,168
py
Python
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
6
2020-07-05T05:15:19.000Z
2021-01-24T20:17:14.000Z
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
null
null
null
notes/algo-ds-practice/problems/dp/double_helix.py
Anmol-Singh-Jaggi/interview-notes
65af75e2b5725894fa5e13bb5cd9ecf152a0d652
[ "MIT" ]
2
2020-09-14T06:46:37.000Z
2021-06-15T09:17:21.000Z
''' Two finite, strictly increasing, integer sequences are given. Any common integer between the two sequences constitute an intersection point. Take for example the following two sequences where intersection points are printed in bold: First= 3 5 7 9 20 25 30 40 55 56 57 60 62 Second= 1 4 7 11 14 25 44 47 5...
31.42029
152
0.627768
0
0
0
0
0
0
0
0
1,127
0.517447
1abfc9f54d479adbe3c36baf00a9a7fac7331057
40,724
py
Python
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
libcst/matchers/_matcher_base.py
dendisuhubdy/LibCST
1acf2c83d132d4f665dd5de3684330463cbd361e
[ "Apache-2.0" ]
null
null
null
# 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. # pyre-strict import collections.abc import re from dataclasses import fields from enum import Enum, auto from typing import ( Callable, ...
38.637571
90
0.651336
20,263
0.497569
0
0
2,393
0.058761
0
0
21,680
0.532364
1ac0100cb9b2c279cea35555f4fa8cbff672edda
4,911
py
Python
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
visualize/loss_function.py
Drchen-AI/NN_DL_tensorflow2.0
3bf26a0b48e2aa78eecb3910104738612c176678
[ "MIT" ]
null
null
null
# coding:utf8 import torch from torch import nn, optim # nn 神经网络模块 optim优化函数模块 from torch.utils.data import DataLoader from torch.autograd import Variable from torchvision import transforms, datasets from visdom import Visdom # 可视化处理模块 import time import numpy as np # 可视化app viz = Visdom() # 超参数 BATCH_SIZE = 40 LR ...
32.959732
122
0.576461
814
0.152577
0
0
0
0
0
0
1,490
0.279288
1ac1c18d81b3fb08cc942e5904dbb8a0b2570d9d
1,783
py
Python
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
connections/migrations/0001_initial.py
jamisonwight/KnectarPy
082ab65ed9ab8e8ee5351f0f1027eea0e432c88c
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.2 on 2017-06-26 17:23 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ...
45.717949
169
0.653393
1,549
0.868761
0
0
0
0
0
0
313
0.175547
1ac1d6d3fc31da110e9581cf6f625215065fc6d5
3,737
py
Python
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
Car.py
molenathyhoangxuannguyen/Math_Quiz_1-Car
cbcd31bf12e13fe3a31725a46df9af14214b77c2
[ "MIT" ]
null
null
null
#Written by Thy H. Nguyen import turtle from math import pi import random def main(): wns = turtle.Screen() def banh_xe(bichthuy): bichthuy.shape("circle") bichthuy.shapesize(0.1,0.1) bichthuy.speed(10) bichthuy.pensize(6) def ve_hinh_tron(number,cao): fo...
27.07971
107
0.578539
0
0
0
0
0
0
0
0
403
0.107841
1ac20c1a12bae5faab7bd06bd64e2ac8f107be97
1,242
py
Python
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
3
2021-04-01T19:42:53.000Z
2022-03-01T09:50:17.000Z
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
src/learning/migrations/0025_user_and_tutorial_relations_cascade.py
Alirezaja1384/MajazAmooz
9200e46bed33aeb60d578a5c4c02013a8032cf08
[ "MIT" ]
null
null
null
# Generated by Django 3.1.7 on 2021-04-27 13:05 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('learning', '0024_tutoria...
38.8125
177
0.68277
1,100
0.873709
0
0
0
0
0
0
284
0.225576
1ac3f96b97737e3eb3f7b8408474c5d059166aee
442
py
Python
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
null
null
null
functions/odd_and_even_sum.py
MaggieIllustrations/softuni-github-programming
f5695cb14602f3d2974359f6d8734332acc650d3
[ "MIT" ]
1
2022-01-14T17:12:44.000Z
2022-01-14T17:12:44.000Z
number = input() def get_sums(type_numbers, number): result = 0 if type_numbers == "even": result = sum(list(map(int, filter(lambda x: int(x) % 2 == 0, number)))) elif type_numbers == "odd": result = sum(list(map(int, filter(lambda x: int(x) % 2 == 1, number)))) return result evens_...
24.555556
79
0.615385
0
0
0
0
0
0
0
0
69
0.156109
1ac490b577ea5dda5544e1fbb2ce5bee62233294
1,955
py
Python
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
algorithms/iterative_tree_traversals.py
avg-2049-joe/py-algo-ds
4f9c3c086e134ee23fcc0ee3b981e81f40e860cd
[ "MIT" ]
null
null
null
""" Iterative versions of the tree traversals TODO: Using a set defeats the purpose of iteration (reducing the space usage) """ class BinaryTree(object): """Object represents a binary tree""" def __init__(self, value): self.value = value self.left = None self.right = None def in_orde...
22.732558
77
0.570844
177
0.090537
0
0
0
0
0
0
557
0.28491
1ac500dbb07444e0474269ea82dee2adab318324
11,587
py
Python
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
90
2019-02-21T10:05:28.000Z
2022-03-19T01:53:41.000Z
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
99
2019-05-21T08:29:12.000Z
2022-03-25T09:55:15.000Z
pycatia/tps_interfaces/capture.py
evereux/catia_python
08948585899b12587b0415ce3c9191a408b34897
[ "MIT" ]
26
2019-04-04T06:31:36.000Z
2022-03-30T07:24:47.000Z
#! usr/bin/python3.6 """ Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357 .. warning:: The notes denoted "CAA V5 Visual Basic Help" are to be used as reference only. They are there as a guide as to how the visual basic / catscript function...
30.018135
111
0.53793
10,719
0.925088
0
0
7,333
0.632864
0
0
8,175
0.705532
1ac8d5589ceca70f9e89f1d4ba9ffbf6e4b2d824
1,257
py
Python
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
yandex_algorithm2/home1c.py
erjan/coding_exercises
53ba035be85f1e7a12b4d4dbf546863324740467
[ "Apache-2.0" ]
null
null
null
''' Как известно, два наиболее распространённых формата записи даты — это европейский (сначала день, потом месяц, потом год) и американски (сначала месяц, потом день, потом год). Системный администратор поменял дату на одном из бэкапов и сейчас хочет вернуть дату обратно. Но он не проверил, в каком формате дата использ...
18.761194
374
0.686555
0
0
0
0
0
0
0
0
1,522
0.798112
1ac958a3278a36707325e087561792a722194785
356
py
Python
tests/__init__.py
crsanderford/brainrender
6d2f1c2150ef381d08daaf1cff1ae287de0cc5e8
[ "BSD-3-Clause" ]
226
2020-10-19T13:41:36.000Z
2022-03-29T11:22:43.000Z
tests/__init__.py
RobertoDF/BrainRender
a92dc3b08f743721521ae233f15b1814207bf08c
[ "MIT" ]
90
2020-10-14T09:52:48.000Z
2022-03-25T15:51:09.000Z
tests/__init__.py
RobertoDF/BrainRender
a92dc3b08f743721521ae233f15b1814207bf08c
[ "MIT" ]
36
2020-10-14T13:04:14.000Z
2022-03-25T15:31:29.000Z
from brainrender import settings settings.INTERACTIVE = False settings.OFFSCREEN = True settings.DEFAULT_ATLAS = "allen_mouse_100um" from vedo import settings as vsettings vsettings.useDepthPeeling = False vsettings.screenshotTransparentBackground = False # vedo for transparent bg vsettings.useFXAA = True # This n...
29.666667
76
0.823034
0
0
0
0
0
0
0
0
87
0.244382
1ac9d75cb11357f8d4a47e717d459835c97dc46a
38
py
Python
src/lib/symbol.py
DTenore/skulpt
098d20acfb088d6db85535132c324b7ac2f2d212
[ "MIT" ]
2,671
2015-01-03T08:23:25.000Z
2022-03-31T06:15:48.000Z
src/lib/symbol.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
972
2015-01-05T08:11:00.000Z
2022-03-29T13:47:15.000Z
src/lib/symbol.py
wakeupmuyunhe/skulpt
a8fb11a80fb6d7c016bab5dfe3712517a350b347
[ "MIT" ]
845
2015-01-03T19:53:36.000Z
2022-03-29T18:34:22.000Z
import _sk_fail; _sk_fail._("symbol")
19
37
0.763158
0
0
0
0
0
0
0
0
8
0.210526
1acaa8c1153a3b9bb299ba78526d2d3b51be4f66
593
py
Python
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
topo/optimized/__init__.py
ceball/topographica
ec0eea614409ceb7473e04bc2f6b6c888099160f
[ "BSD-3-Clause" ]
null
null
null
import os (basepath, _) = os.path.split(os.path.abspath(__file__)) warn_for_each_unoptimized_component = False try: from distutils.core import run_setup # Run the setup script in the sandbox, so that it doesn't complain about unknown args when launched through nose run_setup(basepath + "/compile.py") ...
34.882353
116
0.740304
0
0
0
0
0
0
0
0
296
0.499157
1acb8eb322e9aec321348f3d36693b0a3fc3fd97
5,618
py
Python
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
sdk/python/pulumi_gcp/organizations/get_project.py
dimpu47/pulumi-gcp
38355de300a5768e11c49d344a8165ba0735deed
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
# coding=utf-8 # *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Dict, List, Mapping, Optional, Tuple, Union from .. import ...
36.245161
185
0.659665
4,009
0.713599
470
0.08366
3,462
0.616234
0
0
1,469
0.261481
1acc2f32cc9a7a1f5f4e8cb7660bd8849614cb8a
3,035
py
Python
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
5
2018-03-14T18:55:35.000Z
2021-10-04T00:16:38.000Z
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
null
null
null
app/models/users.py
dwcaraway/govly
c3a134c2d8ae911c0ab05d9b96014a7c18bfac45
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ vitals.models.users ~~~~~~~~~~~~~~~~~~~ :author: Dave Caraway :copyright: © 2014-2015, Fog Mine LLC :license: Proprietary, see LICENSE for more details. """ import base64 import os from flask.ext.security import RoleMixin, UserMixin from ..framework.sql import ( db...
32.634409
110
0.677759
2,343
0.771739
0
0
0
0
0
0
517
0.17029
1acc37fde77112dc03495f8a8ad528c34e34685e
7,273
py
Python
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
5
2018-01-16T06:46:38.000Z
2019-06-19T10:17:12.000Z
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
null
null
null
data.py
jgoppert/iekf_analysis
d41ad34b37ef2636e20680accf399ea4a9332811
[ "BSD-3-Clause" ]
null
null
null
from transforms3d.taitbryan import quat2euler import matplotlib.pyplot as plt import numpy as np from util import X, Xe class Data(object): """ Data object for sim data """ def __init__(self): self.x = [] self.J = [] self.K_mag = [] self.K_gps = [] self.K_accel...
31.621739
78
0.514643
7,150
0.983088
0
0
0
0
0
0
793
0.109033
1acc4bb74661ef6bbaf044a243078ab4c44c027c
580
py
Python
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
4
2021-03-18T12:29:10.000Z
2022-01-26T10:03:12.000Z
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
7
2021-02-06T09:13:57.000Z
2021-03-19T21:09:59.000Z
utils/decorators.py
amigne/ZosTeroPs
d76023faa0cba8ff3f01018ca252969df86dcf60
[ "MIT" ]
null
null
null
from django.conf import settings from django.http import HttpResponseRedirect def ssl_required(view_func): def _wrapped_view_func(request, *args, **kwargs): if (hasattr(settings, 'GUI_SSL_REDIRECT') and settings.GUI_SSL_REDIRECT and request and not request.is_secure()): request...
41.428571
79
0.701724
0
0
0
0
0
0
0
0
37
0.063793
1acca912a31ec6a2ebcc918e528a3318f2a3f937
1,874
py
Python
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
4
2021-01-27T15:36:21.000Z
2021-06-04T17:43:27.000Z
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
1
2021-02-04T20:24:38.000Z
2021-02-05T13:47:41.000Z
client_code/landing/settings/ColorChanger.py
Alcampopiano/OpenQuestion
8576ec3372eca3b3b51661ad7f5c615fe8193946
[ "BSD-3-Clause" ]
2
2021-01-27T15:36:30.000Z
2021-02-02T06:11:35.000Z
import anvil.facebook.auth import anvil.google.auth, anvil.google.drive from anvil.google.drive import app_files import anvil.js def set_theme(theme_map): css = themed_css for name, value in theme_map.items(): css = css.replace(f"%color:{name}%", value) anvil.js.call_js("setThemeCss", css) # This is t...
21.54023
120
0.699039
0
0
0
0
0
0
0
0
1,577
0.841515
1acfcd0292220871f431e4e473efb911e7c66800
1,098
py
Python
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
43
2015-03-31T01:37:10.000Z
2021-11-14T16:26:48.000Z
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-06-10T16:39:41.000Z
2020-01-27T16:35:01.000Z
conary_test/repositorytest/filecontentstest.py
sassoftware/conary
d418968acd5e11ee17ed6d91ca395ea10a040222
[ "Apache-2.0" ]
9
2015-04-07T08:12:37.000Z
2020-01-26T09:54:18.000Z
# # Copyright (c) SAS Institute 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 w...
28.153846
74
0.640255
426
0.387978
0
0
0
0
0
0
597
0.543716
1ad07d6aab73d167ba977ffa3a12a00f276ccca7
2,582
py
Python
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
6
2020-06-05T18:42:32.000Z
2022-01-13T00:48:57.000Z
global_finprint/annotation/urls/assignment.py
GlobalFinPrint/global_finprint
8a91ceaaed42aaa716d8c9f27518ba673ebf351c
[ "Apache-2.0" ]
null
null
null
from django.conf.urls import url, include from django.views.decorators.csrf import csrf_exempt from global_finprint.annotation.views.assignment import VideoAutoAssignView, ManageAssignmentView, ObservationListView, \ AssignmentListView, AssignmentListTbodyView, AssignmentModalBodyView, UnassignModalBodyView, Assig...
52.693878
124
0.755616
0
0
0
0
0
0
0
0
878
0.340046
1ad0ae27acc8dbfede485ff88f989be820ffa27e
3,512
py
Python
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
1
2019-02-25T01:50:03.000Z
2019-02-25T01:50:03.000Z
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
null
null
null
pytext/data/test/data_test.py
NunoEdgarGFlowHub/pytext
2358b2d7c8c4e6800c73f4bd1c9731723e503ed6
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python3 # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved import unittest from pytext.common.constants import Stage from pytext.data import Data, RawBatcher, types from pytext.data.sources.data_source import SafeFileWrapper from pytext.data.sources.tsv import TSVDataSource from pyt...
39.909091
85
0.660308
3,031
0.863041
0
0
0
0
0
0
496
0.14123
1ad0bb118d7657c0226c9703cf3e0988adf2f733
1,765
py
Python
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
main.py
GrDaniel/duplicates_finder
edb5bb601494f50425850ce5bcfb4e37955541ba
[ "MIT" ]
null
null
null
import os from itertools import chain from hashlib import sha256 class DuplicatesRemover(object): def __init__(self, search_path: str, file_type: str): self.path = search_path self.f_type = file_type def find_duplicates(self): file_paths = self.collect_file_paths() files_size...
33.942308
104
0.648159
1,696
0.960907
0
0
426
0.24136
0
0
237
0.134278
1ad18fb2a9e0d96a010fcbc48c609ae14cc20cfb
415
py
Python
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
Python-Advanced/functions_advanced/absolute_values.py
Xamaneone/SoftUni-Intro
985fe3249cd2adf021c2003372e840219811d989
[ "MIT" ]
null
null
null
def convert_iterable_to_absolute(nums_list): result = list(map(lambda x: abs(x), nums_list)) return result nums = map(lambda el: float(el), input().split()) print(convert_iterable_to_absolute(nums)) # def convert_iterable_to_absolute(nums_list): # result = [abs(el) for el in nums_list] # return resu...
27.666667
51
0.718072
0
0
0
0
0
0
0
0
199
0.479518
1ad19cefd911536d3cd0c13616bd9ef7f9d045b4
2,686
py
Python
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
Question.py
asdfadrian/OpenTester
b893025fcdc3e5c9b8581a64b68fbafe32e30988
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon May 14 12:20:07 2018 @author: 1172334950C """ class Question(object): """ This is used as the structure to format questions and retrieve those properties for our tests number : string Display element number within the Test Container questi...
27.131313
120
0.612063
2,586
0.96277
0
0
0
0
0
0
965
0.35927
46b7f5466652a294010568c915735275e982b3b9
107
py
Python
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
424
2019-09-17T15:50:41.000Z
2022-03-26T07:10:21.000Z
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
7
2019-09-18T08:54:58.000Z
2020-08-28T15:12:45.000Z
envs/hns/mujoco-worldgen/mujoco_worldgen/util/envs/__init__.py
jiayu-ch15/curriculum
7305833b8f875c91f7598029f63fd3e543a0fd82
[ "MIT" ]
81
2019-09-18T00:14:25.000Z
2022-03-30T18:25:08.000Z
from .env_viewer import EnvViewer from .examine_env import examine_env from .flexible_load import load_env
26.75
36
0.859813
0
0
0
0
0
0
0
0
0
0
46b8e3c90bcd926a8f712d20d77daa3692772f66
6,095
py
Python
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
test/unit/test_network_util.py
shannonxtreme/DeepReg
373f6c28fed1d7376d5c39340b08a3814804efb2
[ "Apache-2.0" ]
null
null
null
# coding=utf-8 """ Tests for deepreg/model/network/util """ import pytest import tensorflow as tf import deepreg.model.network.util as util from deepreg.model.backbone import global_net, local_net, u_net def test_wrong_inputs(): """ Function to test wrong input types passed to build backbone func """ ...
29.587379
88
0.597539
0
0
0
0
0
0
0
0
1,977
0.323727
46ba3880bb819e029eff762b12b3a9362a955d15
4,841
py
Python
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
24
2018-01-23T05:28:40.000Z
2021-04-13T20:52:59.000Z
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
17
2017-12-21T18:32:31.000Z
2018-12-18T17:09:50.000Z
code/tmp_rtrip/test/test_importlib/test_locks.py
emilyemorehouse/ast-and-me
3f58117512e125e1ecbe3c72f2f0d26adb80b7b3
[ "MIT" ]
null
null
null
from . import util as test_util init = test_util.import_importlib('importlib') import sys import unittest import weakref from test import support try: import threading except ImportError: threading = None else: from test import lock_tests if threading is not None: class ModuleLockAsRLockTests: ...
30.639241
79
0.622185
3,467
0.716174
0
0
325
0.067135
0
0
128
0.026441
46bc10fa6ebc50719d08ff180aa6f6a2e590a585
9,053
py
Python
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
10
2018-03-14T08:44:12.000Z
2018-11-13T13:45:53.000Z
archived_code/sed_test_AI_64_8.py
jacob975/deep_learning
52a5073589cf78aeadfde8ea51f687bc497a059b
[ "MIT" ]
null
null
null
#!/usr/bin/python3 ''' Abstract: This is a code for test AI with given sed data. Usage: sed_test_AI_64_8.py [source] [id] [directory] [AI] Editor and Practicer: Jacob975 ################################## # Python3 # # This code is made in python3 # ################################...
37.102459
150
0.642218
0
0
0
0
0
0
0
0
3,898
0.430575
46bc78afaeb62cb0bbad5b4d159a408a129ad787
677
py
Python
compare_lists/compare.py
Esukhia/text_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
1
2017-01-26T22:37:57.000Z
2017-01-26T22:37:57.000Z
compare_lists/compare.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
compare_lists/compare.py
Esukhia/tibtext_utils
562065d4dedba127f8aaeee03ca3d9f071805f62
[ "MIT" ]
null
null
null
from PyTib.common import open_file, write_file import os monlam = open_file('input/monlam1_total_corrected.txt').split('\n') monlam_entries = [a.split(' | ')[0] for a in monlam] monlam_entries = [a.rstrip('་') for a in monlam_entries] monlam_dict = {a: True for a in monlam_entries} non_monlam = {} in_path = 'input/us...
35.631579
81
0.675037
0
0
0
0
0
0
0
0
117
0.171806
46bc7d4de06ca22e044fe05c60711faebec83394
801
py
Python
lustre/minification.py
half-cambodian-hacker-man/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
3
2020-09-06T02:21:09.000Z
2020-09-30T00:05:54.000Z
lustre/minification.py
videogame-hacker/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
null
null
null
lustre/minification.py
videogame-hacker/lustre
93e2196a962cafcfd7fa0be93a6b0d563c46ba75
[ "MIT" ]
null
null
null
import typing from starlette.responses import Response, HTMLResponse from starlette.templating import _TemplateResponse try: import htmlmin except ImportError: htmlmin = None def setup_html_minification( response_classes=[HTMLResponse, _TemplateResponse], **minification_config ): assert htmlmin is n...
28.607143
84
0.750312
0
0
0
0
0
0
0
0
52
0.064919
46bdf7ca5389b5cf7a84c57dce254fb87783c3f5
165
py
Python
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
164
2015-01-17T16:08:33.000Z
2021-08-03T02:34:07.000Z
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
442
2015-01-01T11:19:01.000Z
2017-09-06T23:26:17.000Z
packs/openhab/actions/set_state.py
jonico/st2contrib
149c9c553f24360d91a14fef7ea6146707de75fd
[ "Apache-2.0" ]
202
2015-01-13T00:37:40.000Z
2020-11-07T11:30:10.000Z
from lib.action import BaseAction class SetStateAction(BaseAction): def run(self, item, state): self._put(item, state) return {'status': 'ok'}
20.625
33
0.654545
128
0.775758
0
0
0
0
0
0
12
0.072727
46bf10d65b2898b4623a80c0d43fb1265448ebae
10,711
py
Python
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
3
2018-04-02T19:59:06.000Z
2019-02-15T16:42:13.000Z
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
15
2018-09-12T19:18:08.000Z
2020-08-06T21:59:56.000Z
src/iceberg_penguins/search/data_processing/m_im_util.py
iceberg-project/Penguins
80297bc812e2a3811cbcfd1025e81072631b1c5c
[ "MIT" ]
2
2019-03-06T06:18:14.000Z
2019-05-06T16:18:06.000Z
""" Utility scripts for images Author: Hieu Le License: MIT Copyright: 2018-2019 """ import os import numpy as np from PIL import Image from scipy import misc #AT this point, I don't even know what is this file about. junk codes assembly. def list_to_file(f,list): file = open(f,"w") for i in list: file....
37.98227
128
0.559892
0
0
0
0
0
0
0
0
962
0.089814
46bf2f91cab789c97cc83c0134f194ca9fcd7f20
6,024
py
Python
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
templates/openwisp2/settings.py
wanman/ansible-openwisp2
4688cf0f17dae37f716fe2526db43c3f486d0ece
[ "BSD-3-Clause" ]
null
null
null
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # SECURITY WARNING: keep the secret key used in production secret! SECRET_KEY = '{{ openwisp2_secret_key }}' # SECURITY WARNING: don't run with debug turned on in p...
29.101449
129
0.623008
0
0
0
0
0
0
0
0
3,404
0.565073
46c38085c612adaa0ca6f062ec208baa84525144
1,056
py
Python
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
2
2017-05-05T14:02:37.000Z
2017-07-21T13:19:31.000Z
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
7
2018-01-31T13:28:12.000Z
2020-02-19T01:57:55.000Z
Yahoo_OAuth/migrations/0001_initial.py
namur007/JJE_App
7765953455133f33a5dcc4a2f3a99ffb38eae71f
[ "MIT" ]
null
null
null
# Generated by Django 2.2.6 on 2019-10-24 22:23 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] ope...
34.064516
156
0.610795
897
0.849432
0
0
0
0
0
0
152
0.143939
46c47142371b3e46378834e1371af47748000547
36,685
py
Python
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
source/pysnmp_mibs/TOKEN-RING-RMON-MIB.py
vkushnir/docker_syslog-ng
7f5632231c1884a90a272a4c002448ca9133aa02
[ "MIT" ]
null
null
null
# # PySNMP MIB module TOKEN-RING-RMON-MIB (http://pysnmp.sf.net) # ASN.1 source http://mibs.snmplabs.com:80/asn1/TOKEN-RING-RMON-MIB # Produced by pysmi-0.0.7 at Fri Feb 17 12:48:35 2017 # On host 5641388e757d platform Linux version 4.4.0-62-generic by user root # Using Python version 2.7.13 (default, Dec 22 2016, 09:2...
172.230047
11,057
0.778929
509
0.013875
0
0
0
0
0
0
3,573
0.097397
46c557a179c5fb92ac9408ec04bd8055c84518c8
554
py
Python
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
null
null
null
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
8
2021-06-02T00:51:39.000Z
2022-03-12T00:10:27.000Z
reviews/models.py
connor-blackburn/HighCal
6669d5be6298eefd3f5189df7d30a5c06ce1e04d
[ "MIT" ]
null
null
null
from django.db import models from django.utils import timezone """ Model for client reviews """ class Review(models.Model): job_title = models.CharField(max_length=200) review_title = models.CharField(max_length=200) description = models.TextField() created_date = models.DateTimeField(auto_now_add=True...
32.588235
86
0.749097
457
0.82491
0
0
0
0
0
0
32
0.057762
46c56182630c419e1daaa07b3dec063b0e47636b
517
py
Python
src/driver/slack_driver.py
tubone24/tech_blog_spider
f91feea445d87d31e81bd920c7d386e42c495aee
[ "MIT" ]
null
null
null
src/driver/slack_driver.py
tubone24/tech_blog_spider
f91feea445d87d31e81bd920c7d386e42c495aee
[ "MIT" ]
7
2021-06-25T07:50:21.000Z
2021-11-06T04:44:55.000Z
src/driver/slack_driver.py
rcy1314/spider-feed
fbab76c8e221053f611cadd4d27642ef8725e76d
[ "MIT" ]
1
2022-02-10T21:05:13.000Z
2022-02-10T21:05:13.000Z
import json from output.slack_output_data import SlackOutputData from interface.driver.slack_driver import SlackDriver from dataclasses import asdict import requests from util.logger import AppLog _logger = AppLog(__name__) class SlackDriverImpl(SlackDriver): def __init__(self, url: str): self.url = url ...
27.210526
57
0.748549
289
0.558994
0
0
0
0
0
0
24
0.046422
46c5bcf324a8b41403c291c8dfde501e02e20e93
188
py
Python
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
src/bitinfo_holding_alert/config.py
Jimsparkle/bitinfo_holding_alert
bc79112615686fadf98c9fe634fb8e7eefbe9918
[ "MIT" ]
null
null
null
"""Default configuration when no ENV variables are set.""" CLOUDFLARE_BYPASS_URL = "http://localhost:8191/v1" TRACK_COIN = "dogecoin" TRACK_ADDRESS = "DRSqEwcnJX3GZWH9Twtwk8D5ewqdJzi13k"
31.333333
58
0.792553
0
0
0
0
0
0
0
0
130
0.691489
46c8a4498347859a35abd81cfed9f5d58806930a
1,841
py
Python
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
src/zojax/widget/captcha/widget.py
Zojax/zojax.widget.captcha
9aa315bc0ec85ecd5bf0743296e4733e0b2b8de5
[ "ZPL-2.1" ]
null
null
null
############################################################################## # # Copyright (c) 2009 Zope Foundation and Contributors. # All Rights Reserved. # # This software is subject to the provisions of the Zope Public License, # Version 2.1 (ZPL). A copy of the ZPL should accompany this distribution. # THIS SOF...
32.298246
78
0.67572
729
0.39598
0
0
140
0.076046
0
0
646
0.350896
46c8ae10d53e8ce4d08d1a08d67812ca60bf79fe
5,407
py
Python
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
null
null
null
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
null
null
null
VirusTotalAVBot/modules/virustotal.py
kenanismayilov335/VirusTotal-File-Scan-Bot
369e8bba10ce40cf9e9bdaeba018496e8509cd8d
[ "MIT" ]
6
2020-11-01T17:46:27.000Z
2022-03-01T14:34:17.000Z
import hashlib import logging import os import requests import time from VirusTotalAVBot import VT_API logger = logging.getLogger("VirusTotal Methods") api_base_url = "https://www.virustotal.com/api/v3" header = {'x-apikey': VT_API} def vthash(filehash: str): """Returns the analysis data class for a file in Vir...
32.572289
118
0.630294
0
0
0
0
0
0
0
0
2,191
0.404318
46c92a616b9d9851d72ec6a3219d86df867f63c1
621
py
Python
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
apps/keyboard/migrations/0004_auto_20210328_2122.py
ZhuoZhuoCrayon/AcousticKeyBoard-Web
0a0ead78aec7ed03898fd51e076aa57df966508c
[ "MIT" ]
null
null
null
# Generated by Django 3.1.5 on 2021-03-28 13:22 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("keyboard", "0003_algorithmmodelinst"), ] operations = [ migrations.AddField( model_name="algorithmmodelinst", name="...
25.875
78
0.613527
560
0.85758
0
0
0
0
0
0
195
0.298622
46c9302c3f4b4a29c5ed9d253acad5c1dab9d819
323
py
Python
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
13
2019-08-07T21:24:34.000Z
2020-12-12T12:23:50.000Z
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
instagram_api/response/profile_notice.py
Yuego/instagram_api
b53f72db36c505a2eb24ebac1ba8267a0cc295bb
[ "MIT" ]
null
null
null
from .mapper import ApiResponse, ApiResponseInterface from .mapper.types import Timestamp, AnyType __all__ = ['ProfileNoticeResponse'] class ProfileNoticeResponseInterface(ApiResponseInterface): has_change_password_megaphone: bool class ProfileNoticeResponse(ApiResponse, ProfileNoticeResponseInterface): pa...
24.846154
73
0.839009
181
0.560372
0
0
0
0
0
0
23
0.071207