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
bb87fa54ef182344fda1ae0ba9713c3ff055e11e
9,337
py
Python
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
null
null
null
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
null
null
null
Tools/Builder/build.py
hung0913208/Base
420b4ce8e08f9624b4e884039218ffd233b88335
[ "BSD-3-Clause" ]
2
2020-11-04T08:00:37.000Z
2020-11-06T08:33:33.000Z
#!/usr/bin/python3 # # Project: build # Description: this is a very simple build tool which imitates from Bazel # import subprocess import argparse import shutil import glob import sys import os from core import * from languages import * from plugins import * class Build(Plugin): def __init__(self, root, rebuil...
34.076642
100
0.543108
6,157
0.65942
0
0
588
0.062975
0
0
1,938
0.207561
bb8aaea1d863f144dd7a710dd878ed727beb22e5
414
py
Python
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
label.py
dotrungkien/face_recognition
52c552c4f73850e62db88d0dc7271d73e4150180
[ "MIT" ]
null
null
null
import cv2 import sys import numpy as np from scipy.io import loadmat def convert(): labels = loadmat('tmp/data/devkit/cars_meta.mat') car_labels = [] for label in labels['class_names'][0]: car_labels.append(label[0]) labels_file = open("tmp/data/devkit/car_labels.txt", "w") labels_file.w...
21.789474
61
0.673913
0
0
0
0
0
0
0
0
93
0.224638
bb8abe691f8096772a0b83004f7d364cbc981a7d
154
py
Python
app/helper_functions.py
shane-kercheval/dash-ml-explorer
c1664d733e037b7e00b918b5bbdbd0b7cbdc3c2d
[ "Apache-2.0" ]
null
null
null
app/helper_functions.py
shane-kercheval/dash-ml-explorer
c1664d733e037b7e00b918b5bbdbd0b7cbdc3c2d
[ "Apache-2.0" ]
null
null
null
app/helper_functions.py
shane-kercheval/dash-ml-explorer
c1664d733e037b7e00b918b5bbdbd0b7cbdc3c2d
[ "Apache-2.0" ]
null
null
null
import yaml def read_yaml(file_name) -> dict: with open(file_name, "r") as stream: yaml_dict = yaml.safe_load(stream) return yaml_dict
17.111111
42
0.675325
0
0
0
0
0
0
0
0
3
0.019481
bb8bea5e83277cccd81727fc97f2634b237f783d
707
py
Python
materialApoio.py
adriano-pacheco/atividades-mentorama
45d3d8b65994eb12aaaa025426e3a230693e25f4
[ "MIT" ]
null
null
null
materialApoio.py
adriano-pacheco/atividades-mentorama
45d3d8b65994eb12aaaa025426e3a230693e25f4
[ "MIT" ]
null
null
null
materialApoio.py
adriano-pacheco/atividades-mentorama
45d3d8b65994eb12aaaa025426e3a230693e25f4
[ "MIT" ]
null
null
null
def titulo(txt): #criando linha com texto print('_'*30) print(txt) print('_'*30) def soma(a, b): #somando 2 numeros s = a + b print('~~'*15) print(f'A soma A + B = {s}') print('~~'*15) def contador(*num): #inserindo varios numeros em uma tupla tam = len(num) print(f'Recebi os valo...
23.566667
65
0.577086
0
0
0
0
0
0
0
0
306
0.431594
bb8d90bc55457ae6e3a765f4679f3b20738e394c
581
py
Python
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
leetcode/medium/single-number-ii.py
rainzhop/cumulus-tank
09ebc7858ea53630e30606945adfea856a80faa3
[ "MIT" ]
null
null
null
# https://leetcode.com/problems/single-number-ii/ # # Given an array of integers, every element appears three times except for one. Find that single one. # # Note: # Your algorithm should have a linear runtime complexity. Could you implement it without using extra memory? class Solution(object): def singleNumber(s...
27.666667
108
0.562823
306
0.526678
0
0
0
0
0
0
332
0.571429
bb8db06160aa8c394dde6ee5900fec9ece4ddde7
5,347
py
Python
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
wiki/test/test_wikisection.py
IgalMilman/DnDHelper
334822a489e7dc2b5ae17230e5c068b89c6c5d10
[ "MIT" ]
null
null
null
import os import uuid from datetime import datetime import mock import pytz from django.conf import settings from django.contrib.auth.models import User from django.test import TestCase from django.urls import reverse from utils.widget import quill from wiki.models import wikipage, wikisection from wiki.models.wikipag...
53.47
248
0.747522
4,948
0.925379
0
0
0
0
0
0
397
0.074247
bb8dd51539cdab9536825a57382500f121007993
524
py
Python
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
3
2019-05-15T09:30:39.000Z
2020-04-22T16:14:23.000Z
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
85
2019-04-24T10:39:35.000Z
2022-03-21T14:52:12.000Z
api/applications/migrations/0046_partyonapplication_flags.py
uktrade/lite-ap
4e1a57956bd921992b4a6e2b8fbacbba5720960d
[ "MIT" ]
1
2021-01-17T11:12:19.000Z
2021-01-17T11:12:19.000Z
# Generated by Django 2.2.17 on 2021-01-27 14:27 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("flags", "0010_flaggingrule_excluded_values"), ("applications", "0045_remove_denialmatchonapplication_denial"), ] operations = [ mig...
26.2
97
0.65458
430
0.820611
0
0
0
0
0
0
212
0.40458
bb8e03933f18743e4789f0bc3df9d4b4ca88a87c
2,205
py
Python
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
1
2021-02-11T04:42:28.000Z
2021-02-11T04:42:28.000Z
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
null
null
null
Shivarth_Project(2).py
rodincode/python
5bcc53b6103e53b37a3e40635502cbca53fec43e
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Thu Jun 20 13:26:46 2019 @author: LENOVO """ import pandas as pd filename = r"C:\Users\LENOVO\Downloads\Tweets.csv" df = pd.read_csv(filename,encoding="unicode_escape") all_data = df.drop_duplicates(keep='first', inplace=False) cleaned_data = all_data.dro...
22.05
105
0.676644
0
0
0
0
0
0
0
0
714
0.32381
bb8fa677b509d4b926b1c8e7fd1bc0528332c98d
909
py
Python
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
10
2015-03-04T01:37:02.000Z
2019-06-04T04:59:44.000Z
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
8
2016-01-16T14:58:16.000Z
2020-06-22T20:30:14.000Z
pinax/lms/activities/migrations/0007_migrate.py
pinax/pinax-lms-activities
e73109038e1e0a8c71cc52f278e03bf645f3a16a
[ "MIT" ]
4
2015-09-18T02:04:39.000Z
2020-10-14T20:10:57.000Z
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations def forwards(apps, schema_editor): if not schema_editor.connection.alias == "default": return ActivityState = apps.get_model("pinax_lms_activities", "ActivityState") ActivitySessionState = apps.get_mo...
30.3
89
0.716172
193
0.212321
0
0
0
0
0
0
160
0.176018
bb929e575f401e612607d5e41db450d40dd8a099
2,430
py
Python
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
null
null
null
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
10
2021-08-29T11:21:29.000Z
2021-09-14T17:09:45.000Z
django-ingredient-field/dj_ingredient_field/widgets.py
makspll/django-ingredient-field
8f2067d1546a45d0c8b9c5dc551571b1f5ccf7b2
[ "MIT" ]
null
null
null
""" The list of ingredient choices is quite large, so this module provides lazy loaded widgets which help reducing loading times. """ from django import forms class LazyWidget(): """ Base class for lazy loaded, choice based widgets. offloads option generation to the client, relies on correct endpoint ...
33.287671
216
0.635802
2,263
0.931276
0
0
0
0
0
0
1,619
0.666255
bb93be6fbacaf91fef33d78741e67ae984dd8a0a
6,830
py
Python
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
pycap/ethernet.py
Blueswing/pycap
19e579ec0c362939f1c7ebe87773e24e36ccdec2
[ "MIT" ]
null
null
null
import struct import subprocess from abc import ABCMeta from functools import lru_cache from typing import Union, Tuple, Optional from .base import Header, Protocol from .constants import * ETH_TYPE_IP = 0x0800 ETH_TYPE_ARP = 0x0806 ETH_TYPE_RARP = 0x8035 ETH_TYPE_SNMP = 0x814c ETH_TYPE_IPV6 = 0x086dd ETH_TYPE_MPLS_U...
28.22314
101
0.615959
3,570
0.522694
0
0
363
0.053148
0
0
1,938
0.283748
bb949682762af25e0d9e85b1dcc96637afca8f13
60
py
Python
doc/example.py
jtpio/jupyterlab-python-bytecode
23c3d4e228829743b65685d8796cf1bc95fd88ba
[ "BSD-3-Clause" ]
58
2018-09-30T00:08:57.000Z
2022-01-15T20:54:02.000Z
doc/example.py
jtpio/jupyterlab-python-bytecode
23c3d4e228829743b65685d8796cf1bc95fd88ba
[ "BSD-3-Clause" ]
7
2018-09-30T09:55:32.000Z
2021-04-20T09:50:36.000Z
doc/example.py
jtpio/jupyterlab-python-bytecode
23c3d4e228829743b65685d8796cf1bc95fd88ba
[ "BSD-3-Clause" ]
4
2019-03-03T07:18:50.000Z
2022-02-27T01:19:12.000Z
for i in range(10): pass j = 0 while j < 10: j += 1
10
19
0.483333
0
0
0
0
0
0
0
0
0
0
bb94c39fa96235061eee688defe888eb7cca4d44
238
py
Python
utils/schedulers.py
Shawn-Guo-CN/EmergentNumerals
ef9786e5bd6c8c456143ad305742340e510f5edb
[ "MIT" ]
2
2019-08-16T21:37:55.000Z
2019-08-18T18:11:28.000Z
utils/schedulers.py
Shawn-Guo-CN/EmergentNumerals
ef9786e5bd6c8c456143ad305742340e510f5edb
[ "MIT" ]
null
null
null
utils/schedulers.py
Shawn-Guo-CN/EmergentNumerals
ef9786e5bd6c8c456143ad305742340e510f5edb
[ "MIT" ]
null
null
null
from utils.conf import args def tau_scheduler(acc): return args.tau # if acc > 0.95: # return 0.1 # elif acc > 0.9: # return 0.5 # elif acc > 0.8: # return 1.0 # else: # return args.tau
19.833333
27
0.512605
0
0
0
0
0
0
0
0
126
0.529412
bb94df94114e25069a2e0c94c2a3c7a8d9c17d5d
408
py
Python
pymongo_cursor_json_encoder/__init__.py
rogervila/python-mongo-json-encoder
63dfc9bbe6702c6bacca8b6aa04b17a6f6fbd918
[ "MIT" ]
1
2021-01-14T16:08:45.000Z
2021-01-14T16:08:45.000Z
pymongo_cursor_json_encoder/__init__.py
rogervila/python-mongo-json-encoder
63dfc9bbe6702c6bacca8b6aa04b17a6f6fbd918
[ "MIT" ]
null
null
null
pymongo_cursor_json_encoder/__init__.py
rogervila/python-mongo-json-encoder
63dfc9bbe6702c6bacca8b6aa04b17a6f6fbd918
[ "MIT" ]
null
null
null
from datetime import datetime, date from isodate import datetime_isoformat from bson import ObjectId from json import JSONEncoder class MongoJSONEncoder(JSONEncoder): def default(self, output): if isinstance(output, (datetime, date)): return datetime_isoformat(output) if isinstance(ou...
25.5
48
0.708333
275
0.67402
0
0
0
0
0
0
0
0
bb965bb20b20b11f20bb0fdf749f18c3050f9707
893
py
Python
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-12-25T02:19:18.000Z
2021-12-25T02:19:18.000Z
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
null
null
null
Intermediate+/57/notes/server.py
Matthew1906/100DaysOfPython
94ffff8f5535ce5d574f49c0d7971d64a4575aad
[ "MIT" ]
1
2021-11-25T10:31:47.000Z
2021-11-25T10:31:47.000Z
from flask import Flask, render_template import random, datetime as dt, requests app = Flask(__name__) # Jinja = templating language @app.route('/') def home(): random_number = random.randint(1,3) return render_template("index.html", random_number = random_number, year = dt.datetime.now().year) @app.route('...
37.208333
103
0.693169
0
0
0
0
701
0.784994
0
0
222
0.2486
bb9676589fb7e0a374aed04eb4cfbe0922559c82
3,041
py
Python
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
game.py
MrEliptik/game_of_life
e0ff937ac1cf1a879e20c109a69700c77db71fcc
[ "MIT" ]
null
null
null
import pygame import random import time import numpy as np WHITE = 255, 255, 255 BLACK = 0, 0, 0 size = width, height = 480, 320 row = 32 col = 48 cell_width = (width//col) cell_height = (height//row) font_size = 60 FPS = 30 LIVE_P_MAX = 0.5; LIVE_P_MIN = 0.01; _grid = np.full((row, col), None) screen = None refr...
25.771186
110
0.577442
0
0
0
0
0
0
0
0
219
0.072016
bb9746ac2f24608c4e049924c7fcb26f2cfddb65
794
py
Python
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
79
2017-09-25T19:29:17.000Z
2022-03-30T20:55:57.000Z
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
305
2018-01-17T01:12:10.000Z
2022-03-23T22:38:11.000Z
azext_iot/monitor/models/target.py
lucadruda/azure-iot-cli-extension
9d2f677d19580f8fbac860e079550167e743a237
[ "MIT" ]
69
2017-11-14T00:30:46.000Z
2022-03-01T17:11:45.000Z
# coding=utf-8 # -------------------------------------------------------------------------------------------- # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. See License.txt in the project root for license information. # -----------------------------------------------------...
33.083333
94
0.492443
431
0.542821
0
0
0
0
0
0
394
0.496222
bb9985f1334655b6b9bebcdea894cb35e74ef811
8,551
py
Python
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
6
2021-01-28T10:59:21.000Z
2022-03-30T08:00:06.000Z
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
7
2020-10-28T13:01:13.000Z
2022-03-08T19:21:05.000Z
py2dm/_parser/_pyparser.py
leonhard-s/Py2DM
a2c4c193dfa4494f2c9117f580f99f0dbdc579fc
[ "MIT" ]
null
null
null
"""Python implementation of the 2DM card parser.""" from typing import IO, List, Optional, Tuple, Union from ..errors import CardError, FormatError, ReadError _MetadataArgs = Tuple[ int, # num_nodes int, # num_elements int, # num_node_strings Optional[str], # name Optional[int], # num_materi...
34.479839
82
0.571161
0
0
0
0
0
0
0
0
2,413
0.282189
bb9b59ff879eaecfcc8190f0acec7f2068109681
1,024
py
Python
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
690
2017-04-11T06:45:01.000Z
2022-03-21T23:20:29.000Z
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
74
2017-11-22T18:05:26.000Z
2021-05-05T16:25:31.000Z
src/commands/refactor/refactor_preview.py
PranjalPansuriya/JavaScriptEnhancements
14af4162e86585153cbd4614ad96dff64a0d3192
[ "MIT" ]
42
2017-04-13T10:22:40.000Z
2021-05-27T19:19:04.000Z
import sublime, sublime_plugin from ...libs import util class RefactorPreview(): view = None title = None window = None def __init__(self, title): self.title = title self.window = sublime.active_window() self.view = None for v in self.window.views(): if v.name() == self.title: se...
27.675676
92
0.657227
967
0.944336
0
0
159
0.155273
0
0
138
0.134766
bb9bcfeb2dd370b17ad9dca9fef16bbcfa8e0721
583
py
Python
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
1
2021-12-02T05:16:11.000Z
2021-12-02T05:16:11.000Z
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
2020/08-1.py
matteodelabre/advent-of-code
a6f51222b52f948cec6aa94cb7c50bcfd4f53dc1
[ "CC0-1.0" ]
null
null
null
import re instruction_regex = re.compile(r'(nop|acc|jmp) ([+-][0-9]+)') program = [] try: while True: name, arg = instruction_regex.match(input()).groups() program.append([name, arg, 0]) except EOFError: pass pc = 0 accu = 0 while program[pc][2] == 0: program[pc][2] = 1 if program[p...
19.433333
61
0.535163
0
0
0
0
0
0
0
0
66
0.113208
bb9be141e5411cc766db75440f10f9dcc54c52eb
736
py
Python
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
Apps/aulas/migrations/0017_alter_planejamento_data_envio_alter_resposta_data.py
arthur-asilva/rc_plataforma
7e6f7eb7f9a3b9089c02db98518b60d8e481ce4c
[ "BSD-2-Clause" ]
null
null
null
# Generated by Django 4.0 on 2022-01-14 13:45 import datetime from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('aulas', '0016_alter_planejamento_data_envio_alter_resposta_data'), ] operations = [ migrations.AlterField( model_n...
29.44
122
0.629076
629
0.85462
0
0
0
0
0
0
150
0.203804
bba2237b5b7c85261e503e0da56569ea8a05972a
5,018
py
Python
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
models/lenet.py
calinbiberea/imperial-individual-project
86f224f183b8348d21b4c7a4aed408cd1ca41df1
[ "MIT" ]
null
null
null
''' A LeNet-5 in PyTorch. Reference: Yann LeCun et al, 1998. Gradient-Based Learning Applied to Document Recognition. [Paper] Available at: <http://yann.lecun.com/exdb/publis/pdf/lecun-01a.pdf> [Accessed 26 December 2021]. ''' import torch.nn as nn import torch.nn.functional as F # Defining the Network (LeNet-5) c...
28.191011
86
0.559785
4,698
0.93623
0
0
0
0
0
0
1,497
0.298326
bba24784bd9ee9a55803728f5cef4460717a8929
7,228
py
Python
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
3
2018-10-04T14:00:50.000Z
2021-12-11T08:57:26.000Z
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
null
null
null
tests/env/experiments_tools_2.py
weifanjiang/CSSPy
361d18d7b9c08bcff11a18524a718b3522c48786
[ "MIT" ]
null
null
null
import sys sys.path.insert(0, '..') import numpy as np import pandas as pd from itertools import combinations from scipy.stats import binom import scipy.special import matplotlib.pyplot as plt import matplotlib.patches as mpatches from IPython.display import display, HTML #sys.path.append("../") from FrameBuilder.eige...
45.175
152
0.731046
0
0
0
0
0
0
0
0
2,399
0.331904
bba40b13a90f7230a2307e2b965c7e2e96ab0207
1,562
py
Python
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
null
null
null
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
null
null
null
utils/relationship_tree/population.py
rohern/attila
e876af57ee3b77144343ac3c22e798733753a23f
[ "MIT" ]
1
2020-02-21T20:08:43.000Z
2020-02-21T20:08:43.000Z
from person import Person class Population: def __init__(self, family_info, null_parent_value='0'): self.persons = {} # Initialize the persons data structure with Person objects for fid in family_info: self.persons[fid] = {} for iid in family_info[fid]: info = family_info[fid][iid] ...
38.097561
123
0.640845
1,534
0.982074
0
0
0
0
0
0
353
0.225992
bba4b6f4a62fce3404ab57f827ef1473938bae93
348
py
Python
cmdline.py
30emeciel/freshdesk-token-exchange
3e449735c20d53061941c77443da6dc7b8ea9e24
[ "MIT" ]
null
null
null
cmdline.py
30emeciel/freshdesk-token-exchange
3e449735c20d53061941c77443da6dc7b8ea9e24
[ "MIT" ]
null
null
null
cmdline.py
30emeciel/freshdesk-token-exchange
3e449735c20d53061941c77443da6dc7b8ea9e24
[ "MIT" ]
null
null
null
if __name__ == "__main__": # export GOOGLE_APPLICATION_CREDENTIALS="trentiemeciel.json" # get the token using postman from dotenv import load_dotenv load_dotenv() import main freshdesk_token = main.convert_auth0_token_to_freshdesk_token("gtxiNvJMjuDGec7GUziM2qSupsnCu74I") print(f"freshdesk...
31.636364
101
0.767241
0
0
0
0
0
0
0
0
170
0.488506
bba5ec5ee218ef30daab10fe172b51c78e3cf3a4
4,040
py
Python
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
1
2021-06-30T13:25:35.000Z
2021-06-30T13:25:35.000Z
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
null
null
null
auto_encoder.py
kredy/Keras-Projects
44c9a7b27f31a8d3eaa7b3bc7a0396d2eb0bf430
[ "MIT" ]
2
2020-08-04T01:52:55.000Z
2021-03-16T19:12:20.000Z
''' Convolutional autoencoder on MNIST dataset using Keras functional API ''' from keras.datasets import mnist from keras.models import Model from keras.layers import Activation, Input, BatchNormalization from keras.layers import Conv2D, Conv2DTranspose from keras.callbacks import TensorBoard from keras.optimizers ...
35.438596
118
0.693069
0
0
0
0
0
0
0
0
767
0.189851
bba73b50d8937afbf151ac7cc18f80271ca8fda7
499
py
Python
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
72
2015-06-23T02:35:13.000Z
2021-12-08T01:47:40.000Z
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
139
2015-03-01T18:48:17.000Z
2021-06-18T15:45:14.000Z
test/unit/tools/msvc/common.py
jimporter/bfg9000
c206646ecfed0d1a510e993b93e6a15677f45a14
[ "BSD-3-Clause" ]
19
2015-12-23T21:24:33.000Z
2022-01-06T04:04:41.000Z
from bfg9000.languages import Languages known_langs = Languages() with known_langs.make('c') as x: x.vars(compiler='CC', flags='CFLAGS') with known_langs.make('c++') as x: x.vars(compiler='CXX', flags='CXXFLAGS') def mock_which(*args, **kwargs): return ['command'] def mock_execute(args, **kwargs): ...
26.263158
68
0.639279
0
0
0
0
0
0
0
0
140
0.280561
bba7b25014664dee8876feca1599b36413d6ce96
93
py
Python
Gate_bases.py
jlfly12/qrsim
1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c
[ "Apache-2.0" ]
null
null
null
Gate_bases.py
jlfly12/qrsim
1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c
[ "Apache-2.0" ]
null
null
null
Gate_bases.py
jlfly12/qrsim
1f5340cdc4f6cc0ca7ecbebd49ba8c6f78afdb8c
[ "Apache-2.0" ]
1
2019-06-21T17:55:00.000Z
2019-06-21T17:55:00.000Z
x = "X" y = "Y" z = "Z" xx = "XX" h = "H" cnot = "CNOT" s_phi = "S_phi" identity = "Identity"
11.625
21
0.494624
0
0
0
0
0
0
0
0
39
0.419355
bbabb955113863d40c2a80d48e3d2cd18a7d9577
164
py
Python
flake8diff/test_flake8.py
miki725/flake8-diff
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
[ "MIT" ]
18
2015-03-10T20:05:57.000Z
2020-08-12T20:46:00.000Z
flake8diff/test_flake8.py
miki725/flake8-diff
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
[ "MIT" ]
20
2015-03-21T19:39:12.000Z
2020-05-26T15:25:33.000Z
flake8diff/test_flake8.py
miki725/flake8-diff
bec04390ce9263fc7957ccb7fcf39d582fa8d4ad
[ "MIT" ]
7
2015-03-21T19:12:31.000Z
2018-09-28T20:56:45.000Z
from unittest import TestCase from flake8diff import flake8 class Flake8DiffTestCase(TestCase): def test_flake8diff(self): flake8.Flake8Diff("", {})
18.222222
35
0.737805
100
0.609756
0
0
0
0
0
0
2
0.012195
bbabba632a1d8ac671dc7f863d9ffae0e405f07a
1,266
py
Python
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
6
2018-02-22T00:27:44.000Z
2019-11-21T18:12:48.000Z
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
null
null
null
algorithm/linear-regression/gradientDescentLR.py
mk43/machine-learning
1ca1baf797fe6f593a88ad4e0d7ac7e5c24ce139
[ "Apache-2.0" ]
4
2018-02-19T05:59:23.000Z
2020-04-08T08:53:02.000Z
# coding: utf-8 import matplotlib.pyplot as plt import numpy as np N = 200 X = np.linspace(0, 10, N * 2) noise = np.random.normal(0, 0.5, X.shape) Y = X * 0.5 + 3 + noise def calcLoss(train_X, train_Y, W, b): return np.sum(np.square(train_Y - (train_X * W + b))) def gradientDescent(train_X, train_Y, W, b, lea...
26.375
103
0.661137
0
0
0
0
0
0
0
0
111
0.087678
bbac3dea77b9a3981684ddd7952fdf41e36843fc
6,343
py
Python
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
lambda-email-parser/lambda_function.py
aws-samples/serverless-mail
a002dd90817c9eb2090ca0ad36114c51a0490d61
[ "MIT-0" ]
null
null
null
import os import boto3 import email import logging import json import re import uuid s3 = boto3.client("s3") workmail_message_flow = boto3.client('workmailmessageflow') logger = logging.getLogger() def lambda_handler(event, context): logger.error(json.dumps(event)) destination_bucket = os.environ.get('destinatio...
40.922581
164
0.653003
0
0
0
0
0
0
0
0
2,408
0.379631
bbadddc2fe8f7e7eaa30c11c13f2a1d11f2721db
1,757
py
Python
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
2
2019-04-16T01:33:36.000Z
2021-02-23T08:34:38.000Z
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
null
null
null
scripts/latency/filebench.py
huangvincent170/cyclone
737af617ab1472dfb16e6c20a079e88dccf85850
[ "Apache-2.0" ]
4
2020-03-27T18:06:33.000Z
2021-03-24T09:56:17.000Z
#!/usr/bin/env python import argparse import sys import os import shutil DBG = 1 __home = os.getcwd() __fbench_home = '/home/pfernando/filebench' #binary __empty = '' __micro_rread = 'micro_rread' __workload_l = [] __workload_l.append(__micro_rread) parser = argparse.ArgumentParser(prog="runscript", description="...
17.928571
90
0.575413
0
0
0
0
0
0
0
0
348
0.198065
bbaeca43c2d4bafe283a3a22b25235f71d730c45
12,685
py
Python
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
python_modules/dagster-airflow/dagster_airflow/operators.py
jake-billings/dagster
7a1548a1f246c48189f3d8109e831b744bceb7d4
[ "Apache-2.0" ]
null
null
null
'''The dagster-airflow operators.''' import ast import datetime import json import logging import os from contextlib import contextmanager from airflow.exceptions import AirflowException from airflow.models import BaseOperator, SkipMixin from airflow.operators.docker_operator import DockerOperator from airflow.operat...
36.346705
100
0.633662
11,694
0.921876
284
0.022389
1,293
0.101931
0
0
3,221
0.253922
bbaf14d78f29821d3e6ffec013b3447b60e7a43a
293
py
Python
app-receiver/receiver/service/settings.py
makaay/devops_assignment
937a0877e869c3e6ca09bad35ab869901527e492
[ "BSD-2-Clause" ]
null
null
null
app-receiver/receiver/service/settings.py
makaay/devops_assignment
937a0877e869c3e6ca09bad35ab869901527e492
[ "BSD-2-Clause" ]
null
null
null
app-receiver/receiver/service/settings.py
makaay/devops_assignment
937a0877e869c3e6ca09bad35ab869901527e492
[ "BSD-2-Clause" ]
1
2022-03-05T13:11:30.000Z
2022-03-05T13:11:30.000Z
import os """ This file contains configurations for receiver service. The configurations can be over-ridden with Environment Variables during run time. """ OUTPUT_DIR = os.getenv("OUTPUT_DIR", "/usr/src/app-receiver/output") DECRYPTION_KEY = os.getenv("DECRYPTION_KEY", "/tmp/decryption_key")
36.625
81
0.78157
0
0
0
0
0
0
0
0
224
0.764505
bbaf9c88715d3ed6658c5b7cac9f3b5786ab4dad
908
py
Python
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
5
2021-07-19T09:08:15.000Z
2022-03-21T10:19:08.000Z
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
5
2021-08-30T20:24:52.000Z
2021-11-29T07:24:51.000Z
setup.py
patel-zeel/CGLB-1
6afab3631704ae4233e93c2de289b4e351f61838
[ "Apache-2.0" ]
1
2021-11-25T22:15:27.000Z
2021-11-25T22:15:27.000Z
# Copyright 2021 The CGLB Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable la...
32.428571
74
0.732379
0
0
0
0
0
0
0
0
688
0.757709
bbb379a767a5b56faec727f2a03bfb35f2d9f7df
5,361
py
Python
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
null
null
null
automation/aux_funcs.py
jaimiles23/hacker_rank
0580eac82e5d0989afabb5c2e66faf09713f891b
[ "Apache-2.0" ]
3
2021-09-22T11:06:58.000Z
2022-01-25T09:29:24.000Z
"""Collection of functions related to navigating directories """ ########## # Imports ########## import os from typing import Union from pathlib import Path from logger.select_chall import logging import constants from domains import problem_domains from git import Repo ########## # Subdomain dir_name ########## ...
23.933036
92
0.610707
0
0
0
0
0
0
0
0
2,406
0.448797
bbb3c58e4009e852c11d677005377bc7618636b3
2,581
py
Python
tests/examples/minlplib/ex6_2_8.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
2
2021-07-03T13:19:10.000Z
2022-02-06T10:48:13.000Z
tests/examples/minlplib/ex6_2_8.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
1
2021-07-04T14:52:14.000Z
2021-07-15T10:17:11.000Z
tests/examples/minlplib/ex6_2_8.py
ouyang-w-19/decogo
52546480e49776251d4d27856e18a46f40c824a1
[ "MIT" ]
null
null
null
# NLP written by GAMS Convert at 04/21/18 13:51:45 # # Equation counts # Total E G L N X C B # 2 2 0 0 0 0 0 0 # # Variable counts # x b i s1s s2s sc ...
57.355556
120
0.484696
0
0
0
0
0
0
0
0
697
0.27005
bbb5023852d401d52fa04fa5275d3dce5dbc5d18
3,790
py
Python
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
Cartwheel/lib/Python26/Lib/site-packages/OpenGL/raw/GL/NV/geometry_program4.py
MontyThibault/centre-of-mass-awareness
58778f148e65749e1dfc443043e9fc054ca3ff4d
[ "MIT" ]
null
null
null
'''OpenGL extension NV.geometry_program4 The official definition of this extension is available here: http://oss.sgi.com/projects/ogl-sample/registry/NV/geometry_program4.txt Automatically generated by the get_gl_extensions script, do not edit! ''' from OpenGL import platform, constants, constant, arrays from OpenGL...
54.927536
129
0.814248
0
0
0
0
0
0
0
0
1,537
0.405541
bbb5a419508bb770bb1a305a0d8d6adcb54e823a
244
py
Python
android_notification.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
android_notification.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
android_notification.py
jbytes1027/notify-mirror
b4a6bb94578dd4c9130731f153f901868f26cded
[ "CC0-1.0" ]
null
null
null
class AndroidNotification: def __init__(self, header, body, application, package, id_num): self.application = application self.body = body self.package = package self.header = header self.id = id_num
30.5
67
0.643443
243
0.995902
0
0
0
0
0
0
0
0
bbb6e0ba861fbcb599f8a5421f34367fccb32fdd
1,158
py
Python
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
6
2019-12-02T02:38:40.000Z
2021-02-05T06:40:56.000Z
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
null
null
null
src/redcli/application/services/logger.py
Zhouhao12345/redcli
8a8260b0799e8524d0c339df8dfe6bcfb22f1841
[ "MIT" ]
1
2019-12-02T04:19:08.000Z
2019-12-02T04:19:08.000Z
from ..constant import Service as Service_Key from .base import Service import logging class LoggerService(Service): def init(self, services): config_service = services.get_service(Service_Key.CONFIG_LOCAL) self.date_format = config_service.get_config_value( "LOGGER", "DateFormat") ...
27.571429
71
0.607945
1,069
0.923143
0
0
61
0.052677
0
0
78
0.067358
bbb715e2f390dc18e086c2e84959bf7e23c5b5d0
324
py
Python
Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py
Gosenca/axionyx_1.0
7e2a723e00e6287717d6d81b23db32bcf6c3521a
[ "BSD-3-Clause-LBNL" ]
72
2017-06-16T17:20:25.000Z
2021-12-18T12:45:58.000Z
Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py
Gosenca/axionyx_1.0
7e2a723e00e6287717d6d81b23db32bcf6c3521a
[ "BSD-3-Clause-LBNL" ]
37
2017-05-07T04:20:04.000Z
2022-02-03T19:16:59.000Z
Exec/GravityTests/zeldovich_dm/analysis/zeldovich.py
Gosenca/axionyx_1.0
7e2a723e00e6287717d6d81b23db32bcf6c3521a
[ "BSD-3-Clause-LBNL" ]
30
2017-05-18T21:14:45.000Z
2022-03-23T20:50:24.000Z
import numpy as np def perturbed_x(q, z, z_c, k): return (q - (1.0 + z_c) / (1.0 + z) * np.sin(k * q) / k) def perturbed_v_x(q, z, z_c, k, H_0): return (-H_0 * (1.0 + z_c) * np.sqrt(1.0 + z) * np.sin(k * q) / (k)) def get_scale_factor(z): return 1.0 / (1.0 + z) def get_redshift(a): return 1.0 / a - ...
23.142857
72
0.530864
0
0
0
0
0
0
0
0
0
0
bbb782cb3b44f4866569b38680bb03a8e7730b26
10,441
py
Python
pgtrigger/tests/test_multi_db.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
135
2020-06-27T14:02:46.000Z
2021-05-27T01:07:41.000Z
pgtrigger/tests/test_multi_db.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
25
2021-06-19T20:28:52.000Z
2022-03-22T23:14:59.000Z
pgtrigger/tests/test_multi_db.py
tiholic/django-pgtrigger
ef8878115bef1a933405ab86d7f7c117252d970c
[ "BSD-3-Clause" ]
7
2020-06-29T02:26:05.000Z
2021-04-25T14:42:33.000Z
"""Tests multi-database support""" import contextlib import io import sys from django.core.management import call_command import django.test import pgtrigger import pgtrigger.tests.models as test_models @contextlib.contextmanager def capture_stdout(): old_stdout = sys.stdout sys.stdout = out = io.StringIO(...
37.422939
79
0.514702
9,940
0.952016
158
0.015133
9,861
0.94445
0
0
5,172
0.495355
bbb7c8daf68cfc0db3531104ebe1585494d2cd41
192
py
Python
jude_customization/jude_customization/doctype/atlantic_fluid_configuration/test_atlantic_fluid_configuration.py
mymi14s/jude_customization
6de7173a03cedf8c712c2d05453c821dff7eec58
[ "MIT" ]
null
null
null
jude_customization/jude_customization/doctype/atlantic_fluid_configuration/test_atlantic_fluid_configuration.py
mymi14s/jude_customization
6de7173a03cedf8c712c2d05453c821dff7eec58
[ "MIT" ]
null
null
null
jude_customization/jude_customization/doctype/atlantic_fluid_configuration/test_atlantic_fluid_configuration.py
mymi14s/jude_customization
6de7173a03cedf8c712c2d05453c821dff7eec58
[ "MIT" ]
2
2020-11-09T16:22:52.000Z
2020-12-19T20:52:10.000Z
# Copyright (c) 2021, Anthony Emmanuel, github.com/mymi14ss and Contributors # See license.txt # import frappe import unittest class TestAtlanticFluidConfiguration(unittest.TestCase): pass
21.333333
76
0.807292
62
0.322917
0
0
0
0
0
0
108
0.5625
bbb7c9d675be21d26531a6e1f3de3d231a427a1e
1,224
py
Python
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
scale/scale/local_settings_TRAVIS-CI.py
stevevarner/scale
9623b261db4ddcf770f00df16afc91176142bb7c
[ "Apache-2.0" ]
null
null
null
# Settings file for use with travis-ci # Include all the default settings. from settings import * # Use the following lines to enable developer/debug mode. DEBUG = False TEMPLATES[0]['OPTIONS']['debug'] = DEBUG # Set the external URL context here FORCE_SCRIPT_NAME = '/' USE_X_FORWARDED_HOST = True ALLOWED_HOSTS = [...
26.042553
73
0.718137
0
0
0
0
0
0
0
0
903
0.737745
bbbaccac8596eecef7a731177661a6286ed440a5
1,316
py
Python
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
null
null
null
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
null
null
null
scoring/dictionary/YAQ93.py
majazeh/risloo-samples
aadf27912a5044663698fa14fa781c644ea3f548
[ "Unlicense" ]
1
2021-03-07T09:15:55.000Z
2021-03-07T09:15:55.000Z
f1 = 'intentionally_not_thinking_about_upsetting_things' f2 = 'substance_abuse' f3 = 'denial_of_unhappiness' f4 = 'excessive_rationality_and_control' f5 = 'suppression_of_anger' f6 = 'psychosomatic_symptoms' f7 = 'denial_of_memories' f8 = 'withdrawal_from_people' f9 = 'avoidance_through_sleep_and_lack of energy' f10 = ...
21.225806
68
0.521277
0
0
0
0
0
0
0
0
458
0.348024
bbbae9f34a49725dac76a6810057af802194d6d9
327
py
Python
labgraph/websockets/ws_server/ws_server_stream_message.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
124
2021-07-14T21:25:59.000Z
2022-03-08T20:40:16.000Z
labgraph/websockets/ws_server/ws_server_stream_message.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
46
2021-07-16T18:41:11.000Z
2022-03-31T20:53:00.000Z
labgraph/websockets/ws_server/ws_server_stream_message.py
Yunusbcr/labgraph
a00ae7098b7b0e0eda8ce2e7e62dae86854616fb
[ "MIT" ]
22
2021-07-16T18:34:56.000Z
2022-03-31T15:12:06.000Z
#!/usr/bin/env python3 # Copyright 2004-present Facebook. All Rights Reserved. import numpy as np from ...messages import Message class WSStreamMessage(Message): """ A message representing data that was/will be communicated to WebSocket. """ samples: np.float64 stream_name: str stream_i...
18.166667
61
0.703364
192
0.587156
0
0
0
0
0
0
168
0.513761
bbbb396fd5ddce2bf132ab9fc786735f3c60216f
11,400
py
Python
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
93
2015-11-26T14:15:51.000Z
2022-03-10T13:54:21.000Z
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
19
2017-04-06T11:09:21.000Z
2022-03-05T20:12:39.000Z
scripts/lib/smart.py
lpenuelac/ImageAnalysis
a01b1278cca92e45fef6f5e41d1310cfbb041308
[ "MIT" ]
30
2017-06-12T16:08:51.000Z
2022-01-28T17:34:04.000Z
# code to estimate world surface elevation and EKF yaw error from # image direct pose informaation. # - trianglulate image features (in 3d) based on camera poses # - use essential/fundamental matrix + camera pose to estimate yaw error # - use affine transformation + camera pose to estimate yaw error import cv2 import...
33.236152
78
0.635351
0
0
0
0
0
0
0
0
3,110
0.272807
bbbbbd636a90f7a83f3583eed93d7178ff373d2b
162
py
Python
notification/urls.py
zaska-afk/twitterclone-zaska-afk
9a2c0d86f4c359fc6f943e2f0cb56c1681bc2bb2
[ "MIT" ]
null
null
null
notification/urls.py
zaska-afk/twitterclone-zaska-afk
9a2c0d86f4c359fc6f943e2f0cb56c1681bc2bb2
[ "MIT" ]
null
null
null
notification/urls.py
zaska-afk/twitterclone-zaska-afk
9a2c0d86f4c359fc6f943e2f0cb56c1681bc2bb2
[ "MIT" ]
null
null
null
from django.urls import path from notification import views urlpatterns = [ path('notifications/<int:id>/', views.notification_view, name='notifications'), ]
27
83
0.759259
0
0
0
0
0
0
0
0
40
0.246914
bbbdb4df5c383e2a41743d8bacdff942a6c94c7d
3,229
py
Python
portal/migrations/versions/4b1e5b7b69eb_.py
ivan-c/truenth-portal
0b9d39ae43f42ea3413ed9634f295f5d856cbc77
[ "BSD-3-Clause" ]
3
2017-01-15T10:11:57.000Z
2018-10-02T23:46:44.000Z
portal/migrations/versions/4b1e5b7b69eb_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
876
2016-04-04T20:45:11.000Z
2019-02-28T00:10:36.000Z
portal/migrations/versions/4b1e5b7b69eb_.py
pep8speaks/true_nth_usa_portal
31ff755b0cfe61ab908e2a399e3c41ef17ca8c16
[ "BSD-3-Clause" ]
9
2016-04-13T01:18:55.000Z
2018-09-19T20:44:23.000Z
"""empty message Revision ID: 4b1e5b7b69eb Revises: 13d1c714823a Create Date: 2017-01-19 12:36:55.339537 """ # revision identifiers, used by Alembic. revision = '4b1e5b7b69eb' down_revision = '13d1c714823a' import re from alembic import op import sqlalchemy as sa from sqlalchemy.orm import sessionmaker from porta...
33.28866
91
0.59585
0
0
0
0
0
0
0
0
1,270
0.393311
bbbf9065c2092f796276d52d4458d16e60c9b5cb
97
py
Python
tadataka/__init__.py
IshitaTakeshi/DVO
2c5a3db1db7e651bfaa7808bbf79a6c1c6a42fc5
[ "Apache-2.0" ]
7
2019-12-20T07:19:11.000Z
2021-07-22T03:25:12.000Z
tadataka/__init__.py
IshitaTakeshi/DVO
2c5a3db1db7e651bfaa7808bbf79a6c1c6a42fc5
[ "Apache-2.0" ]
null
null
null
tadataka/__init__.py
IshitaTakeshi/DVO
2c5a3db1db7e651bfaa7808bbf79a6c1c6a42fc5
[ "Apache-2.0" ]
null
null
null
from tadataka.visual_odometry import VisualOdometry from tadataka.camera import CameraParameters
32.333333
51
0.896907
0
0
0
0
0
0
0
0
0
0
bbc06ee508b4f1069613557ce6ed45315a87cb10
639
py
Python
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
1
2022-02-22T17:13:16.000Z
2022-02-22T17:13:16.000Z
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
bisect/36003.py
simonjayhawkins/pandas
9f571c58d7796dac8fd1aa2301cf4aa30ad7143a
[ "PSF-2.0", "Apache-2.0", "BSD-3-Clause-No-Nuclear-License-2014", "MIT", "MIT-0", "ECL-2.0", "BSD-3-Clause" ]
null
null
null
import datetime import pandas as pd import pandas.testing as tm print(pd.__version__) df = pd.DataFrame( { "A": ["X", "Y"], "B": [ datetime.datetime(2005, 1, 1, 10, 30, 23, 540000), datetime.datetime(3005, 1, 1, 10, 30, 23, 540000), ], } ) print(df) print(df....
18.257143
62
0.56025
0
0
0
0
0
0
0
0
63
0.098592
bbc4c27f8757a25bed0fa10e2091d91ec6470472
1,090
py
Python
investment_report/urls.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-02T19:08:55.000Z
2021-02-02T19:08:55.000Z
investment_report/urls.py
uktrade/invest-pir-api
be56efddf9dfdf81c8557441a9a54d9a4dd4bab1
[ "MIT" ]
21
2018-07-10T10:20:47.000Z
2022-03-24T09:36:29.000Z
investment_report/urls.py
uktrade/pir-api
79747ceab042c42c287e2b7471f6dade70f68693
[ "MIT" ]
1
2021-02-04T11:28:37.000Z
2021-02-04T11:28:37.000Z
from django.conf.urls import url from investment_report.views import utils urlpatterns = [ url('preview/(?P<lang>[\w-]+)/(?P<market>[\w-]+)/(?P<sector>[\w-]+)/pdf', utils.investment_report_pdf, {'moderated': False}, name='preview_investment_report_pdf'), url('current/(?P<lang>[\w-]+)/...
32.058824
78
0.589908
0
0
0
0
0
0
0
0
510
0.46789
bbc5bdb8d114fadf0d6064c5f98954f19d27c09e
2,823
py
Python
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
1
2017-08-18T08:03:55.000Z
2017-08-18T08:03:55.000Z
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
null
null
null
docc/image.py
pirate42/docc
de8e27ce5ec2e1288bff8c17a1566bbc7a26ade1
[ "MIT" ]
null
null
null
# coding=utf-8 from docc.exceptions import APIError class Image(object): """Represent an Image object (name and distribution information)""" def __init__(self, identifier, name, distribution): self.id = identifier self.name = name self.distribution = distribution def __repr__(se...
29.715789
77
0.597237
2,768
0.980517
0
0
1,912
0.677294
0
0
1,010
0.357775
bbc710f8e283a69d3d2753dd21f132cb54a0681b
1,607
py
Python
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
13
2021-04-05T08:37:37.000Z
2021-12-27T13:14:02.000Z
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
1
2021-05-21T01:54:51.000Z
2021-11-19T07:36:47.000Z
ml_app_profile_analysis/ml_usage_analysis/fw_purpose_stat.py
RiS3-Lab/ModelXRay
60a98718eaa91eeb15d0737a9728cee4d714edd2
[ "Apache-2.0" ]
2
2022-01-18T07:37:31.000Z
2022-03-10T19:42:35.000Z
#!/usr/bin/env python import argparse fwmap = {'tensorflow':1,'caffe':2,'sensetime':3,'ncnn':4,'other':5,'mxnet':6,'uls':7,'mace':8,'tflite':9} def printres(th, res): th.append('sum') print "%15s"%(" "), for i in th: print i, print "" for use in res: print "%15s"%(use), fwre...
29.218182
141
0.514001
0
0
0
0
0
0
0
0
389
0.242066
bbc76fa30b8fa88196b49d21f794c0cf68d9f17b
595
py
Python
email-service/rest_utils.py
Rudrarka/Alert-System
ed6d0c0566e70a13d13e6c65fa790f25d07fa99e
[ "MIT" ]
null
null
null
email-service/rest_utils.py
Rudrarka/Alert-System
ed6d0c0566e70a13d13e6c65fa790f25d07fa99e
[ "MIT" ]
null
null
null
email-service/rest_utils.py
Rudrarka/Alert-System
ed6d0c0566e70a13d13e6c65fa790f25d07fa99e
[ "MIT" ]
null
null
null
import os import requests class RestApi: def __init__(self, base_url: str, api_key: str): self.url = base_url self.headers = {'X-API-Key': api_key} def patch_json(self, path, json): resp = requests.patch(self.url + path, headers=self.headers, json=json) resp.raise_for_status() ...
28.333333
79
0.638655
565
0.94958
0
0
0
0
0
0
49
0.082353
bbc82f2eff9c39c28075f8ddd776994572815053
1,660
py
Python
model/documentmanifest.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/documentmanifest.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
model/documentmanifest.py
beda-software/fhir-py-experements
363cfb894fa6f971b9be19340cae1b0a3a4377d8
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- # # Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/DocumentManifest) on 2020-02-03. # 2020, SMART Health IT. import sys from dataclasses import dataclass, field from typing import ClassVar, Optional, List from .backboneelement import Backbo...
33.2
113
0.751807
1,108
0.66747
0
0
1,130
0.680723
0
0
493
0.296988
bbc90b64134d3ab6cf219527bed05e8373ac58a3
717
py
Python
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
2
2022-03-01T23:50:08.000Z
2022-03-22T15:25:34.000Z
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
8
2022-02-19T00:06:34.000Z
2022-03-31T00:09:54.000Z
tests/core/test_lc.py
atsuki-kuwata/jaxsot
7de5dd964c951661892c79e4447e9f314885a0a9
[ "MIT" ]
1
2022-03-01T22:39:00.000Z
2022-03-01T22:39:00.000Z
""" test for lc """ import pytest import numpy as np from jaxsot.core.weight import comp_weight, comp_omega from jaxsot.core.lc import gen_lightcurve from jaxsot.io.earth import binarymap def test_lc(): mmap=binarymap(nside=16,show=False) nside=16 inc=0.0 Thetaeq=np.pi zeta=np.pi/3.0 Pspin=23...
21.727273
63
0.679219
0
0
0
0
0
0
0
0
30
0.041841
bbca0d47c796ae1504de61caad61827265203834
4,057
py
Python
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
src/squad/kinematics/base.py
douglasdaly/spot-robot
7a4fdd7eb5fe5fc2d31180ed6b9f7ea21647bea2
[ "MIT" ]
null
null
null
from typing import Any, Dict from squad.config import config from squad.exceptions import FrozenError class BodyParameters: """ Storage class for (static) body data/parameters. """ __slots__ = ( "_frozen", "body_length_units", "body_angle_units", "l_body", "w_...
32.198413
78
0.590338
3,951
0.973872
0
0
450
0.110919
0
0
1,198
0.295292
bbcac82869e4955029c31c4d5ba367911fd7fe18
2,833
py
Python
deep_image_compression/single_psnr.py
LichengXiao2017/deep-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
9
2020-01-09T21:15:17.000Z
2022-02-08T12:41:54.000Z
deep_image_compression/single_psnr.py
LichengXiao2017/deep-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
8
2019-10-15T23:50:03.000Z
2021-11-10T19:40:15.000Z
deep_image_compression/single_psnr.py
LichengXiao2017/enas-image-compression
cf6e5699bad4d7b4a0dd8db6da72aa0c56e3d1e4
[ "MIT" ]
3
2019-10-16T06:06:49.000Z
2020-07-06T15:02:09.000Z
# -*- coding: utf-8 -*- # Copyright 2019 Licheng Xiao. 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 requi...
37.276316
83
0.614896
1,311
0.46276
0
0
0
0
0
0
926
0.326862
bbcbbaa39a696df212fa670accc00b3ebb116dbd
984
py
Python
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
message/tests/utils/creators.py
ThePokerFaCcCe/messenger
2db3d5c2ccd05ac40d2442a13d664ca9ad3cb14c
[ "MIT" ]
null
null
null
from message.models import Message, DeletedMessage, TextContent from user.tests.utils import create_active_user from conversation.tests.utils import create_private_chat def create_text_content(text='hello') -> TextContent: return TextContent.objects.create(text=text) def create_message(sender=None, chat=None, ...
31.741935
65
0.707317
0
0
0
0
0
0
0
0
44
0.044715
bbcbbc848a277e8f627eea2957cd5be0baa2e598
350
py
Python
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
excercises/6-0001/finger_excercises/iteration-1.py
obsessedyouth/simulacra
530155664daf1aff06cb575c4c4073acbacdb32d
[ "MIT" ]
null
null
null
""" Replace the comment in the following code with a while loop. numXs = int(input('How many times should I print the letter X? ')) toPrint = " #concatenate X to toPrint numXs times print(toPrint) """ numXs = int(input('How many times should I print the letter X? ')) toPrint = "" while numXs > 0: toPrint += "X" ...
20.588235
66
0.677143
0
0
0
0
0
0
0
0
251
0.717143
bbcbf2b2a1cb0a8d47a18b0768f2227527626ab0
7,784
py
Python
services/temperature_bands/temperature_bands_pb2.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
27
2016-04-26T17:26:56.000Z
2021-08-22T15:11:55.000Z
services/temperature_bands/temperature_bands_pb2.py
phgupta/XBOS
acc59f33600943569d62c145dae11a1775296b44
[ "BSD-2-Clause" ]
75
2017-02-17T18:00:37.000Z
2019-06-20T04:12:08.000Z
services/temperature_bands/temperature_bands_pb2.py
vishalbelsare/XBOS
1fea0b024d97ae142d97b3a94510403928ed44b7
[ "BSD-2-Clause" ]
20
2017-07-28T14:50:04.000Z
2020-01-16T05:04:54.000Z
# -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! # source: temperature_bands.proto import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.pr...
38.92
784
0.751413
0
0
0
0
0
0
0
0
2,116
0.27184
bbd055bb557e945cf33d02d1ba1783662b82c31f
63
py
Python
bot/exchange/__init__.py
colticol/bold-arbitrager
aef6683a3f41d47a51d24367819d183ecacea3a0
[ "Apache-2.0" ]
null
null
null
bot/exchange/__init__.py
colticol/bold-arbitrager
aef6683a3f41d47a51d24367819d183ecacea3a0
[ "Apache-2.0" ]
null
null
null
bot/exchange/__init__.py
colticol/bold-arbitrager
aef6683a3f41d47a51d24367819d183ecacea3a0
[ "Apache-2.0" ]
null
null
null
from . import exchange_controller from . import exchange_client
31.5
33
0.857143
0
0
0
0
0
0
0
0
0
0
bbd06fd058120fffbc5ec8c48b2f8310d80c11b4
2,265
py
Python
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-08-05T16:42:48.000Z
2020-08-05T16:42:48.000Z
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-11-04T07:06:37.000Z
2020-11-04T07:06:37.000Z
test_proj/tests/test_runner.py
andrewbird2/django-data-validation
8c3a8e14440f0299a5f4b188dfaa7864b53b5123
[ "MIT" ]
1
2020-11-04T02:16:05.000Z
2020-11-04T02:16:05.000Z
from unittest import mock from django.core.management import call_command import pytest from app1.models import TestModel from datavalidation.models import Validator from datavalidation.results import Status from datavalidation.runners import ModelValidationRunner, ObjectValidationRunner def test_model_runner_with_...
31.458333
80
0.72362
0
0
0
0
1,307
0.577042
0
0
537
0.237086
bbd1b55c9769411d9a683ac06b192b84c0c94cde
2,479
py
Python
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
FlaskApp/flask_server.py
pjneelam/pjneelam.eportfolio2022
3f55c1da6214e3eabab949ff83b34c0553c52866
[ "CC-BY-3.0" ]
null
null
null
#to create the flask page #import flask #flask library was installed in the command line/computer terminal first #Source: PythonHow https://pythonhow.com/python-tutorial/flask/How-making-a-website-with-Python-works/ #Python assigns the name "__main__" to the script when the script is executed. #The debug parameter...
42.741379
146
0.709964
0
0
0
0
1,093
0.440904
0
0
1,964
0.792255
bbd25b797957a5f28a70032817bbe3816cae3981
3,152
py
Python
mozdns/mixins.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
22
2015-01-16T01:36:32.000Z
2020-06-08T00:46:18.000Z
mozdns/mixins.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
8
2015-12-28T18:56:19.000Z
2019-04-01T17:33:48.000Z
mozdns/mixins.py
jlin/inventory
c098c98e570c3bf9fadfd811eb75e1213f6ea428
[ "BSD-3-Clause" ]
13
2015-01-13T20:56:22.000Z
2022-02-23T06:01:17.000Z
from settings import MOZDNS_BASE_URL from gettext import gettext as _ from string import Template class DisplayMixin(object): # Knobs justs = { 'pk_just': 10, 'rhs_just': 1, 'ttl_just': 1, 'rdtype_just': 4, 'rdclass_just': 3, 'prio_just': 1, 'lhs_just': ...
28.396396
75
0.583756
3,045
0.966053
0
0
0
0
0
0
1,163
0.368972
bbd2f4baf55ab29dd9d52744e70bd79da375026a
2,361
py
Python
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
db_cloudant2.py
trishasarkar/IBM-PLS-deployed
959fef4c43a6a33bcb6e96b14046dcbd220e0b2a
[ "MIT" ]
null
null
null
from ibmcloudant.cloudant_v1 import CloudantV1, Document from ibm_cloud_sdk_core.authenticators import IAMAuthenticator CLOUDANT_URL="https://apikey-v2-1mfs4kqo2nmnc2sdtgp9ji8myznbgm6mivk0o93pfopt:f70c9a73c52d287d3271ddc3dba6a30a@dc1a5ff5-996b-475c-8b7e-da87f4bf33a3-bluemix.cloudantnosqldb.appdomain.cloud" CLOUDANT_AP...
26.829545
187
0.710292
0
0
0
0
0
0
0
0
1,807
0.765354
bbd37b557f545c19f1a83004ba18612d1700a121
1,782
py
Python
core/migrations/0012_auto_20170423_1836.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
core/migrations/0012_auto_20170423_1836.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
core/migrations/0012_auto_20170423_1836.py
koatse/ilikethem
962374ff8179a533dba3b00422d11bb819d8acde
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.10.4 on 2017-04-23 18:36 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('core', '0011_auto_20170422_1917'), ] operations = [ migrations.AlterModelOp...
33
102
0.597643
1,624
0.911336
0
0
0
0
0
0
512
0.287318
bbd438523d7877e78c030d4778fb9485bdd7f4ad
478
py
Python
cymon_v2/komand_cymon_v2/actions/__init__.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2020-03-18T09:14:55.000Z
2020-03-18T09:14:55.000Z
cymon_v2/komand_cymon_v2/actions/__init__.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
1
2021-02-23T23:57:37.000Z
2021-02-23T23:57:37.000Z
cymon_v2/komand_cymon_v2/actions/__init__.py
killstrelok/insightconnect-plugins
911358925f4233ab273dbd8172e8b7b9188ebc01
[ "MIT" ]
null
null
null
# GENERATED BY KOMAND SDK - DO NOT EDIT from .create_feed.action import CreateFeed from .get_feed_details.action import GetFeedDetails from .get_report_document.action import GetReportDocument from .list_all_feeds.action import ListAllFeeds from .list_user_feeds.action import ListUserFeeds from .search.action import Se...
43.454545
62
0.864017
0
0
0
0
0
0
0
0
39
0.08159
bbd4c608ff119a6e8725d951c6333bfee210d76b
9,913
py
Python
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
3
2020-10-22T06:18:17.000Z
2021-03-19T16:49:00.000Z
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
11
2019-11-01T23:04:31.000Z
2022-02-10T12:32:11.000Z
appsite/resolver/models.py
inchiresolver/inchiresolver
6b3f080a4364ebe7499298e5a1b3cd4ed165322d
[ "BSD-3-Clause" ]
null
null
null
import uuid from urllib.parse import urljoin from django.core.exceptions import FieldError from multiselectfield import MultiSelectField from rdkit import Chem from django.db import models from resolver import defaults from inchi.identifier import InChIKey, InChI class Inchi(models.Model): id = models.UUIDFiel...
36.988806
117
0.635226
9,628
0.97125
0
0
2,877
0.290225
0
0
1,564
0.157773
bbd5dfeac5416aaa4e83e0b9d53270b2988a24ca
2,995
py
Python
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
6
2020-06-29T20:36:15.000Z
2021-09-08T23:34:01.000Z
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
9
2021-03-30T13:46:29.000Z
2022-03-12T00:38:27.000Z
kit_django/content/apps.py
safakoner/kit
aec36a70137febfb5f3e3a9205ea58879736eea4
[ "MIT" ]
1
2020-07-20T18:40:24.000Z
2020-07-20T18:40:24.000Z
# # ---------------------------------------------------------------------------------------------------- # DESCRIPTION # ---------------------------------------------------------------------------------------------------- ## @package content @brief [ PACKAGE ] - Content. ## @dir content ...
42.785714
102
0.444741
702
0.234391
0
0
0
0
0
0
2,257
0.753589
bbd748e6a83de8ca6fc199a6dc4a8e503c1bdd1b
681
py
Python
Robot.py
rnandon/RobotsAndDinosaurs
ad83d61a800bcf307dfbbf925abe91bcad2763b4
[ "MIT" ]
null
null
null
Robot.py
rnandon/RobotsAndDinosaurs
ad83d61a800bcf307dfbbf925abe91bcad2763b4
[ "MIT" ]
null
null
null
Robot.py
rnandon/RobotsAndDinosaurs
ad83d61a800bcf307dfbbf925abe91bcad2763b4
[ "MIT" ]
null
null
null
### IMPORTS ### ================================ from Combatant import Combatant # Robot. Implementation of the Combatant class class Robot(Combatant): def __init__(self, name, weapon): self.equipped_weapon = weapon super().__init__(name, self.equipped_weapon.attack_power) ### M...
35.842105
108
0.577093
543
0.797357
0
0
0
0
0
0
287
0.421439
bbd76e1f33835fcc21edddd8477a6604c70dcdb3
5,143
py
Python
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
1
2019-04-19T10:14:49.000Z
2019-04-19T10:14:49.000Z
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
null
null
null
src/core.py
z62060037/ArtStationDownloader
f6e8a657dfd3584cbf870470f1b19dc4edf54e92
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """内核方法 Copyright 2018-2019 Sean Feng(sean@FantaBlade.com) """ import os import re from concurrent import futures from multiprocessing import cpu_count from urllib.parse import urlparse import pafy import requests class Core: def log(self, message): print(message) def __in...
37.816176
92
0.517986
4,929
0.951361
0
0
0
0
0
0
765
0.147655
bbd7d9dde1e4ce541f94c7b201986c3d8dd7319a
727
py
Python
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
null
null
null
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
null
null
null
home/migrations/0022_auto_20210409_1256.py
witty-technologies-empowerment/codeupblood
a0aa1725e5776d80e083b6d4e9e67476bb97e983
[ "MIT" ]
1
2022-01-19T11:09:13.000Z
2022-01-19T11:09:13.000Z
# Generated by Django 3.1.6 on 2021-04-09 19:56 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('home', '0021_auto_20210409_1118'), ] operations = [ migrations.AddField( model_name='blog', name='show', ...
25.068966
68
0.566713
634
0.872077
0
0
0
0
0
0
142
0.195323
bbdb2c2c522ffff022d41a4d62480d42fe180e58
2,586
py
Python
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
1
2020-06-07T00:19:54.000Z
2020-06-07T00:19:54.000Z
Gui/CustomWidgets/PlottingWidgets/mayaViWidget.py
jpesperidiao/MOPA
6fbf097a22d42d82eeb36c6f247eb0d8fb6ac586
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ /*************************************************************************** MOPA An independet project Método de Obtenção da Posição de Atirador ------------------- begin : 2018-12-21 git sha ...
39.784615
95
0.496906
1,202
0.463556
0
0
344
0.132665
0
0
1,816
0.700347
bbdb59840ecfefbcddcb7e8ef4a69bf99648feb6
1,953
py
Python
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
notebooks/debug_monuseg.py
voreille/2d_bispectrum_cnn
ba8f26f6a557602bc3343c4562c83a3de914c67e
[ "MIT" ]
null
null
null
from pathlib import Path import numpy as np from PIL import Image, ImageSequence import matplotlib.pyplot as plt import tensorflow as tf import tensorflow_io as tfio from scipy.ndimage import rotate from src.data.monuseg import get_dataset, tf_random_rotate, tf_random_crop ds = get_dataset() def random_crop(image,...
39.06
78
0.612391
0
0
0
0
0
0
0
0
42
0.021505
bbdd2e1f7b9f04c68b368c1e67ead84b604e9837
526
py
Python
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
amqp_2phase/migrations/0002_create_event_index.py
cloud-taxi/django-amqp-2phase
d4825fa68bfba6a21c310b45f39a740840e7cae1
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11 on 2017-05-08 05:45 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('amqp_2phase', '0001_create_events_table'), ] atomic = False operations = [ migrati...
29.222222
119
0.671103
378
0.718631
0
0
0
0
0
0
254
0.48289
bbddc18cfd9ad9a4f3ecf0a646125463caad5351
870
py
Python
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
investmap/migrations/0004_investmapdescriptiontabs.py
30Meridian/RozumneMistoSnapshot
67a83b3908674d01992561dfb37596e395b4d482
[ "BSD-3-Clause" ]
null
null
null
# -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import migrations, models import ckeditor_uploader.fields class Migration(migrations.Migration): dependencies = [ ('weunion', '0001_initial'), ('investmap', '0003_auto_20161205_1926'), ] operations = [ ...
30
114
0.589655
729
0.837931
0
0
0
0
0
0
189
0.217241
bbdf983b5082ed39dd9de59fc5860b7d988b933b
290
py
Python
align/cli.py
kba/cis-ocrd-py
4b6d2a29ac82cf1ec734a87314a6c774271d09bc
[ "MIT" ]
null
null
null
align/cli.py
kba/cis-ocrd-py
4b6d2a29ac82cf1ec734a87314a6c774271d09bc
[ "MIT" ]
null
null
null
align/cli.py
kba/cis-ocrd-py
4b6d2a29ac82cf1ec734a87314a6c774271d09bc
[ "MIT" ]
null
null
null
import click from ocrd.decorators import ocrd_cli_options, ocrd_cli_wrap_processor from align.aligner import Aligner @click.command() @ocrd_cli_options def cis_ocrd_align(*args, **kwargs): # kwargs['cache_enabled'] = False return ocrd_cli_wrap_processor(Aligner, *args, **kwargs)
26.363636
69
0.786207
0
0
0
0
170
0.586207
0
0
33
0.113793
bbdfbb10eaebeeb5ca5805687d46a1d1d278b849
1,567
py
Python
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
null
null
null
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
1
2020-11-19T04:49:28.000Z
2020-11-19T04:49:28.000Z
test/SI_to_Conc/test_SI2Conc_OG_MO_AUMC_ICR_RMH.py
notZaki/DCE-DSC-MRI_CodeCollection
9e258e10559894951c7e6c5c00876e74ce103258
[ "Apache-2.0" ]
null
null
null
import pytest import numpy as np from ..helpers import osipi_parametrize from . import SI2Conc_data from src.original.OG_MO_AUMC_ICR_RMH.ExtendedTofts.DCE import dce_to_r1eff from src.original.OG_MO_AUMC_ICR_RMH.ExtendedTofts.DCE import r1eff_to_conc # All tests will use the same arguments and same data... arg_name...
40.179487
157
0.734525
0
0
0
0
968
0.617741
0
0
730
0.465858
bbdfc65e3dc96518486004ed92ed7315cea723ab
3,559
py
Python
src/docker_composer/runner/cmd/up.py
michascholl/docker-composer
d190f1db766e216654a4259785b9aaf802a9c64d
[ "Apache-2.0" ]
4
2021-01-18T11:35:24.000Z
2021-08-30T16:19:39.000Z
src/docker_composer/runner/cmd/up.py
michascholl/docker-composer
d190f1db766e216654a4259785b9aaf802a9c64d
[ "Apache-2.0" ]
null
null
null
src/docker_composer/runner/cmd/up.py
michascholl/docker-composer
d190f1db766e216654a4259785b9aaf802a9c64d
[ "Apache-2.0" ]
1
2022-02-19T10:38:59.000Z
2022-02-19T10:38:59.000Z
# DO NOT EDIT: Autogenerated by src/docker_composer/_utils/generate_class.py # for docker-compose version 1.25.0, build unknown from typing import List, Optional import attr from docker_composer.base import DockerBaseRunner @attr.s(auto_attribs=True) class DockerComposeUp(DockerBaseRunner): """ Builds, (re...
37.463158
83
0.680528
3,302
0.927789
0
0
3,329
0.935375
0
0
2,497
0.701602
bbe0157ae7f26883dcb131a2958451cdb126b2d0
1,415
py
Python
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
1
2020-02-19T07:45:53.000Z
2020-02-19T07:45:53.000Z
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
1
2020-02-20T05:35:49.000Z
2020-02-26T08:14:41.000Z
app.py
hendrapaiton/mandalika
6ecbde9e3582d6532006e58531d5fc52feaa8854
[ "MIT" ]
2
2020-02-25T16:46:39.000Z
2020-02-26T09:02:06.000Z
# Import from system libraries from flask import Flask from flask_bcrypt import Bcrypt from flask_cors import CORS from flask_jwt_extended import JWTManager from flask_restful import Api # Import from application modules from errors import errors from models.User import User from models.db import initialize_db from ro...
25.727273
78
0.786572
0
0
0
0
176
0.124382
0
0
593
0.419081
bbe0811cc9331cc6588c71ea015afd88bed83389
509
py
Python
openapi_core/validation/util.py
erpheus/openapi-core
b37510b0e306f6819971f64106617fb116974243
[ "BSD-3-Clause" ]
null
null
null
openapi_core/validation/util.py
erpheus/openapi-core
b37510b0e306f6819971f64106617fb116974243
[ "BSD-3-Clause" ]
null
null
null
openapi_core/validation/util.py
erpheus/openapi-core
b37510b0e306f6819971f64106617fb116974243
[ "BSD-3-Clause" ]
null
null
null
"""OpenAPI core validation util module""" from yarl import URL def get_operation_pattern(server_url, request_url_pattern): """Return an updated request URL pattern with the server URL removed.""" if server_url[-1] == "/": # operations have to start with a slash, so do not remove it server_url ...
39.153846
76
0.70334
0
0
0
0
0
0
0
0
180
0.353635
bbe19a963ebbfb67a87214650a7ef4c055ac8952
2,071
py
Python
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
1
2022-02-22T07:19:16.000Z
2022-02-22T07:19:16.000Z
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
null
null
null
render/model.py
kennyngod/portfoliov2
3b931c35c342bfeea18fd2d97eadc65ed57c56a7
[ "CC-BY-3.0" ]
null
null
null
"""Mostly helper functions to help with the driver.""" import json import os import pathlib import sqlite3 import arrow # type: ignore def sql_db(): """Open a SQL connection and perform a query.""" db_path = pathlib.Path(os.getcwd()) db_path = pathlib.Path(db_path/'sql'/'portfolio.sqlite3') con = sql...
29.169014
75
0.598262
0
0
0
0
0
0
0
0
613
0.295992
bbe3022d59c8c55da8fc827a792032bc2f9f1ed9
1,053
py
Python
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
codes/exact/matStuff/lambdaFlucSparseSysRep.py
joshuahellier/PhDStuff
6fbe9e507c40e9017cde9312b0cfcc6ceefa284e
[ "MIT" ]
null
null
null
import subprocess import sys import os import math # This code is meant to manage running multiple instances of my KMCLib codes at the same time, # in the name of time efficiency numLambda = 256 sysSize = 5 numVecs = 1 dataLocation = "exactSolns/thesisCorrections/low" lambdaMin = 10.0**(-4) lambdaMax = 10.0**(4) rate...
33.967742
215
0.706553
0
0
0
0
0
0
0
0
269
0.255461
bbe30cef5cf3479058d3d846d89799afd1e7069c
3,997
py
Python
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
2
2016-02-23T00:09:14.000Z
2019-02-11T07:48:44.000Z
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
null
null
null
lib/galaxy/webapps/tool_shed/util/shed_statistics.py
bopopescu/phyG
023f505b705ab953f502cbc55e90612047867583
[ "CC-BY-3.0" ]
6
2015-05-27T13:09:50.000Z
2019-02-11T07:48:46.000Z
from time import strftime, gmtime class ShedCounter( object ): def __init__( self, model ): # TODO: Enhance the ShedCounter to retrieve information from the db instead of displaying what's currently in memory. self.model = model self.generation_time = strftime( "%b %d, %Y", gmtime() ) ...
49.345679
131
0.536652
3,961
0.990993
0
0
114
0.028521
0
0
642
0.16062
bbe3888f6e45c812298b82e8ac836a9bd58f2e7b
2,461
py
Python
lib/helpertools/helpertools/geometry.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
4
2022-01-12T15:30:54.000Z
2022-02-28T22:12:17.000Z
lib/helpertools/helpertools/geometry.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
null
null
null
lib/helpertools/helpertools/geometry.py
aws-samples/amazon-textract-large-scale-selectable-pdf
e62b1c5ed79c02008783bc1361d70f0b5b69e0b7
[ "MIT-0" ]
2
2021-10-24T01:43:12.000Z
2022-01-21T20:14:33.000Z
''' ''' from typing import Dict, Optional # classes # ------- class BoundingBox(): ''' Class to manipulate a bounding box (bbox). A bounding box is a rectangle aligned with the coordinate system. The bounding box are defined on coordinate system with x pointing toward east and y pointing toward north...
30.7625
90
0.604632
2,398
0.974401
0
0
1,088
0.442097
0
0
1,023
0.415685
bbe58ee718d54a29743fdde56951e945cc81bce6
378
py
Python
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
6
2019-01-23T17:37:09.000Z
2020-11-17T16:12:27.000Z
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
9
2019-01-25T11:09:17.000Z
2022-02-26T09:10:04.000Z
examples/chart-types/pie_chart.py
tcbegley/dash-google-charts
b8b22e5b6bac533167f218e3610697dec0c3e4ca
[ "Apache-2.0" ]
1
2019-01-23T17:37:12.000Z
2019-01-23T17:37:12.000Z
import dash from dash_google_charts import PieChart app = dash.Dash() app.layout = PieChart( height="500px", data=[ ["Task", "Hours per Day"], ["Work", 11], ["Eat", 2], ["Commute", 2], ["Watch TV", 2], ["Sleep", 7], ], options={"title": "My Daily Activit...
18
45
0.518519
0
0
0
0
0
0
0
0
103
0.272487
bbe8dbb33350754634ad5a39bc45f35bec1cec43
4,183
py
Python
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
threats-monitoring/modules/thehive.py
filippostz/McAfee-MVISION-EDR-Integrations
0fbe1af15f844b796337ccd2ff219a0c4e625846
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # Written by mohlcyber v.0.1 (15.04.2020) # Edited by filippostz v.0.2 (24.09.2021) import random import sys import socket import requests import json import re import smtplib from datetime import datetime from urllib.parse import urljoin from email.mime.text import MIMEText from email.mime.mult...
41.83
127
0.531198
3,731
0.891944
0
0
0
0
0
0
991
0.236911
bbe9079acec9fc7d47c390d5c89d9f262c9f1f50
518
py
Python
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
null
null
null
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
6
2020-08-03T20:55:44.000Z
2020-08-13T22:03:13.000Z
src/config.py
psu-os-rss/Rock-Paper-and-Scissors
05e9f51978cae1f05c9f06a71d9822ccfedbc5e1
[ "MIT" ]
null
null
null
#parameters accumulated_weight = 0.5 detector_u = 50 detector_b = 350 detector_r = 300 detector_l = 600 message_x = 10 message_y = 400 date_x = 0 date_y = 450 threshold_min=22 rate = 0.8 RGB_INT_MAX = 255 RGB_INT_MIN = 0 RGB_FLT_MAX = 255.0 RGB_FLT_MIN = 0.0 Blur_value = 7 text_color = (200,50,150) rectangle_color = (0...
17.862069
27
0.758687
0
0
0
0
0
0
0
0
11
0.021236
bbe94404de84755169d02669d387f24583e7d3f0
1,309
py
Python
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
1
2022-02-02T04:44:56.000Z
2022-02-02T04:44:56.000Z
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
ejercicios/arreglos/perimetro.py
leugimkm/Soluciones
d71601c8d9b5e86e926f48d9e49462af8a956b6d
[ "MIT" ]
null
null
null
"""AyudaEnPython: https://www.facebook.com/groups/ayudapython Genere una matriz de 25 x 40 con números decimales al azar entre 0 y 1. Mostrar los numeros del perimetro y calcularlo. """ from random import random from prototools import show_matrix def solver_a(): """ >>> solver_a() [1, 2, 3, 4, 5, 16, 17...
23.375
71
0.50573
0
0
0
0
0
0
0
0
371
0.283206
bbec33adffc946520b52f5157928147efe6188be
5,941
py
Python
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
HIS_void/rbac/admin.py
YuanchenZhu2020/HIS_void
7289bf537e9fc4b09750bbca76a4cc8354dc770f
[ "MIT" ]
null
null
null
from django import forms from django.contrib import admin from django.contrib.auth.models import Group from django.contrib.auth.admin import UserAdmin as BaseUserAdmin from django.contrib.auth.forms import ReadOnlyPasswordHashField from django.utils.translation import gettext_lazy as _ from .models import ( ...
32.113514
96
0.56068
5,566
0.877503
0
0
0
0
0
0
2,465
0.388617
bbec39b874803a9ced574ab89af24276b12b55c2
4,698
py
Python
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
1
2022-01-09T21:57:56.000Z
2022-01-09T21:57:56.000Z
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
null
null
null
process.py
bisi-dev/wa-analytics
a657fd793a59fa551d5755877c4e6c814bc3d17c
[ "Apache-2.0" ]
null
null
null
# import modules import os import re import glob import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from wordcloud import WordCloud class Analyse: # Data Cleaning Function def raw_to_df(self, file, key): global df # Time formatting split_form...
29.923567
79
0.561303
4,521
0.962324
0
0
0
0
0
0
1,740
0.37037
bbece8b4d9743d75c14096162d201bda457080e8
2,857
py
Python
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
2
2019-08-06T07:28:45.000Z
2020-05-31T14:41:40.000Z
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
null
null
null
server/rdp.py
husmen/Trajectory-Mapping
215d5a2c58482b7ddb168a50dd02c59ba285c8bd
[ "MIT" ]
1
2019-01-07T10:14:50.000Z
2019-01-07T10:14:50.000Z
#!/usr/bin/python3 """ rdp Python implementation of the Ramer-Douglas-Peucker algorithm. """ import sys import numpy as np #from math import sqrt #from functools import partial from math import radians, cos, sin, asin, sqrt if sys.version_info[0] >= 3: xrange = range def pl_dist(point, start, end): """ C...
26.453704
95
0.60098
0
0
0
0
0
0
0
0
1,879
0.657683
bbed6bb7a92a7f22be0a1cdd4bf174a34f7f4719
7,655
py
Python
tests/Monkeypatching/test_Api_monkeypatching_api_get_by_id.py
LudwikaMalinowska/Automated-Testing-Project2
f0868700af8d6b946768d67b3c1768c2447f1a60
[ "MIT" ]
null
null
null
tests/Monkeypatching/test_Api_monkeypatching_api_get_by_id.py
LudwikaMalinowska/Automated-Testing-Project2
f0868700af8d6b946768d67b3c1768c2447f1a60
[ "MIT" ]
null
null
null
tests/Monkeypatching/test_Api_monkeypatching_api_get_by_id.py
LudwikaMalinowska/Automated-Testing-Project2
f0868700af8d6b946768d67b3c1768c2447f1a60
[ "MIT" ]
null
null
null
import unittest import requests from assertpy import assert_that from requests.exceptions import Timeout from unittest.mock import Mock, patch from src.Api import Api from src.todos import todos class TestApiMonkeyPatch(unittest.TestCase): @patch('src.Api.Api', autospec=True) def test_method_api_get_by_id_...
44.248555
119
0.678903
7,407
0.967603
0
0
304
0.039713
0
0
487
0.063619
bbed960d66995a862622a4fef9dc7cece3c6c141
361
py
Python
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
imranq2/SparkAutoMapper.FHIR
dd23b218fb0097d1edc2f3e688e8d6d4d7278bd2
[ "Apache-2.0" ]
1
2020-10-31T23:25:07.000Z
2020-10-31T23:25:07.000Z
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
spark_auto_mapper_fhir/generator/test_generator_get_types_for_codeable_concepts.py
icanbwell/SparkAutoMapper.FHIR
98f368e781b46523142c7cb513c670d659a93c9b
[ "Apache-2.0" ]
null
null
null
from typing import List from spark_auto_mapper_fhir.generator.fhir_xml_schema_parser import ( FhirXmlSchemaParser, FhirCodeableType, ) def test_generator_get_types_for_codeable_concepts() -> None: print("") codeable_types: List[ FhirCodeableType ] = FhirXmlSchemaParser.get_types_for_codea...
24.066667
69
0.772853
0
0
0
0
0
0
0
0
2
0.00554
bbed9aef40b38f60b39c83a06b6bc7dda41d6fe6
3,112
py
Python
hard-gists/6572592/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
21
2019-07-08T08:26:45.000Z
2022-01-24T23:53:25.000Z
hard-gists/6572592/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
5
2019-06-15T14:47:47.000Z
2022-02-26T05:02:56.000Z
hard-gists/6572592/snippet.py
jjhenkel/dockerizeme
eaa4fe5366f6b9adf74399eab01c712cacaeb279
[ "Apache-2.0" ]
17
2019-05-16T03:50:34.000Z
2021-01-14T14:35:12.000Z
#!/usr/bin/env python # Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs. # # Written by Tim Hutt, tdhutt@gmail.com, based on this script: # # https://gist.github.com/oquno/3664731 # # Today is the 15th...
31.12
168
0.645566
0
0
0
0
0
0
0
0
1,677
0.538882
bbee0d1262c642ad50187e5394e6ab5c37bd528f
5,560
py
Python
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
75
2021-06-14T02:35:19.000Z
2022-03-23T04:30:24.000Z
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
2
2021-12-17T08:46:54.000Z
2022-03-15T02:04:53.000Z
tests/algorithms/test_gail.py
sony/nnabla-rl
6a9a91ac5363b8611e0c9f736590729952a8d460
[ "Apache-2.0" ]
3
2021-06-15T13:32:57.000Z
2022-03-25T16:53:14.000Z
# Copyright 2021 Sony Corporation. # Copyright 2021 Sony Group Corporation. # # 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 requi...
37.823129
77
0.673561
4,568
0.821583
0
0
0
0
0
0
1,053
0.189388
bbef40d1d77a7ea412c5b45aa8b16fa7be4ecbe1
23,124
py
Python
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
null
null
null
authkit/authenticate/__init__.py
bobrock/AuthKit
ba82501d9dff699be9eef33266aecd03d016cec2
[ "MIT" ]
1
2020-06-24T19:20:13.000Z
2020-06-24T19:20:13.000Z
"""Authentication middleware This module provides one piece of middleware named ``authkit.authenticate.middleware`` which is used to intercept responses with a specified status code, present a user with a means of authenticating themselves and handle the sign in process. Each of the authentication methods supported...
38.604341
84
0.625195
4,866
0.210431
0
0
0
0
0
0
11,706
0.506227
bbefdf91c1e6ecf066af1879e3918f12b778aa84
11,398
py
Python
options_chain_pull.py
anupamsharma01/python
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
2
2020-12-25T22:30:52.000Z
2021-11-26T14:08:12.000Z
options_chain_pull.py
anupamsharma01/python_options_trade
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
null
null
null
options_chain_pull.py
anupamsharma01/python_options_trade
f415aa663c9e83ff8ab615da93a5a71ec877834b
[ "blessing" ]
3
2020-04-10T15:00:10.000Z
2021-08-19T21:20:19.000Z
from http.server import HTTPServer, BaseHTTPRequestHandler from urllib.parse import parse_qs import requests import ssl import sys import tdameritrade.auth #added as40183 import urllib import urllib3 #as40183 from sys import argv import pymysql.cursors import datetime import dateutil.relativedelta import ...
37.993333
277
0.5887
0
0
0
0
0
0
0
0
4,750
0.41674