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
501ab238dad07fef93d094d64c69011390603b6e
669
py
Python
cntr/service/receive.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
2
2021-08-01T06:39:43.000Z
2021-08-01T06:39:58.000Z
cntr/service/receive.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
1
2021-06-08T11:24:30.000Z
2021-06-09T07:47:26.000Z
cntr/service/receive.py
ethan-iai/tour-recmd
321ee528b748900eff9d22b176cdcd339fb60681
[ "MIT" ]
null
null
null
import xml.etree.ElementTree as ET from cntr.service.base import TextMsg, ImageMsg, LocationMsg, VoiceMsg class ReceiveHandler(object): def __init__(self): self._type_class_map = { 'text' : TextMsg, 'image' : ImageMsg, 'location': LocationMsg, 'voice' : ...
27.875
70
0.584454
560
0.83707
0
0
0
0
0
0
39
0.058296
501bb0b84ecbd8db236b1e1a8fc662a43d76ee9f
1,081
py
Python
algorithms/allergies/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
3
2017-05-02T10:28:13.000Z
2019-02-06T09:10:11.000Z
algorithms/allergies/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2017-06-21T20:39:14.000Z
2020-02-25T10:28:57.000Z
algorithms/allergies/__init__.py
JASTYN/pythonmaster
46638ab09d28b65ce5431cd0759fe6df272fb85d
[ "Apache-2.0", "MIT" ]
2
2016-07-29T04:35:22.000Z
2017-01-18T17:05:36.000Z
class Allergies(object): ALLERGY_SCORES = { 'eggs': 1, 'peanuts': 2, 'shellfish': 4, 'strawberries': 8, 'tomatoes': 16, 'chocolate': 32, 'pollen': 64, 'cats': 128 } def __init__(self, score): if score is None or not isinstance(score, i...
30.885714
102
0.576318
1,080
0.999075
0
0
0
0
0
0
500
0.462535
501c3280eed3f39c1378cb20b8407ca47e64ad8a
2,309
py
Python
pages/data_upload.py
irzaip/selevaporum
05754f2a8152185f550e1135feb94fdc85e4046c
[ "MIT" ]
null
null
null
pages/data_upload.py
irzaip/selevaporum
05754f2a8152185f550e1135feb94fdc85e4046c
[ "MIT" ]
null
null
null
pages/data_upload.py
irzaip/selevaporum
05754f2a8152185f550e1135feb94fdc85e4046c
[ "MIT" ]
null
null
null
import collections from numpy.core.defchararray import lower import streamlit as st import numpy as np import pandas as pd from pages import utils def app(): st.title("Data Storyteller Application") st.markdown("## Data Upload") # Upload the dataset and save as csv st.markdown("### Upload ...
39.810345
106
0.632308
0
0
0
0
0
0
0
0
1,105
0.478562
501c4eef87e41e664070910134642c391a29e880
832
py
Python
uso_red/migrations/0001_initial.py
joelsegoviacrespo/control_aforo_migrado
be90d1d45a20f735e7ef20449c4ab91ca05b5d85
[ "MIT" ]
null
null
null
uso_red/migrations/0001_initial.py
joelsegoviacrespo/control_aforo_migrado
be90d1d45a20f735e7ef20449c4ab91ca05b5d85
[ "MIT" ]
null
null
null
uso_red/migrations/0001_initial.py
joelsegoviacrespo/control_aforo_migrado
be90d1d45a20f735e7ef20449c4ab91ca05b5d85
[ "MIT" ]
null
null
null
# Generated by Django 2.2.13 on 2020-11-26 03:26 from django.db import migrations, models import djongo.models.fields class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='UsoRed', fields=[ ...
28.689655
114
0.564904
710
0.853365
0
0
0
0
0
0
124
0.149038
501d0008e868acaa4fedee6bdf54ba6f0c7c1b8d
5,438
py
Python
sweep_builder/scorable.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
sweep_builder/scorable.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
sweep_builder/scorable.py
panoramichq/data-collection-fb
550b90a303c880ae8c3dfd2801dc4f991a969f89
[ "MIT" ]
null
null
null
import logging from collections import defaultdict from typing import Iterable, Generator, Optional from pynamodb.exceptions import DoesNotExist from common.enums.entity import Entity from common.enums.jobtype import detect_job_type from config.application import PERMANENTLY_FAILING_JOB_THRESHOLD from config.jobs im...
38.295775
114
0.696396
0
0
3,348
0.615668
0
0
0
0
987
0.181501
501dcb0c9d559197f9d0137f85f4646aa314aebc
1,782
py
Python
import_em.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
2
2015-06-13T09:17:46.000Z
2015-10-25T15:31:33.000Z
import_em.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
null
null
null
import_em.py
kaija/taiwan_stockloader
637244c3b0bc96093cc5a7b3df093a829f9e3c2d
[ "MIT" ]
3
2016-02-01T07:36:55.000Z
2018-08-03T12:22:20.000Z
#!/usr/bin/python import datetime import httplib import urllib import redis import json from datetime import timedelta #now = datetime.datetime.now(); #today = now.strftime('%Y-%m-%d') #print today rdb = redis.Redis('localhost') def rv(value): out = "" for num in value.strip().split(","): out+=num return out de...
20.25
259
0.64422
0
0
0
0
0
0
0
0
359
0.201459
501e238ecce4d14dde53565c91651d0fe9f9fbc1
5,453
py
Python
LaserController/InterfaceGUI.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
LaserController/InterfaceGUI.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
LaserController/InterfaceGUI.py
ColdMatter/PhotonBEC
c6bcf9bdefd267c8adde0d299cf5920b010c5022
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'InterfaceGUI.ui' # # Created: Mon Mar 11 15:56:47 2013 # by: PyQt4 UI code generator 4.9.1 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtWidgets try: from PyQt5 import QtCore, QtGui excep...
47.417391
109
0.708601
4,768
0.874381
0
0
0
0
0
0
663
0.121584
501f4dae72eb2773eebea6e00006189d15c72360
302
py
Python
src/sportsdata/nba/teams/washington_wizards.py
OrangeCardinal/sportsdata
e6e182e89c8f8a12ffe18b218a37b8bdb8971e03
[ "Apache-2.0" ]
null
null
null
src/sportsdata/nba/teams/washington_wizards.py
OrangeCardinal/sportsdata
e6e182e89c8f8a12ffe18b218a37b8bdb8971e03
[ "Apache-2.0" ]
null
null
null
src/sportsdata/nba/teams/washington_wizards.py
OrangeCardinal/sportsdata
e6e182e89c8f8a12ffe18b218a37b8bdb8971e03
[ "Apache-2.0" ]
null
null
null
from sports.nba.nba_team import NBA_Team class WashingtonWizards(NBA_Team): """ NBA's Washington Wizards Static Information """ full_name = "Washington Wizards" name = "Wizards" team_id = 1610612764 def __init__(self): """ """ super().__init__()
17.764706
47
0.612583
258
0.854305
0
0
0
0
0
0
104
0.344371
501ffd3a5b4084f880ca38c9bb54d4225d927e52
1,305
py
Python
modules/text/sentiment_analysis/senta_cnn/net.py
Steffy-zxf/HubModule
40b0563f86634714033ab7712a08a58eba81bad1
[ "Apache-2.0" ]
null
null
null
modules/text/sentiment_analysis/senta_cnn/net.py
Steffy-zxf/HubModule
40b0563f86634714033ab7712a08a58eba81bad1
[ "Apache-2.0" ]
null
null
null
modules/text/sentiment_analysis/senta_cnn/net.py
Steffy-zxf/HubModule
40b0563f86634714033ab7712a08a58eba81bad1
[ "Apache-2.0" ]
null
null
null
# -*- coding:utf-8 -*- import paddle.fluid as fluid def cnn_net(data, dict_dim, emb_dim=128, hid_dim=128, hid_dim2=96, class_dim=2, win_size=3): """ Conv net """ # embedding layer emb = fluid.layers.embedding( input=da...
28.369565
78
0.609195
0
0
0
0
0
0
0
0
341
0.261303
50205455dc5f8bdf7fc11d558fec2bdbb9a250dd
944
py
Python
test/test_scripts.py
JulianKarlBauer/orientation_averaging_mean_field
75acb5ed58aa6a69cec7508d3d45865bbab3ed3c
[ "MIT" ]
null
null
null
test/test_scripts.py
JulianKarlBauer/orientation_averaging_mean_field
75acb5ed58aa6a69cec7508d3d45865bbab3ed3c
[ "MIT" ]
null
null
null
test/test_scripts.py
JulianKarlBauer/orientation_averaging_mean_field
75acb5ed58aa6a69cec7508d3d45865bbab3ed3c
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import runpy import os import pytest import glob THIS_FILES_DIR_PATH = os.path.realpath(os.path.dirname(__file__)) def get_paths_of_scripts(): exclude_sub_strings = ["do_not_execute"] plot_script_paths = glob.glob( os.path.join( os.path.dirna...
25.513514
87
0.680085
282
0.298729
0
0
258
0.273305
0
0
146
0.154661
50225dc303362b68cabbf1199f96dcd33b1c08db
31,316
py
Python
python/brainvisa/maker/components_definition.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
null
null
null
python/brainvisa/maker/components_definition.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
77
2018-10-30T11:28:16.000Z
2022-02-28T14:21:40.000Z
python/brainvisa/maker/components_definition.py
brainvisa/brainvisa-cmake
2b4c4c6aae45e036a54d655b064f4d1a2b7b2061
[ "CECILL-B" ]
1
2019-07-17T14:08:22.000Z
2019-07-17T14:08:22.000Z
# -*- coding: utf-8 -*- from __future__ import absolute_import import os import sys # groups: # anatomist: projects needed for anatomist (aims, soma-io and dependencies) # opensource # brainvisa: public brainvisa distro # bvdev: same as brainvisa but excludes restricted access projects # (such as brainrat-priv...
56.938182
545
0.536243
0
0
0
0
0
0
0
0
20,300
0.648231
5022938aba6c91cfd4336b99f65d9f2b0ba733cd
977
py
Python
examples/hashtrees.py
ascribe/transactions
08f344ce1879152d2a0ba51dda76f11e73c83867
[ "Apache-2.0" ]
124
2015-05-11T09:51:09.000Z
2021-11-17T15:38:17.000Z
examples/hashtrees.py
chasealias/transactions
08f344ce1879152d2a0ba51dda76f11e73c83867
[ "Apache-2.0" ]
58
2016-02-22T10:08:11.000Z
2018-10-16T17:34:13.000Z
examples/hashtrees.py
chasealias/transactions
08f344ce1879152d2a0ba51dda76f11e73c83867
[ "Apache-2.0" ]
24
2015-05-18T19:16:44.000Z
2021-05-31T09:51:32.000Z
# -*- coding: utf-8 -*- """ Inspired by: * https://gist.github.com/shirriff/c9fb5d98e6da79d9a772#file-merkle-py * https://github.com/richardkiss/pycoin """ from __future__ import absolute_import, division, unicode_literals from builtins import range import binascii import hashlib def merkleroot(hashes): ...
28.735294
75
0.660184
0
0
0
0
0
0
0
0
371
0.379734
50236b02c8e8d9823839d03fe29cb5157a9c7e08
1,273
py
Python
test/test_del_contact_from_group.py
julipavlovich/python_training
0ca2320b89b1bb40926d7c8b1ecb0278998fa4be
[ "Apache-2.0" ]
null
null
null
test/test_del_contact_from_group.py
julipavlovich/python_training
0ca2320b89b1bb40926d7c8b1ecb0278998fa4be
[ "Apache-2.0" ]
null
null
null
test/test_del_contact_from_group.py
julipavlovich/python_training
0ca2320b89b1bb40926d7c8b1ecb0278998fa4be
[ "Apache-2.0" ]
null
null
null
from model.contact import Contact from model.group import Group import random def test_add_contact_in_group(app, db): if len(db.get_contact_list()) == 0: app.contact.create(Contact(firstname="ADDNewFirstName1", lastname="ADDNewLastName1")) if len(db.get_group_list()) == 0: app.group.create(Gro...
43.896552
93
0.750196
0
0
0
0
0
0
0
0
175
0.131283
50241f1b6c840c3a0e9187ec807790ee1359dfdf
1,945
py
Python
test.py
termistotel/CherryPyStuff
84659f8cd3c2b6f7d17c79c3a0bafdac4ad85a68
[ "MIT" ]
null
null
null
test.py
termistotel/CherryPyStuff
84659f8cd3c2b6f7d17c79c3a0bafdac4ad85a68
[ "MIT" ]
null
null
null
test.py
termistotel/CherryPyStuff
84659f8cd3c2b6f7d17c79c3a0bafdac4ad85a68
[ "MIT" ]
null
null
null
import dill as pickle import cherrypy homeLocation = '/home/alion/Projekti/cherrypyTest' rootConfig = {'/': {'log.screen': False, 'log.access_file': homeLocation+'/logs/access_file.log', 'log.error_file': homeLocation+'/logs/error_file.log', 'tools.sessions.on': True, ...
32.966102
84
0.582519
1,268
0.651928
0
0
1,225
0.62982
0
0
833
0.428278
502575823cd86b4b2ecb13d681cb93aec7e91dfa
202
py
Python
main/admin.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/admin.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
main/admin.py
ericrobskyhuntley/vialab.mit.edu
1318d03b8eeb106c1662052e1caa53290e206ae7
[ "MIT" ]
null
null
null
from django.contrib import admin from simple_history.admin import SimpleHistoryAdmin from .models import MainMetadata # Register your models here. admin.site.register(MainMetadata, SimpleHistoryAdmin)
28.857143
53
0.851485
0
0
0
0
0
0
0
0
28
0.138614
5025e7ee5d5562ae40919351cc1f7e7d9a8bf87c
17,839
py
Python
FEArena/feaapi/api/skills/helper.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
1
2020-12-25T03:33:44.000Z
2020-12-25T03:33:44.000Z
FEArena/feaapi/api/skills/helper.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
FEArena/feaapi/api/skills/helper.py
Superbird11/FEArena
76b32dd9d4fddc62c191225e332560e0e9ed2c9e
[ "MIT" ]
null
null
null
from typing import Iterable as Iterable, List, Dict, Callable, Iterator, Set, Optional from ...models.core.Unit import Unit from ...models.core.Class import Class from ...models.core.Weapon import Weapon from ...models.core.Item import Item from ...models.core.Skill import Skill from ...models.play.ActiveArena import A...
51.114613
120
0.71254
0
0
1,889
0.105892
0
0
0
0
9,868
0.55317
5025f16dc15906f1c7c7af67d516b81c43cb2edb
967
bzl
Python
source/bazel/deps/libevent/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
1
2019-01-06T08:45:46.000Z
2019-01-06T08:45:46.000Z
source/bazel/deps/libevent/get.bzl
luxe/CodeLang-compiler
78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a
[ "MIT" ]
264
2015-11-30T08:34:00.000Z
2018-06-26T02:28:41.000Z
source/bazel/deps/libevent/get.bzl
UniLang/compiler
c338ee92994600af801033a37dfb2f1a0c9ca897
[ "MIT" ]
null
null
null
# Do not edit this file directly. # It was auto-generated by: code/programs/reflexivity/reflexive_refresh load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") def libevent(): http_archive( name = "libevent", build_fi...
37.192308
130
0.623578
0
0
0
0
0
0
0
0
638
0.659772
502807db93679f10580d12e8bb304e4225f4b690
15,190
py
Python
pygsti/modelmembers/states/cptpstate.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
pygsti/modelmembers/states/cptpstate.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
pygsti/modelmembers/states/cptpstate.py
colibri-coruscans/pyGSTi
da54f4abf668a28476030528f81afa46a1fbba33
[ "Apache-2.0" ]
null
null
null
""" The CPTPState class and supporting functionality. """ #*************************************************************************************************** # Copyright 2015, 2019 National Technology & Engineering Solutions of Sandia, LLC (NTESS). # Under the terms of Contract DE-NA0003525 with NTESS, the U.S. Govern...
42.430168
113
0.600263
14,064
0.925872
0
0
361
0.023766
0
0
8,709
0.573338
5028c313079fad9b4cf51c75e556c2cffcedcdc1
298
py
Python
examples/mach_opt_examples/LegacyCode/IM/machine_design/im_settingshandler.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
6
2021-11-02T20:12:32.000Z
2021-11-13T10:50:35.000Z
examples/mach_opt_examples/LegacyCode/IM/machine_design/im_settingshandler.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
18
2021-11-29T20:14:55.000Z
2022-03-02T07:17:37.000Z
examples/mach_opt_examples/LegacyCode/IM/machine_design/im_settingshandler.py
Severson-Group/MachEval
dbb7999188133f8744636da53cab475ae538ce80
[ "BSD-3-Clause" ]
1
2022-01-29T00:52:38.000Z
2022-01-29T00:52:38.000Z
# -*- coding: utf-8 -*- """ Created on Fri Apr 30 11:58:20 2021 @author: Martin Johnson """ import sys sys.path.append("...") import macheval as me class IMSettingsHandler(me.SettingsHandler): def getSettings(x): return NotImplementedError #TODO Implement settings functionality
19.866667
73
0.701342
142
0.47651
0
0
0
0
0
0
134
0.449664
5029b3ee53519f158d3ce03f346eb8d5c279dd5f
1,596
py
Python
scripts/cerealfiller_entity_and_test_pipeline.py
sedgewickmm18/functions
69d04a67b122601c4f207ded8e872d31b2ddafc8
[ "Apache-2.0" ]
null
null
null
scripts/cerealfiller_entity_and_test_pipeline.py
sedgewickmm18/functions
69d04a67b122601c4f207ded8e872d31b2ddafc8
[ "Apache-2.0" ]
null
null
null
scripts/cerealfiller_entity_and_test_pipeline.py
sedgewickmm18/functions
69d04a67b122601c4f207ded8e872d31b2ddafc8
[ "Apache-2.0" ]
null
null
null
import datetime as dt import json import os import pandas as pd from sqlalchemy import Column, Integer, String, Float, DateTime, Boolean, func from iotfunctions.preprocessor import BaseTransformer from iotfunctions.bif import IoTExpression from iotfunctions.metadata import EntityType, make_sample_entity from iotfunctio...
36.272727
105
0.740602
0
0
0
0
0
0
0
0
440
0.275689
5029f3a83b6307a58318c91798649927beb20509
1,022
py
Python
minst/tests/helpers.py
oriolromani/minst-dataset
5847ac421522a393df77ca2a43acdc326f7d64e8
[ "0BSD" ]
44
2016-03-26T13:41:09.000Z
2022-01-19T08:52:47.000Z
minst/tests/helpers.py
oriolromani/minst-dataset
5847ac421522a393df77ca2a43acdc326f7d64e8
[ "0BSD" ]
37
2016-05-25T06:32:44.000Z
2018-08-21T09:15:40.000Z
minst/tests/helpers.py
oriolromani/minst-dataset
5847ac421522a393df77ca2a43acdc326f7d64e8
[ "0BSD" ]
8
2016-05-25T13:45:44.000Z
2021-06-18T12:14:01.000Z
import pytest import os import numpy as np import minst.taxonomy as tax def __test(value, expected): assert value == expected def __test_df_has_data(df): assert not df.empty def __test_pd_output(pd_output, dataset): """Make sure all the files in the tree exist""" # Check for valid columns req...
28.388889
73
0.687867
0
0
0
0
0
0
0
0
246
0.240705
502b24ddf0d51348bd70135dbd9dd0e4f5a0717b
2,161
py
Python
pwncat/modules/linux/enumerate/system/selinux.py
Mitul16/pwncat
b8d7876a9779c2c7796a9a29110d3f1cda721dff
[ "MIT" ]
1,454
2020-05-07T02:20:52.000Z
2022-03-31T21:32:22.000Z
pwncat/modules/linux/enumerate/system/selinux.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
187
2020-05-08T06:26:01.000Z
2022-03-07T21:15:29.000Z
pwncat/modules/linux/enumerate/system/selinux.py
akr3ch/pwncat
d67865bdaac60dd0761d0698062e7b443a62c6db
[ "MIT" ]
184
2020-05-07T02:31:58.000Z
2022-03-31T09:11:59.000Z
#!/usr/bin/env python3 from typing import Dict import rich.markup from pwncat.db import Fact from pwncat.platform.linux import Linux from pwncat.modules.enumerate import Schedule, EnumerateModule class SELinuxState(Fact): def __init__(self, source, state, status): super().__init__(source=source, types=[...
28.434211
85
0.559
1,957
0.905599
818
0.378528
189
0.08746
0
0
376
0.173994
502b6bdebbd7460f59282e2c237e23c39d25bf84
2,975
py
Python
rally_openstack/task/scenarios/gnocchi/archive_policy_rule.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/gnocchi/archive_policy_rule.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
null
null
null
rally_openstack/task/scenarios/gnocchi/archive_policy_rule.py
jogeo/rally-openstack
83437e7c5925d5d647cd28f1821b6d51687b0123
[ "Apache-2.0" ]
1
2021-08-10T03:11:51.000Z
2021-08-10T03:11:51.000Z
# Copyright 2017 Red Hat, Inc. <http://www.redhat.com> # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
40.753425
78
0.743193
1,262
0.424202
0
0
2,094
0.703866
0
0
1,476
0.496134
502f6109a3a684baefcd13925e63aa3cf73c0b10
515
py
Python
count words problem/count_words.py
silasjimmy/Machine-Learning-course
f80e98919c982f73f66f0d8a4af8ebffaf7c8e43
[ "MIT" ]
null
null
null
count words problem/count_words.py
silasjimmy/Machine-Learning-course
f80e98919c982f73f66f0d8a4af8ebffaf7c8e43
[ "MIT" ]
null
null
null
count words problem/count_words.py
silasjimmy/Machine-Learning-course
f80e98919c982f73f66f0d8a4af8ebffaf7c8e43
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jan 21 08:20:55 2021 @author: silasjimmy """ def count_words(s, n): s = s.split(' ') counted_words = [(w, s.count((w))) for w in set(s)] counted_words.sort(key = lambda x: (-x[1], x[0])) top_n = counted_words[:n] return top_n def t...
23.409091
83
0.615534
0
0
0
0
0
0
0
0
203
0.394175
502f754cdffdb05797ba5ba3fc5cba7ad3499d41
250
py
Python
segitiga/hitung-luas-segitiga.py
Yurimahendra/latihan-big-data
5ea495bc1187c4d99a83654f8377d73e72eb63d2
[ "MIT" ]
null
null
null
segitiga/hitung-luas-segitiga.py
Yurimahendra/latihan-big-data
5ea495bc1187c4d99a83654f8377d73e72eb63d2
[ "MIT" ]
null
null
null
segitiga/hitung-luas-segitiga.py
Yurimahendra/latihan-big-data
5ea495bc1187c4d99a83654f8377d73e72eb63d2
[ "MIT" ]
null
null
null
# jumlah segitiga n = 123 # panjang alas sebuah segitiga alas = 30 # tinggi sebuah segitiga tinggi = 18 # hitung luas sebuah segitiga luas = alas * tinggi * 1/2 # hitung luas total luastotal = n * luas print('luas total : ', luastotal,'satuan luas')
20.833333
47
0.716
0
0
0
0
0
0
0
0
147
0.588
5031531e9f322bfee275b72a63ab6ef16dc37f80
4,210
py
Python
pygooglehomenotifier/googlehomenotifier.py
k-sh/pygooglehomenotifier
b1e405d1813be049506119f9abb3145d18620217
[ "MIT" ]
null
null
null
pygooglehomenotifier/googlehomenotifier.py
k-sh/pygooglehomenotifier
b1e405d1813be049506119f9abb3145d18620217
[ "MIT" ]
null
null
null
pygooglehomenotifier/googlehomenotifier.py
k-sh/pygooglehomenotifier
b1e405d1813be049506119f9abb3145d18620217
[ "MIT" ]
null
null
null
import queue import textwrap import threading import time import urllib.parse import pychromecast def create_notify_url(text: str, lang: str, ttsspeed: float): payload = { "ie": "UTF-8", "q": text, "tl": lang, "total": 1, "idx": 0, "textlen": ...
29.440559
91
0.557482
2,422
0.575297
0
0
0
0
0
0
263
0.06247
5033393de69a8305614d2ab29a3b1c3d9b9a9cf3
353
py
Python
django_tgbot/types/userprofilephotos.py
purwowd/django-tgbot
6712ad2e9986c0961ad402a1d2e37be39e2f5fb4
[ "MIT" ]
52
2020-04-05T11:06:21.000Z
2022-03-21T05:29:15.000Z
django_tgbot/types/userprofilephotos.py
armanexplorer/django-tgbot
e89f34b6a25beb9473c9e162ec8c161c14cd4cd6
[ "MIT" ]
11
2020-09-02T00:24:13.000Z
2022-03-22T06:09:36.000Z
django_tgbot/types/userprofilephotos.py
armanexplorer/django-tgbot
e89f34b6a25beb9473c9e162ec8c161c14cd4cd6
[ "MIT" ]
14
2020-09-01T23:31:54.000Z
2022-01-30T07:03:52.000Z
from . import BasicType class UserProfilePhotos(BasicType): fields = { 'total_count': int, } def __init__(self, obj=None): super(UserProfilePhotos, self).__init__(obj) from . import photosize UserProfilePhotos.fields.update({ 'photos': { 'class': photosize.PhotoSize, ...
17.65
52
0.634561
172
0.487252
0
0
0
0
0
0
44
0.124646
50346253e5a2a4c18cf434df1441cd57e84a1e8f
8,171
py
Python
pyexocross/exomol/exomoldef.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
null
null
null
pyexocross/exomol/exomoldef.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
null
null
null
pyexocross/exomol/exomoldef.py
ucl-exoplanets/pyexocross
703341cd0fddafcbb04e935c89ddc9d02dda9f59
[ "BSD-3-Clause" ]
1
2021-01-15T12:54:04.000Z
2021-01-15T12:54:04.000Z
from taurex.log import Logger class LinesReader: def __init__(self, lines): self._lines = lines self._count = 0 def skip(self, num=1): self._count += num def read_int(self, skip=1): val = int(self._lines[self._count]) self.skip(skip) return val ...
30.602996
110
0.572268
8,134
0.995472
0
0
561
0.068657
0
0
466
0.057031
50347b2a42cf82e77fe67d54a2ea1039a74341ec
2,374
py
Python
web_parsers/parsers/base.py
invanalabs/web-parser
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
1
2019-10-06T23:11:32.000Z
2019-10-06T23:11:32.000Z
web_parsers/parsers/base.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
2
2020-03-11T09:33:03.000Z
2020-03-18T21:12:28.000Z
web_parsers/parsers/base.py
crawlerflow/extraction-engine
dca9c6354317ec7187f46fd270092372b39f63f8
[ "Apache-2.0" ]
null
null
null
import logging logger = logging.getLogger(__name__) class ParserBase: selector_key = None def __init__(self, string_data, url=None, extractor_manifest=None): self.string_data = string_data self.url = url self.extractor_manifest = extractor_manifest def parse_data(self, string_...
34.911765
102
0.613311
2,318
0.976411
0
0
232
0.097725
0
0
335
0.141112
503945544f0f8af4e632fde69205e3dc522fc1a7
562
py
Python
kolejka/judge/tasks/list_files.py
zielinskit/kolejka-judge
571df05b12c5a4748d7a2ca4c217b0042acf6b48
[ "MIT" ]
null
null
null
kolejka/judge/tasks/list_files.py
zielinskit/kolejka-judge
571df05b12c5a4748d7a2ca4c217b0042acf6b48
[ "MIT" ]
null
null
null
kolejka/judge/tasks/list_files.py
zielinskit/kolejka-judge
571df05b12c5a4748d7a2ca4c217b0042acf6b48
[ "MIT" ]
null
null
null
import glob import itertools from functools import partial from typing import Tuple, Optional from kolejka.judge.tasks.base import TaskBase class ListFiles(TaskBase): def __init__(self, *args, variable_name): self.files = list(args) self.variable_name = variable_name def execute(self, enviro...
29.578947
104
0.729537
418
0.743772
0
0
0
0
0
0
0
0
50395cf2321c71ca4f29379c96be1b850b7822ca
5,775
py
Python
backend/server/server.py
dballesteros7/starthack2016
98866b865dcb3c1b307d8119f7d2defb234f30ae
[ "MIT" ]
null
null
null
backend/server/server.py
dballesteros7/starthack2016
98866b865dcb3c1b307d8119f7d2defb234f30ae
[ "MIT" ]
6
2021-03-18T20:16:38.000Z
2022-01-13T00:37:14.000Z
backend/server/server.py
dballesteros7/starthack2016
98866b865dcb3c1b307d8119f7d2defb234f30ae
[ "MIT" ]
null
null
null
import os import json from flask_sqlalchemy import SQLAlchemy from flask import Flask, request, jsonify from flask.views import MethodView from flask.ext.cors import CORS from database import ElasticStorage, RedisClient from article import Article as ESArticle app = Flask(__name__) CORS(app) #sql_config = json.loads(...
34.580838
145
0.638615
2,633
0.455931
0
0
1,142
0.197749
0
0
1,490
0.258009
503a4dd6e2152629bf0d68bcf2540e064a59c3ca
9,738
py
Python
py/qaviton/scripts/create.py
qaviton/qaviton
112f1620af36e09031909bd36b7e388df577b75b
[ "Apache-2.0" ]
9
2018-09-06T10:27:55.000Z
2020-01-02T16:50:13.000Z
py/qaviton/scripts/create.py
qaviton/qaviton
112f1620af36e09031909bd36b7e388df577b75b
[ "Apache-2.0" ]
6
2019-06-05T09:44:21.000Z
2022-03-11T23:26:41.000Z
py/qaviton/scripts/create.py
qaviton/qaviton
112f1620af36e09031909bd36b7e388df577b75b
[ "Apache-2.0" ]
9
2018-09-21T14:47:40.000Z
2021-12-21T01:37:20.000Z
import os from qaviton.utils import filer from qaviton.utils import path from qaviton.utils.operating_system import s from qaviton.version import __version__ cwd = os.getcwd() examples = path.of(__file__)('examples') def initial_msg(f): def dec(*args, **kwargs): print(""" QAVITON VERSION {} ...
38.952
155
0.377798
0
0
0
0
539
0.055339
0
0
5,312
0.54538
503ad6eb037cd02695fc6926af71b16de0a8bd4c
1,178
py
Python
fpga_isp/debayer/base.py
antmicro/fpga-isp-core
1b5e1323d9c2938758d230929c8ebcdd039fb603
[ "Apache-2.0" ]
4
2021-10-30T06:29:15.000Z
2022-02-24T04:09:58.000Z
fpga_isp/debayer/base.py
antmicro/fpga-isp-core
1b5e1323d9c2938758d230929c8ebcdd039fb603
[ "Apache-2.0" ]
null
null
null
fpga_isp/debayer/base.py
antmicro/fpga-isp-core
1b5e1323d9c2938758d230929c8ebcdd039fb603
[ "Apache-2.0" ]
1
2022-02-17T19:17:12.000Z
2022-02-17T19:17:12.000Z
from migen import * import math from litex.soc.interconnect.csr import * from litex.soc.interconnect import stream class DemosaicBase(Module): def first_pix(self): return [If(self.first_pixel, NextValue(self.rgb_first,1), NextValue(self.first_pixel,0), ).Else( ...
31.837838
76
0.589134
1,060
0.89983
0
0
0
0
0
0
38
0.032258
503af92f2305932f6fb09b877f2e4fef0e54bb66
10,341
py
Python
tests/pipeline/test_buyback_auth.py
colin1alexander/zipline
ba42e6d8b972dcce9271526562ceff0cddd3fa30
[ "Apache-2.0" ]
null
null
null
tests/pipeline/test_buyback_auth.py
colin1alexander/zipline
ba42e6d8b972dcce9271526562ceff0cddd3fa30
[ "Apache-2.0" ]
null
null
null
tests/pipeline/test_buyback_auth.py
colin1alexander/zipline
ba42e6d8b972dcce9271526562ceff0cddd3fa30
[ "Apache-2.0" ]
null
null
null
""" Tests for the reference loader for Buyback Authorizations. """ from functools import partial from unittest import TestCase import blaze as bz from blaze.compute.core import swap_resources_into_scope from contextlib2 import ExitStack import pandas as pd from six import iteritems from zipline.pipeline.common import...
36.031359
78
0.619089
7,970
0.770718
0
0
1,332
0.128808
0
0
953
0.092157
503b91f3eae562c97ebece22cef6e50c66f5a795
1,534
py
Python
learnMongo/mongoInsert.py
huobingli/pyAlgorithm
cbfe3d65f7748be4f6811cb7e1897d696e914891
[ "MIT" ]
null
null
null
learnMongo/mongoInsert.py
huobingli/pyAlgorithm
cbfe3d65f7748be4f6811cb7e1897d696e914891
[ "MIT" ]
null
null
null
learnMongo/mongoInsert.py
huobingli/pyAlgorithm
cbfe3d65f7748be4f6811cb7e1897d696e914891
[ "MIT" ]
null
null
null
import pymongo from bson.objectid import ObjectId # mongo 增加 def main(): client = pymongo.MongoClient(host='47.114.171.118', port=27017) db = client.test collection = db.students # 插入一条数据 student = { 'id': '20170101', 'name': 'Kevin', 'age': 20, 'gender': 'male' ...
19.417722
67
0.527379
0
0
0
0
0
0
0
0
737
0.420662
503c48b6df0fa453f16c7dbb69d69d3d798c0dc7
4,608
py
Python
gerrymander/operations.py
agx/gerrymander
ffa74828fdd9bae0aa46ec121dfbb1d999a86d31
[ "Apache-2.0" ]
1
2015-09-12T20:52:10.000Z
2015-09-12T20:52:10.000Z
gerrymander/operations.py
russellb/gerrymander
88d3a43dbc18592225619b88ce93cd88d6137a08
[ "Apache-2.0" ]
null
null
null
gerrymander/operations.py
russellb/gerrymander
88d3a43dbc18592225619b88ce93cd88d6137a08
[ "Apache-2.0" ]
null
null
null
# # Copyright (C) 2014 Red Hat, Inc # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wr...
31.346939
80
0.560547
3,933
0.853516
0
0
0
0
0
0
976
0.211806
503d90e6d1ab557f77cc0650d1a8e779ce8b91c4
2,130
py
Python
main.py
pystokes/mnist
ad63158bb53bd7f85c531f708936684edb5b7bd0
[ "MIT" ]
null
null
null
main.py
pystokes/mnist
ad63158bb53bd7f85c531f708936684edb5b7bd0
[ "MIT" ]
2
2021-06-08T20:51:12.000Z
2022-03-12T00:12:22.000Z
main.py
pystokes/mnist
ad63158bb53bd7f85c531f708936684edb5b7bd0
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import datetime as dt import json from pathlib import Path import torch import torch.nn as nn from torch import optim from libs.data_loader import create_mnist_data_loader from libs.model import CNN from libs.trainer import train, test def main(config): # 使用リソースの設...
32.272727
220
0.618779
0
0
0
0
0
0
0
0
1,171
0.473323
503e0e96506950e6497e6cb13686d145c5a53e90
2,029
py
Python
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/status_params.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/status_params.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
ambari-server/src/main/resources/common-services/STORM/0.9.1.2.1/package/scripts/status_params.py
kennyballou/ambari
8985bcf11296d540a861a8634c17d6b9b1accd5a
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python """ 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");...
41.408163
87
0.760473
0
0
0
0
0
0
0
0
1,253
0.617546
503e2e5fa5da5155bca173a661a3c68a6802e6ed
2,917
py
Python
src/pyuwds3/types/vector/scalar_stable.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-08-19T06:15:14.000Z
2021-05-23T09:55:18.000Z
src/pyuwds3/types/vector/scalar_stable.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
5
2021-01-06T09:00:35.000Z
2021-01-20T13:22:19.000Z
src/pyuwds3/types/vector/scalar_stable.py
LAAS-HRI/uwds3
42390f62ed5701a32710341b01faa10efc448078
[ "MIT" ]
2
2020-11-18T17:34:43.000Z
2021-05-23T16:14:17.000Z
import rospy import numpy as np import cv2 class ScalarStable(object): """Represents a stabilized scalar""" def __init__(self, x=.0, vx=.0, p_cov=.03, m_cov=.01, time=None): """ScalarStabilized constructor""" self.x = x ...
31.031915
77
0.567707
2,871
0.98423
0
0
0
0
0
0
373
0.127871
5041193e8af88157d4069d70c71b97131486c9cc
14,399
py
Python
drest/api.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
9
2015-03-10T00:41:54.000Z
2020-05-07T06:03:22.000Z
drest/api.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
null
null
null
drest/api.py
derks/drest
7e35375ffd884c3c124dc800f94c2f271d788e0f
[ "BSD-3-Clause" ]
null
null
null
"""dRest core API connection library.""" import re from . import interface, resource, request, serialization, meta, exc from . import response class API(meta.MetaMixin): """ The API class acts as a high level 'wrapper' around multiple lower level handlers. Most of the meta arguments are optionally passed...
33.177419
155
0.562678
14,239
0.988888
0
0
65
0.004514
0
0
9,875
0.685812
504170f7d179aab0a2ca38addb3c52b1e0a07920
519
py
Python
ExIt/Expert/BaseExpert.py
LarsChrWiik/Expert-Iteration-Algorithmic-Comparison
daed2972159c451be19892ee31c413d60dd2f987
[ "MIT" ]
1
2019-03-01T15:46:06.000Z
2019-03-01T15:46:06.000Z
ExIt/Expert/BaseExpert.py
LarsChrWiik/Expert-Iteration
daed2972159c451be19892ee31c413d60dd2f987
[ "MIT" ]
null
null
null
ExIt/Expert/BaseExpert.py
LarsChrWiik/Expert-Iteration
daed2972159c451be19892ee31c413d60dd2f987
[ "MIT" ]
null
null
null
from ExIt.Apprentice import BaseApprentice from Games.GameLogic import BaseGame class BaseExpert: """ Class for the tree search algorithm used for policy improvement """ def __init__(self): self.__name__ = type(self).__name__ def search(self, state: BaseGame, predictor: BaseApprentice, search_t...
32.4375
102
0.722543
435
0.83815
0
0
0
0
0
0
195
0.375723
5044725258a6a777f86c0f33b6d96e0f8f308a62
1,235
py
Python
monasca_common/kafka_lib/partitioner/base.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
26
2015-10-18T02:54:54.000Z
2022-02-15T01:36:41.000Z
monasca_common/kafka_lib/partitioner/base.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
18
2019-11-01T13:03:36.000Z
2022-02-16T02:28:52.000Z
monasca_common/kafka_lib/partitioner/base.py
zhangjm12/monasca-common
2ebc766534eba6163e98b94a1f114ece18739fff
[ "Apache-2.0" ]
22
2016-06-01T11:47:17.000Z
2020-02-11T14:41:45.000Z
# Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the Li...
33.378378
77
0.680972
692
0.560324
0
0
0
0
0
0
1,015
0.821862
50454b178e9245d647f837e2ff8ebec1f13577e5
1,937
py
Python
tests/test_options.py
inmanta/pytest-inmanta
201a505f56b5a3c8acbcdc6d22f9f5329630c96a
[ "Apache-2.0" ]
null
null
null
tests/test_options.py
inmanta/pytest-inmanta
201a505f56b5a3c8acbcdc6d22f9f5329630c96a
[ "Apache-2.0" ]
59
2018-09-17T07:51:35.000Z
2022-03-29T07:39:20.000Z
tests/test_options.py
inmanta/pytest-inmanta
201a505f56b5a3c8acbcdc6d22f9f5329630c96a
[ "Apache-2.0" ]
1
2019-08-07T14:38:57.000Z
2019-08-07T14:38:57.000Z
""" Copyright 2020 Inmanta 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 ...
33.396552
85
0.717088
0
0
0
0
0
0
0
0
1,183
0.610738
5046b56a13dbb3b70b3975b8d94901defe4984ac
7,798
py
Python
PyFSM/pyfsm/elements/state_unit_tests.py
wafec/wafec-py-fsm
444b7b797411daa3186cf812535a660404951d00
[ "MIT" ]
null
null
null
PyFSM/pyfsm/elements/state_unit_tests.py
wafec/wafec-py-fsm
444b7b797411daa3186cf812535a660404951d00
[ "MIT" ]
null
null
null
PyFSM/pyfsm/elements/state_unit_tests.py
wafec/wafec-py-fsm
444b7b797411daa3186cf812535a660404951d00
[ "MIT" ]
null
null
null
import unittest from pyfsm.elements import * class StateUnitSimpleFsmTests(unittest.TestCase): def setUp(self): self.fsm = StateUnit() self.state1 = StateUnit() self.state2 = StateUnit() self.link1 = LinkElement() self.fsm.starters = [self.state1] self.state1.paren...
35.445455
112
0.616184
7,746
0.993332
0
0
0
0
0
0
237
0.030392
5047525ddbf466e6c5243baf4d5f52864154f60d
8,117
py
Python
data_extraction.py
Qnouro/Gdelt-analysis
e24fb316a1458d51ceb4cf1ccca71b7395235b61
[ "MIT" ]
6
2020-10-09T16:15:12.000Z
2022-02-17T02:04:13.000Z
data_extraction.py
Qnouro/Gdelt-analysis
e24fb316a1458d51ceb4cf1ccca71b7395235b61
[ "MIT" ]
2
2020-10-09T18:26:10.000Z
2020-10-09T22:31:34.000Z
data_extraction.py
Qnouro/Gdelt-analysis
e24fb316a1458d51ceb4cf1ccca71b7395235b61
[ "MIT" ]
null
null
null
#!/usr/bin/env python import os import sys import sqlite3 import pandas as pd import numpy as np from scraper import create_data_folder, read_config from collections import OrderedDict def main(): """ Mainly for debugging purposes. """ config_file = read_config() # Pick a file try: c...
39.21256
246
0.668104
0
0
0
0
0
0
0
0
4,289
0.528397
5047aacc39f41b71f725e5f24c6849454e495033
7,799
py
Python
predict_with_ssd7.py
esp32wrangler/ssd_keras
632024599764a16b4791ce4a705f84273c6f7896
[ "Apache-2.0" ]
null
null
null
predict_with_ssd7.py
esp32wrangler/ssd_keras
632024599764a16b4791ce4a705f84273c6f7896
[ "Apache-2.0" ]
null
null
null
predict_with_ssd7.py
esp32wrangler/ssd_keras
632024599764a16b4791ce4a705f84273c6f7896
[ "Apache-2.0" ]
null
null
null
from keras.optimizers import Adam from keras.callbacks import ModelCheckpoint, EarlyStopping, ReduceLROnPlateau, TerminateOnNaN, CSVLogger from keras import backend as K from keras.models import load_model from math import ceil import numpy as np from matplotlib import pyplot as plt from models.keras_ssd7 import build...
44.3125
297
0.649186
0
0
0
0
0
0
0
0
4,154
0.532632
504917355b6cf7fd121b21c62bef31888fe9fbc3
29
py
Python
deploy/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-03-20T07:13:33.000Z
2017-05-03T03:39:53.000Z
deploy/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
12
2017-07-10T07:04:06.000Z
2017-07-26T09:32:54.000Z
deploy/__init__.py
gaocegege/treadmill
04325d319c0ee912c066f07b88b674e84485f154
[ "Apache-2.0" ]
2
2017-05-04T11:25:32.000Z
2017-07-11T09:10:01.000Z
"""Ansible playbooks init"""
14.5
28
0.689655
0
0
0
0
0
0
0
0
28
0.965517
5049af1e05d73fa6840cb3f92f972bafd2d50cac
12,339
py
Python
a1/ANN.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
1
2021-08-01T03:30:49.000Z
2021-08-01T03:30:49.000Z
a1/ANN.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
null
null
null
a1/ANN.py
mishless/LearningSystems
635d9af9d00ae0360d7ca8571bf47f782fdcdfe9
[ "MIT" ]
null
null
null
#Artificial Neural Network #includes import configparser import math import matplotlib.pyplot as plt import numpy as np import random from decimal import * #global variables weights = []; topology = []; data_training = []; data_test = []; learning_rate = 0; weight_min = 0; weight_max = 0; error_terms = []; outputs =...
31.557545
146
0.606775
0
0
0
0
0
0
0
0
883
0.071562
504a5158dee21a88d36bd8c0ab457b382a4195ba
143
py
Python
Python/CodingBat/string_times.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
1
2018-05-24T11:30:05.000Z
2018-05-24T11:30:05.000Z
Python/CodingBat/string_times.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
null
null
null
Python/CodingBat/string_times.py
dvt32/cpp-journey
afd7db7a1ad106c41601fb09e963902187ae36e6
[ "MIT" ]
2
2017-08-11T06:53:30.000Z
2017-08-29T12:07:52.000Z
# http://codingbat.com/prob/p193507 def string_times(str, n): result = "" for i in range(0, n): result += str return result
14.3
35
0.601399
0
0
0
0
0
0
0
0
37
0.258741
504a8a1f14c3de8780d56a229c744af8d53c9b27
262
py
Python
app/service/plugin_svc.py
muyenzo/caldera
408f6d54239aa73832f474136ac8f64faab5be35
[ "Apache-2.0" ]
null
null
null
app/service/plugin_svc.py
muyenzo/caldera
408f6d54239aa73832f474136ac8f64faab5be35
[ "Apache-2.0" ]
null
null
null
app/service/plugin_svc.py
muyenzo/caldera
408f6d54239aa73832f474136ac8f64faab5be35
[ "Apache-2.0" ]
null
null
null
from app.service.base_service import BaseService class PluginService(BaseService): def __init__(self, plugins): self.plugins = plugins self.log = self.add_service('plugin_svc', self) def get_plugins(self): return self.plugins
21.833333
55
0.698473
210
0.801527
0
0
0
0
0
0
12
0.045802
504a9f6ead52901b47b1d2e2ebcb578f28c594cc
3,709
py
Python
tests/node_io/test_ethernet.py
SpiNNakerManchester/nengo_spinnaker
147e2b3d6c0965259d6897f177f23e5c99b184f9
[ "MIT" ]
13
2015-06-10T08:58:05.000Z
2022-03-29T08:20:14.000Z
tests/node_io/test_ethernet.py
SpiNNakerManchester/nengo_spinnaker
147e2b3d6c0965259d6897f177f23e5c99b184f9
[ "MIT" ]
131
2015-04-16T15:17:12.000Z
2020-06-19T05:38:56.000Z
tests/node_io/test_ethernet.py
SpiNNakerManchester/nengo_spinnaker
147e2b3d6c0965259d6897f177f23e5c99b184f9
[ "MIT" ]
7
2015-07-01T00:01:50.000Z
2018-06-28T10:12:18.000Z
import nengo import pytest from nengo_spinnaker.builder import Model from nengo_spinnaker.builder.ports import OutputPort, InputPort from nengo_spinnaker.node_io import ethernet as ethernet_io from nengo_spinnaker.operators import SDPReceiver, SDPTransmitter @pytest.mark.parametrize("transmission_period", [0.001, 0....
34.027523
78
0.701267
0
0
0
0
759
0.204637
0
0
1,031
0.277972
504ae56ee7d72c3c28a102b8af0d776ce3b43014
59,138
py
Python
aliyun/log/logclient.py
SeraphLiu/aliyun-log-sdk-python
35f608bd6de9f5ed7a89c40288c550cfc3bea8ba
[ "BSD-3-Clause" ]
null
null
null
aliyun/log/logclient.py
SeraphLiu/aliyun-log-sdk-python
35f608bd6de9f5ed7a89c40288c550cfc3bea8ba
[ "BSD-3-Clause" ]
null
null
null
aliyun/log/logclient.py
SeraphLiu/aliyun-log-sdk-python
35f608bd6de9f5ed7a89c40288c550cfc3bea8ba
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python # encoding: utf-8 # Copyright (C) Alibaba Cloud Computing # All rights reserved. import sys import requests try: import json except ImportError: import simplejson as json try : import logservice_lz4 except ImportError: pass from datetime import datetime from...
36.325553
183
0.615543
55,341
0.935794
0
0
0
0
0
0
28,734
0.48588
504b5c677cc47a60e5d73108185305ec18d1d8d6
489
py
Python
CodeWars/Python/AlternateCase.py
BobbyRobillard/CodingChallenges
71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0
[ "MIT" ]
null
null
null
CodeWars/Python/AlternateCase.py
BobbyRobillard/CodingChallenges
71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0
[ "MIT" ]
null
null
null
CodeWars/Python/AlternateCase.py
BobbyRobillard/CodingChallenges
71d5ca0b7f7c470c547d858dde7a799ce7d0d1a0
[ "MIT" ]
null
null
null
def alternate_case(s): # Like a Giga Chad return "".join([char.lower() if char.isupper() else char.upper() for char in s]) # Like a Beta Male # return s.swapcase() # EXAMPLE AND TESTING # input = ["Hello World", "cODEwARS"] for item in input: print("\nInput: {0}\nAlternate Case: {1}".format(item,...
30.5625
84
0.672802
0
0
0
0
0
0
0
0
224
0.458078
504ca1ede2e47eb980188d865fd66a3fa14bb848
729
py
Python
todoist_python_additions/scripts/personal.py
aagnone3/todoist-python-additions
56bfe6e0160fd28ba0b3b04f4f156b89d4512c2f
[ "Apache-2.0" ]
null
null
null
todoist_python_additions/scripts/personal.py
aagnone3/todoist-python-additions
56bfe6e0160fd28ba0b3b04f4f156b89d4512c2f
[ "Apache-2.0" ]
null
null
null
todoist_python_additions/scripts/personal.py
aagnone3/todoist-python-additions
56bfe6e0160fd28ba0b3b04f4f156b89d4512c2f
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python import os import todoist import pickle from os import path from argparse import ArgumentParser from todoist_python_additions.lib.state import Todoist def build_parser(): parser = ArgumentParser() parser.add_argument('-p', '--project', required=True, help='Project to get descendant tasks...
22.78125
101
0.643347
0
0
0
0
0
0
0
0
129
0.176955
504e0deae6fdb470fcb220ab052c73d97c382d30
636
py
Python
recipe_server/recipeView.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
recipe_server/recipeView.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
recipe_server/recipeView.py
Shouyin/Recipe
dffaafdebefd7c39a1438444db910f5d7943cf1f
[ "MIT" ]
null
null
null
from django import http from django.shortcuts import render from django.shortcuts import render_to_response from . import settings from .scripts import logic import os import urllib import json def recipe_html(request): print(os.path.join(settings.BASE_DIR, "recipe_server/static")) return render_to_response("r...
28.909091
70
0.751572
0
0
0
0
0
0
0
0
57
0.089623
504e2922325d5c9d9b0ab7cf89788990779e8e47
296
py
Python
ua_project_transfer/wf_steps_template.py
UACoreFacilitiesIT/UA-Project_Transfer
0360f20f54a6c9c49dcdb1568a1c961222cb1404
[ "MIT" ]
1
2020-07-14T16:27:25.000Z
2020-07-14T16:27:25.000Z
ua_project_transfer/wf_steps_template.py
UACoreFacilitiesIT/UA-Project_Transfer
0360f20f54a6c9c49dcdb1568a1c961222cb1404
[ "MIT" ]
null
null
null
ua_project_transfer/wf_steps_template.py
UACoreFacilitiesIT/UA-Project_Transfer
0360f20f54a6c9c49dcdb1568a1c961222cb1404
[ "MIT" ]
null
null
null
"""A json-like master list of workflows and steps.""" # NOTE: Create a json-like dictionary in the form of: # WF_STEPS = { # env1: { # 1st condition defined in next_steps: { # 2nd condition defined in next_steps: (Workflow Name, Step Name), # }, # }, # } WF_STEPS = {}
24.666667
76
0.608108
0
0
0
0
0
0
0
0
272
0.918919
504f7132a6b57d1fc297a4a0f887b07196d4dbf4
250
py
Python
lang/python/pptv_strip.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
8
2015-06-07T13:25:48.000Z
2022-03-22T23:14:50.000Z
lang/python/pptv_strip.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
30
2016-01-29T01:36:41.000Z
2018-09-19T07:01:22.000Z
lang/python/pptv_strip.py
liuyang1/test
a4560e0c9ffd0bc054d55bbcf12a894ab5b7d417
[ "MIT" ]
null
null
null
import sys fn = sys.argv[1] fp = open(fn) fo = open(fn+".flv","wb") data = fp.read() offset = int(sys.argv[2]) if len(sys.argv)==3: fo.write(data[offset:]) else: l = int(sys.argsv[3]) fo.write(data[offset:offset+l]) fo.close() fp.close()
17.857143
35
0.608
0
0
0
0
0
0
0
0
10
0.04
5050238035d838d374850823b3ad1446226e79b5
329
py
Python
tools/exploitation_tools.py
LucaRibeiro/pentestools
2e7a6b9bf51a84aec90944c50a23e882d184ccdc
[ "MIT" ]
1
2021-02-18T16:15:25.000Z
2021-02-18T16:15:25.000Z
tools/exploitation_tools.py
LucaRibeiro/Pentools
2e7a6b9bf51a84aec90944c50a23e882d184ccdc
[ "MIT" ]
null
null
null
tools/exploitation_tools.py
LucaRibeiro/Pentools
2e7a6b9bf51a84aec90944c50a23e882d184ccdc
[ "MIT" ]
null
null
null
#!/usr/bin/python3 list = ["Armitage", "Backdoor Factory", "BeEF","cisco-auditing-tool", "cisco-global-exploiter","cisco-ocs","cisco-torch","Commix","crackle", "exploitdb","jboss-autopwn","Linux Exploit Suggester","Maltego Teeth", "Metasploit Framework","MSFPC","RouterSploit","SET","ShellNoob","sqlmap", "THC-IPV6","Ye...
41.125
73
0.714286
0
0
0
0
0
0
0
0
291
0.884498
50530270ca9767c3a423e4f06bb397a9db26bf9c
1,152
py
Python
web/api/serializer/foodComment.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
10
2016-02-10T13:57:10.000Z
2021-04-01T14:34:33.000Z
web/api/serializer/foodComment.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
203
2016-02-14T16:13:15.000Z
2016-12-23T21:27:08.000Z
web/api/serializer/foodComment.py
bounswe/bounswe2016group2
f5dbba9b78fc03e8fd6a1fc7548de6cd1177a5ad
[ "Apache-2.0" ]
2
2017-05-10T18:41:28.000Z
2019-02-27T21:01:18.000Z
from rest_framework import serializers from api.model.foodComment import FoodComment from api.model.food import Food from django.contrib.auth.models import User from api.serializer.user import UserSerializer class FoodCommentSerializer(serializers.ModelSerializer): comment = serializers.CharField(max_length=255...
27.428571
82
0.730903
934
0.810764
0
0
0
0
0
0
39
0.033854
50546bf4b57d2a73845feae541d069b7a6fc01c7
616
py
Python
pycccl/exchanges/binance.py
beraldoleal/pycccl
488bc799fdd91b626c2735be11ad014f0c5262f4
[ "MIT" ]
2
2017-12-18T23:58:56.000Z
2020-02-13T16:16:45.000Z
pycccl/exchanges/binance.py
beraldoleal/pycccl
488bc799fdd91b626c2735be11ad014f0c5262f4
[ "MIT" ]
null
null
null
pycccl/exchanges/binance.py
beraldoleal/pycccl
488bc799fdd91b626c2735be11ad014f0c5262f4
[ "MIT" ]
null
null
null
from pycccl.base import ExchangeBase class Binance(ExchangeBase): _public_endpoint = "https://api.binance.com/api/v1" _private_endpoint = _public_endpoint def get_ticker(self, ticker, against='USDT'): pair = "{}{}".format(ticker, against) endpoint = "{}/ticker/24hr".format(self._public_en...
36.235294
65
0.608766
576
0.935065
0
0
0
0
0
0
145
0.23539
505794ef4686ee28ab927b92a5720e1b1a514e5a
3,036
py
Python
features/feature_helpers.py
Omarzintan/bumblebee-ai
0b8c5cecf032730e23b1b710a88538f5e4ea70c9
[ "MIT" ]
3
2021-05-06T16:29:26.000Z
2022-01-09T03:32:40.000Z
features/feature_helpers.py
Omarzintan/bumblebee-ai
0b8c5cecf032730e23b1b710a88538f5e4ea70c9
[ "MIT" ]
1
2021-05-20T17:59:12.000Z
2021-05-20T17:59:12.000Z
features/feature_helpers.py
Omarzintan/bumblebee-ai
0b8c5cecf032730e23b1b710a88538f5e4ea70c9
[ "MIT" ]
null
null
null
'''Contains helper functions that can be used by any feature.''' from nltk_utils import tokenize def get_search_query( spoken_text, patterns, search_terms, false_search_term_indicators=['like', 'love', 'want', 'ready'] ): ''' General function that extracts a search query from spoken text g...
38.43038
78
0.641634
0
0
0
0
0
0
0
0
1,601
0.527339
5058a081df1dc931f3e41294a65ae1da77668e15
1,042
py
Python
tests/core/test_machine.py
zionwu/rancher
f3e80f69e94d7da64e75545caadda61870148753
[ "Apache-2.0" ]
null
null
null
tests/core/test_machine.py
zionwu/rancher
f3e80f69e94d7da64e75545caadda61870148753
[ "Apache-2.0" ]
null
null
null
tests/core/test_machine.py
zionwu/rancher
f3e80f69e94d7da64e75545caadda61870148753
[ "Apache-2.0" ]
1
2021-07-13T05:49:57.000Z
2021-07-13T05:49:57.000Z
from common import auth_check def test_machine_fields(cclient): fields = { 'useInternalIpAddress': 'cr', 'nodeTaints': 'r', 'nodeLabels': 'r', 'nodeAnnotations': 'r', 'namespaceId': 'cr', 'conditions': 'r', 'allocatable': 'r', 'capacity': 'r', ...
25.414634
78
0.487524
0
0
0
0
0
0
0
0
455
0.43666
505a515d4a168bd3da730d0e4d81ce61082b150d
1,764
py
Python
tempest/lib/services/placement/base_placement_client.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
254
2015-01-05T19:22:52.000Z
2022-03-29T08:14:54.000Z
tempest/lib/services/placement/base_placement_client.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
13
2015-03-02T15:53:04.000Z
2022-02-16T02:28:14.000Z
tempest/lib/services/placement/base_placement_client.py
rishabh20111990/tempest
df15531cd4231000b0da016f5cd8641523ce984e
[ "Apache-2.0" ]
367
2015-01-07T15:05:39.000Z
2022-03-04T09:50:35.000Z
# Copyright (c) 2019 Ericsson # # 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 agree...
40.090909
78
0.709751
1,033
0.585601
0
0
0
0
0
0
628
0.356009
505ba5b3fd5ef3def46cb59aa349536857d79a09
6,743
py
Python
Telegram Bot/Controllo_intenti.py
LuzDeGea/FoodHelper
2b4ad1b731f605c1aaf92863d8dc69ee9e9a1599
[ "MIT" ]
null
null
null
Telegram Bot/Controllo_intenti.py
LuzDeGea/FoodHelper
2b4ad1b731f605c1aaf92863d8dc69ee9e9a1599
[ "MIT" ]
null
null
null
Telegram Bot/Controllo_intenti.py
LuzDeGea/FoodHelper
2b4ad1b731f605c1aaf92863d8dc69ee9e9a1599
[ "MIT" ]
null
null
null
from Dialogflow_Api import rispondimi from collegamentoSito import inserisci_utente from Nutrition import get_food, traduzione import re tipo_cibo = ["frutta", "carne", "verdure", "ortaggi", "primi_piatti", "legumi"] """ controllo_intent(query_result, utente)--> text_respose prende il risultato della query e lo confr...
34.757732
114
0.667655
0
0
0
0
0
0
0
0
2,275
0.336788
505bbd3722c72235b1e0bdbc9e5ed0fb5d0411eb
780
py
Python
solutions/problem_122.py
ksvr444/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,921
2018-11-13T18:19:56.000Z
2021-11-15T14:25:41.000Z
solutions/problem_122.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
2
2019-07-19T01:06:16.000Z
2019-08-01T22:21:36.000Z
solutions/problem_122.py
MohitIndian/daily-coding-problem
5d9f488f81c616847ee4e9e48974523ec2d598d7
[ "MIT" ]
1,066
2018-11-19T19:06:55.000Z
2021-11-13T12:33:56.000Z
def get_max_coins_helper(matrix, crow, ccol, rows, cols): cval = matrix[crow][ccol] if crow == rows - 1 and ccol == cols - 1: return cval down, right = cval, cval if crow < rows - 1: down += get_max_coins_helper( matrix, crow + 1, ccol, rows, cols) if ccol < cols - 1: ...
23.636364
57
0.534615
0
0
0
0
0
0
0
0
0
0
505c47079444405aa3ca837c5da8f814a93cab97
1,745
py
Python
examples/GANs/3DGAN/eval.py
Tarkiyah/kaotlin
97374f648a53f6532f2348ca3f9ace943c4e2a4c
[ "ECL-2.0", "Apache-2.0" ]
2
2019-11-18T05:22:15.000Z
2020-02-12T15:23:14.000Z
examples/GANs/3DGAN/eval.py
AOE-khkhan/kaolin
ed132736421ee723d14d59eaeb0286a8916a159d
[ "ECL-2.0", "Apache-2.0" ]
null
null
null
examples/GANs/3DGAN/eval.py
AOE-khkhan/kaolin
ed132736421ee723d14d59eaeb0286a8916a159d
[ "ECL-2.0", "Apache-2.0" ]
1
2019-11-18T13:03:53.000Z
2019-11-18T13:03:53.000Z
# Copyright (c) 2019, NVIDIA CORPORATION. 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 applicabl...
32.314815
103
0.755874
0
0
0
0
0
0
0
0
739
0.423496
505c9ede825c6ed2e1eb8da363a465a3e5284503
26,526
py
Python
camfi/annotator.py
J-Wall/camfi
feec4d5df5cdc0c4e1144ce8f85bbf6190c68be1
[ "MIT" ]
null
null
null
camfi/annotator.py
J-Wall/camfi
feec4d5df5cdc0c4e1144ce8f85bbf6190c68be1
[ "MIT" ]
3
2021-07-01T05:41:57.000Z
2021-11-03T01:58:15.000Z
camfi/annotator.py
J-Wall/camfi
feec4d5df5cdc0c4e1144ce8f85bbf6190c68be1
[ "MIT" ]
1
2021-09-22T13:54:54.000Z
2021-09-22T13:54:54.000Z
"""Defines procedures for training, and evaluation automatic camfi annotation models, and for using them for making automatic annotations (inference). Depends on camfi.util, camfi.datamodel.autoannotation, camfi.datamodel.geometry, camfi.datamode.via, as well as ._torchutils and ._models.""" from datetime import datet...
38.221902
93
0.64695
16,317
0.615132
0
0
964
0.036342
0
0
11,523
0.434404
50609a1ab04ea45a8835acdab90437bf93e94353
1,644
py
Python
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/laagc_input.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
5
2022-02-20T07:10:02.000Z
2022-03-18T17:47:53.000Z
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/laagc_input.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
SLpackage/private/pacbio/pythonpkgs/pbreports/lib/python2.7/site-packages/pbreports/report/laagc_input.py
fanglab/6mASCOPE
3f1fdcb7693ff152f17623ce549526ec272698b1
[ "BSD-3-Clause" ]
null
null
null
""" Wrapper for running amplicon_analysis_inputs report for LAAgc (with an extra input file). """ import logging import sys from pbcommand.models import FileTypes from pbcommand.cli import pbparser_runner from pbcommand.utils import setup_log from pbreports.report.amplicon_analysis_input import _get_parser, make_rep...
27.4
97
0.670316
151
0.091849
0
0
0
0
0
0
403
0.245134
5060bae394ef43f65427b7889ebd8a488a199475
1,014
py
Python
toughradius/common/event_common.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
1
2019-05-12T15:06:58.000Z
2019-05-12T15:06:58.000Z
toughradius/common/event_common.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
toughradius/common/event_common.py
geosson/GSRadius
5870e3d055e8366f98b8e65220a1520b5da22f6d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python # coding:utf-8 from toughlib import dispatch """触发邮件,短信发送公共方法""" def trigger_notify(obj, user_info, **kwargs): if int(obj.get_param_value("webhook_notify_enable", 0)) > 0 and kwargs.get('webhook_notify'): dispatch.pub(kwargs['webhook_notify'], user_info, async=False) if int(o...
39
98
0.68146
0
0
0
0
0
0
0
0
352
0.339114
5060ee963497faf44238f2e6162528f64a4e0e16
2,017
py
Python
sahara/utils/openstack/nova.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
1
2022-02-25T19:14:33.000Z
2022-02-25T19:14:33.000Z
sahara/utils/openstack/nova.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
sahara/utils/openstack/nova.py
citrix-openstack-build/sahara
17e4f4dac5bb321ef4d5a55664cca0857127d7e6
[ "Apache-2.0" ]
null
null
null
# Copyright (c) 2013 Mirantis Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writ...
27.630137
69
0.699554
0
0
0
0
0
0
0
0
577
0.286068
50632d26f7af85cd942cc29b1b5c01dae2c5c47e
2,978
py
Python
swim_backend/events.py
eurocontrol-swim/swim-backend
bdeba82d43b833f2fc9ef81e806d8ce0aafdb5b9
[ "BSD-3-Clause" ]
null
null
null
swim_backend/events.py
eurocontrol-swim/swim-backend
bdeba82d43b833f2fc9ef81e806d8ce0aafdb5b9
[ "BSD-3-Clause" ]
null
null
null
swim_backend/events.py
eurocontrol-swim/swim-backend
bdeba82d43b833f2fc9ef81e806d8ce0aafdb5b9
[ "BSD-3-Clause" ]
null
null
null
""" Copyright 2019 EUROCONTROL ========================================== Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions an...
36.765432
121
0.693083
1,142
0.383479
0
0
136
0.045668
0
0
2,050
0.688381
ac8cc54ceb3e6f1445ff8cd5bb3540d66783ed73
22,063
py
Python
src/ama/validator.py
sffjunkie/ama
e05e98fb771ae783901516f882990fcc54ca0026
[ "Apache-2.0" ]
1
2019-03-21T09:50:20.000Z
2019-03-21T09:50:20.000Z
src/ama/validator.py
sffjunkie/ama
e05e98fb771ae783901516f882990fcc54ca0026
[ "Apache-2.0" ]
null
null
null
src/ama/validator.py
sffjunkie/ama
e05e98fb771ae783901516f882990fcc54ca0026
[ "Apache-2.0" ]
null
null
null
# Copyright 2013-2014, Simon Kennedy, [email protected] # pylint: disable=unused-argument """Provides access to a registry of validation functions. Functions are returned via the :func:`get_validator` function and can be refined by passing a specification which alters what passes the validation. All validator...
29.10686
91
0.537098
0
0
292
0.013235
0
0
0
0
9,583
0.434347
ac8dbd9e323eeca0d685d4a4900b4bd4b422d5be
11,396
py
Python
Thirdparty/libcurl/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
5
2020-02-11T12:04:17.000Z
2022-01-30T10:18:29.000Z
Thirdparty/libcurl/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
null
null
null
Thirdparty/libcurl/build.py
reven86/dava.engine
ca47540c8694668f79774669b67d874a30188c20
[ "BSD-3-Clause" ]
4
2019-11-28T19:24:34.000Z
2021-08-24T19:12:50.000Z
import os import shutil import build_utils def get_supported_targets(platform): if platform == 'win32': return ['win32', 'win10'] elif platform == 'darwin': return ['macos', 'ios', 'android'] elif platform == 'linux': return ['android', 'linux'] else: return [] def ge...
33.616519
112
0.660495
0
0
0
0
195
0.017111
0
0
2,909
0.255265
ac8dff59d2ee5472682b61a81f77760f6305472b
1,871
py
Python
tests/test_schnell.py
damonge/SNELL
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-05-07T03:22:37.000Z
2021-02-19T14:34:42.000Z
tests/test_schnell.py
damonge/SNELL
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-04-28T11:13:10.000Z
2021-06-08T12:20:25.000Z
tests/test_schnell.py
damonge/GWSN
4bb276225fce8f535619d0f2133a19f3c42aa44f
[ "BSD-3-Clause" ]
2
2020-05-07T03:22:43.000Z
2021-12-05T15:41:05.000Z
import healpy as hp import numpy as np from schnell import MapCalculator, GroundDetector, LISADetector # Detectors det1 = GroundDetector('Hanford', 46.4, -119.4, 90-171.8, 'plots/data/aLIGO_design.txt') det2 = GroundDetector('Livingstone', 30.7, -90.8, 90-243.0, 'plots...
36.686275
63
0.622662
0
0
0
0
0
0
0
0
317
0.169428
ac8ff801eb4c39b0e7abc25a4c80f6925127a04d
7,281
py
Python
bittensor/wallet.py
il-dar/bittensor
12ea83a76abc3556f42e619ed04a223c0407b9b3
[ "MIT" ]
null
null
null
bittensor/wallet.py
il-dar/bittensor
12ea83a76abc3556f42e619ed04a223c0407b9b3
[ "MIT" ]
null
null
null
bittensor/wallet.py
il-dar/bittensor
12ea83a76abc3556f42e619ed04a223c0407b9b3
[ "MIT" ]
null
null
null
# The MIT License (MIT) # Copyright © 2021 Opentensor.ai # Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated # documentation files (the “Software”), to deal in the Software without restriction, including without limitation # the rights to use, copy, modify,...
43.598802
136
0.641121
5,862
0.804115
0
0
4,099
0.562277
0
0
3,237
0.444033
ac921c70997b850dff4ce1806e2a8f895193810b
1,924
py
Python
build_data/data_partitions.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
build_data/data_partitions.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
build_data/data_partitions.py
zkurtz/kaggle_malware_2019
72465b2f5d5f49d1acefa9b4f6b06df2aa53e4a8
[ "MIT" ]
null
null
null
''' Split the training data into subsets for cross validation, sample from the testing data, etc. ''' from feather import read_dataframe as read_feather import numpy as np import pdb from zpylib import data_path as dp from zpylib import datatools from zpylib import N_TEST from zpylib import N_TRAIN # Config NGROUPS=...
32.610169
95
0.696985
0
0
0
0
0
0
0
0
606
0.314969
ac92df5c1931094331c3056c256d7646c3351e9b
1,732
py
Python
tests/integration/application/test_attribute_server_and_client.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2020-12-04T17:59:19.000Z
2020-12-04T17:59:19.000Z
tests/integration/application/test_attribute_server_and_client.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
null
null
null
tests/integration/application/test_attribute_server_and_client.py
microprediction/predictionserver
817243a4c85aac63995ab3a18cfbdcb01bb07bd0
[ "MIT" ]
1
2021-03-05T05:03:36.000Z
2021-03-05T05:03:36.000Z
from predictionserver.clientmixins.attributereader import ( AttributeReader, AttributeType, AttributeGranularity ) from predictionserver.set_config import MICRO_TEST_CONFIG from predictionserver.servermixins.attributeserver import AttributeServer BABLOH_CATTLE = MICRO_TEST_CONFIG['BABLOH_CATTLE'] PUBLIC_PROFILE =...
35.346939
73
0.718822
0
0
0
0
0
0
0
0
1,164
0.672055
ac9387393ec1679069c88ceafbe610de436150e4
20,187
py
Python
aiokraken/utils/tests/test_timeindexeddataframe.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
aiokraken/utils/tests/test_timeindexeddataframe.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
82
2019-08-30T09:37:49.000Z
2022-03-29T14:53:22.000Z
aiokraken/utils/tests/test_timeindexeddataframe.py
asmodehn/aiokraken
b260bd41d5aa091e6a4f1818328426fbe6f625c0
[ "MIT" ]
null
null
null
import unittest from datetime import datetime, timezone from pandas import DatetimeTZDtype from parameterized import parameterized import pandas as pd from aiokraken.utils.timeindexeddataframe import TimeindexedDataframe """ Test module. This is intended for extensive testing, using parameterized, hypothesis or simi...
36.904936
109
0.395849
19,731
0.977411
0
0
14,682
0.7273
0
0
7,274
0.360331
ac94d7600e1dceeb8d2024e62d34864ff7ca1d58
2,041
py
Python
app/models/admin.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
app/models/admin.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
1
2019-07-08T12:32:29.000Z
2019-07-08T12:32:29.000Z
app/models/admin.py
ShuaiGao/mini-shop-server
8a72b2d457bba8778e97637027ffa82bfa11e8a9
[ "MIT" ]
null
null
null
# _*_ coding: utf-8 _*_ """ Created by Allen7D on 2018/6/16. """ import os.path as op from flask_admin import Admin, BaseView, expose from flask import render_template, redirect, url_for from flask_admin.contrib.sqla import ModelView from flask_admin.contrib.fileadmin import FileAdmin from flask_admin import form fro...
27.958904
78
0.709456
1,043
0.487611
0
0
65
0.030388
0
0
820
0.383357
ac9516fa184eda7179ab54abc6a3a63da22f79c3
9,334
py
Python
MKCommand.py
the-snowwhite/Machinekit-Workbench
3e0c3ae55e67553bd599a3010ccf3a0392212333
[ "MIT" ]
8
2019-09-27T18:45:51.000Z
2020-02-27T09:58:10.000Z
MKCommand.py
the-snowwhite/Machinekit-Workbench
3e0c3ae55e67553bd599a3010ccf3a0392212333
[ "MIT" ]
null
null
null
MKCommand.py
the-snowwhite/Machinekit-Workbench
3e0c3ae55e67553bd599a3010ccf3a0392212333
[ "MIT" ]
3
2019-10-19T00:18:41.000Z
2019-11-17T19:58:44.000Z
# Classes implementing the different commands that can be sent to MK # The implemented classes do not cover the complete functional set of MK # but are what is required to implement a basic UI. import enum import machinetalk.protobuf.message_pb2 as MESSAGE import machinetalk.protobuf.status_pb2 as STATUS import machi...
42.235294
123
0.714378
8,936
0.95736
0
0
0
0
0
0
3,582
0.383758
ac95238747ed70d5ab97026ac30760503ed60208
24,199
py
Python
src/testing/TestON/bin/nec.py
securedataplane/preacher
2f76581de47036e79cd6e1183948c88b35ce4950
[ "MIT" ]
1
2020-07-23T08:06:44.000Z
2020-07-23T08:06:44.000Z
src/testing/TestON/bin/nec.py
securedataplane/preacher
2f76581de47036e79cd6e1183948c88b35ce4950
[ "MIT" ]
null
null
null
src/testing/TestON/bin/nec.py
securedataplane/preacher
2f76581de47036e79cd6e1183948c88b35ce4950
[ "MIT" ]
null
null
null
class NEC: def __init__( self ): self.prompt = '(.*)' self.timeout = 60 def show(self, *options, **def_args ): '''Possible Options :[' access-filter ', ' accounting ', ' acknowledgments ', ' auto-config ', ' axrp ', ' cfm ', ' channel-group ', ' clock ', ' config-lock-s...
44.320513
867
0.592793
24,197
0.999917
0
0
0
0
0
0
4,498
0.185875
ac9572d83ed99fc10622f825cbd2ad1d0bacc722
1,094
py
Python
main.py
StewartNZ/OpenCVPython_ObjectDectection_Tut_1
bce18fded0da0e918d6e63c9fc0c469f280c09fe
[ "MIT" ]
null
null
null
main.py
StewartNZ/OpenCVPython_ObjectDectection_Tut_1
bce18fded0da0e918d6e63c9fc0c469f280c09fe
[ "MIT" ]
null
null
null
main.py
StewartNZ/OpenCVPython_ObjectDectection_Tut_1
bce18fded0da0e918d6e63c9fc0c469f280c09fe
[ "MIT" ]
null
null
null
import cv2 threshold = 0.5 # Threshold to detect objects cap = cv2.VideoCapture(0) cap.set(3, 640) cap.set(4, 480) classNames = [] classFile = "coco.names" with open(classFile, "rt") as f: classNames = f.read().rstrip("\n").split("\n") configPath = "ssd_mobilenet_v3_large_coco_2020_01_14.pbtxt" weightsPath = "f...
29.567568
99
0.657221
0
0
0
0
0
0
0
0
137
0.125229
ac9628c7fcfcaba0ff2db9009e0f62d4acc1ad33
4,302
py
Python
custom_functions.py
JacopoMalatesta/letterboxd_30000
90df0d19cd4b5a24259a76a01780615cd6d51356
[ "MIT" ]
null
null
null
custom_functions.py
JacopoMalatesta/letterboxd_30000
90df0d19cd4b5a24259a76a01780615cd6d51356
[ "MIT" ]
null
null
null
custom_functions.py
JacopoMalatesta/letterboxd_30000
90df0d19cd4b5a24259a76a01780615cd6d51356
[ "MIT" ]
null
null
null
#!/usr/bin/env python # coding: utf-8 # In[1]: from bs4 import BeautifulSoup import re import json import numpy as np import sys sys.setrecursionlimit(10000) # Write a function that parses HTML pages into BeautifulSoup objects # In[2]: def soupify(html): soup = BeautifulSoup(html, 'lxml') return soup ...
19.824885
108
0.552069
0
0
0
0
0
0
0
0
1,213
0.281962
ac966bdc85252514fe041fc3a7a1ee98e28774c4
2,651
py
Python
girder/molecules/molecules/models/geometry.py
bnmajor/mongochemserver
aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5
[ "BSD-3-Clause" ]
14
2015-05-04T16:40:48.000Z
2021-07-13T08:00:30.000Z
girder/molecules/molecules/models/geometry.py
bnmajor/mongochemserver
aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5
[ "BSD-3-Clause" ]
88
2015-07-24T07:58:43.000Z
2021-02-23T19:37:13.000Z
girder/molecules/molecules/models/geometry.py
bnmajor/mongochemserver
aa76ab6e7f749c3e893f27e208984b6ed2d4b2b5
[ "BSD-3-Clause" ]
8
2015-06-12T20:54:39.000Z
2021-04-09T01:07:15.000Z
from bson.objectid import ObjectId from girder.models.model_base import AccessControlledModel from girder.constants import AccessType from molecules.models.molecule import Molecule as MoleculeModel from molecules.utilities.get_cjson_energy import get_cjson_energy from molecules.utilities.pagination import parse_pagin...
31.939759
80
0.634478
2,189
0.825726
0
0
0
0
0
0
408
0.153904
ac97d43733100708fa2b0d168201fd6612736104
2,185
py
Python
GearC/material.py
cfernandesFEUP/Gear-Calculation
c15249c23f97e1168e3316ad5e27ed747758353a
[ "Unlicense" ]
3
2020-09-01T13:19:10.000Z
2021-12-13T13:59:00.000Z
GearC/material.py
cfernandesFEUP/Gear-Calculation
c15249c23f97e1168e3316ad5e27ed747758353a
[ "Unlicense" ]
null
null
null
GearC/material.py
cfernandesFEUP/Gear-Calculation
c15249c23f97e1168e3316ad5e27ed747758353a
[ "Unlicense" ]
null
null
null
## LIBRARY OF MATERIALS ####################################################### def matp(mat, Tbulk, NL): import numpy as np E, v, cpg, kg, rohg, sigmaHlim, sigmaFlim = [np.zeros(2) for _ in range(7)] for i in range(len(E)): if mat[i] == 'POM': E[i] = 3.2e9 # 2900 MPa (min) ...
46.489362
101
0.381236
0
0
0
0
0
0
0
0
450
0.20595
ac9916de49ddb625f43df3193b1ae53742dad7ca
802
py
Python
crawler/browser/javascript.py
CvvT/crawler_sqlmap
8cca8e8386e4b2160e2064a510b47c1202acdf39
[ "Apache-2.0" ]
9
2017-06-23T08:57:45.000Z
2022-03-16T16:10:10.000Z
crawler/browser/javascript.py
CvvT/crawler_sqlmap
8cca8e8386e4b2160e2064a510b47c1202acdf39
[ "Apache-2.0" ]
4
2017-06-27T10:16:52.000Z
2018-08-24T00:47:07.000Z
crawler/browser/javascript.py
CvvT/crawler_sqlmap
8cca8e8386e4b2160e2064a510b47c1202acdf39
[ "Apache-2.0" ]
3
2017-06-23T08:57:50.000Z
2021-02-02T05:58:09.000Z
#! /usr/bin/env python # -*- coding: utf-8 -*- # __author__ = 'CwT' # document.body.innerHTML += '<form id="dynForm" action="http://example.com/" method="post"> # <input type="hidden" name="q" value="a"></form>'; # document.getElementById("dynForm").submit(); POST_JS = '<form id=\\"dynamicform\\" action=\\"%s\\" met...
34.869565
95
0.587282
0
0
0
0
0
0
0
0
472
0.588529
ac9affe885fc3efd2cfe8bac23b5b5b2bbdd9cfc
13,297
py
Python
vtpl_api/models/engine_task.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
vtpl_api/models/engine_task.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
vtpl_api/models/engine_task.py
vtpl1/vtpl_api
d289c92254deb040de925205c583de69802a1c6b
[ "MIT" ]
null
null
null
# coding: utf-8 """ Engine api Engine APIs # noqa: E501 The version of the OpenAPI document: 1.0.4 Generated by: https://openapi-generator.tech """ import pprint import re # noqa: F401 import six class EngineTask(object): """NOTE: This class is auto generated by OpenAPI Generator. Ref:...
27.644491
278
0.590885
13,074
0.983229
0
0
8,045
0.605024
0
0
7,002
0.526585
ac9bf1bc57608adb9efd17714313aca04098cd39
1,876
py
Python
scripts/05_skew.py
fabiobaccarin/allstate-loss
4c0fea6ea28847fc67b9e742dc3ac30e1ac4d10a
[ "MIT" ]
null
null
null
scripts/05_skew.py
fabiobaccarin/allstate-loss
4c0fea6ea28847fc67b9e742dc3ac30e1ac4d10a
[ "MIT" ]
null
null
null
scripts/05_skew.py
fabiobaccarin/allstate-loss
4c0fea6ea28847fc67b9e742dc3ac30e1ac4d10a
[ "MIT" ]
null
null
null
""" Analyses skewness for continuous features Options: A. Log B. Yeo-Johnson C. QuantileTransformer """ import json import pandas as pd import numpy as np from sklearn.pipeline import make_pipeline from sklearn.preprocessing import power_transform, quantile_transform from pathlib import Path p = Path(__f...
26.055556
85
0.666844
0
0
0
0
0
0
0
0
509
0.271322
ac9c868dbd3879029efdc40e10b101e58e412a82
7,486
py
Python
trakt/mapper/sync.py
ruinernin/trakt.py
a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157
[ "MIT" ]
null
null
null
trakt/mapper/sync.py
ruinernin/trakt.py
a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157
[ "MIT" ]
null
null
null
trakt/mapper/sync.py
ruinernin/trakt.py
a579b0adf589e1fb8efe11d1e9b5c4f6fbb78157
[ "MIT" ]
null
null
null
from __future__ import absolute_import, division, print_function from trakt.mapper.core.base import Mapper import logging log = logging.getLogger(__name__) class SyncMapper(Mapper): @classmethod def process(cls, client, store, items, media=None, flat=False, **kwargs): if flat: # Return ...
25.462585
106
0.520438
7,324
0.97836
1,165
0.155624
7,081
0.945899
0
0
899
0.120091
ac9d0e2c93daef472402da87cdc770fca25ab226
669
py
Python
src/murus_gallicus/constants.py
HicBoux/PyMurusGallicus
b1f8ee6f1f1100aa6e04b11db6522b86b14d1c72
[ "MIT" ]
null
null
null
src/murus_gallicus/constants.py
HicBoux/PyMurusGallicus
b1f8ee6f1f1100aa6e04b11db6522b86b14d1c72
[ "MIT" ]
null
null
null
src/murus_gallicus/constants.py
HicBoux/PyMurusGallicus
b1f8ee6f1f1100aa6e04b11db6522b86b14d1c72
[ "MIT" ]
null
null
null
import pygame pygame.init() FPS = 60 WIDTH, HEIGHT = 800, 700 ROWS, COLS = 7, 8 SQUARE_SIZE = HEIGHT//ROWS # GRAPHICAL USER INTERFACE ICON_PATH = './src/murus_gallicus/assets/noun_checkers_1684698.png' WINDOW = pygame.display.set_mode((WIDTH, HEIGHT)) PADDING = 20 OUTLINE = 2 # RGB COLORS RED = (255, 0, 0) WHITE = ...
20.272727
67
0.672646
0
0
0
0
0
0
0
0
133
0.198804
ac9de99ae05f6016bcc3df5250b508a3167f4660
5,855
py
Python
streamer/output_stream.py
meryacine/shaka-streamer
7b7e90143f531c52d96c162cc7393862db0830b7
[ "Apache-2.0" ]
154
2019-08-29T16:53:24.000Z
2022-02-25T00:29:56.000Z
streamer/output_stream.py
meryacine/shaka-streamer
7b7e90143f531c52d96c162cc7393862db0830b7
[ "Apache-2.0" ]
101
2019-08-30T17:34:51.000Z
2022-03-02T18:46:22.000Z
streamer/output_stream.py
meryacine/shaka-streamer
7b7e90143f531c52d96c162cc7393862db0830b7
[ "Apache-2.0" ]
56
2019-09-08T17:47:22.000Z
2022-02-23T17:35:11.000Z
# Copyright 2019 Google 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
35.920245
102
0.678907
4,990
0.852263
0
0
0
0
0
0
2,112
0.360717
ac9eba2ba9ce65d24ae5328dd6dc146fcdf58207
939
py
Python
nghp/misc/utils.py
squoilin/NewGenerationHeatPumps
6db23af4dbad2098043a74d1871dbcc6f8eee468
[ "MIT" ]
1
2021-04-12T08:17:59.000Z
2021-04-12T08:17:59.000Z
nghp/misc/utils.py
squoilin/NewGenerationHeatPumps
6db23af4dbad2098043a74d1871dbcc6f8eee468
[ "MIT" ]
null
null
null
nghp/misc/utils.py
squoilin/NewGenerationHeatPumps
6db23af4dbad2098043a74d1871dbcc6f8eee468
[ "MIT" ]
1
2020-08-06T16:56:34.000Z
2020-08-06T16:56:34.000Z
# -*- coding: utf-8 -*- """ Useful functions for the Next Generation Heat Pump library @author: Sylvain Quoilin """ import sys,os class NoStdStreams(object): ''' This class hides the std output of the executed function usage: with NoStdStreams() pass ''' def __init__(se...
29.34375
65
0.642173
805
0.857295
0
0
0
0
0
0
246
0.261981
aca0934a713aae21b84794c1fbd0e3f6f9ca21ea
829
py
Python
regex_2.py
python-pro/Learn-Python-by-Doing-by-Jose-Espanol
5a4a6a6843fec6bbe231900aa0053021c69649d9
[ "BSD-3-Clause" ]
null
null
null
regex_2.py
python-pro/Learn-Python-by-Doing-by-Jose-Espanol
5a4a6a6843fec6bbe231900aa0053021c69649d9
[ "BSD-3-Clause" ]
null
null
null
regex_2.py
python-pro/Learn-Python-by-Doing-by-Jose-Espanol
5a4a6a6843fec6bbe231900aa0053021c69649d9
[ "BSD-3-Clause" ]
null
null
null
# B_R_R # M_S_A_W """ Coding Problem on Regular expressions: In order to work with regular expressions or we can say regex too, we have to import its module which is called re Specifically we use search method of regex library search method returns match object if it finds any """ import re price='Price: $1...
20.219512
103
0.746683
0
0
0
0
0
0
0
0
580
0.699638
aca120dbe457333e15ac5e2607f6815fc7e3bb5a
4,465
py
Python
deepchem/data/tests/test_shape.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
3,782
2016-02-21T03:53:11.000Z
2022-03-31T16:10:26.000Z
deepchem/data/tests/test_shape.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
2,666
2016-02-11T01:54:54.000Z
2022-03-31T11:14:33.000Z
deepchem/data/tests/test_shape.py
deloragaskins/deepchem
234ab699cdb997e5963966a8b6926cb2cda7c064
[ "MIT" ]
1,597
2016-02-21T03:10:08.000Z
2022-03-30T13:21:28.000Z
import deepchem as dc import numpy as np import os def test_numpy_dataset_get_shape(): """Test that get_shape works for numpy datasets.""" num_datapoints = 100 num_features = 10 num_tasks = 10 # Generate data X = np.random.rand(num_datapoints, num_features) y = np.random.randint(2, size=(num_datapoints,...
33.074074
80
0.738186
0
0
0
0
0
0
0
0
1,280
0.286674
aca1d2adb961819b9cb0c1cf592fcc379fa33038
1,104
py
Python
docs/hydrostatic-pressure/hydrostatic_pressure.py
TOKU-Systems/tutorials
119329b8efa614d39cda342b6bb084476fbec551
[ "MIT" ]
null
null
null
docs/hydrostatic-pressure/hydrostatic_pressure.py
TOKU-Systems/tutorials
119329b8efa614d39cda342b6bb084476fbec551
[ "MIT" ]
1
2021-09-03T22:11:43.000Z
2021-09-03T22:11:43.000Z
docs/hydrostatic-pressure/hydrostatic_pressure.py
TOKU-Systems/tutorials
119329b8efa614d39cda342b6bb084476fbec551
[ "MIT" ]
null
null
null
import pandas as pd df = pd.read_sql( ''' SELECT a.name, h.name, s.name, sd.t, sd.y FROM assets a JOIN hardpoints h ON a.id = h.asset_id JOIN signals s ON h.id = s.hardpoint_id JOIN LATERAL ( SELECT x.t, x.y FROM signal_data x WHERE x.signal_id = s.id ORDER BY x...
28.307692
87
0.620471
0
0
0
0
0
0
0
0
640
0.57971
aca1e7eab7175173532878601e9e1f2965ea7d45
557
py
Python
3-data-hiding-1.py
Otumian-empire/My-PyClasses
50483bc0463bfca9cf9d6815fbfcb5331f51ecea
[ "MIT" ]
null
null
null
3-data-hiding-1.py
Otumian-empire/My-PyClasses
50483bc0463bfca9cf9d6815fbfcb5331f51ecea
[ "MIT" ]
null
null
null
3-data-hiding-1.py
Otumian-empire/My-PyClasses
50483bc0463bfca9cf9d6815fbfcb5331f51ecea
[ "MIT" ]
null
null
null
# data hiding - encapsulation # this can be achieve by making the attribute or method private # python doesn't have private keyword so precede # the attribute/method identifier with an underscore or a double # this is more effective if object in import or used as a module # it isn't that effective # no underscore = pu...
24.217391
64
0.734291
112
0.201077
0
0
0
0
0
0
390
0.70018
aca208fb037c8c81bebdd200fbad9872059421b9
2,311
py
Python
lib/googlecloudsdk/core/util/text.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
2
2019-11-10T09:17:07.000Z
2019-12-18T13:44:08.000Z
lib/googlecloudsdk/core/util/text.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
11
2020-02-29T02:51:12.000Z
2022-03-30T23:20:08.000Z
lib/googlecloudsdk/core/util/text.py
kustodian/google-cloud-sdk
b6bae4137d4b58030adb3dcb1271216dfb19f96d
[ "Apache-2.0" ]
1
2020-07-25T01:40:19.000Z
2020-07-25T01:40:19.000Z
# -*- coding: utf-8 -*- # # Copyright 2015 Google LLC. 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 requir...
26.872093
79
0.687148
0
0
0
0
0
0
0
0
1,531
0.662484
aca30b0e051054cf8605e9d7df37ed0c840f2b51
383
py
Python
for_fun/mul_and_div/mul_and_div.py
trisct/Software-Tutorials
50d7851b861700fe256dfed97f84dc321a5286dc
[ "CC0-1.0" ]
2
2021-08-22T05:19:26.000Z
2021-12-21T12:03:57.000Z
for_fun/mul_and_div/mul_and_div.py
trisct/Software-Tutorials
50d7851b861700fe256dfed97f84dc321a5286dc
[ "CC0-1.0" ]
null
null
null
for_fun/mul_and_div/mul_and_div.py
trisct/Software-Tutorials
50d7851b861700fe256dfed97f84dc321a5286dc
[ "CC0-1.0" ]
null
null
null
import time a = 3215.35127 b = 3. start = time.time() for i in range(100000000): c = a / b end = time.time() time_elapsed = end - start print('Time elapsed (div ver) = %.5f' % time_elapsed) a = 3215.35127 b = 1./3. start = time.time() for i in range(100000000): c = a * b end = time.time() time_elapsed = end...
17.409091
53
0.629243
0
0
0
0
0
0
0
0
62
0.16188
aca3ab6f8519991fd8a0e554e1a624e3c39129f2
5,373
py
Python
src/oci/apigateway/models/execution_log_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
249
2017-09-11T22:06:05.000Z
2022-03-04T17:09:29.000Z
src/oci/apigateway/models/execution_log_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
228
2017-09-11T23:07:26.000Z
2022-03-23T10:58:50.000Z
src/oci/apigateway/models/execution_log_policy.py
Manny27nyc/oci-python-sdk
de60b04e07a99826254f7255e992f41772902df7
[ "Apache-2.0", "BSD-3-Clause" ]
224
2017-09-27T07:32:43.000Z
2022-03-25T16:55:42.000Z
# coding: utf-8 # Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may c...
38.378571
245
0.680439
4,833
0.899497
0
0
4,863
0.905081
0
0
4,024
0.74893
aca4304cd7dabb4c63ae50043d923687555339f1
1,107
pyde
Python
Processing sketches/Line Stitching/star_mesh/star_mesh.pyde
nicoprocessor/Digital-Art-Collection
f2283d2dc7a140d8ae8783a77f78b4ed9fa06065
[ "Apache-2.0" ]
null
null
null
Processing sketches/Line Stitching/star_mesh/star_mesh.pyde
nicoprocessor/Digital-Art-Collection
f2283d2dc7a140d8ae8783a77f78b4ed9fa06065
[ "Apache-2.0" ]
null
null
null
Processing sketches/Line Stitching/star_mesh/star_mesh.pyde
nicoprocessor/Digital-Art-Collection
f2283d2dc7a140d8ae8783a77f78b4ed9fa06065
[ "Apache-2.0" ]
null
null
null
import math lines = 30 radius_x = 550 radius_y = 550 axes = 20 def frange(start, stop, step): while start < stop: yield start start += step def setup(): size(1080, 2160) background(51) ellipseMode(RADIUS) stroke(255) noFill() strokeWeight(1) # center the coordinate sys...
25.159091
83
0.495935
0
0
96
0.086721
0
0
0
0
58
0.052394