hexsha
stringlengths
40
40
size
int64
1
1.03M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
3
239
max_stars_repo_name
stringlengths
5
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
191k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
3
239
max_issues_repo_name
stringlengths
5
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
67k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
3
239
max_forks_repo_name
stringlengths
5
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.03M
avg_line_length
float64
1
958k
max_line_length
int64
1
1.03M
alphanum_fraction
float64
0
1
79621b47f5364bd8997a38fe880550955bf81447
613
py
Python
src/voluntario/migrations/0002_auto_20200917_1636.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/voluntario/migrations/0002_auto_20200917_1636.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
src/voluntario/migrations/0002_auto_20200917_1636.py
Akijunior/Atados
255c9c9137e48aa82fdea63f9d6d65a3720c3f92
[ "MIT" ]
null
null
null
# Generated by Django 3.1.1 on 2020-09-17 19:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('voluntario', '0001_initial'), ] operations = [ migrations.AlterField( model_name='voluntario', name='bairro', ...
25.541667
87
0.598695
79621bc465bfe68311fcf54666cda227095cbb33
55
py
Python
restclients/sws/campus.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/sws/campus.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
restclients/sws/campus.py
uw-it-cte/uw-restclients
2b09348bf066e5508304401f93f281805e965af5
[ "Apache-2.0" ]
null
null
null
from restclients.sws.v5.campus import get_all_campuses
27.5
54
0.872727
79621bc4ab9a277c453bfbcf7cafac5c22b96688
184
py
Python
python/setup.py
dm807cam/Kgen
eb6bf156beebbd4da62851ab97ae3e7ac7edffad
[ "MIT" ]
null
null
null
python/setup.py
dm807cam/Kgen
eb6bf156beebbd4da62851ab97ae3e7ac7edffad
[ "MIT" ]
3
2022-02-03T14:07:29.000Z
2022-03-31T13:55:38.000Z
python/setup.py
dm807cam/Kgen
eb6bf156beebbd4da62851ab97ae3e7ac7edffad
[ "MIT" ]
2
2022-03-30T13:12:18.000Z
2022-03-31T17:37:14.000Z
from setuptools import setup, find_packages setup( packages=find_packages(), package_data={'kgen': ['coefficients/*.json']}, include_package_data=True, zip_safe=True)
23
51
0.717391
79621bea0a70e49bb4b450cdffd405060452e3a0
241,121
py
Python
controllerconfig/controllerconfig/controllerconfig/configassistant.py
jackiehjm/stx-config
59d25eed6f93fcbc2266775b936990bcf649bf84
[ "Apache-2.0" ]
null
null
null
controllerconfig/controllerconfig/controllerconfig/configassistant.py
jackiehjm/stx-config
59d25eed6f93fcbc2266775b936990bcf649bf84
[ "Apache-2.0" ]
null
null
null
controllerconfig/controllerconfig/controllerconfig/configassistant.py
jackiehjm/stx-config
59d25eed6f93fcbc2266775b936990bcf649bf84
[ "Apache-2.0" ]
null
null
null
""" Copyright (c) 2014-2018 Wind River Systems, Inc. SPDX-License-Identifier: Apache-2.0 """ from six.moves import configparser import datetime import errno import getpass import hashlib import keyring import netifaces import os import re import stat import subprocess import textwrap import time import pyudev from ...
44.000182
79
0.541305
79621c65878676b6e1ef46523a496eac1c4230e2
2,237
py
Python
migrations/0001_initial.py
drewscholz/cascade-mountain-climber
ef1a6d1f7fdc9633718f421b5743b5f3ab9ba272
[ "MIT" ]
null
null
null
migrations/0001_initial.py
drewscholz/cascade-mountain-climber
ef1a6d1f7fdc9633718f421b5743b5f3ab9ba272
[ "MIT" ]
null
null
null
migrations/0001_initial.py
drewscholz/cascade-mountain-climber
ef1a6d1f7fdc9633718f421b5743b5f3ab9ba272
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2019-07-08 12:54 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 = [ migrations...
38.568966
132
0.59544
79621d8f60db06124d8ebf317138179463a28521
5,437
py
Python
nlp/processors/preprocess.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
4
2021-11-10T03:49:28.000Z
2022-03-24T02:18:44.000Z
nlp/processors/preprocess.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
null
null
null
nlp/processors/preprocess.py
zhihao-chen/NLP-experiments
c7512276050f5b8489adb4c745fa970ea8119646
[ "MIT" ]
1
2021-11-14T18:01:18.000Z
2021-11-14T18:01:18.000Z
# -*- coding: utf8 -*- """ ====================================== Project Name: NLP File Name: preprocess Author: czh Create Date: 2021/11/9 -------------------------------------- Change Activity: ====================================== """ import regex import unicodedata def is_chinese_char(char)...
35.077419
122
0.601619
79621eaba018734808fb2ffa2a51c45b1cd5cd4b
1,172
py
Python
vendor/github.com/twitchtv/twirp/internal/twirptest/importmapping/y/y_pb2_twirp.py
nedrocks/switch-const-test
2599b8ea47ddddbc95c51b9e55f01064b5c48929
[ "MIT" ]
null
null
null
vendor/github.com/twitchtv/twirp/internal/twirptest/importmapping/y/y_pb2_twirp.py
nedrocks/switch-const-test
2599b8ea47ddddbc95c51b9e55f01064b5c48929
[ "MIT" ]
null
null
null
vendor/github.com/twitchtv/twirp/internal/twirptest/importmapping/y/y_pb2_twirp.py
nedrocks/switch-const-test
2599b8ea47ddddbc95c51b9e55f01064b5c48929
[ "MIT" ]
null
null
null
# Code generated by protoc-gen-twirp_python v5.10.0, DO NOT EDIT. # source: y/y.proto try: import httplib from urllib2 import Request, HTTPError, urlopen except ImportError: import http.client as httplib from urllib.request import Request, urlopen from urllib.error import HTTPError import json from...
28.585366
79
0.613481
79621ee22b23c1dfe4e1667a073ea2f95b410675
3,578
py
Python
sips/h/grab.py
AnandIJain/sip
7eadee83a1bf5d447efd42ebab69197a4e73d52a
[ "MIT" ]
5
2019-09-11T15:44:56.000Z
2021-06-13T13:53:59.000Z
sips/h/grab.py
AnandIJain/sip
7eadee83a1bf5d447efd42ebab69197a4e73d52a
[ "MIT" ]
19
2019-09-26T21:17:24.000Z
2020-05-03T06:35:33.000Z
sips/h/grab.py
anandijain/sip
7eadee83a1bf5d447efd42ebab69197a4e73d52a
[ "MIT" ]
2
2019-04-13T00:44:25.000Z
2019-06-26T02:35:30.000Z
""" requesting and parsing data with requests, bs4, and pandas """ from concurrent.futures import ThreadPoolExecutor import time import pandas as pd import bs4 import requests as r from sips.h import parse from sips.sportsref import utils as sr_utils HEADERS = {"User-Agent": "Mozilla/5.0"} def comments(link: str,...
20.563218
86
0.599497
79621f0ddb64c6d293b3f66f3e129a494a90fd7f
12,188
py
Python
training.py
celtic108/face-decomp
f1f0b75fd45b4a6d1b8fe9991ddc381a651b5b18
[ "MIT" ]
null
null
null
training.py
celtic108/face-decomp
f1f0b75fd45b4a6d1b8fe9991ddc381a651b5b18
[ "MIT" ]
null
null
null
training.py
celtic108/face-decomp
f1f0b75fd45b4a6d1b8fe9991ddc381a651b5b18
[ "MIT" ]
null
null
null
import numpy as np import tensorflow.compat.v1 as tf tf.disable_v2_behavior() import image_utils from data_loader import get_batch import training_params as params import network_utils import time import sys def update_running_loss(rl, l, i): i = min(i, 99) rl = (rl * i + l) / (i + 1) return rl training...
56.688372
164
0.645963
79621fad6c5bf684de6841d3b0dc605f045649bd
3,656
py
Python
resnet/markov_grid_search.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
resnet/markov_grid_search.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
1
2020-12-01T07:11:08.000Z
2020-12-01T09:28:55.000Z
resnet/markov_grid_search.py
jjjump-tutu/depository
2667e2217c4e0ee1dcdbcf2f94630487d3c14c70
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Sun Mar 17 23:2 7:28 2019 @author: Winham 网络测试 """ import os import numpy as np from keras.models import load_model from keras.utils import to_categorical from data_preprocess import * import mit_utils as utils import time import matplotlib.pyplot as plt import...
31.517241
95
0.547867
7962203bca6bd70bebc50f7746a9655b716cdac0
8,505
py
Python
pygram/t_PyGram.py
timtadh/PyGram
b4c67aa1ea5bc5df3e1546bfefd5355ed511e83d
[ "BSD-3-Clause" ]
4
2017-03-15T12:13:18.000Z
2017-10-22T06:04:37.000Z
pygram/t_PyGram.py
timtadh/PyGram
b4c67aa1ea5bc5df3e1546bfefd5355ed511e83d
[ "BSD-3-Clause" ]
null
null
null
pygram/t_PyGram.py
timtadh/PyGram
b4c67aa1ea5bc5df3e1546bfefd5355ed511e83d
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- #Author: Tim Henderson and Tyler Goeringer #Email: tim.tadh@gmail.com and tyler.goeringer@gmail.com #For licensing see the LICENSE file in the top level directory. """ This file provides unit testing for the different parts of the PQ-Gram algorithm. """ import PyGram, t...
40.308057
87
0.501352
7962206d41efe5fd574287dd59172ded736f8272
788
py
Python
profiles_api/migrations/0002_profilefeeditem.py
shrey199325/profiles-rest-api-django
0fb1d18fe895d0b4526b6f6db4643921b6351e4e
[ "MIT" ]
null
null
null
profiles_api/migrations/0002_profilefeeditem.py
shrey199325/profiles-rest-api-django
0fb1d18fe895d0b4526b6f6db4643921b6351e4e
[ "MIT" ]
7
2019-12-05T00:27:31.000Z
2022-02-10T11:10:26.000Z
profiles_api/migrations/0002_profilefeeditem.py
shrey199325/profiles-rest-api-django
0fb1d18fe895d0b4526b6f6db4643921b6351e4e
[ "MIT" ]
null
null
null
# Generated by Django 2.2 on 2019-10-09 19:31 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('profiles_api', '0001_initial'), ] operations = [ migrations.CreateModel( ...
31.52
126
0.633249
796220c935544d02460d9557b8cba983936a28d0
1,409
py
Python
pelagos_processing/refactor/ais.py
SkyTruth/pelagos-data
9ebf58e490058e38409d3f1f552ac4ca76bf2167
[ "MIT" ]
1
2016-10-04T17:09:39.000Z
2016-10-04T17:09:39.000Z
pelagos_processing/refactor/ais.py
SkyTruth/pelagos-data
9ebf58e490058e38409d3f1f552ac4ca76bf2167
[ "MIT" ]
1
2016-02-11T20:51:40.000Z
2016-02-12T17:46:47.000Z
pelagos_processing/refactor/ais.py
SkyTruth/pelagos-data
9ebf58e490058e38409d3f1f552ac4ca76bf2167
[ "MIT" ]
null
null
null
# This document is part of pelagos-data # https://github.com/skytruth/pelagos-data # =========================================================================== # # # The MIT License (MIT) # # Copyright (c) 2014 SkyTruth # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this so...
40.257143
81
0.670688
7962212004dbaccb25e080af4bd1439bc8c82bd4
18,788
py
Python
nova/scheduler/host_manager.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/scheduler/host_manager.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
nova/scheduler/host_manager.py
osrg/nova
14b6bc655145c832bd9c822e48f877818e0e53ff
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2011 OpenStack Foundation # 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 ...
39.72093
79
0.616617
79622204177dedf1c22d13facaedb48691de7b4e
355
py
Python
services/github/github.py
DenisMaley/repo-se
429bd22312679a112a4d426ab679afa1549d91ca
[ "MIT" ]
null
null
null
services/github/github.py
DenisMaley/repo-se
429bd22312679a112a4d426ab679afa1549d91ca
[ "MIT" ]
6
2020-10-12T18:36:23.000Z
2020-10-12T20:55:35.000Z
services/github/github.py
DenisMaley/repo-se
429bd22312679a112a4d426ab679afa1549d91ca
[ "MIT" ]
null
null
null
import requests from nameko.rpc import rpc from envyaml import EnvYAML config = EnvYAML('config.yml') class GithubService: name = "github_service" @rpc def search(self, q): payload = {'q': q} r = requests.get( config['GITHUB_API'], params=payload ) ...
17.75
40
0.574648
796222768d619d9a12daf5d29c23805e7bb34365
965
py
Python
sches.py
dongdawang/ssrmgr
a9abedf8dc012bf6f421f95a1c215b5788f34322
[ "MIT" ]
null
null
null
sches.py
dongdawang/ssrmgr
a9abedf8dc012bf6f421f95a1c215b5788f34322
[ "MIT" ]
1
2021-06-01T22:59:31.000Z
2021-06-01T22:59:31.000Z
sches.py
dongjinhai/ssrmgr
a9abedf8dc012bf6f421f95a1c215b5788f34322
[ "MIT" ]
1
2019-09-24T09:37:52.000Z
2019-09-24T09:37:52.000Z
import logging.handlers from apscheduler.schedulers.blocking import BlockingScheduler from mgr import UserMgr, HostMgr handler = logging.handlers.RotatingFileHandler('log/ssrmgr.log', maxBytes=5*1024*1024, backupCount=5) logging.basicConfig( format='[%(asctime)s-%(filename)s-%(levelname)s:%(message)s]', leve...
20.104167
101
0.658031
796222b07861fd9f3425b3b69b52401405ec3d94
872
py
Python
backend/Film/views.py
jspaeza/AppDjangoVue
40162d9b7597b7bdce0a0f3cc33f00d057d7388b
[ "Apache-2.0" ]
null
null
null
backend/Film/views.py
jspaeza/AppDjangoVue
40162d9b7597b7bdce0a0f3cc33f00d057d7388b
[ "Apache-2.0" ]
4
2021-03-09T18:30:16.000Z
2022-02-18T11:11:59.000Z
backend/Film/views.py
jspaeza/AppDjangoVue
40162d9b7597b7bdce0a0f3cc33f00d057d7388b
[ "Apache-2.0" ]
null
null
null
from .models import Film from rest_framework import viewsets from .serializers import FilmSerializer from rest_framework.parsers import FileUploadParser from rest_framework.response import Response from rest_framework.views import APIView from rest_framework import status class FilmView(APIView): """ ...
36.333333
87
0.724771
796222cdd2a5a285fa09237142b171b5db46744a
7,916
py
Python
owongen.py
noopwafel/owongen
7cada17e8351147edd752e1b151219af8931e645
[ "MIT" ]
2
2020-01-14T13:25:47.000Z
2020-01-17T14:21:38.000Z
owongen.py
noopwafel/owongen
7cada17e8351147edd752e1b151219af8931e645
[ "MIT" ]
null
null
null
owongen.py
noopwafel/owongen
7cada17e8351147edd752e1b151219af8931e645
[ "MIT" ]
null
null
null
#!/usr/bin/python3 import usb.core import usb.util # based on the docs for the AG Series Waveform Generator SCPI Protocol # tested on the AG2052F at revspace # MIT licensed, see LICENSE WRITE_EP = 0x03 READ_EP = 0x81 Functions = [ 'SINE', 'SQUare', 'RAMP', 'PULSe', 'NOISe', 'ARB', 'DC', 'AM', 'FM', 'PM', 'FSK', 'PWM...
31.043137
84
0.588176
796223d5dbde73520840e27b2258d68b5f988f65
10,579
py
Python
NLP Learning Schedule/QA System/project_job_bot/actions/actions.py
coder-yuzhiwei/iechub
d13ba79bef46acb1fbabd206a33cad9fa6e760c1
[ "Apache-2.0" ]
2
2021-11-16T02:36:03.000Z
2022-03-23T11:45:46.000Z
NLP Learning Schedule/QA System/project_job_bot/actions/actions.py
coder-yuzhiwei/iechub
d13ba79bef46acb1fbabd206a33cad9fa6e760c1
[ "Apache-2.0" ]
null
null
null
NLP Learning Schedule/QA System/project_job_bot/actions/actions.py
coder-yuzhiwei/iechub
d13ba79bef46acb1fbabd206a33cad9fa6e760c1
[ "Apache-2.0" ]
1
2022-03-23T11:42:52.000Z
2022-03-23T11:42:52.000Z
from abc import ABC from typing import Dict, Text, Any, List, Union, Optional import json from rasa_sdk import Tracker, Action from rasa_sdk.events import UserUtteranceReverted, Restarted, SlotSet, SessionStarted, ActionExecuted, EventType from rasa_sdk.executor import CollectingDispatcher from rasa_sdk.forms import Fo...
35.381271
152
0.594952
7962253463fdb123ce96900c372125b0da5d19fd
1,718
py
Python
xlsxwriter/test/comparison/test_image11.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
1
2015-05-19T22:17:15.000Z
2015-05-19T22:17:15.000Z
xlsxwriter/test/comparison/test_image11.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
xlsxwriter/test/comparison/test_image11.py
sontek/XlsxWriter
7f17a52f95be9ecfb9c7f213fc0a02e0f625c6ec
[ "BSD-2-Clause-FreeBSD" ]
null
null
null
############################################################################### # # Tests for XlsxWriter. # # Copyright (c), 2013-2014, John McNamara, jmcnamara@cpan.org # import unittest import os from ...workbook import Workbook from ..helperfunctions import _compare_xlsx_files class TestCompareXLSXFiles(unittest....
26.84375
97
0.53085
796225530b7471fe2b984345c8d96756854737d1
2,648
py
Python
dags/k8s_odc_db_migrate_schema.py
digitalearthafrica/deafrica-airflow
2993495671dbf3a6f2dd08dd23c44adcee330493
[ "Apache-2.0" ]
1
2020-12-08T21:38:02.000Z
2020-12-08T21:38:02.000Z
dags/k8s_odc_db_migrate_schema.py
digitalearthafrica/deafrica-airflow
2993495671dbf3a6f2dd08dd23c44adcee330493
[ "Apache-2.0" ]
31
2020-06-01T22:55:43.000Z
2021-08-18T01:03:39.000Z
dags/k8s_odc_db_migrate_schema.py
digitalearthafrica/deafrica-airflow
2993495671dbf3a6f2dd08dd23c44adcee330493
[ "Apache-2.0" ]
2
2020-06-01T23:28:37.000Z
2021-02-26T05:44:52.000Z
# -*- coding: utf-8 -*- """ ### DEA ODC prod database - migrate schema DAG to manually migrate schema for ODC DB when new version of explorer is deployed. NOTE: explorer_admin user permission boundary is bound to `cubedash` schema only. So, when schema upgrade require to create agdc additional index, those steps...
30.090909
86
0.703927
79622616d37a34a546c4414b5b7b975b7f71afa3
491
py
Python
src/olympia/browse/urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
3
2020-03-05T18:17:14.000Z
2020-03-09T01:24:38.000Z
src/olympia/browse/urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
6
2020-09-28T03:15:57.000Z
2021-09-28T23:33:19.000Z
src/olympia/browse/urls.py
shashwatsingh/addons-server
8fce98901104349055a828b5a47865f5e8f4120b
[ "BSD-3-Clause" ]
1
2020-06-04T10:18:59.000Z
2020-06-04T10:18:59.000Z
from django.conf.urls import url from olympia.amo.views import frontend_view urlpatterns = [ url(r'^language-tools/(?P<category>[^/]+)?$', frontend_view, name='browse.language-tools'), url(r'^themes/(?P<category>[^/]+)?$', frontend_view, name='browse.themes'), url(r'^extensions/(?:(?P<cat...
30.6875
65
0.610998
79622647f554b8bda13a7d787f243c30a86d9b09
1,641
py
Python
app/core/test/test_admin.py
MauricioAntonioMartinez/recipie-api-django
69fd3d097033331cb9531e5ae6220d0931ec40e5
[ "MIT" ]
null
null
null
app/core/test/test_admin.py
MauricioAntonioMartinez/recipie-api-django
69fd3d097033331cb9531e5ae6220d0931ec40e5
[ "MIT" ]
null
null
null
app/core/test/test_admin.py
MauricioAntonioMartinez/recipie-api-django
69fd3d097033331cb9531e5ae6220d0931ec40e5
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.test import Client, TestCase from django.urls import reverse class AdminSiteTest(TestCase): def setUp(self): # called before every test self.client = Client() # overwrite client variable self.admin_user = get_user_model().objects.create_...
39.071429
75
0.650823
79622768e51fa5b8d63c824ace940cbf008b5aa1
937
py
Python
Worker/WebCheck/wafw00f/plugins/isaserver.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
1
2020-12-16T13:14:05.000Z
2020-12-16T13:14:05.000Z
Worker/WebCheck/wafw00f/plugins/isaserver.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
null
null
null
Worker/WebCheck/wafw00f/plugins/isaserver.py
p4sschen/Toy4Recon
e4fa6a512b238cca6d6d072ed5c66899de60bb06
[ "MIT" ]
null
null
null
#!/usr/bin/env python NAME = 'ISA Server (Microsoft)' def is_waf(self): isaservermatch = [ 'Forbidden ( The server denied the specified Uniform Resource Locator (URL). Contact the server administrator. )', 'Forbidden ( The ISA Server denied the specified Uniform Resource Locator (URL)' ] ...
37.48
138
0.630736
796228a632c6e5d1c4aadf267e4c0a58dae2907d
4,956
py
Python
airflow/providers/apache/spark/operators/spark_sql.py
odavid/airflow
7269d15adfb74188359757b1705485f5d368486a
[ "Apache-2.0" ]
1
2021-04-16T12:40:40.000Z
2021-04-16T12:40:40.000Z
airflow/providers/apache/spark/operators/spark_sql.py
odavid/airflow
7269d15adfb74188359757b1705485f5d368486a
[ "Apache-2.0" ]
9
2020-07-28T15:07:03.000Z
2022-03-29T22:27:52.000Z
airflow/providers/apache/spark/operators/spark_sql.py
odavid/airflow
7269d15adfb74188359757b1705485f5d368486a
[ "Apache-2.0" ]
1
2020-12-09T00:20:55.000Z
2020-12-09T00:20:55.000Z
# # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not...
39.023622
83
0.617232
796228c551cbb29cd480a8fe67b6ca04c83bf1dd
2,673
py
Python
amiet_tools/functions/discretizers.py
Toktom/amiet_tools
e4104db9a0c3784159378f680ebb89caa5ada053
[ "BSD-3-Clause" ]
null
null
null
amiet_tools/functions/discretizers.py
Toktom/amiet_tools
e4104db9a0c3784159378f680ebb89caa5ada053
[ "BSD-3-Clause" ]
null
null
null
amiet_tools/functions/discretizers.py
Toktom/amiet_tools
e4104db9a0c3784159378f680ebb89caa5ada053
[ "BSD-3-Clause" ]
null
null
null
"""Author: Fabio Casagrande Hirono""" import numpy as np def chord_sampling(b, Nx=200, exp_length=2): """ Calculates 'Nx' points non-uniformly sampled over the half-open interval (-b, b], with the leading edge at '-b'. Parameters ---------- b : float Airfoil semichord, in meters. ...
26.205882
81
0.634867
79622923726992f3d70c637dffd8bfd0a3b59439
27,568
py
Python
fairseq/models/nat/levenshtein_transformer.py
RunxinXu/fairseq
b8ce75a547b6b4e9d8035d3183e45878cc42cd71
[ "MIT" ]
6
2021-04-23T09:50:33.000Z
2022-03-18T10:16:06.000Z
fairseq/models/nat/levenshtein_transformer.py
RunxinXu/fairseq
b8ce75a547b6b4e9d8035d3183e45878cc42cd71
[ "MIT" ]
null
null
null
fairseq/models/nat/levenshtein_transformer.py
RunxinXu/fairseq
b8ce75a547b6b4e9d8035d3183e45878cc42cd71
[ "MIT" ]
1
2021-07-19T08:39:09.000Z
2021-07-19T08:39:09.000Z
# Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. import torch import torch.nn as nn import torch.nn.functional as F from fairseq.iterative_refinement_generator import DecoderOut from fairseq...
37.254054
120
0.642992
79622943c55be4ebad1cfc8130a2b11146605182
25,939
py
Python
autogluon/utils/tabular/ml/models/ensemble/bagged_ensemble_model.py
fishfacegit/autogluon
7c466d47c7727187afe434a85e49c3e8eb98f8e6
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/models/ensemble/bagged_ensemble_model.py
fishfacegit/autogluon
7c466d47c7727187afe434a85e49c3e8eb98f8e6
[ "Apache-2.0" ]
null
null
null
autogluon/utils/tabular/ml/models/ensemble/bagged_ensemble_model.py
fishfacegit/autogluon
7c466d47c7727187afe434a85e49c3e8eb98f8e6
[ "Apache-2.0" ]
2
2020-12-13T16:40:04.000Z
2021-03-08T09:14:16.000Z
import copy import logging import os import time from collections import Counter from statistics import mean import numpy as np import pandas as pd from ..abstract.abstract_model import AbstractModel from ...constants import MULTICLASS, REGRESSION, SOFTCLASS, REFIT_FULL_SUFFIX from ...utils import generate_kfold from...
49.313688
246
0.647905
7962297c1d921c1924756c2c1738f155f3044582
1,900
py
Python
apps/api/openapi_server/models/challenge_platform_create_response.py
rrchai/challenge-registry
6dcba8f10575820776300a1bcdcfbe924d0cf78a
[ "Apache-2.0" ]
1
2022-03-07T13:26:07.000Z
2022-03-07T13:26:07.000Z
apps/api/openapi_server/models/challenge_platform_create_response.py
rrchai/challenge-registry
6dcba8f10575820776300a1bcdcfbe924d0cf78a
[ "Apache-2.0" ]
157
2021-06-16T20:45:10.000Z
2022-03-05T00:16:06.000Z
apps/api/openapi_server/models/challenge_platform_create_response.py
rrchai/challenge-registry
6dcba8f10575820776300a1bcdcfbe924d0cf78a
[ "Apache-2.0" ]
6
2022-02-13T04:26:07.000Z
2022-03-16T14:46:26.000Z
# coding: utf-8 from __future__ import absolute_import from datetime import date, datetime # noqa: F401 from typing import List, Dict # noqa: F401 from openapi_server.models.base_model_ import Model from openapi_server import util class ChallengePlatformCreateResponse(Model): """NOTE: This class is auto gene...
27.536232
107
0.635263
796229e9b6abbdd106d3ba996a78bb55e69e3e2f
993
py
Python
isi_sdk_9_0_0/test/test_event_eventgroup_definitions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
24
2018-06-22T14:13:23.000Z
2022-03-23T01:21:26.000Z
isi_sdk_9_0_0/test/test_event_eventgroup_definitions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
46
2018-04-30T13:28:22.000Z
2022-03-21T21:11:07.000Z
isi_sdk_9_0_0/test/test_event_eventgroup_definitions.py
mohitjain97/isilon_sdk_python
a371f438f542568edb8cda35e929e6b300b1177c
[ "Unlicense" ]
29
2018-06-19T00:14:04.000Z
2022-02-08T17:51:19.000Z
# coding: utf-8 """ Isilon SDK Isilon SDK - Language bindings for the OneFS API # noqa: E501 OpenAPI spec version: 10 Contact: sdk@isilon.com Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future__ import absolute_import import unittest import isi_sdk_9_0_0 from ...
24.219512
110
0.732125
79622b25a64ff6a0d8a66a663b952bfdc54d5578
2,493
py
Python
pyImageTranslator/utils/translator.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
pyImageTranslator/utils/translator.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
pyImageTranslator/utils/translator.py
guchengxi1994/dev-tool-for-python
dba0bd0daae535ef155c1419d19177d29303b507
[ "MIT" ]
null
null
null
import js2py import requests gg_js_code = ''' function TL(a) { var k = ""; var b = 406644; var b1 = 3293161072; var jd = "."; var $b = "+-a^+6"; var Zb = "+-3^+b+-f"; for (var e = [], f = 0, g = 0; g < a.length; g++) { var m = a.charCodeAt(g); ...
32.802632
218
0.423185
79622bab1a29b42bee05550d4b5f0f5adbcc7191
1,690
py
Python
CybORG/CybORG/Shared/Actions/ShellActionsFolder/KillProcessLinux.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
18
2021-08-20T15:07:55.000Z
2022-03-11T12:05:15.000Z
CybORG/CybORG/Shared/Actions/ShellActionsFolder/KillProcessLinux.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
7
2021-11-09T06:46:58.000Z
2022-03-31T12:35:06.000Z
CybORG/CybORG/Shared/Actions/ShellActionsFolder/KillProcessLinux.py
rafvasq/cage-challenge-1
95affdfa38afc1124f1a1a09c92fbc0ed5b96318
[ "MIT" ]
13
2021-08-17T00:26:31.000Z
2022-03-29T20:06:45.000Z
# Copyright DST Group. Licensed under the MIT license. from CybORG.Shared.Actions.ShellActionsFolder.ShellAction import ShellAction from CybORG.Shared.Enums import OperatingSystemType from CybORG.Shared.Observation import Observation class KillProcessLinux(ShellAction): # kill -9 <PID> def __init__(self, sess...
40.238095
101
0.622485
79622be06218fd781c8449348ea5b12422910138
33,034
py
Python
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py
ajay25/hue
5733a1605c1a6055a052012d6ee1c24a48658300
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py
ajay25/hue
5733a1605c1a6055a052012d6ee1c24a48658300
[ "Apache-2.0" ]
null
null
null
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py
ajay25/hue
5733a1605c1a6055a052012d6ee1c24a48658300
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # Licensed to Cloudera, Inc. under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. Cloudera, Inc. licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you ma...
30.729302
133
0.664467
79622c1546f74fccb363255d59268a17add56b88
361
py
Python
cogs/Default.py
UndefindedSimp/UndefinedSimpBot
9c92310c7922e4d988065cf1bb1ba3fc2e4f1e56
[ "MIT" ]
1
2022-03-22T14:12:40.000Z
2022-03-22T14:12:40.000Z
cogs/Default.py
UndefindedSimp/UndefinedSimpBot
9c92310c7922e4d988065cf1bb1ba3fc2e4f1e56
[ "MIT" ]
null
null
null
cogs/Default.py
UndefindedSimp/UndefinedSimpBot
9c92310c7922e4d988065cf1bb1ba3fc2e4f1e56
[ "MIT" ]
1
2022-03-23T11:47:36.000Z
2022-03-23T11:47:36.000Z
from discord.ext import commands class Default(commands.Cog): def __init__(self, bot): self.bot: commands.Bot = bot @commands.command() async def ping(self, ctx: commands.Context): """gets the bots ping""" await ctx.send(f"My Ping Is: {round(self.bot.latency * 1000, 2)} ms") def ...
25.785714
77
0.642659
79622d149312aab1109fd998384ae2471557f4b1
5,992
py
Python
bpython/curtsiesfrontend/interaction.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
2,168
2015-01-01T11:41:40.000Z
2022-03-29T07:44:48.000Z
bpython/curtsiesfrontend/interaction.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
521
2015-01-02T16:43:44.000Z
2022-03-31T12:37:55.000Z
bpython/curtsiesfrontend/interaction.py
dtrodrigues/bpython
143e4e55d8f5227149528a5880a32a516a40f14d
[ "PSF-2.0" ]
250
2015-01-08T21:28:18.000Z
2022-02-28T16:07:43.000Z
import greenlet import time from curtsies import events from ..translations import _ from ..repl import Interaction from ..curtsiesfrontend.events import RefreshRequestEvent from ..curtsiesfrontend.manual_readline import edit_keys class StatusBar(Interaction): """StatusBar and Interaction for Repl Passing o...
34.24
78
0.624499
79622d7713fa8d0a6f53ad7a5fc65a4e6f4a490d
7,963
py
Python
deployement/deployement/setup.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
deployement/deployement/setup.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
null
null
null
deployement/deployement/setup.py
bsavelev/medipy
f0da3750a6979750d5f4c96aedc89ad5ae74545f
[ "CECILL-B" ]
1
2022-03-04T05:47:08.000Z
2022-03-04T05:47:08.000Z
########################################################################## # MediPy - Copyright (C) Universite de Strasbourg, 2011-2012 # Distributed under the terms of the CeCILL-B license, as published by # the CEA-CNRS-INRIA. Refer to the LICENSE file or to # http://www.cecill.info/licences/Licence_CeCILL-B_V1-e...
42.356383
91
0.565365
79622d7d5fa6bad540c0e4609fc1e293abac5563
784
py
Python
CodeGenerator/codegenerator/models/stableTimeStepSizeModel.py
annereinarz/ExaHyPE-Workshop-Engine
714a6052a8accace0235fd2483566d7e9cbacb0a
[ "BSD-3-Clause" ]
2
2019-08-14T22:41:26.000Z
2020-02-04T19:30:24.000Z
CodeGenerator/codegenerator/models/stableTimeStepSizeModel.py
annereinarz/ExaHyPE-Workshop-Engine
714a6052a8accace0235fd2483566d7e9cbacb0a
[ "BSD-3-Clause" ]
null
null
null
CodeGenerator/codegenerator/models/stableTimeStepSizeModel.py
annereinarz/ExaHyPE-Workshop-Engine
714a6052a8accace0235fd2483566d7e9cbacb0a
[ "BSD-3-Clause" ]
3
2019-07-22T10:27:36.000Z
2020-05-11T12:25:29.000Z
## # @file This file is part of the ExaHyPE project. # @author ExaHyPE Group (exahype@lists.lrz.de) # # @section LICENSE # # Copyright (c) 2016 http://exahype.eu # All rights reserved. # # The project has received funding from the European Union's Horizon # 2020 research and innovation programme under grant agreement...
25.290323
80
0.765306
79622e1a846bbade59bf9f0602076d6da15a166d
3,215
py
Python
test/functional/p2p_timeouts.py
Diabelko/electric-cash
445ee3aecbb03303a94425327528c8a71529440f
[ "MIT" ]
5
2021-01-26T20:08:10.000Z
2021-06-18T11:15:27.000Z
test/functional/p2p_timeouts.py
Diabelko/electric-cash
445ee3aecbb03303a94425327528c8a71529440f
[ "MIT" ]
3
2021-02-01T08:33:46.000Z
2021-08-19T07:53:21.000Z
test/functional/p2p_timeouts.py
Diabelko/electric-cash
445ee3aecbb03303a94425327528c8a71529440f
[ "MIT" ]
4
2021-02-02T14:25:09.000Z
2021-05-03T05:26:37.000Z
#!/usr/bin/env python3 # Copyright (c) 2016-2018 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. """Test various net timeouts. - Create three elcashd nodes: no_verack_node - we never send a verack ...
34.569892
119
0.702333
79622ec6f0ff44d3c6429db9ed951998f5012324
617
py
Python
planterbox/tests/test_hooks_examples/__init__.py
ltamshen/planterbox
059b32a8062ad6102cfa531ce31f7fd3ea350baa
[ "MIT" ]
3
2015-05-05T18:40:19.000Z
2016-11-13T00:17:56.000Z
planterbox/tests/test_hooks_examples/__init__.py
ltamshen/planterbox
059b32a8062ad6102cfa531ce31f7fd3ea350baa
[ "MIT" ]
14
2015-05-13T18:05:26.000Z
2017-03-29T17:02:32.000Z
planterbox/tests/test_hooks_examples/__init__.py
ltamshen/planterbox
059b32a8062ad6102cfa531ce31f7fd3ea350baa
[ "MIT" ]
2
2015-05-05T23:23:46.000Z
2015-07-20T17:08:53.000Z
from planterbox import ( step, hook, ) @hook('before', 'scenario') def before_scenario_hook(test): if not hasattr(test, 'before_runs'): test.before_runs = 0 test.after_runs = 0 test.before_runs += 1 @hook('after', 'scenario') def after_scenario_hook(test): test.after_runs += 1 ...
22.035714
56
0.688817
79622f3bd301e7442eca9ab2b855491611c31863
576
py
Python
popupcad/filetypes/listwidgetitem.py
popupcad/popupcad
d3da448260cd5cb9e05417b0a723d7f73ae4e06e
[ "MIT" ]
19
2015-08-01T22:13:39.000Z
2020-03-07T03:55:46.000Z
popupcad/filetypes/listwidgetitem.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
106
2015-07-23T19:58:01.000Z
2019-05-14T03:46:08.000Z
popupcad/filetypes/listwidgetitem.py
CadQuery/popupcad
b0c7b406d4b288c7cb375340323bba0252aedbfb
[ "MIT" ]
9
2015-10-04T23:38:41.000Z
2020-07-16T03:50:34.000Z
# -*- coding: utf-8 -*- """ Written by Daniel M. Aukes and CONTRIBUTORS Email: danaukes<at>asu.edu. Please see LICENSE for full license. """ import qt.QtCore as qc import qt.QtGui as qg class ListWidgetItem(qg.QListWidgetItem): def __init__(self, data, *args, **kwargs): super(ListWidgetItem, self).__init...
25.043478
72
0.673611
79622f9bd1600962cf6fb6fb56bff727898edd5f
8,729
py
Python
cirq/ops/phased_x_gate.py
alex-treebeard/Cirq
10594c0edf7a4c26d5d21f985c6dc391197d3075
[ "Apache-2.0" ]
1
2021-01-05T19:47:55.000Z
2021-01-05T19:47:55.000Z
cirq/ops/phased_x_gate.py
rohitvuppala/Cirq
0ff2894e053e4ce3bb1b54e9b9de1cc4345d10b3
[ "Apache-2.0" ]
4
2021-01-11T10:35:37.000Z
2021-01-28T19:17:02.000Z
cirq/ops/phased_x_gate.py
rohitvuppala/Cirq
0ff2894e053e4ce3bb1b54e9b9de1cc4345d10b3
[ "Apache-2.0" ]
1
2021-12-30T21:50:00.000Z
2021-12-30T21:50:00.000Z
# Copyright 2018 The Cirq Developers # # 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in ...
37.303419
97
0.624356
79622fc61b9451ec90996dfb71bd1eee6ec55cb0
7,756
py
Python
NF/Step/AugmentedFlow.py
AWehenkel/Normalizing-Flows
fe535e25cda32781296557ac5a523a6d2ade1761
[ "BSD-3-Clause" ]
9
2020-11-20T12:36:03.000Z
2022-03-21T03:18:12.000Z
NF/Step/AugmentedFlow.py
AWehenkel/Normalizing-Flows
fe535e25cda32781296557ac5a523a6d2ade1761
[ "BSD-3-Clause" ]
null
null
null
NF/Step/AugmentedFlow.py
AWehenkel/Normalizing-Flows
fe535e25cda32781296557ac5a523a6d2ade1761
[ "BSD-3-Clause" ]
null
null
null
import torch import torch.nn as nn from ..Conditionners import AutoregressiveConditioner from ..Normalizers import AffineNormalizer from ..Step import FCNormalizingFlow, NormalizingFlowStep from ..Utils.Distributions import NormalLogDensity # Todo defined as an augmented flow step which can be composed with other flo...
45.093023
188
0.646209
796231ca0a418c843184b67f245f06d0ae15a491
6,670
py
Python
examples/lorenz.py
ArnabKar/tree_structured_rslds
94debeb7e0a42037f0234e1e2634493a593bc325
[ "MIT" ]
31
2019-02-15T22:25:13.000Z
2022-01-02T12:56:25.000Z
examples/lorenz.py
ArnabKar/tree_structured_rslds
94debeb7e0a42037f0234e1e2634493a593bc325
[ "MIT" ]
null
null
null
examples/lorenz.py
ArnabKar/tree_structured_rslds
94debeb7e0a42037f0234e1e2634493a593bc325
[ "MIT" ]
5
2019-02-15T22:25:19.000Z
2021-08-23T10:04:39.000Z
import numpy as np import numpy.random as npr from tqdm import tqdm from trslds.models import TroSLDS from numpy import newaxis as na from trslds import utils import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import matplotlib.gridspec as gridspec from trslds import initialize as init from trslds ...
37.26257
128
0.673913
7962320ce04b4fb0619bcc7f253e33908e678026
163
py
Python
rds_cluster/app.py
dkovvuri/cdk-examples
1f7bd98f293ace36b2da3cb034e8392abe0006fc
[ "Apache-2.0" ]
3
2020-01-18T17:12:28.000Z
2021-05-12T15:40:10.000Z
rds_cluster/app.py
dkovvuri/cdk-examples
1f7bd98f293ace36b2da3cb034e8392abe0006fc
[ "Apache-2.0" ]
null
null
null
rds_cluster/app.py
dkovvuri/cdk-examples
1f7bd98f293ace36b2da3cb034e8392abe0006fc
[ "Apache-2.0" ]
1
2020-01-18T17:18:46.000Z
2020-01-18T17:18:46.000Z
#!/usr/bin/env python3 from aws_cdk import core from rds_cluster_stack import RdsClusterStack app = core.App() RdsClusterStack(app, "rds-cluster") app.synth()
14.818182
45
0.766871
7962321a48f39e70339dac039290b4d207b2e9e9
1,628
py
Python
fastapi/psql_minimum/main.py
zacfrulloni/Rust-Full-Stack
2c242b2f249d2a3a3e62f84d21e58cfa00ceb1c8
[ "MIT" ]
1,091
2019-07-12T00:21:19.000Z
2022-03-30T23:23:24.000Z
fastapi/psql_minimum/main.py
zacfrulloni/Rust-Full-Stack
2c242b2f249d2a3a3e62f84d21e58cfa00ceb1c8
[ "MIT" ]
23
2019-11-23T12:13:29.000Z
2022-02-27T11:00:43.000Z
fastapi/psql_minimum/main.py
zacfrulloni/Rust-Full-Stack
2c242b2f249d2a3a3e62f84d21e58cfa00ceb1c8
[ "MIT" ]
98
2019-07-17T14:27:55.000Z
2022-02-26T07:28:07.000Z
from typing import List from fastapi import Depends, FastAPI, HTTPException from sqlalchemy.orm import Session import crud, models, schemas from database import SessionLocal, engine models.Base.metadata.create_all(bind=engine) app = FastAPI() # Dependency def get_db(): try: db = SessionLocal() ...
29.071429
79
0.713145
7962325f5d74e5ce8833f955a64d09906ef9bb2c
4,842
py
Python
hw/hw02/hw02.py
weijiew/cs61a-sp20
73322b87fe40add0350e0076ad3589fbee1f28ec
[ "MIT" ]
4
2020-10-15T13:39:30.000Z
2021-06-22T09:30:16.000Z
hw/hw02/hw02.py
weijiew/cs61a-sp20
73322b87fe40add0350e0076ad3589fbee1f28ec
[ "MIT" ]
null
null
null
hw/hw02/hw02.py
weijiew/cs61a-sp20
73322b87fe40add0350e0076ad3589fbee1f28ec
[ "MIT" ]
null
null
null
""" Homework 2: Higher Order Functions""" HW_SOURCE_FILE = 'hw02.py' from operator import add, mul, sub square = lambda x: x * x identity = lambda x: x triple = lambda x: 3 * x increment = lambda x: x + 1 ###################### # Required Questions # ###################### def product(n, f): """Return the pr...
25.21875
92
0.555143
7962336f366b45853f07fe2474ac378024eb5ef4
1,931
py
Python
apps/EHD/run.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2021-12-12T13:26:06.000Z
2022-03-03T16:14:53.000Z
apps/EHD/run.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
5
2019-03-01T07:08:46.000Z
2019-04-28T07:32:42.000Z
apps/EHD/run.py
rboman/progs
c60b4e0487d01ccd007bcba79d1548ebe1685655
[ "Apache-2.0" ]
2
2017-12-13T13:13:52.000Z
2019-03-13T20:08:15.000Z
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # runs a test as if it was installed if __name__ == "__main__": import sys import os # adds "." to the pythonpath thisdir = os.path.split(os.path.abspath(__file__))[0] thisdir = os.path.normcase(thisdir) sys.path.append(thisdir) # add binary d...
35.759259
84
0.571207
79623382084af3efa3d51dfd0187352a37e85ce1
122
py
Python
tests/conftest.py
EduardManzhula/stats_and_gender_prediction
2b661b3cd331c6672580462273c7c746b135adfd
[ "MIT" ]
null
null
null
tests/conftest.py
EduardManzhula/stats_and_gender_prediction
2b661b3cd331c6672580462273c7c746b135adfd
[ "MIT" ]
null
null
null
tests/conftest.py
EduardManzhula/stats_and_gender_prediction
2b661b3cd331c6672580462273c7c746b135adfd
[ "MIT" ]
null
null
null
""" - https://docs.pytest.org/en/stable/fixture.html - https://docs.pytest.org/en/stable/writing_plugins.html """
24.4
60
0.672131
7962347195e4c511040a3a8abf7fd4f40d099ce8
8,257
py
Python
looking_for_group/gamer_profiles/serializers.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/gamer_profiles/serializers.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
looking_for_group/gamer_profiles/serializers.py
andrlik/looking-for-group
0b1cecb37ef0f6d75692fd188130e2c60d09b7d2
[ "BSD-3-Clause" ]
null
null
null
from rest_framework import serializers from ..game_catalog.serializers import APIURLMixin from ..games.models import GamePosting, Player from ..games.serializers import GameDataSerializer from ..users.models import User from . import models class GamerCommunitySerializer(serializers.ModelSerializer): """ Ser...
30.135036
90
0.611602
796234f2022037bb1181ed3d30741e066650cea8
1,430
py
Python
rnacentral_pipeline/databases/generic/parser.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
1
2018-08-09T14:41:16.000Z
2018-08-09T14:41:16.000Z
rnacentral_pipeline/databases/generic/parser.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
60
2015-02-04T16:43:53.000Z
2022-01-27T10:28:43.000Z
rnacentral_pipeline/databases/generic/parser.py
RNAcentral/rnacentral-import-pipeline
238e573440c72581a051b16c15f56fcd25bece74
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """ Copyright [2009-2017] EMBL-European Bioinformatics Institute 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...
32.5
77
0.726573
7962358777d2b37d7e4ec24083c77e9caab4836c
6,417
py
Python
src/Python/ImageProcessing/HybridMedianComparison.py
cvandijck/VTKExamples
b6bb89414522afc1467be8a1f0089a37d0c16883
[ "Apache-2.0" ]
309
2017-05-21T09:07:19.000Z
2022-03-15T09:18:55.000Z
src/Python/ImageProcessing/HybridMedianComparison.py
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
379
2017-05-21T09:06:43.000Z
2021-03-29T20:30:50.000Z
src/Python/ImageProcessing/HybridMedianComparison.py
yijianmingliu/VTKExamples
dc8aac47c4384f9a2de9facbdd1ab3249f62ec99
[ "Apache-2.0" ]
170
2017-05-17T14:47:41.000Z
2022-03-31T13:16:26.000Z
#!/usr/bin/env python """ """ import vtk def main(): # colors = vtk.vtkNamedColors() fileName = get_program_parameters() # Read the image. readerFactory = vtk.vtkImageReader2Factory() reader = readerFactory.CreateImageReader2(fileName) reader.SetFileName(fileName) reader.Update() ...
37.970414
115
0.736637
79623650fa137d99b76082e2a19442ae319c6c3f
1,092
py
Python
sofi/ui/sample.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
402
2016-04-05T23:11:07.000Z
2022-02-22T21:10:49.000Z
sofi/ui/sample.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
87
2016-03-31T00:09:39.000Z
2021-02-22T04:49:25.000Z
sofi/ui/sample.py
screamingskulls/sofi
1d75bc97683151864f8a4cafb59ef8e50de63ee4
[ "MIT" ]
54
2016-03-31T00:10:33.000Z
2021-06-23T21:38:36.000Z
from .element import Element class Sample(Element): """Implements <samp> tag""" def __init__(self, text=None, cl=None, ident=None, style=None, attrs=None): super().__init__(cl=cl, ident=ident, style=style, attrs=attrs) if text: self._children.append(text) def __repr__(self):...
23.73913
79
0.509158
796236c4427f9ca6c824574e6c23552236396f2b
2,057
py
Python
illumio/util/constants.py
dsommerville-illumio/illumio-py
30e9ee4237b142a62579839ed8a21f2eb35c8b09
[ "Apache-2.0" ]
1
2022-01-18T04:55:16.000Z
2022-01-18T04:55:16.000Z
illumio/util/constants.py
dsommerville-illumio/illumio-py
30e9ee4237b142a62579839ed8a21f2eb35c8b09
[ "Apache-2.0" ]
null
null
null
illumio/util/constants.py
dsommerville-illumio/illumio-py
30e9ee4237b142a62579839ed8a21f2eb35c8b09
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- """This module provides constant values and enumerations used by the PCE REST API. Copyright: (c) 2022 Illumio License: Apache2, see LICENSE for more details. """ import re from enum import Enum, EnumMeta ACTIVE = 'active' DRAFT = 'draft' ANY_IP_LIST_NAME = 'Any (0.0.0.0/0 and ::/0)...
23.918605
121
0.656782
7962370bd9f844fb4957a32f4a866e4b7c12bc2e
35,816
py
Python
kaztron/cog/reminder.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2018-07-04T20:41:01.000Z
2021-09-08T08:10:34.000Z
kaztron/cog/reminder.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
259
2018-05-01T22:41:32.000Z
2022-02-08T23:25:00.000Z
kaztron/cog/reminder.py
Laogeodritt/KazTron
42f35e520875b458ffde7c2729865c95de606aca
[ "MIT" ]
6
2019-04-16T22:13:15.000Z
2021-12-15T08:06:38.000Z
import asyncio import logging import re from datetime import datetime, timedelta from functools import reduce from typing import List, Tuple, Dict import discord from discord.ext import commands from kaztron import KazCog, TaskInstance, task from kaztron.config import SectionView from kaztron.errors import DiscordErr...
42.638095
101
0.593869
796237a5d9546aa25c8e310a56b8df32e766736d
13,110
py
Python
framework/CodeInterfaces/PHISICS/PhisicsRelapInterface.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
2
2019-10-11T15:59:10.000Z
2021-04-08T18:23:57.000Z
framework/CodeInterfaces/PHISICS/PhisicsRelapInterface.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
1
2018-03-27T13:06:00.000Z
2018-03-27T13:06:00.000Z
framework/CodeInterfaces/PHISICS/PhisicsRelapInterface.py
sonatsen/raven
30764491e7ecaa16de2a4e0ddab3bc9e169e5f95
[ "Apache-2.0" ]
1
2017-08-29T16:09:13.000Z
2017-08-29T16:09:13.000Z
# Copyright 2017 Battelle Energy Alliance, LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed t...
52.44
220
0.721892
796239ef1d27b71bc3f5986c8144f03097e4fb8d
16,263
py
Python
python/cli/ingest.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
1
2021-10-06T02:46:48.000Z
2021-10-06T02:46:48.000Z
python/cli/ingest.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
3
2021-10-16T03:34:07.000Z
2022-02-23T05:10:12.000Z
python/cli/ingest.py
mediumroast/mr_sdk
55c7a13c5cef73e677297026b41b7ec23855391f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/python3 import os, argparse, cmd, re, magic, pyfiglet, pdfx, pydocx, datetime, spacy, pprint from pptx import Presentation def parse_cli_args(program_name='ingest', desc='A mediumroast.io example utility to ingest data into the backend.'): parser=argparse.ArgumentParser(prog=program_name, description=d...
39.09375
173
0.551989
79623ad65be29187d7ba2ebb2ac0f2198a6a3f75
2,283
py
Python
models/examples/e_14_library.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
17
2022-03-10T22:28:18.000Z
2022-03-30T11:50:49.000Z
models/examples/e_14_library.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
8
2022-03-06T15:16:26.000Z
2022-03-22T00:37:34.000Z
models/examples/e_14_library.py
mostarz93/credmark-models-py
8e6127983f9d13548740845e9aca8c43f12b1c6d
[ "MIT" ]
13
2022-03-14T15:02:25.000Z
2022-03-31T17:01:40.000Z
import bs4 import matplotlib import numpy import pandas import pyarrow import scipy import statsmodels import xlrd import xlsxwriter from bs4 import BeautifulSoup from credmark.cmf.model import Model from credmark.dto import EmptyInput from models.dtos.example import ExampleLibrariesOutput @Model.describe( slug='...
29.269231
84
0.545773
79623c67f8fccf95cd6f9c9067ab419c68a689df
8,522
py
Python
tps/git_orm/models/tests/test_query.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
5
2019-02-26T06:10:43.000Z
2021-07-24T17:11:45.000Z
tps/git_orm/models/tests/test_query.py
akmohtashami/tps-web
9dab3ffe97c21f658be30ce2f2711dd93e4ba60f
[ "MIT" ]
3
2019-08-15T13:56:03.000Z
2021-06-10T18:43:16.000Z
tps/git_orm/models/tests/test_query.py
jonathanirvings/tps-web
46519347d4fc8bdced9b5bceb6cdee5ea4e508f2
[ "MIT" ]
2
2018-12-28T13:12:59.000Z
2020-12-25T18:42:13.000Z
from itertools import combinations from random import choice, shuffle from nose.tools import * from nose.plugins.skip import SkipTest from mock import Mock from git_orm.models.query import ( Query, Q, Inversion, Intersection, Union, Slice, Ordered) def generate_conditions(): operators = Q.OPERATORS.keys() ...
31.10219
78
0.563131
79623eb8dfeefe365fe2beb6f3339969d286ec0b
29,314
py
Python
thingsboard_gateway/connectors/ble/ble_connector.py
120386135/thingsboard-gateway
a4d42458030725adfb7208ee31b0b861e833ccc0
[ "Apache-2.0" ]
1
2021-12-10T08:28:15.000Z
2021-12-10T08:28:15.000Z
thingsboard_gateway/connectors/ble/ble_connector.py
120386135/thingsboard-gateway
a4d42458030725adfb7208ee31b0b861e833ccc0
[ "Apache-2.0" ]
null
null
null
thingsboard_gateway/connectors/ble/ble_connector.py
120386135/thingsboard-gateway
a4d42458030725adfb7208ee31b0b861e833ccc0
[ "Apache-2.0" ]
null
null
null
# Copyright 2021. ThingsBoard # # 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 ...
61.713684
168
0.507437
79624089975e22b5866600ad7e73a8cb1b1e40a0
542
py
Python
manage.py
MartinStevko/matikNoHa
5e97db097da7e48243eeb13674bf1495fe00f67f
[ "MIT" ]
null
null
null
manage.py
MartinStevko/matikNoHa
5e97db097da7e48243eeb13674bf1495fe00f67f
[ "MIT" ]
null
null
null
manage.py
MartinStevko/matikNoHa
5e97db097da7e48243eeb13674bf1495fe00f67f
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys if __name__ == "__main__": os.environ.setdefault("DJANGO_SETTINGS_MODULE", "cmn_server.settings") try: from django.core.management import execute_from_command_line except ImportError as exc: raise ImportError( "Couldn't import Django. A...
33.875
74
0.688192
7962421cfa8d9bb395ff3ad41982ed2283f8f7ef
2,340
py
Python
12.py
Sandvich/AoC2020
6a4ed54917f38c3c8aadde88cb944303d1fde625
[ "Apache-2.0" ]
null
null
null
12.py
Sandvich/AoC2020
6a4ed54917f38c3c8aadde88cb944303d1fde625
[ "Apache-2.0" ]
null
null
null
12.py
Sandvich/AoC2020
6a4ed54917f38c3c8aadde88cb944303d1fde625
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 def load_file(): data = [] with open('12.txt', 'r') as f: for line in f: data.append([line[0], int(line[1:])]) return data class SimpleRunner: # Cardinal directions def N(self, amount): self.y += amount def S(self, amount): self.y -= a...
30.38961
111
0.589744
7962424d310f9deba4045ac5d7751764b176a4f3
201
py
Python
lang/py/pylib/code/getpass/getpass_defaults.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
13
2020-01-04T07:37:38.000Z
2021-08-31T05:19:58.000Z
lang/py/pylib/code/getpass/getpass_defaults.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
3
2020-06-05T22:42:53.000Z
2020-08-24T07:18:54.000Z
lang/py/pylib/code/getpass/getpass_defaults.py
ch1huizong/learning
632267634a9fd84a5f5116de09ff1e2681a6cc85
[ "MIT" ]
9
2020-10-19T04:53:06.000Z
2021-08-31T05:20:01.000Z
#!/usr/bin/env python """Default use of getpass. """ #end_pymotw_header import getpass try: p = getpass.getpass() except Exception, err: print 'ERROR:', err else: print 'You entered:', p
14.357143
27
0.661692
79624250df3c0fc8d0b61af4ea84465ed342fc3a
1,952
py
Python
testGibbs.py
brkronheim/mcmc_samplers
03d8b2b9b6b6150657eabc7b509875fb16445a0e
[ "MIT" ]
null
null
null
testGibbs.py
brkronheim/mcmc_samplers
03d8b2b9b6b6150657eabc7b509875fb16445a0e
[ "MIT" ]
null
null
null
testGibbs.py
brkronheim/mcmc_samplers
03d8b2b9b6b6150657eabc7b509875fb16445a0e
[ "MIT" ]
null
null
null
""" This is example code for running the Gibbs sampler. As it is different than all the other samplers it gets its own example. """ import os import time import warnings os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf from Samplers.gibbsSampler import GibbsSampler from Utility.visualizations import v...
28.289855
83
0.680328
7962425f813c11ae46e0b150d13815c0de99c19e
5,958
py
Python
b2share/modules/access/permissions.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/access/permissions.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
null
null
null
b2share/modules/access/permissions.py
hjhsalo/b2share-new
2a2a961f7cc3a5353850e9a409fd7e879c715b0b
[ "MIT" ]
1
2020-09-29T10:56:03.000Z
2020-09-29T10:56:03.000Z
# -*- coding: utf-8 -*- # # This file is part of EUDAT B2Share. # Copyright (C) 2015, 2016, University of Tuebingen, CERN. # # B2Share is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2 of the # ...
30.71134
79
0.683787
796242e5b1fae3c46368b8b3ddf3bac385b21bef
2,198
py
Python
program_synthesis/naps/examples/seq2seq/executor.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
123
2018-06-09T00:49:39.000Z
2022-03-09T05:41:20.000Z
program_synthesis/naps/examples/seq2seq/executor.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
9
2018-06-12T01:01:17.000Z
2022-03-18T09:06:39.000Z
program_synthesis/naps/examples/seq2seq/executor.py
kavigupta/program_synthesis
0b04b1d3b63954ba3d404a8d96c4da18667a1b02
[ "Apache-2.0" ]
24
2018-06-09T00:42:46.000Z
2021-09-29T08:23:32.000Z
import copy import collections from program_synthesis.naps import uast from program_synthesis.naps.uast import lisp_to_uast from program_synthesis.naps.uast import uast_test_config ExecutionResult = collections.namedtuple('ExecutionResult', ['result', 'trace']) class ExecutorSyntaxException(Exception): pass ...
30.109589
91
0.613285
796242f355da719c8456f15aa9160e1b95caa129
5,160
py
Python
src/krdict/main.py
omarkmu/krdict.py
cef1f83914224642397bdf08dcfa205b53e8e473
[ "MIT" ]
2
2021-12-05T05:53:21.000Z
2021-12-13T01:21:13.000Z
src/krdict/main.py
omarkmu/krdict.py
cef1f83914224642397bdf08dcfa205b53e8e473
[ "MIT" ]
1
2021-10-04T01:32:24.000Z
2021-10-04T01:36:03.000Z
src/krdict/main.py
omarkmu/krdict.py
cef1f83914224642397bdf08dcfa205b53e8e473
[ "MIT" ]
null
null
null
""" Provides functions that query the Korean Learners' Dictionary API. """ from .request import send_request from .response import parse_response def advanced_search(**kwargs): """ Performs an advanced search on the Korean Learners' Dictionary API. Returns a dict with contents dependent on the value of th...
50.588235
99
0.695736
79624315945bc93aa81cfbd895f20252573ad284
5,513
py
Python
Monte-Carlo-Attacks/Monte-Carlo-CIFAR_GAN/main_bb.py
SAP-samples/security-research-mi-gen-nn
15627f73fcc497c87a67f41957f6b82881dff353
[ "Apache-2.0" ]
5
2020-02-21T15:13:57.000Z
2021-08-05T15:18:40.000Z
Monte-Carlo-Attacks/Monte-Carlo-CIFAR_GAN/main_bb.py
SAP-samples/security-research-membership-inference-against-generative-networks
15627f73fcc497c87a67f41957f6b82881dff353
[ "Apache-2.0" ]
null
null
null
Monte-Carlo-Attacks/Monte-Carlo-CIFAR_GAN/main_bb.py
SAP-samples/security-research-membership-inference-against-generative-networks
15627f73fcc497c87a67f41957f6b82881dff353
[ "Apache-2.0" ]
null
null
null
import os from GAN import GAN ''' from CGAN import CGAN from infoGAN import infoGAN from ACGAN import ACGAN from EBGAN import EBGAN from WGAN import WGAN from DRAGAN import DRAGAN from LSGAN import LSGAN from BEGAN import BEGAN ''' from utils import show_all_variables import tensorflow as tf import argparse """pars...
42.083969
161
0.629966
7962434c77f992f8fbee6db0c9cd73f2e1ad41e7
11,956
py
Python
honeysnap/sebekDecode.py
honeynet/honeysnap
9b5e9ab6b5557692b78efe788cdaf24404ddf1eb
[ "FSFAP" ]
7
2016-06-30T14:19:27.000Z
2017-07-12T12:14:53.000Z
honeysnap/sebekDecode.py
honeynet/honeysnap
9b5e9ab6b5557692b78efe788cdaf24404ddf1eb
[ "FSFAP" ]
null
null
null
honeysnap/sebekDecode.py
honeynet/honeysnap
9b5e9ab6b5557692b78efe788cdaf24404ddf1eb
[ "FSFAP" ]
2
2017-02-03T19:46:28.000Z
2018-11-21T18:14:09.000Z
################################################################################ # (c) 2005, The Honeynet Project # Author: Jed Haile jed.haile@thelogangroup.biz # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the...
43.162455
146
0.524507
79624489e024f8cf378ad14cdf0209cb67a650ce
1,790
py
Python
src/Weather.py
Enzuz-s/Weather-App
26588cf949252770a58f79c833d59fa24add1282
[ "MIT" ]
null
null
null
src/Weather.py
Enzuz-s/Weather-App
26588cf949252770a58f79c833d59fa24add1282
[ "MIT" ]
null
null
null
src/Weather.py
Enzuz-s/Weather-App
26588cf949252770a58f79c833d59fa24add1282
[ "MIT" ]
null
null
null
import tkinter as tk import requests import time from src import config def get_weather(canvas): city = textField.get() api = "https://api.openweathermap.org/data/2.5/weather?q=" + city + "&units=metric&appid=" + config.appid + "" json_data = requests.get(api).json() condition = json_data['weather'][0...
37.291667
114
0.622905
7962451151842e07064a52163dafadda9ae74b0b
4,011
py
Python
src/emcee/autocorr.py
hsinfan1996/emcee
1bfababf13f0bc4166dd4812f7dd4fbd2d78822b
[ "MIT" ]
1,021
2015-01-08T15:11:34.000Z
2022-03-26T07:29:59.000Z
src/emcee/autocorr.py
hsinfan1996/emcee
1bfababf13f0bc4166dd4812f7dd4fbd2d78822b
[ "MIT" ]
290
2015-01-23T01:30:44.000Z
2022-03-04T12:22:06.000Z
src/emcee/autocorr.py
hsinfan1996/emcee
1bfababf13f0bc4166dd4812f7dd4fbd2d78822b
[ "MIT" ]
392
2015-01-01T11:11:48.000Z
2022-03-03T18:22:50.000Z
# -*- coding: utf-8 -*- import logging import numpy as np __all__ = ["function_1d", "integrated_time", "AutocorrError"] logger = logging.getLogger(__name__) def next_pow_two(n): """Returns the next power of two greater than or equal to `n`""" i = 1 while i < n: i = i << 1 return i def fu...
31.093023
162
0.615059
79624595c466cd135d8fc297335dda62b606f487
2,752
py
Python
curriculum_experiments/task_difficulty_estimate.py
lioritan/hucrl
fb5b3aea0edf69a4169ab79d2908918111fc6072
[ "MIT" ]
null
null
null
curriculum_experiments/task_difficulty_estimate.py
lioritan/hucrl
fb5b3aea0edf69a4169ab79d2908918111fc6072
[ "MIT" ]
null
null
null
curriculum_experiments/task_difficulty_estimate.py
lioritan/hucrl
fb5b3aea0edf69a4169ab79d2908918111fc6072
[ "MIT" ]
null
null
null
import matplotlib.pyplot as plt import numpy as np import pandas as pd from rllib.util.rollout import rollout_agent from rllib.util.training.utilities import Evaluate from curriculum_experiments.environment_parameter import DiscreteParameter from curriculum_experiments.environment_wrapper import EnvironmentWrapper fro...
41.69697
111
0.608285
7962461ca47687b7819e6dc00edee38793e1d6d0
4,680
py
Python
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
null
null
null
dao/ImageDAO.py
NEU-CSYE6225-SEC03/webservice
416cff5e3c8c88ce59333393a933ea88b3b8e2c0
[ "MIT" ]
1
2022-03-09T23:46:32.000Z
2022-03-09T23:46:32.000Z
import uuid import datetime import pymysql from tool.Config import Config from tool.Logger import Logger class ImageDAO(object): def __init__(self, connect_pool): self.connect_pool = connect_pool async def userImageExist(self, user_id: str): selectResult = None async with self.conn...
37.142857
115
0.519444
796246805305b5a02d22fca9f78307c22606b589
4,702
py
Python
config/desktop/.config/ranger/commands.py
gsnewmark/dotfiles
3f079f9293e78eb2304d4acdc90cb145b7166d50
[ "MIT" ]
7
2016-11-03T20:17:22.000Z
2021-09-17T07:19:31.000Z
config/desktop/.config/ranger/commands.py
erasmas/dotfiles
fb2dbe821b637e479951ee9bb5ea8bcfed9caec8
[ "MIT" ]
null
null
null
config/desktop/.config/ranger/commands.py
erasmas/dotfiles
fb2dbe821b637e479951ee9bb5ea8bcfed9caec8
[ "MIT" ]
2
2015-03-17T18:39:04.000Z
2021-01-05T10:16:41.000Z
# This is a sample commands.py. You can add your own commands here. # # Please refer to commands_full.py for all the default commands and a complete # documentation. Do NOT add them all here, or you may end up with defunct # commands when upgrading ranger. # You always need to import ranger.api.commands here to get ...
35.089552
96
0.620374
796246ed71413faf369cf85d8b66274863ef82ea
7,929
py
Python
output/misc_plots.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
1
2019-05-23T04:11:32.000Z
2019-05-23T04:11:32.000Z
output/misc_plots.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
7
2018-08-17T05:04:57.000Z
2019-01-16T05:40:16.000Z
output/misc_plots.py
jacobseiler/rsage
b3b0a3fa3c676eab188991e37d06894396bfc74f
[ "MIT" ]
null
null
null
import matplotlib matplotlib.use('Agg') import os import numpy as np import pylab as plt import matplotlib.colors as colors import matplotlib.cm as cm from numpy import * from random import sample, seed from os.path import getsize as getFileSize import math import random import csv from io import StringIO #np.set_prin...
39.645
112
0.593644
79624701285ffda2034c3b46c409b94bfd4c118d
10,098
py
Python
allennlp/data/dataset_readers/reading_comprehension/msmarcov20_confidence.py
azraelzhor/allen-nlp-rc
b114c00a8f364b18e3c427c1a447be9c65ede551
[ "Apache-2.0" ]
null
null
null
allennlp/data/dataset_readers/reading_comprehension/msmarcov20_confidence.py
azraelzhor/allen-nlp-rc
b114c00a8f364b18e3c427c1a447be9c65ede551
[ "Apache-2.0" ]
1
2019-07-31T20:12:41.000Z
2019-07-31T20:12:41.000Z
allennlp/data/dataset_readers/reading_comprehension/msmarcov20_confidence.py
azraelzhor/allennlp-reading-comprehension
b114c00a8f364b18e3c427c1a447be9c65ede551
[ "Apache-2.0" ]
null
null
null
import json import logging from typing import Dict, List, Tuple from overrides import overrides from allennlp.common import Params from allennlp.common.file_utils import cached_path from allennlp.data.dataset_readers.dataset_reader import DatasetReader from allennlp.data.instance import Instance from allennlp.data.da...
46.967442
150
0.643098
7962470cdb8ba91b3f3789dc2107fdc1d26f9fae
911
py
Python
client/test/test_network.py
icclab/MasterMind-ServiceManager
d8e0013218bb7a5fa16d1e3c5cff06a6854815f1
[ "Apache-2.0" ]
null
null
null
client/test/test_network.py
icclab/MasterMind-ServiceManager
d8e0013218bb7a5fa16d1e3c5cff06a6854815f1
[ "Apache-2.0" ]
null
null
null
client/test/test_network.py
icclab/MasterMind-ServiceManager
d8e0013218bb7a5fa16d1e3c5cff06a6854815f1
[ "Apache-2.0" ]
2
2018-02-02T17:02:27.000Z
2021-06-29T07:42:24.000Z
# coding: utf-8 """ MasterMind Service Manager No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501 OpenAPI spec version: 1.0.0 Contact: gaea@zhaw.ch Generated by: https://github.com/swagger-api/swagger-codegen.git """ from __future...
22.219512
119
0.695939
7962477a1afd7c719f817ae3810c598d74195639
1,644
py
Python
evaluation_norm/utils/AverageMeterSet.py
MuawizChaudhary/STARTUP
03f39b34a4ec232f132173b4a1e67ea04165e52b
[ "MIT" ]
null
null
null
evaluation_norm/utils/AverageMeterSet.py
MuawizChaudhary/STARTUP
03f39b34a4ec232f132173b4a1e67ea04165e52b
[ "MIT" ]
null
null
null
evaluation_norm/utils/AverageMeterSet.py
MuawizChaudhary/STARTUP
03f39b34a4ec232f132173b4a1e67ea04165e52b
[ "MIT" ]
null
null
null
# Specify classes or functions that will be exported __all__ = ['AverageMeter', 'AverageMeterSet'] class AverageMeterSet: def __init__(self): self.meters = {} def __getitem__(self, key): print(self.meters['top1']) return self.meters[key] def update(self, name, value, n=1): ...
28.842105
91
0.595499
79624780644e229d5ea671dc70da5145e7600141
555
py
Python
corehq/apps/accounting/migrations/0042_domain_user_history__unique__and__nonnullable.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
471
2015-01-10T02:55:01.000Z
2022-03-29T18:07:18.000Z
corehq/apps/accounting/migrations/0042_domain_user_history__unique__and__nonnullable.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
14,354
2015-01-01T07:38:23.000Z
2022-03-31T20:55:14.000Z
corehq/apps/accounting/migrations/0042_domain_user_history__unique__and__nonnullable.py
dimagilg/commcare-hq
ea1786238eae556bb7f1cbd8d2460171af1b619c
[ "BSD-3-Clause" ]
175
2015-01-06T07:16:47.000Z
2022-03-29T13:27:01.000Z
# Generated by Django 1.11.20 on 2019-05-17 18:36 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('accounting', '0041_auto_20190130_1709'), ] operations = [ migrations.AlterField( model_name='domainuserhistory', n...
24.130435
61
0.601802
7962483e07bbf5e700f612f65246f3ff5e1e7b55
10,105
py
Python
unit_tests/glhe/utilities/test_functions.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
2
2018-11-06T08:04:04.000Z
2020-10-09T14:52:36.000Z
unit_tests/glhe/utilities/test_functions.py
stianchris/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
68
2018-03-27T01:43:22.000Z
2019-09-09T12:05:44.000Z
unit_tests/glhe/utilities/test_functions.py
mitchute/GLHE
80c3eecca81ffd50d5077f87027c9441292452f5
[ "MIT" ]
4
2018-05-24T03:02:44.000Z
2021-08-16T13:54:09.000Z
import os import tempfile import unittest from math import cos, sin from numpy import arange, array from numpy.linalg import solve as lin_alg_solve from scipy.interpolate.interpolate import interp1d from scipy.interpolate.interpolate import interp2d from glhe.utilities.functions import c_to_k from glhe.utilities.func...
32.181529
104
0.596437
796249582dea5b9538a78f10e4dc053975489f66
1,277
py
Python
app/core/tests/test_models.py
Darjusch/recipe-app-api
b82dd0ce4febb6c2c94892b1db91e3aeecd84c3c
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Darjusch/recipe-app-api
b82dd0ce4febb6c2c94892b1db91e3aeecd84c3c
[ "MIT" ]
null
null
null
app/core/tests/test_models.py
Darjusch/recipe-app-api
b82dd0ce4febb6c2c94892b1db91e3aeecd84c3c
[ "MIT" ]
null
null
null
from django.test import TestCase from django.contrib.auth import get_user_model class ModelTests(TestCase): def test_create_user_with_email_successful(self): """Test creating a new user with an email is successful""" email = 'test@gmx.com' password = 'Testpass123!' user = get_u...
33.605263
69
0.649178
79624b770dc31d97beca44491230aabe30c1c2be
15,383
py
Python
modeling/fixtures/dixon_coles.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
2
2021-12-06T10:36:15.000Z
2022-03-01T19:12:05.000Z
modeling/fixtures/dixon_coles.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
null
null
null
modeling/fixtures/dixon_coles.py
Fournierp/FPL
6210c6ab9d872b46a10804ba8ee9f5d0df735308
[ "Apache-2.0" ]
null
null
null
import pandas as pd import numpy as np import json from tqdm import tqdm from scipy.stats import poisson from scipy.optimize import minimize from utils import odds, clean_sheet, score_mtx, get_next_gw, time_decay from ranked_probability_score import ranked_probability_score, match_outcome import warnings # Dangerous...
33.958057
79
0.523825
79624bf99b366c33d79d4d576e8c5cee31d64940
20,236
py
Python
wxmplot/imagematrixframe.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
wxmplot/imagematrixframe.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
wxmplot/imagematrixframe.py
jkbgbr/wxmplot
dcd0cb2268b0de8f8b78102d8f1e9e628365da05
[ "MIT" ]
null
null
null
#!/usr/bin/python ## ## Image Matrix Frame: 2 correlated images in a 2x2 grid: # # +-------------+--------------+ # | | | # | mage1 | image 1+2 | # | | | # +-------------+--------------+ # | | | # | correlat...
34.71012
97
0.515023
79624c5482c4f6871c9074db5b07fecb8ad23ca3
658
py
Python
data/themes/irssi.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
50
2015-02-11T12:00:25.000Z
2022-01-18T05:26:40.000Z
data/themes/irssi.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
3
2017-11-27T20:55:42.000Z
2020-03-20T18:05:53.000Z
data/themes/irssi.py
hrnciar/poezio
12b8af11df35dda535412b0c02ba792890095a7d
[ "Zlib" ]
15
2015-04-22T14:33:36.000Z
2021-09-29T21:33:50.000Z
import poezio.theming class IrssiTheme(poezio.theming.Theme): COLOR_INFORMATION_BAR = (6, 4) COLOR_TAB_NEW_MESSAGE = (15, 4) COLOR_TAB_CURRENT = (7, 12) COLOR_TAB_HIGHLIGHT = (13, 4) COLOR_TAB_DISCONNECTED = (9, 4) COLOR_HIGHLIGHT_NICK = (11, -1, 'b') COLOR_ME_MESSAGE = (15, -1) def ...
26.32
64
0.658055
79624c5ca5a0522d05e8601acfdc63c571032b1e
2,293
py
Python
tests/algos/test_dqn.py
mcx/d3rlpy
9867803a096b8a90e376443a0ffabb4765f38145
[ "MIT" ]
null
null
null
tests/algos/test_dqn.py
mcx/d3rlpy
9867803a096b8a90e376443a0ffabb4765f38145
[ "MIT" ]
null
null
null
tests/algos/test_dqn.py
mcx/d3rlpy
9867803a096b8a90e376443a0ffabb4765f38145
[ "MIT" ]
null
null
null
import pytest from d3rlpy.algos.dqn import DQN, DoubleDQN from tests import performance_test from .algo_test import algo_cartpole_tester, algo_tester, algo_update_tester @pytest.mark.parametrize("observation_shape", [(100,), (4, 84, 84)]) @pytest.mark.parametrize("action_size", [2]) @pytest.mark.parametrize("n_crit...
29.025316
76
0.696904
79624d1c639a3ad314464723a290c9f75da7a2e0
587
py
Python
tasks/serializers.py
rohitdwivedula/ultimate-task-manager
6ec2bc3ed0cadafb8ebe0015901d21d449d02920
[ "MIT" ]
null
null
null
tasks/serializers.py
rohitdwivedula/ultimate-task-manager
6ec2bc3ed0cadafb8ebe0015901d21d449d02920
[ "MIT" ]
8
2020-06-15T18:50:59.000Z
2021-09-22T19:11:12.000Z
tasks/serializers.py
rohitdwivedula/ultimate-task-manager
6ec2bc3ed0cadafb8ebe0015901d21d449d02920
[ "MIT" ]
null
null
null
from rest_framework import serializers from tasks.models import Label, Task, SubTask class LabelSerializer(serializers.ModelSerializer): class Meta: model = Label fields = ('uuid', 'name', 'description', 'created_at') class SubTaskSerializer(serializers.ModelSerializer): class Meta: m...
27.952381
62
0.686542
79624dcca17322315a1284a1cb4c20d448d8c3d6
713
py
Python
src/viewmodels/packages/details_viewmodel.py
skyris/fastapi_course
e0bf2426ad372f98755cefbe60e9d633a6c85094
[ "MIT" ]
null
null
null
src/viewmodels/packages/details_viewmodel.py
skyris/fastapi_course
e0bf2426ad372f98755cefbe60e9d633a6c85094
[ "MIT" ]
7
2021-12-30T00:47:11.000Z
2022-01-05T16:13:23.000Z
src/viewmodels/packages/details_viewmodel.py
skyris/fastapi_course
e0bf2426ad372f98755cefbe60e9d633a6c85094
[ "MIT" ]
null
null
null
from fastapi import Request from viewmodels.shared.viewmodel import ViewModelBase from services import package_service class DetailsViewModel(ViewModelBase): def __init__(self, package_name: str, request: Request): super().__init__(request) self.package_name = package_name self.package ...
31
78
0.718093
79624e5c6b9df65182ac1ae1d4d210f35a4b9195
1,293
py
Python
class5/ex3_vrf.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
1
2019-04-17T02:49:58.000Z
2019-04-17T02:49:58.000Z
class5/ex3_vrf.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
null
null
null
class5/ex3_vrf.py
sbyount/pyaut3
2fcf19851487db49d76d5b6996ee0f9194d90816
[ "Apache-2.0" ]
null
null
null
from jinja2 import FileSystemLoader, StrictUndefined from jinja2.environment import Environment ''' 3. Generate the following configuration output from an external Jinja2 template: ​vrf definition blue rd 100:1 ! address-family ipv4 route-target export 100:1 route-target import 100:1 exit-address-family ! ad...
30.069767
80
0.770302
79625250dd415824bccb5d2fbac4d24e0c3b3087
1,231
py
Python
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T17:39:44.000Z
2021-08-17T14:45:18.000Z
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
2
2018-05-08T20:48:46.000Z
2018-05-15T16:50:45.000Z
setup.py
hiway/atum
69097a95dbbcb00c8dc926b31f8f71d556cbe9af
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- encoding: utf-8 -*- from __future__ import ( absolute_import, print_function ) import io from os.path import ( dirname, join, ) from setuptools import find_packages, setup def read(*names, **kwargs): return io.open( join(dirname(__file__), *names), ...
23.226415
53
0.513404
796252a0d50b938b7eaae281cee6a095fb9e72ca
5,382
py
Python
sunds/core/tf_geometry/isometry.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
10
2021-07-30T07:55:18.000Z
2022-03-25T12:37:59.000Z
sunds/core/tf_geometry/isometry.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
3
2021-07-30T10:20:02.000Z
2021-09-02T09:28:41.000Z
sunds/core/tf_geometry/isometry.py
google-research/sunds
751d31cc4017ebf01d79b4f558e4cc046f76d040
[ "Apache-2.0" ]
3
2021-11-05T14:52:11.000Z
2022-02-05T23:48:58.000Z
# Copyright 2021 The sunds Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
31.290698
80
0.680416
796254efeabb02390fb00707ba691ff2c46cec0f
1,038
py
Python
data_preparation/move_valid_files.py
Dieg0Alejandr0/EquiBind
8f2adeeb392937fd72ad33e243706d990cb5425e
[ "MIT" ]
128
2022-02-11T10:57:56.000Z
2022-03-30T23:13:37.000Z
data_preparation/move_valid_files.py
Dieg0Alejandr0/EquiBind
8f2adeeb392937fd72ad33e243706d990cb5425e
[ "MIT" ]
18
2022-02-11T11:26:04.000Z
2022-03-27T18:04:38.000Z
data_preparation/move_valid_files.py
Dieg0Alejandr0/EquiBind
8f2adeeb392937fd72ad33e243706d990cb5425e
[ "MIT" ]
22
2022-02-11T15:05:02.000Z
2022-03-25T06:34:17.000Z
import os from shutil import copyfile from tqdm import tqdm from commons.utils import read_strings_from_txt data_path = '../data/PDBBind' overwrite = False names = sorted(os.listdir(data_path)) invalid_names = read_strings_from_txt('select_chains.log') valid_names = list(set(names) - set(invalid_names)) if not os....
37.071429
142
0.722543
7962552e7b515dde50eed8704e0b7f97292be025
555
py
Python
c_insta/images/migrations/0006_image_tags.py
migk153/c_insta
86d8ef2d75ee20d154340c8560ee7097a22ef88a
[ "MIT" ]
null
null
null
c_insta/images/migrations/0006_image_tags.py
migk153/c_insta
86d8ef2d75ee20d154340c8560ee7097a22ef88a
[ "MIT" ]
12
2020-06-05T20:08:41.000Z
2022-02-26T09:55:32.000Z
c_insta/images/migrations/0006_image_tags.py
migk153/c_insta
86d8ef2d75ee20d154340c8560ee7097a22ef88a
[ "MIT" ]
null
null
null
# Generated by Django 2.0.10 on 2019-02-12 13:47 from django.db import migrations import taggit.managers class Migration(migrations.Migration): dependencies = [ ('taggit', '0002_auto_20150616_2121'), ('images', '0005_auto_20190201_1755'), ] operations = [ migrations.AddField( ...
26.428571
162
0.63964
7962557f1a3018badd6415919b4be452d079ed4a
1,901
py
Python
hardware/serial_board.py
jjhritz/letsrobot
18d43467c4ce6b0420f753ef04d509a7d56739c6
[ "Apache-2.0" ]
null
null
null
hardware/serial_board.py
jjhritz/letsrobot
18d43467c4ce6b0420f753ef04d509a7d56739c6
[ "Apache-2.0" ]
null
null
null
hardware/serial_board.py
jjhritz/letsrobot
18d43467c4ce6b0420f753ef04d509a7d56739c6
[ "Apache-2.0" ]
1
2019-02-10T15:29:44.000Z
2019-02-10T15:29:44.000Z
import serial import sys import logging log = logging.getLogger('hardware/serial_board') ser = None def sendSerialCommand(ser, command): log.info("serial send: ", str(command.lower())) ser.write(command.lower().encode('utf8') + b"\r\n") # write a string ser.flush() def setup(robot_config): globa...
34.563636
114
0.593898
796255a1207c5046705ecae03158c48cdba4479a
2,277
py
Python
app/recipe/tests/test_tags.py
sandhyachowdary/recipe-app-api
47b9d09d380dd71f411448b517944d0991aa8b58
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags.py
sandhyachowdary/recipe-app-api
47b9d09d380dd71f411448b517944d0991aa8b58
[ "MIT" ]
null
null
null
app/recipe/tests/test_tags.py
sandhyachowdary/recipe-app-api
47b9d09d380dd71f411448b517944d0991aa8b58
[ "MIT" ]
null
null
null
from django.contrib.auth import get_user_model from django.urls import reverse from django.test import TestCase from rest_framework import status from rest_framework.test import APIClient from core.models import Tag from recipe.serializers import TagSerializer TAGS_URL = reverse('recipe:tag-list') class PublicTa...
29.960526
71
0.654809
7962569f17daa26abebd7fae9659983d489907b9
22,798
py
Python
include/El/lapack_like/funcs.py
sg0/Elemental
614f02509690449b553451e36bc78e7e132ea517
[ "BSD-3-Clause" ]
1
2015-12-08T22:54:37.000Z
2015-12-08T22:54:37.000Z
include/El/lapack_like/funcs.py
sg0/Elemental
614f02509690449b553451e36bc78e7e132ea517
[ "BSD-3-Clause" ]
null
null
null
include/El/lapack_like/funcs.py
sg0/Elemental
614f02509690449b553451e36bc78e7e132ea517
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2009-2015, Jack Poulson # All rights reserved. # # This file is part of Elemental and is under the BSD 2-Clause License, # which can be found in the LICENSE file in the root directory, or at # http://opensource.org/licenses/BSD-2-Clause # from ..core import * import ctypes from ctypes import CF...
41.60219
74
0.751776
79625778da9f1bf62bdf2ed67f76e4e168f100f7
2,370
py
Python
tests/test_querying.py
rdk/pymol-psico
127b13a5b37c60caee1b2c4237ac986447921add
[ "BSD-2-Clause" ]
null
null
null
tests/test_querying.py
rdk/pymol-psico
127b13a5b37c60caee1b2c4237ac986447921add
[ "BSD-2-Clause" ]
null
null
null
tests/test_querying.py
rdk/pymol-psico
127b13a5b37c60caee1b2c4237ac986447921add
[ "BSD-2-Clause" ]
null
null
null
import psico.querying from pymol import cmd from pytest import approx def test_iterate_to_list(): cmd.reinitialize() cmd.fragment("gly") r = psico.querying.iterate_to_list("not hydro", "name") assert r == ["N", "CA", "C", "O"] def test_iterate_state_to_list(): cmd.reinitialize() cmd.fragment...
34.347826
72
0.667932
796257bc6ad38d0a0467564c1499c81b7328bdf2
4,637
py
Python
Python/pacman.py
asananez2000/Reto_Equipo2
f925b8a355e2431a6dbc8221e8a36ebabcee8afc
[ "MIT" ]
null
null
null
Python/pacman.py
asananez2000/Reto_Equipo2
f925b8a355e2431a6dbc8221e8a36ebabcee8afc
[ "MIT" ]
2
2021-09-17T04:47:20.000Z
2021-09-17T04:47:43.000Z
Python/pacman.py
asananez2000/Reto_Equipo2
f925b8a355e2431a6dbc8221e8a36ebabcee8afc
[ "MIT" ]
1
2021-09-16T21:23:47.000Z
2021-09-16T21:23:47.000Z
"""Pacman, classic arcade game. Exercises 1. Change the board. #Changed Board 2. Change the number of ghosts. #Added ghosts 3. Change where pacman starts. #Changed where pacman starts 4. Make the ghosts faster/slower. 5. Make the ghosts smarter. """ from random import choice from turtle import * from freegames impo...
26.497143
63
0.474013
796258201477b086a5970ee53a39dc934dd27b1a
5,817
py
Python
tests/test_connectors.py
ctverceles/cert-issuer
643f8f2f4b1000ad3b6ffddc8a11da353978ae7f
[ "MIT" ]
null
null
null
tests/test_connectors.py
ctverceles/cert-issuer
643f8f2f4b1000ad3b6ffddc8a11da353978ae7f
[ "MIT" ]
null
null
null
tests/test_connectors.py
ctverceles/cert-issuer
643f8f2f4b1000ad3b6ffddc8a11da353978ae7f
[ "MIT" ]
null
null
null
# review - refractor for web3 python import unittest from bitcoin import SelectParams from bitcoin.core import COutPoint, lx, x, CScript from bitcoin.core.script import OP_EQUALVERIFY, OP_CHECKSIG, OP_DUP, OP_HASH160 from bitcoin.wallet import P2PKHBitcoinAddress from mock import patch from pycoin.serialize import b2...
70.084337
1,399
0.81004
79625a54ac54a41e0fad468d9e53c46944bc0e4a
1,206
py
Python
src/opserver/setup.py
Juniper/contrail-dev-controller
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
[ "Apache-2.0" ]
5
2015-01-08T17:34:41.000Z
2017-09-28T16:00:25.000Z
src/opserver/setup.py
Juniper/contrail-dev-controller
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
[ "Apache-2.0" ]
null
null
null
src/opserver/setup.py
Juniper/contrail-dev-controller
d4fd8fa8e309fd6746c9998f7e8644c2910affbb
[ "Apache-2.0" ]
2
2016-06-24T20:16:45.000Z
2020-02-05T10:47:43.000Z
# # Copyright (c) 2013 Juniper Networks, Inc. All rights reserved. # from setuptools import setup setup( name='opserver', version='0.1dev', packages=['opserver', 'opserver.sandesh', 'opserver.sandesh.viz', 'opserver.sandesh.analytics', 'opserver.sand...
29.414634
73
0.566335
79625b7a1e1dc78c3568823fed97ce475e4f8ea8
171
py
Python
bin/twigs/quasi-tritwigs-snowflake-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/twigs/quasi-tritwigs-snowflake-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
null
null
null
bin/twigs/quasi-tritwigs-snowflake-1.py
tiwo/puzzler
7ad3d9a792f0635f7ec59ffa85fb46b54fd77a7e
[ "Intel" ]
1
2022-01-02T16:54:14.000Z
2022-01-02T16:54:14.000Z
#!/usr/bin/env python # $Id$ """many solutions""" import puzzler from puzzler.puzzles.quasitritwigs import QuasiTritwigsSnowflake1 puzzler.run(QuasiTritwigsSnowflake1)
17.1
65
0.795322
79625c0250fe9c8c4b9e8b6ef126bf0500a9b0b8
192
py
Python
predictor/data_structures/enums/graph_type.py
dlasecki/QaoaParamsPredictor
250b48d36d033adfe3d02a59e3e4a34991834e8f
[ "Apache-2.0" ]
null
null
null
predictor/data_structures/enums/graph_type.py
dlasecki/QaoaParamsPredictor
250b48d36d033adfe3d02a59e3e4a34991834e8f
[ "Apache-2.0" ]
null
null
null
predictor/data_structures/enums/graph_type.py
dlasecki/QaoaParamsPredictor
250b48d36d033adfe3d02a59e3e4a34991834e8f
[ "Apache-2.0" ]
1
2021-03-15T21:46:49.000Z
2021-03-15T21:46:49.000Z
from enum import Enum class GraphType(Enum): """Enum containing possible graph types.""" BARBELL = "barbell" RANDOM = "erdos_renyi" LADDER = "ladder" CAVEMAN = "caveman"
19.2
47
0.651042