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
616100bd2e732fe916b837123e49949956a2ff99
3,241
py
Python
elasticdl/python/tests/elasticdl_job_service_test.py
DLPerf/elasticdl
b9c03ea0e81861ae8d349c3d8ffd1f7b588b910b
[ "MIT" ]
null
null
null
elasticdl/python/tests/elasticdl_job_service_test.py
DLPerf/elasticdl
b9c03ea0e81861ae8d349c3d8ffd1f7b588b910b
[ "MIT" ]
null
null
null
elasticdl/python/tests/elasticdl_job_service_test.py
DLPerf/elasticdl
b9c03ea0e81861ae8d349c3d8ffd1f7b588b910b
[ "MIT" ]
null
null
null
# Copyright 2020 The ElasticDL 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 applicable law...
35.615385
79
0.648874
2,180
0.672632
0
0
0
0
0
0
920
0.283863
61613f61f3fc11a9f27623175f5c0fb4554e699d
24,590
py
Python
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
train/train.py
miramirakim227/SwapNeRF_GT
84444660a7fc8b5f796503d90f3a055889c44389
[ "BSD-2-Clause" ]
null
null
null
# Training to a set of multiple objects (e.g. ShapeNet or DTU) # tensorboard logs available in logs/<expname> import sys import os sys.path.insert( 0, os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "src")) ) import warnings import trainlib from model import make_model, loss from render import NeRF...
42.98951
176
0.551037
23,126
0.862717
0
0
0
0
0
0
11,534
0.430277
61633ee4b11cae72781872ad72fdde6424de3acc
240,628
py
Python
Calculation.py
atranel/resqdb
76b8a5089732ae63c867b734c5053908687122bc
[ "MIT" ]
null
null
null
Calculation.py
atranel/resqdb
76b8a5089732ae63c867b734c5053908687122bc
[ "MIT" ]
null
null
null
Calculation.py
atranel/resqdb
76b8a5089732ae63c867b734c5053908687122bc
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jul 09 13:28:05 2017 @author: Marie Jankujova """ import sys import os from datetime import datetime, time, date import pandas as pd import numpy as np from numpy import inf import pytz import logging import scipy.stats as st from scipy.stats import sem, t from scipy import ...
96.405449
1,175
0.683898
240,265
0.998491
0
0
71
0.000295
0
0
129,727
0.539118
616393b01319880a58b68d651fe6bd662c0ef5d6
13,451
py
Python
api_level_2/qt/basic.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
12
2018-06-28T13:40:53.000Z
2022-01-07T12:46:15.000Z
api_level_2/qt/basic.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
6
2019-04-29T16:55:38.000Z
2022-03-04T17:00:15.000Z
api_level_2/qt/basic.py
olklymov/valkka-examples
92be5f815cd3927100ccc4220c588bdd7c510797
[ "MIT" ]
5
2019-04-21T15:42:55.000Z
2021-08-16T10:53:30.000Z
""" basic.py : Some basic classes encapsulating filter chains * Copyright 2017-2020 Valkka Security Ltd. and Sampsa Riikonen * * Authors: Sampsa Riikonen <sampsa.riikonen@iki.fi> * * This file is part of the Valkka library. * * Valkka is free software: you can redistribute it and/or modify * it under the term...
34.401535
211
0.635046
10,334
0.76827
0
0
0
0
0
0
6,425
0.47766
6163cb2b3ca8b632e91d64eb5923fcae7762780f
455
py
Python
need_an_image/utils/store.py
RyouMon/i-need-an-image
a2b2b42ca0ab9cb2e9886733339fdec7641f0246
[ "MIT" ]
1
2022-02-05T04:25:39.000Z
2022-02-05T04:25:39.000Z
need_an_image/utils/store.py
RyouMon/i-need-an-image
a2b2b42ca0ab9cb2e9886733339fdec7641f0246
[ "MIT" ]
5
2021-08-11T15:59:04.000Z
2021-09-18T15:21:37.000Z
need_an_image/utils/store.py
RyouMon/i-need-an-image
a2b2b42ca0ab9cb2e9886733339fdec7641f0246
[ "MIT" ]
null
null
null
import os.path from uuid import uuid4 def save_image(image, save_to='.'): """ Save image to local dick """ suffix = '.jpg' if image.mode == 'P': image = image.convert('RGBA') if image.mode == 'RGBA': suffix = '.png' filename = uuid4().hex + suffix if not os.path.isd...
18.2
46
0.589011
0
0
0
0
0
0
0
0
70
0.153846
61654d0d5ba34a716dc57dc18432e7eb9d5225f1
670
py
Python
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
leetcode/191.py
pingrunhuang/CodeChallenge
a8e5274e04c47d851836197907266418af4f1a22
[ "MIT" ]
null
null
null
''' 191. Number of 1 Bits Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 00000000000000000000000000001011, so the function should return 3. ''' class Solution(object): de...
23.928571
129
0.591045
277
0.410979
0
0
0
0
0
0
358
0.531157
6165681678fb46f70ca964ea77be210bc24f6207
3,817
py
Python
examples/color4.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
125
2016-11-24T09:04:28.000Z
2022-01-22T14:06:56.000Z
examples/color4.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
52
2017-11-08T23:23:02.000Z
2022-03-20T03:17:39.000Z
examples/color4.py
yang69can/pyngl
78a7040ce9de4b7a442b0c3b5faecccab2f01426
[ "Apache-2.0" ]
25
2017-08-27T10:50:43.000Z
2022-01-29T14:56:05.000Z
# # File: # color4.py # # Synopsis: # Draws sixteen sample color boxs with RGB labels. # # Category: # Colors # # Author: # Fred Clare # # Date of initial publication: # January, 2006 # # Description: # This example draws sixteen color boxes using the RGB # values for named colors. The boxes...
28.066176
116
0.589992
0
0
0
0
0
0
0
0
1,744
0.456903
61672e950ab29487e7137f084aa554a9e2b34c33
90
py
Python
t4_hotel/apps.py
dnswd/SIRUCO
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
[ "Unlicense" ]
null
null
null
t4_hotel/apps.py
dnswd/SIRUCO
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
[ "Unlicense" ]
null
null
null
t4_hotel/apps.py
dnswd/SIRUCO
eb1dae3dbbae384ef53d7bd262c5977a13fad2ef
[ "Unlicense" ]
null
null
null
from django.apps import AppConfig class T4HotelConfig(AppConfig): name = 't4_hotel'
15
33
0.755556
53
0.588889
0
0
0
0
0
0
10
0.111111
616842334b3b74678e4d196cefe1da10ade1ad1a
4,495
py
Python
gameAI.py
dshao2007/TermProject
ff277a107e7427e76d95311c511890d9202d676f
[ "MIT" ]
null
null
null
gameAI.py
dshao2007/TermProject
ff277a107e7427e76d95311c511890d9202d676f
[ "MIT" ]
null
null
null
gameAI.py
dshao2007/TermProject
ff277a107e7427e76d95311c511890d9202d676f
[ "MIT" ]
null
null
null
import random from evaluator import ChessEval class ChessAI(object): INF = 8000 def __init__(self,game,color): self.game = game self.evaluator = ChessEval(game) self.color = color self.drunkMode = False self.points = {'Pawn': 10, 'Knight': 30, 'Bishop': 30, 'Rook': 5...
33.051471
101
0.507008
4,444
0.988654
0
0
0
0
0
0
536
0.119244
616c7ed2448ca92350545be4a2621305508ad028
604
py
Python
scripts/Render_Animation.py
eecheve/Gaussian-2-Blender
14811ad6092ec7be09b043752a2db3514599eede
[ "Apache-2.0" ]
1
2021-09-17T21:33:45.000Z
2021-09-17T21:33:45.000Z
scripts/Render_Animation.py
eecheve/Gaussian-2-Blender
14811ad6092ec7be09b043752a2db3514599eede
[ "Apache-2.0" ]
null
null
null
scripts/Render_Animation.py
eecheve/Gaussian-2-Blender
14811ad6092ec7be09b043752a2db3514599eede
[ "Apache-2.0" ]
1
2021-09-19T21:38:24.000Z
2021-09-19T21:38:24.000Z
import bpy def Render_Animation(): bpy.ops.object.camera_add(enter_editmode=False, align='VIEW', location=(0, 0, 0), rotation=(1.60443, 0.014596, 2.55805)) bpy.ops.object.light_add(type='SUN', location=(0, 0, 5)) #setting camera and lights for rendering cam = bpy.data.objects["Camera"] scene = bpy.cont...
40.266667
124
0.708609
0
0
0
0
0
0
0
0
71
0.11755
616dffb214ea24ee589984d6eb4777f8c7994c0b
6,843
py
Python
src/dictstore/interface.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
1
2021-12-21T14:23:50.000Z
2021-12-21T14:23:50.000Z
src/dictstore/interface.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
null
null
null
src/dictstore/interface.py
sampathbalivada/dictstore
d58c8ea22d52d54d93e189cbf290ffbc7e04c6f6
[ "Apache-2.0" ]
null
null
null
# Copyright 2021 Sai Sampath Kumar Balivada # 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 ...
32.585714
78
0.640362
5,889
0.860587
0
0
0
0
0
0
3,179
0.464562
616e5cf634f2586b19810e30e33e8aba47812b49
494
py
Python
slender/tests/list/test_include.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
1
2020-01-10T21:51:46.000Z
2020-01-10T21:51:46.000Z
slender/tests/list/test_include.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
slender/tests/list/test_include.py
torokmark/slender
3bf815e22f7802ba48706f31ba608cf609e23e68
[ "Apache-2.0" ]
null
null
null
import re from unittest import TestCase from expects import expect, equal, raise_error, be_true, be_false from slender import List class TestInclude(TestCase): def test_include_if_value_in_array(self): e = List(['apple', 'bear', 'dog', 'plum', 'grape', 'cat', 'anchor']) expect(e.include('bear'...
27.444444
76
0.653846
348
0.704453
0
0
0
0
0
0
81
0.163968
616ebe1d1635b2f07a1a9a30098f7891fad01adc
7,261
py
Python
tests/Util/test_config.py
JI511/Personal_Fitness
25d54908398caf9291e70069dca97a567b1bd94b
[ "MIT" ]
null
null
null
tests/Util/test_config.py
JI511/Personal_Fitness
25d54908398caf9291e70069dca97a567b1bd94b
[ "MIT" ]
75
2019-04-01T01:57:34.000Z
2019-09-26T00:14:28.000Z
tests/Util/test_config.py
JI511/Personal_Fitness
25d54908398caf9291e70069dca97a567b1bd94b
[ "MIT" ]
1
2019-08-11T07:25:15.000Z
2019-08-11T07:25:15.000Z
# ---------------------------------------------------------------------------------------------------------------------- # Body Weight test cases # ---------------------------------------------------------------------------------------------------------------------- # imports import unittest import tempfile import ...
43.479042
120
0.440986
6,582
0.906487
0
0
0
0
0
0
2,927
0.403113
61710e8907c2bd15913967ac4ab6eb06210e8681
8,164
py
Python
userbot/plugins/fontstyles.py
anandhu-dev/catuserbot
0ae10db978c1a9bf3f4f0da991a86d85fc29c0f1
[ "MIT" ]
2
2020-05-22T16:24:42.000Z
2020-05-22T16:31:37.000Z
userbot/plugins/fontstyles.py
himawari27/catuserbot
1a395bf197a68c795eb0d5114718fb28c40b0315
[ "MIT" ]
1
2021-02-08T20:47:53.000Z
2021-02-08T20:47:53.000Z
userbot/plugins/fontstyles.py
himawari27/catuserbot
1a395bf197a68c795eb0d5114718fb28c40b0315
[ "MIT" ]
3
2021-03-01T07:44:15.000Z
2021-06-06T13:28:11.000Z
import re import time import requests from telethon import events from userbot import CMD_HELP from userbot.utils import register import asyncio import random EMOJIS = [ "😂", "😂", "👌", "💞", "👍", "👌", "💯", "🎶", "👀", "😂", "👓", "👏", "👐", "🍕", "💥...
24.297619
87
0.3573
0
0
0
0
5,019
0.58688
4,752
0.555659
2,040
0.238541
617125f168844e031dc3dc197fac38fb76b23ec5
16,175
py
Python
test/api/drawing/test_drawing_objects.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
test/api/drawing/test_drawing_objects.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
test/api/drawing/test_drawing_objects.py
rizwanniazigroupdocs/aspose-words-cloud-python
b943384a1e3c0710cc84df74119e6edf7356037e
[ "MIT" ]
null
null
null
# ----------------------------------------------------------------------------------- # <copyright company="Aspose" file="test_drawing_objects.py"> # Copyright (c) 2020 Aspose.Words for Cloud # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this softwar...
53.559603
271
0.750108
14,612
0.903369
0
0
0
0
0
0
5,304
0.327913
617166834f93fc78ae610274ccab793d6d6b1c12
4,200
py
Python
freqent/tests/azimuthal_average_tests/make_sphericalWaveTest.py
lab-of-living-matter/freqent
210d8f25a59894d903c42d52e5475900303f9631
[ "Apache-2.0" ]
5
2021-01-16T01:39:39.000Z
2022-01-19T00:23:38.000Z
freqent/tests/azimuthal_average_tests/make_sphericalWaveTest.py
lab-of-living-matter/freqent
210d8f25a59894d903c42d52e5475900303f9631
[ "Apache-2.0" ]
null
null
null
freqent/tests/azimuthal_average_tests/make_sphericalWaveTest.py
lab-of-living-matter/freqent
210d8f25a59894d903c42d52e5475900303f9631
[ "Apache-2.0" ]
1
2021-08-20T15:03:30.000Z
2021-08-20T15:03:30.000Z
import numpy as np import matplotlib.pyplot as plt import freqent.freqentn as fen import dynamicstructurefactor.sqw as sqw from itertools import product import os import matplotlib as mpl mpl.rcParams['pdf.fonttype'] = 42 savepath = '/media/daniel/storage11/Dropbox/LLM_Danny/frequencySpaceDissipation/tests/freqentn_te...
30.882353
102
0.602619
0
0
0
0
0
0
0
0
1,444
0.34381
6172cb90d3acbe6eb936a5e0311837e45f59b5d1
1,217
py
Python
setup.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
setup.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
setup.py
kimvanwyk/red-mail
78dc763e5b5f09eed820a11233299dd2c7b0190b
[ "MIT" ]
null
null
null
from setuptools import setup, find_packages import versioneer with open("README.md", "r") as f: long_description = f.read() setup( name="redmail", version=versioneer.get_version(), cmdclass=versioneer.get_cmdclass(), author="Mikael Koli", author_email="koli.mikael@gmail.com", url="https://...
30.425
64
0.637634
0
0
0
0
0
0
0
0
601
0.493837
61741f74b759c1266c2b4eff5463940e41acbff2
1,691
py
Python
wagtailcomments/basic/migrations/0001_initial.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
7
2016-09-28T10:51:44.000Z
2018-09-29T08:27:23.000Z
wagtailcomments/basic/migrations/0001_initial.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
null
null
null
wagtailcomments/basic/migrations/0001_initial.py
takeflight/wagtailcomments
941ae2f16fccb867a33d2ed4c21b8e5e04af712d
[ "BSD-3-Clause" ]
2
2017-05-21T08:41:19.000Z
2018-08-06T13:50:59.000Z
# -*- coding: utf-8 -*- # Generated by Django 1.9.7 on 2016-07-29 06:13 from __future__ import unicode_literals from django.conf import settings from django.db import migrations, models import django.db.models.deletion import django.utils.timezone import enumchoicefield.fields import wagtailcomments.models class Mig...
40.261905
141
0.646954
1,379
0.815494
0
0
0
0
0
0
281
0.166174
61752f9c0020e5238d87c07d19b74f84c1ea9f90
4,286
py
Python
tests_requre/service/test_views.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
null
null
null
tests_requre/service/test_views.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
2
2020-09-02T08:14:27.000Z
2020-09-03T03:16:27.000Z
tests_requre/service/test_views.py
IceWreck/packit-service
ab8a3ae7b7f078f4a5bf3465516c1abc894fe3dc
[ "MIT" ]
null
null
null
from flask import url_for from flexmock import flexmock from packit_service import models from packit_service.models import CoprBuildModel from packit_service.service.views import _get_build_info from tests_requre.conftest import SampleValues def test_get_build_logs_for_build_pr(clean_before_and_after, a_copr_build_...
39.321101
88
0.765749
0
0
0
0
0
0
0
0
944
0.220252
617841c4391105795ebe61db8ed27da43f2a59f5
1,644
py
Python
watchapp/urls.py
kepha-okari/the-watch
80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f
[ "MIT" ]
null
null
null
watchapp/urls.py
kepha-okari/the-watch
80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f
[ "MIT" ]
7
2020-02-11T23:48:54.000Z
2022-03-11T23:16:45.000Z
watchapp/urls.py
kepha-okari/the-watch
80720ad4ffc394e5acbca0fbf1fc9f1dbff0f56f
[ "MIT" ]
null
null
null
from django.conf.urls import url,include from django.contrib.auth.decorators import login_required from django.conf import settings from django.conf.urls.static import static from . import views urlpatterns = [ url(r'^$',views.index,name='hoodNews'), url(r'^new/hood/',views.create_hood, name='newHood'), ur...
51.375
76
0.666058
0
0
0
0
0
0
0
0
983
0.597932
6178677cf010170ac4ef5c808891d12fe972a547
1,088
py
Python
shopyoapi/uploads.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
shopyoapi/uploads.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
shopyoapi/uploads.py
Maurilearn/learnings
0af03e5646c9053b3cfc27465983ce466ad2f3cb
[ "MIT" ]
null
null
null
from werkzeug.security import generate_password_hash from shopyoapi.init import db from app import app from modules.auth.models import User from modules.school.models import Setting # from modules.settings.models import Settings def add_admin(name, email, password): with app.app_context(): admin = User...
26.536585
68
0.59375
0
0
0
0
0
0
0
0
457
0.420037
6179a809c6fd4ff96baedddbf9bb9dae658ef8c7
1,256
py
Python
neutron_plugin_contrail/plugins/opencontrail/neutron_middleware.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
3
2021-09-07T05:02:24.000Z
2022-02-11T04:25:43.000Z
neutron_plugin_contrail/plugins/opencontrail/neutron_middleware.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
1
2016-04-26T09:05:42.000Z
2016-04-26T09:05:42.000Z
neutron_plugin_contrail/plugins/opencontrail/neutron_middleware.py
hamzazafar/contrail-neutron-plugin
fb8dbcabc8240e5c47753ae6e2af5556d0a38421
[ "Apache-2.0" ]
5
2020-07-14T07:52:05.000Z
2022-03-24T15:08:02.000Z
import logging from eventlet import corolocal from eventlet.greenthread import getcurrent """ This middleware is used to forward user token to Contrail API server. Middleware is inserted at head of Neutron pipeline via api-paste.ini file so that user token can be preserved in local storage of Neutron thread. This is ...
32.205128
78
0.731688
489
0.389331
0
0
0
0
0
0
563
0.448248
617b72d47fe1a620e75af426de3f519c6430df3c
858
py
Python
scofield/tax/models.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
4
2016-04-10T13:37:58.000Z
2018-06-11T18:49:29.000Z
scofield/tax/models.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
null
null
null
scofield/tax/models.py
howiworkdaily/scofield-project
f0daaf785c344a0da1f5b624518c9fa6c0514745
[ "BSD-3-Clause" ]
2
2015-04-08T19:52:19.000Z
2021-02-10T08:08:19.000Z
from django.db import models class TaxClass(models.Model): """ Tax rate for a product. """ title = models.CharField(max_length=100) description = models.CharField(max_length=200, help_text='Description of products to be taxed') def __unicode__(self): return self.title class Meta:...
25.235294
99
0.670163
823
0.959207
0
0
0
0
0
0
162
0.188811
617c68a4d53862bcf891011b1dad1759a3111e16
1,114
py
Python
helpers/sett/resolvers/StrategySushiDiggWbtcLpOptimizerResolver.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
99
2020-12-02T08:40:48.000Z
2022-03-15T05:21:06.000Z
helpers/sett/resolvers/StrategySushiDiggWbtcLpOptimizerResolver.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
115
2020-12-15T07:15:39.000Z
2022-03-28T22:21:03.000Z
helpers/sett/resolvers/StrategySushiDiggWbtcLpOptimizerResolver.py
shuklaayush/badger-system
1274eadbd0b0f3a02efbf40702719ce1d0a96c44
[ "MIT" ]
56
2020-12-11T06:50:04.000Z
2022-02-21T09:17:38.000Z
from brownie import interface from rich.console import Console from helpers.utils import snapBalancesMatchForToken from .StrategyBaseSushiResolver import StrategyBaseSushiResolver console = Console() class StrategySushiDiggWbtcLpOptimizerResolver(StrategyBaseSushiResolver): def confirm_rebase(self, before, afte...
35.935484
82
0.719928
909
0.815978
0
0
0
0
0
0
172
0.154399
61800d60ef6f519972904d1a00c8aac0445bd6de
8,161
py
Python
Section 8/4/4/Ej7.4/UCBExp.py
marcosherreroa/Aplicaciones-de-los-algoritmos-bandidos
ee93f8f401440de05d56127acb5c75fcc2c92ef2
[ "MIT" ]
null
null
null
Section 8/4/4/Ej7.4/UCBExp.py
marcosherreroa/Aplicaciones-de-los-algoritmos-bandidos
ee93f8f401440de05d56127acb5c75fcc2c92ef2
[ "MIT" ]
null
null
null
Section 8/4/4/Ej7.4/UCBExp.py
marcosherreroa/Aplicaciones-de-los-algoritmos-bandidos
ee93f8f401440de05d56127acb5c75fcc2c92ef2
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """" Bandidos estocásticos: introducción, algoritmos y experimentos TFG Informática Sección 8.4.4 Figuras 26, 27 y 28 Autor: Marcos Herrero Agustín """ import math import random import scipy.stats as stats import matplotlib.pyplot as plt import numpy as np def computemTeor(n,Del...
31.268199
95
0.556304
0
0
0
0
0
0
0
0
952
0.116325
618075f97fd8bcbc379afe1ad839a7ec6ec22b97
801
py
Python
tools/code_coverage/package/oss/cov_json.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
206
2020-11-28T22:56:38.000Z
2022-03-27T02:33:04.000Z
tools/code_coverage/package/oss/cov_json.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
19
2020-12-09T23:13:14.000Z
2022-01-24T23:24:08.000Z
tools/code_coverage/package/oss/cov_json.py
deltabravozulu/pytorch
c6eef589971e45bbedacc7f65533d1b8f80a6895
[ "Intel" ]
28
2020-11-29T15:25:12.000Z
2022-01-20T02:16:27.000Z
from ..tool import clang_coverage from ..util.setting import CompilerType, Option, TestList, TestPlatform from ..util.utils import check_compiler_type from .init import detect_compiler_type from .run import clang_run, gcc_run def get_json_report(test_list: TestList, options: Option): cov_type = detect_compiler_ty...
33.375
71
0.694132
0
0
0
0
0
0
0
0
27
0.033708
618142523ce1ce96219a613cc5fd09c36753e7ac
843
py
Python
metaworld/envs/asset_path_utils.py
vinnibuh/metaworld
e394aea9f000fe3e3778a4fd40bfb9e806752341
[ "MIT" ]
null
null
null
metaworld/envs/asset_path_utils.py
vinnibuh/metaworld
e394aea9f000fe3e3778a4fd40bfb9e806752341
[ "MIT" ]
null
null
null
metaworld/envs/asset_path_utils.py
vinnibuh/metaworld
e394aea9f000fe3e3778a4fd40bfb9e806752341
[ "MIT" ]
1
2021-10-07T21:56:07.000Z
2021-10-07T21:56:07.000Z
import os import xml.etree.ElementTree as ET from tempfile import NamedTemporaryFile ENV_ASSET_DIR_V1 = os.path.join(os.path.dirname(__file__), 'assets_v1') ENV_ASSET_DIR_V2 = os.path.join(os.path.dirname(__file__), 'assets_v2') def full_v1_path_for(file_name): return os.path.join(ENV_ASSET_DIR_V1, file_name) ...
32.423077
71
0.720047
0
0
0
0
0
0
0
0
144
0.170819
6182beb680bd2a5d8ef6901a320c44fa56fbc31b
5,458
py
Python
landcover_change_application/lccs_l3.py
opendatacube/datacube-conference-2019
4c5a0f77c239c550ba1ae6fbc2e2098947e3db36
[ "Apache-2.0" ]
5
2019-02-18T00:44:38.000Z
2019-02-26T17:57:40.000Z
landcover_change_application/lccs_l3.py
opendatacube/datacube-conference-2019
4c5a0f77c239c550ba1ae6fbc2e2098947e3db36
[ "Apache-2.0" ]
null
null
null
landcover_change_application/lccs_l3.py
opendatacube/datacube-conference-2019
4c5a0f77c239c550ba1ae6fbc2e2098947e3db36
[ "Apache-2.0" ]
3
2019-02-11T02:44:04.000Z
2020-12-21T22:56:33.000Z
""" LCCS Level 3 Classification | Class name | Code | Numeric code | |----------------------------------|-----|-----| | Cultivated Terrestrial Vegetated | A11 | 111 | | Natural Terrestrial Vegetated | A12 | 112 | | Cultivated Aquatic Vegetated | A23 | 123 | | Natural Aquatic Vegetated | A24 | 124 | | Art...
33.484663
92
0.611213
0
0
0
0
0
0
0
0
2,594
0.475266
618446f9da1ab0931b796eb8d9862b418bee6a2b
1,115
py
Python
hackerearth/Algorithms/Buggy Bot/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
4
2020-07-24T01:59:50.000Z
2021-07-24T15:14:08.000Z
hackerearth/Algorithms/Buggy Bot/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
hackerearth/Algorithms/Buggy Bot/solution.py
ATrain951/01.python-com_Qproject
c164dd093954d006538020bdf2e59e716b24d67c
[ "MIT" ]
null
null
null
""" # Sample code to perform I/O: name = input() # Reading input from STDIN print('Hi, %s.' % name) # Writing output to STDOUT # Warning: Printing unwanted or ill-formatted data to output will cause the test cases to fail """ # Write your code here from collections import defaultdict n, m, ...
27.875
94
0.608072
0
0
0
0
0
0
0
0
277
0.24843
6184f4fe218bfd606582f03f1fc738924fc5eb85
893
py
Python
level1/migrations/0002_auto_20200219_1812.py
smateenml/arabic
948f66a4e3e39d49c9420f02ced89e0e1558086c
[ "Apache-2.0" ]
1
2022-03-27T07:17:02.000Z
2022-03-27T07:17:02.000Z
level1/migrations/0002_auto_20200219_1812.py
smateenml/arabic
948f66a4e3e39d49c9420f02ced89e0e1558086c
[ "Apache-2.0" ]
null
null
null
level1/migrations/0002_auto_20200219_1812.py
smateenml/arabic
948f66a4e3e39d49c9420f02ced89e0e1558086c
[ "Apache-2.0" ]
1
2022-03-27T07:17:03.000Z
2022-03-27T07:17:03.000Z
# Generated by Django 3.0.2 on 2020-02-19 18:12 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('level1', '0001_initial'), ] operations = [ migrations.RemoveField( model_name='conjugation', name='he_future', ), ...
23.5
47
0.536394
808
0.904815
0
0
0
0
0
0
227
0.254199
6184ff3e6d5499ae2279934df653ba237021e92e
328
py
Python
rh/apps/case_studies/cms_apps.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
null
null
null
rh/apps/case_studies/cms_apps.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
108
2018-01-30T15:26:18.000Z
2021-06-10T17:29:57.000Z
rh/apps/case_studies/cms_apps.py
rapidpro/chpro-microsite
4e1d1210b49ec60ab0711d78235bf45eeb5c0275
[ "BSD-3-Clause" ]
null
null
null
from cms.app_base import CMSApp from cms.apphook_pool import apphook_pool class CaseStudiesApphook(CMSApp): app_name = "case_studies" name = "Case Studies Application" def get_urls(self, page=None, language=None, **kwargs): return ["rh.apps.case_studies.urls"] apphook_pool.register(CaseStudiesA...
23.428571
59
0.75
207
0.631098
0
0
0
0
0
0
67
0.204268
6186d31062ff042063bc9ec5db6e940f05791cef
2,989
py
Python
manim_demo/project/matplotlib_demo.py
shujunge/manim_tutorial
8e320373f0404dcc0a200ab3750ee70784dc1345
[ "MIT" ]
null
null
null
manim_demo/project/matplotlib_demo.py
shujunge/manim_tutorial
8e320373f0404dcc0a200ab3750ee70784dc1345
[ "MIT" ]
null
null
null
manim_demo/project/matplotlib_demo.py
shujunge/manim_tutorial
8e320373f0404dcc0a200ab3750ee70784dc1345
[ "MIT" ]
null
null
null
from manimlib.imports import * from srcs.utils import run import matplotlib.pyplot as plt import numpy as np from matplotlib.backends.backend_agg import FigureCanvasAgg from sklearn import svm # sklearn = scikit-learn from sklearn.datasets import make_moons def mplfig_to_npimage(fig): """ Converts a matplotlib ...
32.846154
94
0.658749
828
0.269444
0
0
0
0
0
0
624
0.203059
6186f8d5ab1178cb5b433da5dd21ea78201073c1
3,513
py
Python
dlms_cosem/clients/experimental_meter.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
1
2021-08-20T09:19:07.000Z
2021-08-20T09:19:07.000Z
dlms_cosem/clients/experimental_meter.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
dlms_cosem/clients/experimental_meter.py
Layty/dlms-cosem
95b67054a1dfb928e960547b0246b7b6794f0594
[ "MIT" ]
null
null
null
from contextlib import contextmanager from decimal import Decimal from typing import * import attr from dlms_cosem import cosem, utils from dlms_cosem.clients.dlms_client import DlmsClient from dlms_cosem.cosem import Obis from dlms_cosem.cosem.profile_generic import Data, ProfileGeneric from dlms_cosem.protocol.xdlm...
31.648649
88
0.670937
2,896
0.824367
121
0.034443
2,977
0.847424
0
0
1,145
0.325932
61899674fe81953319c1bcfc90f72353e48fa375
8,637
py
Python
inference/encoder_train_pipeline.py
kuzhamuratov/deep-landscape
255999cb2f87bc72b68fe29483a4fb7605f0e26b
[ "MIT" ]
95
2020-07-21T15:57:12.000Z
2022-03-28T02:46:40.000Z
inference/encoder_train_pipeline.py
kuzhamuratov/deep-landscape
255999cb2f87bc72b68fe29483a4fb7605f0e26b
[ "MIT" ]
5
2020-09-02T10:00:20.000Z
2020-12-19T05:19:16.000Z
inference/encoder_train_pipeline.py
kuzhamuratov/deep-landscape
255999cb2f87bc72b68fe29483a4fb7605f0e26b
[ "MIT" ]
21
2020-09-09T14:31:48.000Z
2022-03-24T13:47:58.000Z
import copy import datetime import os import random import traceback import numpy as np import torch from torch.utils.data import DataLoader from torchvision.utils import save_image from inference.inference_utils import get_trange, get_tqdm def init_random_seed(value=0): random.seed(value) np.random.seed(va...
38.216814
120
0.587009
0
0
0
0
0
0
0
0
660
0.076415
618aadd7fe62fbfa6544e105456f6c6a8c7ddd78
1,443
py
Python
app/forms.py
paulpaulaga/ask-paul
1af662243ac5d05e3f3b237f743a11de25d712e7
[ "MIT" ]
null
null
null
app/forms.py
paulpaulaga/ask-paul
1af662243ac5d05e3f3b237f743a11de25d712e7
[ "MIT" ]
1
2021-10-05T07:42:54.000Z
2021-10-05T07:42:54.000Z
app/forms.py
paulpaulaga/ask-paul
1af662243ac5d05e3f3b237f743a11de25d712e7
[ "MIT" ]
null
null
null
from django import forms from app.models import Question, Profile, Answer from django.contrib.auth.models import User class LoginForm(forms.Form): username = forms.CharField() password = forms.CharField(widget=forms.PasswordInput) def __init__(self, *args, **kwargs): super().__init__(*args, **kwa...
27.226415
77
0.627859
1,313
0.90991
0
0
0
0
0
0
108
0.074844
618abbfd430402efb7dde78a0d8e25929179a059
3,722
py
Python
python/cc_emergency/functional/transforms/language_filter.py
DavidNemeskey/cc_emergency_corpus
6a6707ea6e939047014db7de8a4031ae7901351a
[ "MIT" ]
null
null
null
python/cc_emergency/functional/transforms/language_filter.py
DavidNemeskey/cc_emergency_corpus
6a6707ea6e939047014db7de8a4031ae7901351a
[ "MIT" ]
null
null
null
python/cc_emergency/functional/transforms/language_filter.py
DavidNemeskey/cc_emergency_corpus
6a6707ea6e939047014db7de8a4031ae7901351a
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # vim: set fileencoding=utf-8 : """Language / domain filtering transforms.""" from functools import partial import importlib import inspect import tldextract from cc_emergency.functional.core import Filter from cc_emergency.utils import first class LanguageFilter(Filter): """Filters obj...
36.135922
79
0.59108
3,446
0.925846
0
0
0
0
0
0
1,141
0.306556
618dbd305a51529f96610d98339902bb9a67056f
241
py
Python
mathgenerator/funcs/volumeSphereFunc.py
furins/mathgenerator
3ba50015ef4d9abaa404b5d3b9bb272cfdcf2deb
[ "MIT" ]
null
null
null
mathgenerator/funcs/volumeSphereFunc.py
furins/mathgenerator
3ba50015ef4d9abaa404b5d3b9bb272cfdcf2deb
[ "MIT" ]
null
null
null
mathgenerator/funcs/volumeSphereFunc.py
furins/mathgenerator
3ba50015ef4d9abaa404b5d3b9bb272cfdcf2deb
[ "MIT" ]
null
null
null
from .__init__ import * def volumeSphereFunc(maxRadius = 100): r=random.randint(1,maxRadius) problem=f"Volume of sphere with radius {r} m = " ans=(4*math.pi/3)*r*r*r solution = f"{ans} m^3" return problem,solution
21.909091
52
0.647303
0
0
0
0
0
0
0
0
52
0.215768
618dc6198da7239c2edc0143aac74d64a250d04c
841
py
Python
create_widget.py
Adam01/Cylinder
84ca02e2860df579a4e0514c4060a0c497e167a5
[ "MIT" ]
4
2015-02-19T17:46:27.000Z
2018-10-27T08:00:58.000Z
create_widget.py
Adam01/Cylinder
84ca02e2860df579a4e0514c4060a0c497e167a5
[ "MIT" ]
3
2015-04-09T18:14:35.000Z
2015-05-07T02:36:48.000Z
create_widget.py
Adam01/Cylinder
84ca02e2860df579a4e0514c4060a0c497e167a5
[ "MIT" ]
null
null
null
import os import sys import shutil templateDir = "./Cylinder/WidgetTemplate" widgetOutDir = "./Cylinder/rapyd/Widgets/" if len(sys.argv) > 1: name = sys.argv[1] widgetDir = os.path.join(widgetOutDir, name) if not os.path.exists(widgetDir): if os.path.exists(templateDir): os.mkdir(widg...
32.346154
87
0.62069
0
0
0
0
0
0
0
0
151
0.179548
618ed936ea97eb91d0ed1cb9b6eb7123a3f94c4d
1,380
py
Python
examples/06-worker.py
pacslab/serverless-performance-simulator
5dd1623ad873d005b457676c060232205de7f552
[ "MIT" ]
5
2021-06-17T15:50:40.000Z
2022-02-15T21:24:39.000Z
examples/06-worker.py
sicilly/simfaas
5dd1623ad873d005b457676c060232205de7f552
[ "MIT" ]
null
null
null
examples/06-worker.py
sicilly/simfaas
5dd1623ad873d005b457676c060232205de7f552
[ "MIT" ]
5
2020-07-19T22:57:34.000Z
2021-11-16T01:40:03.000Z
import zmq import time import sys import struct import multiprocessing from examples.sim_trace import generate_trace port = "5556" if len(sys.argv) > 1: port = sys.argv[1] int(port) socket_addr = "tcp://127.0.0.1:%s" % port worker_count = multiprocessing.cpu_count() * 2 + 1 stop_signal = False def worker(c...
26.538462
98
0.626087
0
0
0
0
0
0
0
0
120
0.086957
6190146c6aed9af23bf26291c4ff9c3eaefe84de
3,532
py
Python
ensembl_genes/species.py
ravwojdyla/ensembl-genes
f48f9f23427a34a8920bea19b9b7c220eb43facc
[ "Apache-2.0" ]
5
2021-10-11T17:18:48.000Z
2022-02-22T03:32:39.000Z
ensembl_genes/species.py
ravwojdyla/ensembl-genes
f48f9f23427a34a8920bea19b9b7c220eb43facc
[ "Apache-2.0" ]
13
2021-10-11T18:30:30.000Z
2022-03-04T15:36:21.000Z
ensembl_genes/species.py
ravwojdyla/ensembl-genes
f48f9f23427a34a8920bea19b9b7c220eb43facc
[ "Apache-2.0" ]
2
2021-10-15T18:31:53.000Z
2022-02-12T04:23:18.000Z
from dataclasses import dataclass from typing import Optional, Union from ensembl_genes.models import GeneForMHC @dataclass class Species: name: str common_name: str assembly: str ensembl_gene_pattern: str enable_mhc: bool mhc_chromosome: str mhc_lower: int mhc_upper: int xmhc_low...
32.40367
98
0.668743
1,218
0.344847
0
0
1,229
0.347961
0
0
1,179
0.333805
6191690a86eb7024d9f9224d6a7236a89bda9fa5
1,294
py
Python
app_covid19data/tests/test_views.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_views.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
app_covid19data/tests/test_views.py
falken20/covid19web
3826e5cc51dc24d373a1f614ccdb7c30993312ce
[ "MIT" ]
null
null
null
from django.test import TestCase from django.urls import reverse from django.utils import timezone from model_bakery import baker from app_covid19data.models import DataCovid19Item from app_covid19data import views class Covid19dataTest(TestCase): def setUp(self): """ Method which the testing framework ...
36.971429
106
0.681607
1,075
0.830757
0
0
0
0
0
0
266
0.205564
619239cbab47f38d61f102bfd2c870af018bffa8
407
py
Python
Chapter05/restful_python_2_05/Django01/games_service/games/models.py
PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition
db8212c90f6394d8ee6fadb038e2b01ef83c963d
[ "MIT" ]
45
2018-12-21T01:02:16.000Z
2022-03-18T08:23:13.000Z
Chapter05/restful_python_2_05/Django01/games_service/games/models.py
PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition
db8212c90f6394d8ee6fadb038e2b01ef83c963d
[ "MIT" ]
12
2020-02-11T23:32:33.000Z
2021-06-10T22:29:56.000Z
Chapter05/restful_python_2_05/Django01/games_service/games/models.py
PacktPublishing/Hands-On-RESTful-Python-Web-Services-Second-Edition
db8212c90f6394d8ee6fadb038e2b01ef83c963d
[ "MIT" ]
29
2019-02-11T16:45:56.000Z
2022-03-29T12:43:27.000Z
from django.db import models class Game(models.Model): created_timestamp = models.DateTimeField(auto_now_add=True) name = models.CharField(max_length=200) release_date = models.DateTimeField() esrb_rating = models.CharField(max_length=150) played_once = models.BooleanField(default=False) playe...
29.071429
63
0.732187
375
0.921376
0
0
0
0
0
0
6
0.014742
61938ef87f807b50b7ef975df7fc7cd96772c7e3
7,100
py
Python
old_py2/controllers/datafeed_controller.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
old_py2/controllers/datafeed_controller.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
old_py2/controllers/datafeed_controller.py
bovlb/the-blue-alliance
29389649d96fe060688f218d463e642dcebfd6cc
[ "MIT" ]
null
null
null
import logging import os import datetime import tba_config import time import json from google.appengine.api import taskqueue from google.appengine.ext import ndb from google.appengine.ext import webapp from google.appengine.ext.webapp import template from consts.event_type import EventType from consts.media_type imp...
40.340909
125
0.640704
5,354
0.754085
0
0
0
0
0
0
1,046
0.147324
6193b4548eb4ff84fedce496ec547a4d080086f6
3,841
py
Python
src/bot/handlers/essence_part_handler.py
nchursin/claimant
890ce1a3ced8db9d2e2fbddb8a3207e82ac05326
[ "BSD-3-Clause" ]
3
2022-03-03T19:10:25.000Z
2022-03-03T19:57:15.000Z
src/bot/handlers/essence_part_handler.py
nchursin/claimant
890ce1a3ced8db9d2e2fbddb8a3207e82ac05326
[ "BSD-3-Clause" ]
9
2022-03-03T18:56:37.000Z
2022-03-29T18:34:02.000Z
src/bot/handlers/essence_part_handler.py
nchursin/claimant
890ce1a3ced8db9d2e2fbddb8a3207e82ac05326
[ "BSD-3-Clause" ]
1
2022-03-04T11:59:11.000Z
2022-03-04T11:59:11.000Z
from typing import Optional, List from aiogram import types, Dispatcher, filters from aiogram.dispatcher import FSMContext from aiogram.dispatcher.filters.state import StatesGroup, State from aiogram.types import ReplyKeyboardMarkup from handlers.common_actions_handlers import process_manual_enter, process_option_sel...
44.149425
100
0.724291
109
0.026386
0
0
1,315
0.318325
2,447
0.592351
797
0.192931
6193bd05256f7e3ff92d7c5240b4a667fe8be22a
4,523
py
Python
SCRWebService/message_handling/message_forwarder.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
null
null
null
SCRWebService/message_handling/message_forwarder.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
4
2021-03-31T19:46:30.000Z
2021-03-31T19:55:03.000Z
SCRWebService/message_handling/message_forwarder.py
tomzo/integration-adaptors
d4f296d3e44475df6f69a78a27fac6ed5b67513b
[ "Apache-2.0" ]
2
2020-04-02T11:22:17.000Z
2021-04-11T07:24:48.000Z
"""Module related to processing of an outbound message""" from typing import Dict, Optional from utilities import integration_adaptors_logger as log from builder.pystache_message_builder import MessageGenerationError from message_handling.message_sender import MessageSender import xml.etree.ElementTree as ET logger = ...
47.610526
117
0.661729
4,152
0.917975
0
0
0
0
2,033
0.44948
1,856
0.410347
619557a199ed9607989d1a9b61ecbecc26b2b6f6
809
py
Python
HackerRank/Alphabet Rangoli/solution.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
9
2020-07-02T06:06:17.000Z
2022-02-26T11:08:09.000Z
HackerRank/Alphabet Rangoli/solution.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
1
2021-11-04T17:26:36.000Z
2021-11-04T17:26:36.000Z
HackerRank/Alphabet Rangoli/solution.py
nikku1234/Code-Practise
94eb6680ea36efd10856c377000219285f77e5a4
[ "Apache-2.0" ]
8
2021-01-31T10:31:12.000Z
2022-03-13T09:15:55.000Z
import string def print_rangoli(size): # your code goes here ''' alphabets = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] symbol = '-' array_size = size + 3*(size-1) print(array_size) for i in range(0,array_size): for left_...
25.28125
121
0.483313
0
0
0
0
0
0
0
0
539
0.666255
61986b8629c565625618497302e6f724f841c131
779
py
Python
src/visualize/visualize_checkpoint.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
164
2021-09-06T12:43:39.000Z
2022-03-29T02:33:38.000Z
src/visualize/visualize_checkpoint.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
14
2021-09-17T00:42:24.000Z
2022-03-07T04:18:12.000Z
src/visualize/visualize_checkpoint.py
Immocat/ACTOR
c7237e82e333bf2c57f7d8e12f27d0831233befc
[ "MIT" ]
27
2021-09-07T04:38:38.000Z
2022-03-29T00:37:10.000Z
import os import matplotlib.pyplot as plt import torch from src.utils.get_model_and_data import get_model_and_data from src.parser.visualize import parser from .visualize import viz_epoch import src.utils.fixseed # noqa plt.switch_backend('agg') def main(): # parse options parameters, folder, checkpointna...
24.34375
78
0.741977
0
0
0
0
0
0
0
0
88
0.112965
619f55e5cd0fde19ef49d00d5c74c41a8e978000
938
py
Python
APIs/Biquery/src/infra/models/datasets.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
APIs/Biquery/src/infra/models/datasets.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
APIs/Biquery/src/infra/models/datasets.py
clarencejlee/jdp
d3d31db0138ff06f2f5ec592d85317941af4f280
[ "MIT" ]
null
null
null
from enum import Enum from tortoise import fields from tortoise.models import Model class Status(str, Enum): PENDING = "pending" IMPORTED = "imported" class Datasets(Model): id = fields.CharField(36, pk=True) provider = fields.CharField(10, null=False) provider_id = fields.CharField(255, null=Fal...
32.344828
65
0.643923
850
0.906183
0
0
0
0
0
0
75
0.079957
61a07bb292fcae2ff0accde2ff05fef346e1cb96
6,046
py
Python
src/python/pipelines_utils/file_utils.py
InformaticsMatters/pipelines-utils
07182505500fe2e3ab1db29332f6a7ec98b0c1b6
[ "Apache-2.0" ]
null
null
null
src/python/pipelines_utils/file_utils.py
InformaticsMatters/pipelines-utils
07182505500fe2e3ab1db29332f6a7ec98b0c1b6
[ "Apache-2.0" ]
33
2018-01-23T10:20:41.000Z
2019-07-09T14:25:33.000Z
src/python/pipelines_utils/file_utils.py
InformaticsMatters/pipelines-utils
07182505500fe2e3ab1db29332f6a7ec98b0c1b6
[ "Apache-2.0" ]
1
2018-10-31T06:04:08.000Z
2018-10-31T06:04:08.000Z
#!/usr/bin/env python # Copyright 2018 Informatics Matters Ltd. # # 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...
40.306667
78
0.66391
0
0
0
0
0
0
0
0
4,238
0.700959
61a0f5abd8c986c58949f55434b22326da67e0f2
13,154
py
Python
devlin2/modular_square/rtl/gen_reduction_lut.py
supranational/-vdf-fpga-round3-results
5914821abc400cc21b97b93af01a675f3f009fd3
[ "BSD-3-Clause" ]
44
2019-08-01T20:52:10.000Z
2021-09-15T02:08:41.000Z
devlin2/modular_square/rtl/gen_reduction_lut.py
supranational/-vdf-fpga-round3-results
5914821abc400cc21b97b93af01a675f3f009fd3
[ "BSD-3-Clause" ]
null
null
null
devlin2/modular_square/rtl/gen_reduction_lut.py
supranational/-vdf-fpga-round3-results
5914821abc400cc21b97b93af01a675f3f009fd3
[ "BSD-3-Clause" ]
19
2019-07-25T02:02:02.000Z
2022-01-27T15:53:30.000Z
#!/usr/bin/python3 ################################################################################ # Copyright 2019 Supranational 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 # # h...
34.615789
623
0.541508
0
0
0
0
0
0
0
0
9,587
0.728828
61a1dc570a9218509b77bdf2225164ed8e7e0a90
23,422
py
Python
StinoStarter.py
geekroo/Stino
c3f416c807857fb4c2180219d984c4fcc83678d6
[ "MIT" ]
1
2016-12-28T05:36:20.000Z
2016-12-28T05:36:20.000Z
StinoStarter.py
MHaroonBaig/Stino
c3f416c807857fb4c2180219d984c4fcc83678d6
[ "MIT" ]
null
null
null
StinoStarter.py
MHaroonBaig/Stino
c3f416c807857fb4c2180219d984c4fcc83678d6
[ "MIT" ]
1
2018-11-25T19:36:45.000Z
2018-11-25T19:36:45.000Z
#-*- coding: utf-8 -*- # StinoStarter.py import os import sublime import sublime_plugin st_version = int(sublime.version()) if st_version < 3000: import app else: from . import app class SketchListener(sublime_plugin.EventListener): def on_activated(self, view): pre_active_sketch = app.constant.global_settings....
35.380665
128
0.76727
23,163
0.988942
0
0
0
0
0
0
1,610
0.068739
61a22ded87c71674219b6b523e264a085c06ad4b
1,358
py
Python
the-lambda-trilogy/python/src/lambdas/the_lambda_lith/lambda_function.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
the-lambda-trilogy/python/src/lambdas/the_lambda_lith/lambda_function.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
the-lambda-trilogy/python/src/lambdas/the_lambda_lith/lambda_function.py
InfrastructureHQ/CDK-Patterns
3531f2df028e87c1455b8afe95563d7552abb7af
[ "MIT" ]
null
null
null
def lambda_handler(event): try: first_num = event["queryStringParameters"]["firstNum"] except KeyError: first_num = 0 try: second_num = event["queryStringParameters"]["secondNum"] except KeyError: second_num = 0 try: operation_type = event["queryStringParame...
28.893617
75
0.620766
0
0
0
0
0
0
0
0
298
0.21944
61a276c4ae721f1e18e33a6cdf82a3165f5b364f
3,994
py
Python
dqo/relational/tests/test_augmentation.py
danield137/deep_query_optimzation
01a25c966338007f15d14dea1b37e388e47bcfe3
[ "MIT" ]
null
null
null
dqo/relational/tests/test_augmentation.py
danield137/deep_query_optimzation
01a25c966338007f15d14dea1b37e388e47bcfe3
[ "MIT" ]
null
null
null
dqo/relational/tests/test_augmentation.py
danield137/deep_query_optimzation
01a25c966338007f15d14dea1b37e388e47bcfe3
[ "MIT" ]
null
null
null
from dqo.db.tests.datasets import employees_db_w_meta from dqo.relational import SQLParser from dqo.relational import parse_tree test_db = employees_db_w_meta() def test_condition_permutation(): sql = """ SELECT MIN(employees.salary) FROM employees WHERE employees.id > 200 ""...
34.431034
102
0.662494
0
0
0
0
0
0
0
0
982
0.245869
61a4375cdc7350ac4c1ad459005657ca06a87ebe
1,326
py
Python
src/newt/db/_ook.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
153
2017-01-24T16:55:00.000Z
2022-03-21T08:24:13.000Z
src/newt/db/_ook.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
14
2017-01-25T17:04:49.000Z
2021-12-05T19:26:35.000Z
src/newt/db/_ook.py
bmjjr/db
39d3833f4458fcd20d09f383711745842b5db4f2
[ "MIT" ]
16
2017-01-25T07:25:17.000Z
2022-03-21T08:24:16.000Z
import relstorage.storage import ZODB.Connection # Monkey patches, ook def _ex_cursor(self, name=None): if self._stale_error is not None: raise self._stale_error with self._lock: self._before_load() return self._load_conn.cursor(name) relstorage.storage.RelStorage.ex_cursor = _ex_curs...
28.212766
71
0.697587
0
0
0
0
0
0
0
0
321
0.242081
61a4a530246434eb38e7c667db777d5e633e159d
13,214
py
Python
template1.py
gregwa1953/FCM160
b5c0a912e140e78891f587d2d271c23bff7333c2
[ "MIT" ]
null
null
null
template1.py
gregwa1953/FCM160
b5c0a912e140e78891f587d2d271c23bff7333c2
[ "MIT" ]
null
null
null
template1.py
gregwa1953/FCM160
b5c0a912e140e78891f587d2d271c23bff7333c2
[ "MIT" ]
null
null
null
#! /usr/bin/env python # -*- coding: utf-8 -*- # ====================================================== # template1.py # ------------------------------------------------------ # Created for Full Circle Magazine Issue #160 # Written by G.D. Walters # Copyright (c) 2020 by G.D. Walters # This source code is release...
32.546798
1,325
0.546163
0
0
0
0
0
0
0
0
7,328
0.554563
61a585a44deae31d51275f2f707d00d0ecb8a314
1,744
py
Python
arimaModel.py
gehadnaser/fraud-detection_stockmarket
96c70daf304faa415435fdc457eba832ff9737bc
[ "MIT" ]
null
null
null
arimaModel.py
gehadnaser/fraud-detection_stockmarket
96c70daf304faa415435fdc457eba832ff9737bc
[ "MIT" ]
null
null
null
arimaModel.py
gehadnaser/fraud-detection_stockmarket
96c70daf304faa415435fdc457eba832ff9737bc
[ "MIT" ]
null
null
null
import numpy as np, pandas as pd import math from statsmodels.tsa.arima_model import ARIMA from statsmodels.tsa.stattools import adfuller, kpss, acf import matplotlib.pyplot as plt plt.rcParams.update({'figure.figsize': (9, 7), 'figure.dpi': 120}) # Import data def Read(name): df = pd.read_csv(name + ...
28.590164
69
0.62156
0
0
0
0
0
0
0
0
401
0.229931
61a6fedac82e9e4878bc3c795bf52464ab6e2eb9
4,388
py
Python
code/preprocess/data_process.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
null
null
null
code/preprocess/data_process.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
null
null
null
code/preprocess/data_process.py
hms-dbmi/VarPPUD
316a45f33c12dfecadb17fa41b699ef95096a623
[ "Apache-2.0" ]
1
2022-01-18T17:14:31.000Z
2022-01-18T17:14:31.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Wed Dec 9 15:38:54 2020 @author: rayin """ # pic-sure api lib import PicSureHpdsLib import PicSureClient # python_lib for pic-sure # https://github.com/hms-dbmi/Access-to-Data-using-PIC-SURE-API/tree/master/NIH_Undiagnosed_Diseases_Network from python_li...
33.496183
146
0.76618
0
0
0
0
0
0
0
0
1,772
0.403829
61a97b1267f108543615dbe34e597a0abe6754f0
672
py
Python
scripts/energy.py
rinku-mishra/PPDyn
b9e255e673998b9dc9f9753efa44c0c036020bf4
[ "MIT" ]
2
2021-03-20T23:15:42.000Z
2021-04-30T14:46:45.000Z
scripts/energy.py
rinku-mishra/PPDyn
b9e255e673998b9dc9f9753efa44c0c036020bf4
[ "MIT" ]
20
2021-03-25T10:59:29.000Z
2021-06-15T21:46:09.000Z
scripts/energy.py
rinku-mishra/PPDyn
b9e255e673998b9dc9f9753efa44c0c036020bf4
[ "MIT" ]
2
2021-03-21T12:20:43.000Z
2021-06-14T11:11:59.000Z
#!/usr/bin/env python3 import numpy as np import h5py import matplotlib.pyplot as plt # import plotly.graph_objects as go #========= Configuration =========== DIR ="../data" file_name = "particle"#"rhoNeutral" #"P" h5 = h5py.File('../data/'+file_name+'.hdf5','r') Lx = h5.attrs["Lx"] Ly = h5.attrs["Ly"] Lz = h5.at...
16.390244
57
0.620536
0
0
0
0
0
0
0
0
204
0.303571
61a99ae0d6b78d1440e41c906d9b4fb49d1d3957
882
py
Python
webvulnscan/request.py
hhucn/webvulnscan
efb812fd5483157528f37794acecafa35ed0d878
[ "MIT" ]
40
2015-01-15T14:52:51.000Z
2022-03-25T08:52:48.000Z
webvulnscan/request.py
RaviRaaja/webvulnscan
efb812fd5483157528f37794acecafa35ed0d878
[ "MIT" ]
1
2016-07-21T09:51:15.000Z
2016-10-02T17:45:37.000Z
webvulnscan/request.py
RaviRaaja/webvulnscan
efb812fd5483157528f37794acecafa35ed0d878
[ "MIT" ]
22
2015-01-23T04:21:21.000Z
2021-08-22T03:36:21.000Z
import copy import sys from . import compat from .compat import urlencode, parse_qs class Request(compat.Request): def __init__(self, url, parameters=None, headers=None): self.parameters = parameters if parameters is None: data = None else: if sys.version_info >= (...
27.5625
60
0.557823
794
0.900227
0
0
63
0.071429
0
0
21
0.02381
61aa135945511486eea03b3338aef406ccf3474a
1,123
py
Python
api/api.py
mshen63/DevUp
b0e0d9a4a442cd5b51fb60823ed0a0837c440442
[ "MIT" ]
2
2022-02-13T17:02:05.000Z
2022-03-01T10:30:02.000Z
api/api.py
mshen63/DevUp
b0e0d9a4a442cd5b51fb60823ed0a0837c440442
[ "MIT" ]
62
2021-08-03T17:53:17.000Z
2021-08-31T15:58:24.000Z
api/api.py
mshen63/DevUp
b0e0d9a4a442cd5b51fb60823ed0a0837c440442
[ "MIT" ]
4
2021-08-04T15:11:06.000Z
2021-08-29T19:58:42.000Z
import os from flask import Flask from dotenv import load_dotenv from flask_cors import CORS from flask_mail import Mail # Database and endpoints from flask_migrate import Migrate from models.models import db from endpoints.exportEndpoints import exportEndpoints load_dotenv() app = Flask(__name__, static_folder="../b...
22.019608
73
0.737311
0
0
0
0
112
0.099733
0
0
338
0.30098
61ad6e3acd78f945d9279a347fd33983cfd3d024
5,812
py
Python
core/run.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
2
2022-03-26T15:20:40.000Z
2022-03-26T15:24:02.000Z
core/run.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
null
null
null
core/run.py
mofengboy/Chain-of-all-beings
b7f9750391a702b83728118f5db533ecb4d38bf0
[ "Apache-2.0" ]
1
2022-03-26T15:20:45.000Z
2022-03-26T15:20:45.000Z
import getopt import sys import os import logging.config import time import yaml sys.path.append("../") sys.path.append(os.path.abspath(".")) from core.app import APP from core.utils.ciphersuites import CipherSuites from core.utils.system_time import STime from core.config.cycle_Info import ElectionPeriodValue def ...
31.759563
102
0.520303
0
0
0
0
0
0
0
0
1,718
0.255427
61af5ec45b177f6c19b848d840e3989ad1c6c928
3,274
py
Python
main.py
josehenriqueroveda/spraying-API
dffa2434b19ea75a372dedd7f90a88857b33a726
[ "MIT" ]
null
null
null
main.py
josehenriqueroveda/spraying-API
dffa2434b19ea75a372dedd7f90a88857b33a726
[ "MIT" ]
null
null
null
main.py
josehenriqueroveda/spraying-API
dffa2434b19ea75a372dedd7f90a88857b33a726
[ "MIT" ]
null
null
null
from fastapi import FastAPI from starlette.responses import RedirectResponse from ratelimit import limits import sys import uvicorn import requests import json import config ONE_MINUTE = 60 app = FastAPI(title='Spraying conditions API', description='API for real-time analysis of climatic conditions gene...
46.112676
160
0.624007
0
0
0
0
2,796
0.852959
2,716
0.828554
1,145
0.349298
61b0a336f45b9e9a987dc57de808aa5bdd651e6a
4,519
py
Python
task3_word2vec_lstm.py
tomelf/cnit-623
edf25f0b216b2480f7b651d3b94c1377dff721c0
[ "MIT" ]
4
2020-08-28T21:33:48.000Z
2021-01-16T22:43:36.000Z
task3_word2vec_lstm.py
tomelf/cnit-623
edf25f0b216b2480f7b651d3b94c1377dff721c0
[ "MIT" ]
null
null
null
task3_word2vec_lstm.py
tomelf/cnit-623
edf25f0b216b2480f7b651d3b94c1377dff721c0
[ "MIT" ]
4
2021-01-16T22:42:52.000Z
2021-01-16T22:43:45.000Z
import data_loader import numpy as np import pandas as pd import pickle import os import nltk import re import timeit from torch.autograd import Variable import torch from sklearn import preprocessing, svm from sklearn.metrics import roc_auc_score, accuracy_score, classification_report from sklearn.model_selection im...
43.451923
132
0.623811
0
0
0
0
0
0
0
0
504
0.111529
61b0ba8f2fe1cfda56083280555e02a787f5271a
344
py
Python
setup.py
trsav/romodel
b9e94edb0eeb89fe75be24e1eb303a077c02f58e
[ "MIT" ]
27
2021-05-17T08:33:51.000Z
2022-02-09T03:18:11.000Z
setup.py
trsav/romodel
b9e94edb0eeb89fe75be24e1eb303a077c02f58e
[ "MIT" ]
null
null
null
setup.py
trsav/romodel
b9e94edb0eeb89fe75be24e1eb303a077c02f58e
[ "MIT" ]
7
2021-07-15T17:07:23.000Z
2022-01-18T18:58:56.000Z
from setuptools import setup, find_packages setup( name='romodel', version='0.0.2', url='https://github.com/johwiebe/romodel.git', author='Johannes Wiebe', author_email='j.wiebe17@imperial.ac.uk', description='Pyomo robust optimization toolbox', packages=find_packages(), install_require...
26.461538
52
0.69186
0
0
0
0
0
0
0
0
148
0.430233
61b24b373be99e2cd4d1f337b0c0bc83758927a9
11,138
py
Python
lambda_function.py
RAMCO-AMS/AlexaSkill
a3f54107f115b21680e9443b6e8dd63634fe7c81
[ "MIT" ]
1
2018-02-23T10:28:59.000Z
2018-02-23T10:28:59.000Z
lambda_function.py
RAMCO-AMS/AlexaSkill
a3f54107f115b21680e9443b6e8dd63634fe7c81
[ "MIT" ]
null
null
null
lambda_function.py
RAMCO-AMS/AlexaSkill
a3f54107f115b21680e9443b6e8dd63634fe7c81
[ "MIT" ]
null
null
null
""" This sample demonstrates a simple skill built with the Amazon Alexa Skills Kit. The Intent Schema, Custom Slots, and Sample Utterances for this skill, as well as testing instructions are located at http://amzn.to/1LzFrj6 For additional samples, visit the Alexa Skills Kit Getting Started guide at http://amzn.to/1LG...
37.755932
162
0.687915
0
0
0
0
0
0
0
0
4,779
0.429072
61b28c4bd878652604bcfea27884f4991efa0ed4
5,456
py
Python
preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
1
2021-05-13T15:30:39.000Z
2021-05-13T15:30:39.000Z
preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
preprocessing/HIPSCI/extract_seq_majiq_exon_cons.py
arnegebert/splicing
3e19ce83a9f6d98bc6c2d8b653660d22e453ca77
[ "MIT" ]
null
null
null
from collections import defaultdict, Counter import numpy as np import time from utils import one_hot_encode_seq, reverse_complement, overlap import matplotlib.pyplot as plt startt = time.time() psis = [] data_path = '../../data' save_to_cons = 'hipsci_majiq/exon/cons.npy' introns_bef_start = 70 # introns exons_afte...
41.969231
113
0.61272
0
0
0
0
0
0
0
0
1,104
0.202346
61b2a1604d4866a4eaf485c5fbc8ad47fa3ccd88
8,228
py
Python
stream/migrations/0001_init_models.py
freejooo/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
137
2021-03-26T18:19:45.000Z
2022-03-06T07:48:23.000Z
stream/migrations/0001_init_models.py
rrosajp/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
11
2021-03-28T00:07:00.000Z
2021-05-04T12:54:58.000Z
stream/migrations/0001_init_models.py
rrosajp/vigilio
d21bf4f9d39e5dcde5d7c21476d8650e914c3c66
[ "MIT" ]
16
2021-03-27T23:58:53.000Z
2022-03-20T14:52:13.000Z
# Generated by Django 3.1.5 on 2021-03-17 21:30 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...
38.448598
87
0.444336
8,069
0.980676
0
0
0
0
0
0
1,006
0.122265
61b2c8e21cc921ae9578df5b257930ae8f0874f7
2,958
py
Python
iris/iris_classifier.py
xuanthuong/tensorflow-course
6b97ccf92e2586979a50468bd753ff46d00bdfc3
[ "MIT" ]
null
null
null
iris/iris_classifier.py
xuanthuong/tensorflow-course
6b97ccf92e2586979a50468bd753ff46d00bdfc3
[ "MIT" ]
null
null
null
iris/iris_classifier.py
xuanthuong/tensorflow-course
6b97ccf92e2586979a50468bd753ff46d00bdfc3
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Iris classification example, pratice on using high-level API Algorithms: Neutral Network Reference: https://www.tensorflow.org/get_started/tflearn Date: Jun 14, 2017 @author: Thuong Tran @Library: tensorflow - high-level API with tf.contrib.learn """ from __future__ import absolute_impor...
32.866667
91
0.684246
0
0
0
0
0
0
0
0
1,029
0.34787
61b4452039e1df0b8c34d097d279b8a63e6014fc
1,728
py
Python
src/main.py
NaBotProject/translate-discord-bot
41d050a89803c47bf09e5ad0f5119a9ca038d61c
[ "MIT" ]
1
2021-12-12T07:56:34.000Z
2021-12-12T07:56:34.000Z
src/main.py
NaBotProject/translate-discord-bot
41d050a89803c47bf09e5ad0f5119a9ca038d61c
[ "MIT" ]
null
null
null
src/main.py
NaBotProject/translate-discord-bot
41d050a89803c47bf09e5ad0f5119a9ca038d61c
[ "MIT" ]
null
null
null
import discord import os import openpyxl from deep_translator import GoogleTranslator client = discord.Client() TOKEN = os.getenv('TOKEN') @client.event async def on_ready(): print('We have logged in as {0.user}'.format(client)) @client.event async def on_message(message): if message.author ==...
27.428571
254
0.545718
0
0
0
0
1,523
0.880856
1,493
0.863505
371
0.214575
61b4dd53e7ab50a4c34eeefce040ae4930eeb60c
14,042
py
Python
createSampledata.py
sjoplin/Ace-Analytics
38e39696de594bf6696a6be02066ac6e4ca2b7af
[ "MIT" ]
1
2019-01-09T15:19:44.000Z
2019-01-09T15:19:44.000Z
createSampledata.py
sjoplin/Moneyball
38e39696de594bf6696a6be02066ac6e4ca2b7af
[ "MIT" ]
7
2020-02-04T22:11:54.000Z
2022-03-11T23:37:24.000Z
createSampledata.py
sjoplin/Ace-Analytics
38e39696de594bf6696a6be02066ac6e4ca2b7af
[ "MIT" ]
null
null
null
# Import all libraries needed for the tutorial import pandas as pd import re import requests from bs4 import BeautifulSoup from makePDFs import printPDFs from time import sleep #parses the rawtext into panda format #add playerdata back def generateStats(playerdata, teamName): #Keys of all potential outcomes, dire...
36.855643
188
0.491668
0
0
0
0
0
0
0
0
4,292
0.305654
61b92037ab7683a5d5164e4e2f3fc2e47b6106da
1,172
py
Python
datasets.py
mokosaur/iris-recognition
88a99a8b5a4a2c8377b8a92a76750d871373269f
[ "MIT" ]
17
2017-11-11T11:55:13.000Z
2021-06-11T13:51:32.000Z
datasets.py
pyxsqbs/iris-recognition
88a99a8b5a4a2c8377b8a92a76750d871373269f
[ "MIT" ]
5
2018-04-21T08:52:21.000Z
2020-01-11T18:59:13.000Z
datasets.py
pyxsqbs/iris-recognition
88a99a8b5a4a2c8377b8a92a76750d871373269f
[ "MIT" ]
10
2018-03-07T09:10:19.000Z
2021-08-31T09:27:48.000Z
import os import numpy as np def load_utiris(): """Fetches NIR images from UTIRIS dataset. Retrieves image paths and labels for each NIR image in the dataset. There should already exist a directory named 'UTIRIS V.1'. If it does not exist then download the dataset from the official page (https://utiris.w...
30.051282
120
0.613481
0
0
0
0
0
0
0
0
536
0.457338
61b9f66c78b8200c4c7baa5db2be449bedc33128
634
py
Python
crescent/resources/s3/bucket/routing_rule.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
1
2020-03-26T19:20:03.000Z
2020-03-26T19:20:03.000Z
crescent/resources/s3/bucket/routing_rule.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
crescent/resources/s3/bucket/routing_rule.py
mpolatcan/zepyhrus
2fd0b1b9b21613b5876a51fe8b5f9e3afbec1b67
[ "Apache-2.0" ]
null
null
null
from crescent.core import Model from .redirect_rule import RedirectRule from .routing_rule_condition import RoutingRuleCondition from .constants import ModelRequiredProperties class RoutingRule(Model): def __init__(self): super(RoutingRule, self).__init__(required_properties=ModelRequiredProperties.ROUTIN...
39.625
99
0.817035
455
0.717666
0
0
0
0
0
0
0
0
61ba3d50811169b0b9f01a141d232b991d2868ad
457
py
Python
arranging.py
mallimuondu/Algorithims
9e2ff15ab87c56a38aba18d0e31999e12c9a317e
[ "MIT" ]
null
null
null
arranging.py
mallimuondu/Algorithims
9e2ff15ab87c56a38aba18d0e31999e12c9a317e
[ "MIT" ]
null
null
null
arranging.py
mallimuondu/Algorithims
9e2ff15ab87c56a38aba18d0e31999e12c9a317e
[ "MIT" ]
null
null
null
input1 = int(input("Enter the first number: ")) input2 = int(input("Enter the second number: ")) input3 = int(input("Enter the third number: ")) input4 = int(input("Enter the fourth number: ")) input5 = int(input("Enter the fifth number: ")) tuple_num = [] tuple_num.append(input1) tuple_num.append(input2) tuple_nu...
30.466667
49
0.722101
0
0
0
0
0
0
0
0
137
0.299781
61bcb1723cde31df785e9875b137882312c8d564
1,086
py
Python
tests/test_validation_settings.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
tests/test_validation_settings.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
tests/test_validation_settings.py
IndicoDataSolutions/finetune-transformer-lm
3534658e5de281e5634c8481b0fb37635b0cb3af
[ "MIT" ]
null
null
null
import unittest from finetune.util.input_utils import validation_settings class TestValidationSettings(unittest.TestCase): def test_validation_settings(self): """ Ensure LM only training does not error out """ val_size, val_interval = validation_settings(dataset_size=30, batch_siz...
43.44
141
0.736648
1,009
0.929098
0
0
0
0
0
0
66
0.060773
61bd467498fdc058f0a60a3407be859056102776
1,743
py
Python
96. combination_sum.py
chandravenky/puzzles
17ec86bbad43862830ba7059a448a33b232b4088
[ "MIT" ]
null
null
null
96. combination_sum.py
chandravenky/puzzles
17ec86bbad43862830ba7059a448a33b232b4088
[ "MIT" ]
null
null
null
96. combination_sum.py
chandravenky/puzzles
17ec86bbad43862830ba7059a448a33b232b4088
[ "MIT" ]
1
2022-03-13T02:04:46.000Z
2022-03-13T02:04:46.000Z
import copy def combination_sum(candidates, target): def backtrack(first, curr=[]): if sum(curr) == target: if curr not in output: output.append(copy.deepcopy(curr)) return if sum(curr) >target: return for i in range(first, n): curr.append(candidates[first]) #print(c...
24.9
224
0.570281
763
0.437751
0
0
0
0
0
0
133
0.076305
61c22efab1014a2172a1411d32a305d07c0df66e
6,086
py
Python
claimreview/claimreview/parser.py
MartinoMensio/claimreview-scraper-other
f1105ef33d706610e8952b389e435590ff85439b
[ "MIT" ]
2
2019-03-05T15:24:44.000Z
2020-05-27T06:05:48.000Z
claimreview/claimreview/parser.py
MartinoMensio/claimreview-scraper-other
f1105ef33d706610e8952b389e435590ff85439b
[ "MIT" ]
null
null
null
claimreview/claimreview/parser.py
MartinoMensio/claimreview-scraper-other
f1105ef33d706610e8952b389e435590ff85439b
[ "MIT" ]
1
2019-03-05T15:25:00.000Z
2019-03-05T15:25:00.000Z
import json import microdata import dateutil.parser class ClaimReviewParser(object): name_fixes = { 'Politifact': 'PolitiFact' } def parse(self, response, language='en'): items = self.get_microdata_items(response) scripts = response.css( 'script[type="application/ld+j...
37.801242
187
0.459086
6,031
0.990963
0
0
0
0
0
0
815
0.133914
61c26d6718f096ebcf35473494cb3a2610963d4a
1,097
py
Python
map/migrations/0001_initial.py
benjaoming/django-denmark.org
f708ce95720fd3452913a003ccf8179f869826c4
[ "MIT" ]
null
null
null
map/migrations/0001_initial.py
benjaoming/django-denmark.org
f708ce95720fd3452913a003ccf8179f869826c4
[ "MIT" ]
1
2021-05-03T09:27:59.000Z
2021-05-03T09:27:59.000Z
map/migrations/0001_initial.py
Nadiahansen15/django-denmark.org
d3be44764367a7c1059d7a0e896fbbc56ce1771f
[ "MIT" ]
null
null
null
# Generated by Django 2.0.3 on 2018-03-16 00:17 from django.conf import settings import django.contrib.gis.db.models.fields from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependenc...
34.28125
154
0.640839
895
0.815861
0
0
0
0
0
0
156
0.142206
61c2fff5167df3eebef23e41dd213eb551eb1dca
34
py
Python
UNET_EM_DATASET/UNET_EM_DATASET_TERNARY/utility.py
hossein1387/U-Net-Fixed-Point-Quantization-for-Medical-Image-Segmentation
f919935b975461052d5196372a837356379f973a
[ "MIT" ]
69
2019-07-28T06:53:55.000Z
2022-03-22T01:07:28.000Z
UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
4835a3d08b38617b952023f19bf59679126f5f59
[ "MIT" ]
6
2019-08-02T07:47:09.000Z
2021-06-11T14:35:53.000Z
UNET_EM_DATASET/UNET_EM_DATASET_a8_0_w0_8/utility.py
hossein1387/Fixed-Point-U-Net-Quantization-for-Medical-Image-Segmentation
4835a3d08b38617b952023f19bf59679126f5f59
[ "MIT" ]
20
2019-08-10T07:08:56.000Z
2021-10-09T17:02:30.000Z
../UNET_EM_DATASET_BASE/utility.py
34
34
0.852941
0
0
0
0
0
0
0
0
0
0
61c38035d99d5204568c03e276fa50692ae313a4
13,602
py
Python
frozen_model/gap_model_triplet.py
Yorko/gender-unbiased_BERT-based_pronoun_resolution
67d8c6b3fce94bbeb75bbc644a3111b168e7c25b
[ "Apache-2.0" ]
47
2019-05-21T06:30:36.000Z
2022-02-18T08:35:13.000Z
frozen_model/gap_model_triplet.py
Yorko/gender-unbiased_BERT-based_pronoun_resolution
67d8c6b3fce94bbeb75bbc644a3111b168e7c25b
[ "Apache-2.0" ]
1
2022-01-12T17:40:19.000Z
2022-01-13T10:50:17.000Z
frozen_model/gap_model_triplet.py
Yorko/gender-unbiased_BERT-based_pronoun_resolution
67d8c6b3fce94bbeb75bbc644a3111b168e7c25b
[ "Apache-2.0" ]
6
2019-08-12T16:10:52.000Z
2021-11-15T08:44:31.000Z
import pandas as pd from tqdm import tqdm import json import time import os from keras import backend, models, layers, initializers, regularizers, constraints, optimizers from keras import callbacks as kc from sklearn.model_selection import cross_val_score, KFold, train_test_split, GroupKFold from sklearn.metrics impor...
44.306189
119
0.551978
13,096
0.9628
0
0
0
0
0
0
1,540
0.113219
61c48854a1a1f81599731dfa93278a647742bfa8
430
py
Python
plotly/graph_objs/scattermapbox/__init__.py
gnestor/plotly.py
a8ae062795ddbf9867b8578fe6d9e244948c15ff
[ "MIT" ]
12
2020-04-18T18:10:22.000Z
2021-12-06T10:11:15.000Z
plotly/graph_objs/scattermapbox/__init__.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
27
2020-04-28T21:23:12.000Z
2021-06-25T15:36:38.000Z
plotly/graph_objs/scattermapbox/__init__.py
Vesauza/plotly.py
e53e626d59495d440341751f60aeff73ff365c28
[ "MIT" ]
6
2020-04-18T23:07:08.000Z
2021-11-18T07:53:06.000Z
from ._unselected import Unselected from plotly.graph_objs.scattermapbox import unselected from ._textfont import Textfont from ._stream import Stream from ._selected import Selected from plotly.graph_objs.scattermapbox import selected from ._marker import Marker from plotly.graph_objs.scattermapbox import marker from ...
35.833333
54
0.862791
0
0
0
0
0
0
0
0
0
0
61c555edfec0e4473d4111b7bd23857c81fc59d2
140
py
Python
Javatar.py
evandrocoan/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
142
2015-01-11T19:43:17.000Z
2021-11-15T11:44:56.000Z
Javatar.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
46
2015-01-02T20:29:37.000Z
2018-09-15T05:12:52.000Z
Javatar.py
evandroforks/Javatar
b38d4f9d852565d6dcecb236386628b4e56d9d09
[ "MIT" ]
25
2015-01-16T01:33:39.000Z
2022-01-07T11:12:43.000Z
from .commands import * from .core.event_handler import * from .utils import ( Constant ) def plugin_loaded(): Constant.startup()
14
33
0.707143
0
0
0
0
0
0
0
0
0
0
61c5fab62fcc113bff6d3faa8d1850fad0a74177
1,584
py
Python
sample/posts/filters.py
pine2104/docker_uwsgi_nginx_django
47b1618048131fa7c654b9144a4b3372b9662825
[ "MIT" ]
null
null
null
sample/posts/filters.py
pine2104/docker_uwsgi_nginx_django
47b1618048131fa7c654b9144a4b3372b9662825
[ "MIT" ]
null
null
null
sample/posts/filters.py
pine2104/docker_uwsgi_nginx_django
47b1618048131fa7c654b9144a4b3372b9662825
[ "MIT" ]
null
null
null
from .models import Post, Jcpaper import django_filters from django import forms from django_filters.widgets import RangeWidget class PostFilter(django_filters.FilterSet): title = django_filters.CharFilter( lookup_expr='icontains', widget=forms.TextInput(attrs={'class': 'form-control'}) ) ...
29.886792
93
0.657828
1,453
0.917298
0
0
0
0
0
0
331
0.208965
61c62c3d85b347faa604f4c73ff8c372c3a358fc
11,293
py
Python
src/odinapi/utils/datamodel.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
null
null
null
src/odinapi/utils/datamodel.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
85
2020-04-01T06:24:29.000Z
2022-03-28T04:28:56.000Z
src/odinapi/utils/datamodel.py
Odin-SMR/odin-api
dea75016a6f9e61be0dd64a698b03ded5a6f0f10
[ "MIT" ]
null
null
null
import attr from typing import List, Any, Dict, Union import datetime as dt from enum import Enum, unique, auto from dateutil.relativedelta import relativedelta import numpy as np # type: ignore DATEFMT = "%Y-%m-%dT%H:%M:%SZ" COMMON_FILE_HEADER_DATA = { "creator_name": 'Donal Murtagh', "creator_url": 'odi...
27.815271
79
0.622864
6,501
0.575666
0
0
6,613
0.585584
0
0
2,542
0.225095
61c791ad15060de57be0b1ac1c15f970b14dce6c
2,549
py
Python
regparser/layer/external_citations.py
cfpb/regulations-parser
9b6e1ab2dbec93a915eb6da9a2d88c723b9ac424
[ "CC0-1.0" ]
36
2015-01-05T21:17:36.000Z
2020-04-28T21:02:55.000Z
regparser/layer/external_citations.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
49
2015-01-28T15:54:25.000Z
2018-08-20T20:20:08.000Z
regparser/layer/external_citations.py
ascott1/regulations-parser
1d653ec2d78c9cbfd3b0c651788e5ab14dcc76ca
[ "CC0-1.0" ]
23
2015-01-28T15:34:18.000Z
2021-02-20T10:53:34.000Z
# vim: set encoding=utf-8 from collections import defaultdict from regparser.grammar import external_citations as grammar from layer import Layer class ExternalCitationParser(Layer): # The different types of citations CODE_OF_FEDERAL_REGULATIONS = 'CFR' UNITED_STATES_CODE = 'USC' PUBLIC_LAW = 'PUBLIC...
40.460317
79
0.630836
2,399
0.941153
0
0
0
0
0
0
629
0.246763
61c7e61fa0692b457a20ea1dbff37e3628444c4b
2,521
py
Python
Server/app.py
Ali-Elganzory/High-Ping
9d983eb2f56779d0893dd387ffeecf9b80007944
[ "MIT" ]
3
2020-06-28T02:18:22.000Z
2021-01-07T19:15:13.000Z
Server/app.py
Ali-Elganzory/High-Ping
9d983eb2f56779d0893dd387ffeecf9b80007944
[ "MIT" ]
null
null
null
Server/app.py
Ali-Elganzory/High-Ping
9d983eb2f56779d0893dd387ffeecf9b80007944
[ "MIT" ]
null
null
null
import eventlet import socketio sio = socketio.Server(async_mode='eventlet') app = socketio.WSGIApp(sio) rooms = {} instructors = {} clients_in_rooms = {} @sio.event def connect(sid, environ): print("[Server] ", sid, "connected") @sio.event def create_room(sid, name, room): if room in rooms: print...
31.5125
118
0.638239
0
0
0
0
2,246
0.890916
0
0
650
0.257834
61c8c91a42b220ed80fd252d6e8e255457b5045e
2,141
py
Python
bot.py
Shikib/twiliobot
0077dfc2c1451243839bda4d05e6692d3d70391c
[ "MIT" ]
null
null
null
bot.py
Shikib/twiliobot
0077dfc2c1451243839bda4d05e6692d3d70391c
[ "MIT" ]
null
null
null
bot.py
Shikib/twiliobot
0077dfc2c1451243839bda4d05e6692d3d70391c
[ "MIT" ]
null
null
null
from telegram import Updater from twilio.rest import TwilioRestClient TELEGRAM_TOKEN = "INSERT_YOUR_TOKEN_HERE" TWILIO_ACCOUNT_SID = "INSERT_ACCOUNT_SID_HERE" TWILIO_AUTH_TOKEN = "INSERT_AUTH_TOKEN_HERE" # initialize telegram updater and dispatcher updater = Updater(token=TELEGRAM_TOKEN) dispatcher = updater.dispatch...
31.028986
67
0.726763
0
0
0
0
0
0
0
0
796
0.371789
4ede741a2bc6f6afaf8e5917cde1bda2865c5415
899
py
Python
Python/construct-the-lexicographically-largest-valid-sequence.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/construct-the-lexicographically-largest-valid-sequence.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
Python/construct-the-lexicographically-largest-valid-sequence.py
sm2774us/leetcode_interview_prep_2021
33b41bea66c266b733372d9a8b9d2965cd88bf8c
[ "Fair" ]
null
null
null
# Time: O(n!) # Space: O(n) class Solution(object): def constructDistancedSequence(self, n): """ :type n: int :rtype: List[int] """ def backtracking(n, i, result, lookup): if i == len(result): return True if result[i]: ...
32.107143
62
0.463849
868
0.965517
0
0
0
0
0
0
89
0.098999
4edfe61322b334879f9f8b3e249afc1b2f4d6883
868
py
Python
General Questions/Longest_Common_Prefix.py
siddhi-244/CompetitiveProgrammingQuestionBank
4c265d41b82a7d4370c14d367f78effa9ed95d3c
[ "MIT" ]
931
2020-04-18T11:57:30.000Z
2022-03-31T15:15:39.000Z
General Questions/Longest_Common_Prefix.py
geekySapien/CompetitiveProgrammingQuestionBank
9e84a88a85dbabd95207391967abde298ddc031d
[ "MIT" ]
661
2020-12-13T04:31:48.000Z
2022-03-15T19:11:54.000Z
General Questions/Longest_Common_Prefix.py
geekySapien/CompetitiveProgrammingQuestionBank
9e84a88a85dbabd95207391967abde298ddc031d
[ "MIT" ]
351
2020-08-10T06:49:21.000Z
2022-03-25T04:02:12.000Z
#Longest Common Prefix in python #Implementation of python program to find the longest common prefix amongst the given list of strings. #If there is no common prefix then returning 0. #define the function to evaluate the longest common prefix def longestCommonPrefix(s): p = '' #declare an empty s...
37.73913
103
0.626728
0
0
0
0
0
0
0
0
467
0.538018
4ee2287446b5623f2360208ebd4d39b34fb838c9
2,827
py
Python
codes/1hop_getTwitterUserDetails.py
hridaydutta123/ActiveProbing
763e90fb9e4d996fefd46fb72a53345f83bb3366
[ "BSD-2-Clause" ]
null
null
null
codes/1hop_getTwitterUserDetails.py
hridaydutta123/ActiveProbing
763e90fb9e4d996fefd46fb72a53345f83bb3366
[ "BSD-2-Clause" ]
null
null
null
codes/1hop_getTwitterUserDetails.py
hridaydutta123/ActiveProbing
763e90fb9e4d996fefd46fb72a53345f83bb3366
[ "BSD-2-Clause" ]
null
null
null
import tweepy from tweepy import OAuthHandler import sys import ConfigParser from pymongo import MongoClient import datetime from random import randint import time # Mongo Settings # Connect to MongoDB client = MongoClient("hpc.iiitd.edu.in", 27017, maxPoolSize=50) # Connect to db bitcoindb db=client.activeprobing s...
30.728261
115
0.718783
0
0
0
0
0
0
0
0
918
0.324726
4ee532fd58e6d9d5f5133bca89673cde76f9ac90
1,580
py
Python
netbox/extras/migrations/0061_extras_change_logging.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,994
2019-07-01T13:15:44.000Z
2022-03-31T19:55:45.000Z
netbox/extras/migrations/0061_extras_change_logging.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
4,045
2019-07-01T14:24:09.000Z
2022-03-31T16:07:39.000Z
netbox/extras/migrations/0061_extras_change_logging.py
TheFlyingCorpse/netbox
a226f06b1beb575011d783b202d76cb74d3b1f79
[ "Apache-2.0" ]
1,225
2019-07-01T15:34:03.000Z
2022-03-31T16:47:09.000Z
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('extras', '0060_customlink_button_class'), ] operations = [ migrations.AddField( model_name='customfield', name='created', field=models.DateField(auto_now...
30.384615
65
0.563924
1,536
0.972152
0
0
0
0
0
0
230
0.14557
4ee5c4620828c4c0155ae2a8226dc077ef23d941
2,849
py
Python
tests/test_deployment/test__issue_tracker.py
getslash/scotty
93ea0e41f8e10249e82adc4966ad9aef67b83eba
[ "BSD-3-Clause" ]
10
2015-12-30T14:01:09.000Z
2020-06-05T19:10:23.000Z
tests/test_deployment/test__issue_tracker.py
getslash/scotty
93ea0e41f8e10249e82adc4966ad9aef67b83eba
[ "BSD-3-Clause" ]
41
2015-12-31T12:08:15.000Z
2020-07-27T11:22:56.000Z
tests/test_deployment/test__issue_tracker.py
getslash/scotty
93ea0e41f8e10249e82adc4966ad9aef67b83eba
[ "BSD-3-Clause" ]
2
2016-05-22T15:25:47.000Z
2017-06-06T11:11:23.000Z
import http import uuid from itertools import chain, combinations import pytest import requests import slash def powerset(iterable): s = list(iterable) return ( frozenset(p) for p in chain.from_iterable((combinations(s, r)) for r in range(len(s) + 1)) ) def test_empty_issue(tracker): with p...
29.071429
98
0.702001
0
0
0
0
1,064
0.373464
0
0
113
0.039663
4ee889d75d3834fac8478bde6be85577e39bc8ad
3,826
py
Python
iotcookbook/device/pi/docker/buzzer/app/client.py
haizaar/crossbar-examples
a3daffc0348565aa5e989433978dec2913242ea8
[ "Apache-2.0" ]
null
null
null
iotcookbook/device/pi/docker/buzzer/app/client.py
haizaar/crossbar-examples
a3daffc0348565aa5e989433978dec2913242ea8
[ "Apache-2.0" ]
null
null
null
iotcookbook/device/pi/docker/buzzer/app/client.py
haizaar/crossbar-examples
a3daffc0348565aa5e989433978dec2913242ea8
[ "Apache-2.0" ]
null
null
null
import os import argparse import six import txaio txaio.use_twisted() import RPi.GPIO as GPIO from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks from twisted.internet.error import ReactorNotRunning from autobahn.twisted.wamp import ApplicationSession from autobahn.twisted.wamp ...
27.927007
137
0.618662
2,051
0.536069
1,638
0.428123
1,701
0.44459
0
0
1,134
0.296393
4ee8e5064d073bd9fe65b5f652de6a065ad8feed
468
py
Python
troupon/deals/tasks.py
andela/troupon
3704cbe6e69ba3e4c53401d3bbc339208e9ebccd
[ "MIT" ]
14
2016-01-12T07:31:09.000Z
2021-11-20T19:29:35.000Z
troupon/deals/tasks.py
andela/troupon
3704cbe6e69ba3e4c53401d3bbc339208e9ebccd
[ "MIT" ]
52
2015-09-02T14:54:43.000Z
2016-08-01T08:22:21.000Z
troupon/deals/tasks.py
andela/troupon
3704cbe6e69ba3e4c53401d3bbc339208e9ebccd
[ "MIT" ]
17
2015-09-30T13:18:48.000Z
2021-11-18T16:25:12.000Z
from celery.decorators import periodic_task from celery.task.schedules import crontab from celery.utils.log import get_task_logger from utils import scraper logger = get_task_logger(__name__) # A periodic task that will run every minute @periodic_task(run_every=(crontab(hour=10, day_of_week="Wednesday"))) def send_...
29.25
69
0.779915
0
0
0
0
226
0.482906
0
0
95
0.202991
4ee93f1b5b503980b03dc4c25a2236f84fadfd5f
806
py
Python
unit_testing/temp_manage.py
ddsprasad/pythondev
be3e555ff4a877ecac120b650130c601772050b1
[ "MIT" ]
null
null
null
unit_testing/temp_manage.py
ddsprasad/pythondev
be3e555ff4a877ecac120b650130c601772050b1
[ "MIT" ]
null
null
null
unit_testing/temp_manage.py
ddsprasad/pythondev
be3e555ff4a877ecac120b650130c601772050b1
[ "MIT" ]
null
null
null
from memsql.common import database import sys from datetime import datetime DATABASE = 'PREPDB' HOST = '10.1.100.12' PORT = '3306' USER = 'root' PASSWORD = 'In5pir0n@121' def get_connection(db=DATABASE): """ Returns a new connection to the database. """ return database.connect(host=HOST, port=PORT, user=USER...
28.785714
92
0.614144
0
0
0
0
0
0
0
0
176
0.218362
4ee959a3b5b6300a196f631748a0e734cce242cc
534
py
Python
tabcmd/parsers/remove_users_parser.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tabcmd/parsers/remove_users_parser.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
tabcmd/parsers/remove_users_parser.py
WillAyd/tabcmd
1ba4a6ce1586b5ec4286aca0edff0fbaa1c69f15
[ "MIT" ]
null
null
null
from .global_options import * class RemoveUserParser: """ Parser to removeusers command """ @staticmethod def remove_user_parser(manager, command): """Method to parse remove user arguments passed by the user""" remove_users_parser = manager.include(command) remove_users_pa...
31.411765
80
0.662921
501
0.938202
0
0
422
0.790262
0
0
151
0.282772
4eea4879abfe5efa38a70bbb4827cc57672e6417
6,819
py
Python
Lab6/passengers.py
programiranje3/v2020
93c9793aadfea1c15107447951e2db5284fe8802
[ "MIT" ]
null
null
null
Lab6/passengers.py
programiranje3/v2020
93c9793aadfea1c15107447951e2db5284fe8802
[ "MIT" ]
null
null
null
Lab6/passengers.py
programiranje3/v2020
93c9793aadfea1c15107447951e2db5284fe8802
[ "MIT" ]
null
null
null
# # Create the FlightService enumeration that defines the following items (services): # (free) snack, (free) refreshments, (free) meal, priority boarding, # (free) onboard wifi, and an item for cases when services are not specified. # from enum import Enum class FlightService(Enum): unspecified = 0 snack = 1...
36.079365
118
0.69585
3,069
0.450066
0
0
1,244
0.182431
0
0
3,740
0.548468
4eea98d24b1e30d22ba208bedbdfdc1f2bbee460
722
py
Python
src/documents/management/commands/generate_documents.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
8
2016-01-29T11:53:40.000Z
2020-03-02T22:42:02.000Z
src/documents/management/commands/generate_documents.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
289
2015-03-23T07:42:52.000Z
2022-03-11T23:26:10.000Z
src/documents/management/commands/generate_documents.py
Talengi/phase
60ff6f37778971ae356c5b2b20e0d174a8288bfe
[ "MIT" ]
7
2015-12-08T09:03:20.000Z
2020-05-11T15:36:51.000Z
#!/usr/bin/python # -*- coding: utf-8 -*- from django.core.management.base import BaseCommand from documents.tests.utils import generate_random_documents from categories.models import Category class Command(BaseCommand): args = '<number_of_documents> <category_id>' help = 'Creates a given number of random d...
26.740741
67
0.66759
524
0.725762
0
0
0
0
0
0
168
0.232687
4eeadf88e58b24119aee24c1e548e0b28afca7bf
2,004
py
Python
checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
1
2021-02-13T15:24:42.000Z
2021-02-13T15:24:42.000Z
checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
7
2021-04-12T06:54:07.000Z
2022-03-21T14:04:14.000Z
checkov/kubernetes/checks/resource/k8s/ImagePullPolicyAlways.py
Devocean8-Official/checkov
8ce61421fa838a97981ab3bd0ae2a12e541666b2
[ "Apache-2.0" ]
1
2021-12-16T03:09:55.000Z
2021-12-16T03:09:55.000Z
import re from typing import Any, Dict from checkov.common.models.consts import DOCKER_IMAGE_REGEX from checkov.common.models.enums import CheckResult from checkov.kubernetes.checks.resource.base_container_check import BaseK8sContainerCheck class ImagePullPolicyAlways(BaseK8sContainerCheck): def __init__(self) -...
39.294118
118
0.628244
1,725
0.860778
0
0
0
0
0
0
655
0.326846
4eeb6f838c4a0c27e093b28216bbce9b8353f8d9
381
py
Python
jobs/migrations/0018_rename_user_id_recruiterpage_user.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
2
2021-04-11T11:59:51.000Z
2021-04-12T06:56:23.000Z
jobs/migrations/0018_rename_user_id_recruiterpage_user.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
8
2021-04-10T10:40:27.000Z
2022-01-25T16:32:22.000Z
jobs/migrations/0018_rename_user_id_recruiterpage_user.py
digitaloxford/do-wagtail
49dd75b95109ebb38bf66aca13d3fdeb8e25d319
[ "MIT" ]
null
null
null
# Generated by Django 3.2.6 on 2021-08-05 11:05 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('jobs', '0017_rename_user_recruiterpage_user_id'), ] operations = [ migrations.RenameField( model_name='recruiterpage', old_n...
20.052632
59
0.603675
296
0.776903
0
0
0
0
0
0
123
0.322835
4eeb8ef3221f67956b15ccde258bd099c6b02706
5,154
py
Python
celescope/fusion/multi_fusion.py
frostmoure98/CeleScope
e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381
[ "MIT" ]
null
null
null
celescope/fusion/multi_fusion.py
frostmoure98/CeleScope
e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381
[ "MIT" ]
null
null
null
celescope/fusion/multi_fusion.py
frostmoure98/CeleScope
e001fa18ba3d4aaf3f5bc40aa9386fa0d7866381
[ "MIT" ]
null
null
null
import os import glob import sys import argparse import re from collections import defaultdict from celescope.__init__ import __CONDA__ from celescope.fusion.__init__ import __STEPS__, __ASSAY__ from celescope.tools.utils import merge_report, generate_sjm from celescope.tools.utils import parse_map_col4, multi_opts, li...
30.862275
84
0.558013
0
0
0
0
0
0
0
0
1,860
0.360885