hexsha
stringlengths
40
40
size
int64
6
1.04M
ext
stringclasses
10 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
247
max_stars_repo_name
stringlengths
4
130
max_stars_repo_head_hexsha
stringlengths
40
78
max_stars_repo_licenses
listlengths
1
10
max_stars_count
int64
1
368k
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
4
247
max_issues_repo_name
stringlengths
4
130
max_issues_repo_head_hexsha
stringlengths
40
78
max_issues_repo_licenses
listlengths
1
10
max_issues_count
int64
1
116k
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
4
247
max_forks_repo_name
stringlengths
4
130
max_forks_repo_head_hexsha
stringlengths
40
78
max_forks_repo_licenses
listlengths
1
10
max_forks_count
int64
1
105k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
1
1.04M
avg_line_length
float64
1.53
618k
max_line_length
int64
1
1.02M
alphanum_fraction
float64
0
1
original_content
stringlengths
6
1.04M
filtered:remove_non_ascii
int64
0
538k
filtered:remove_decorators
int64
0
917k
filtered:remove_async
int64
0
722k
filtered:remove_classes
int64
-45
1M
filtered:remove_generators
int64
0
814k
filtered:remove_function_no_docstring
int64
-102
850k
filtered:remove_class_no_docstring
int64
-3
5.46k
filtered:remove_unused_imports
int64
-1,350
52.4k
filtered:remove_delete_markers
int64
0
59.6k
fabd427094c1ac44bdebcf5e81a06aed67bcb985
1,425
py
Python
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
percept/point.py
joshleeb/PerceptronVis
2d0e2f1969e11498533f190f5598c174b7584513
[ "MIT" ]
null
null
null
def generate_points(n, bounds): ''' Generates a list of n points with random coordinates. ''' return [Point.create_random(bounds) for i in range(n)] def generate_class_fn(bounds): ''' Generates a function used to classify the generated points. The function returned is the equation of th...
27.941176
76
0.61193
import random class Point: def __init__(self, x, y, classification=None): self.x = x self.y = y self.classification = None def __repr__(self): return '({}, {}, {})'.format(self.x, self.y, self.classification) def __str__(self): return self.__repr__() def appl...
0
305
0
537
0
29
0
-8
72
4d3dcdd573097f329abfa171c72eeb7e953e4944
74
py
Python
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
10
2015-11-13T17:02:40.000Z
2021-02-09T23:21:05.000Z
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
43
2015-06-03T17:59:23.000Z
2021-09-17T10:45:21.000Z
src/lib/robotparser.py
timmartin/skulpt
2e3a3fbbaccc12baa29094a717ceec491a8a6750
[ "MIT" ]
13
2017-07-02T03:16:46.000Z
2021-07-05T14:53:56.000Z
raise NotImplementedError("robotparser is not yet implemented in Skulpt")
37
73
0.837838
raise NotImplementedError("robotparser is not yet implemented in Skulpt")
0
0
0
0
0
0
0
0
0
6ad90e1b8027ebf5b6784838d7b1bf86701cb99c
7,110
py
Python
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
calamari_ocr/scripts/predict.py
timothydereuse/calamari
eba8e9c35d2c301319cc9cb15d25124460aee2db
[ "Apache-2.0" ]
null
null
null
from typing import TYPE_CHECKING import tfaip.util.logging if TYPE_CHECKING: logger = tfaip.util.logging.logger(__name__) if __name__ == "__main__": main()
36.839378
120
0.669198
import os import zlib from dataclasses import dataclass, field from typing import TYPE_CHECKING, List, Optional import tfaip.util.logging from bidi.algorithm import get_base_level from paiargparse import PAIArgumentParser, pai_meta, pai_dataclass from calamari_ocr import __version__ from calamari_ocr.ocr.dataset.data...
0
1,665
0
0
0
4,405
0
466
405
c1e3aaef01cfa4a5cc14f7225f454aa2d7e4a3f1
13,767
py
Python
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
detect_wrapper.py
jobpasin/tensorflow-yolov4
52ffe2e21ee715bfcaa72058a4c32a3942fc594e
[ "MIT" ]
null
null
null
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' import sys import tensorflow_yolov4.core.utils as utils # from tensorflow_yolov4.core.yolov4 import filter_boxes sys.stdout.flush() def draw_bbox(frame, pred_bbox, boundary=None, classes=None): """ Draw bounding box on yolov4 output @param frame: @pa...
48.819149
118
0.575507
import os os.environ['TF_CPP_MIN_LOG_LEVEL'] = '1' import sys import cv2 import numpy as np import tensorflow as tf from tensorflow.compat.v1 import ConfigProto from tensorflow.compat.v1 import InteractiveSession from tensorflow.python.saved_model import tag_constants import tensorflow_yolov4.core.utils as utils from ...
0
0
0
12,735
0
0
0
111
288
abbbd08479e35cd1f8448cdae81203f7b33d7947
5,991
py
Python
src/cogs/buttonrole.py
Infernum1/Spacebot
1a393334ff03ea9d6015498e96adb2ad6a8481b4
[ "MIT" ]
48
2021-12-03T19:19:35.000Z
2022-03-28T08:41:15.000Z
src/cogs/buttonrole.py
27Saumya/Spacebot
9736ae2543de5d59114eb9a027b9f8787c172057
[ "MIT" ]
30
2021-12-06T10:22:35.000Z
2022-01-23T10:50:02.000Z
src/cogs/buttonrole.py
27Saumya/Spacebot
9736ae2543de5d59114eb9a027b9f8787c172057
[ "MIT" ]
14
2021-12-08T18:20:36.000Z
2022-03-06T18:01:30.000Z
# Courtesy of Pycord examples """ Let users assign themselves roles by clicking on Buttons. The view made is persistent, so it will work even when the bot restarts. See this example for more information about persistent views https://github.com/Pycord-Development/pycord/blob/master/examples/views/persistent.py ...
38.651613
155
0.602737
import discord import aiosqlite from discord.commands import slash_command from discord.ext import commands # Courtesy of Pycord examples """ Let users assign themselves roles by clicking on Buttons. The view made is persistent, so it will work even when the bot restarts. See this example for more information...
7
3,292
1,342
738
0
51
0
20
165
154a33fc57b757260cefdc34b640f03d0463f7c5
10,613
py
Python
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
null
null
null
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
null
null
null
TeMail.py
k8scat/TeMail
32591ebf0d9774c8d9ce7aee90946e2502f81263
[ "MIT" ]
1
2019-10-20T14:29:03.000Z
2019-10-20T14:29:03.000Z
# -*- coding: utf-8 -*- """ @author: hsowan <hsowan.me@gmail.com> @date: 2019/10/19 """ settings_file = 'settings.yaml' def compute_x_y(master, width, height): """ :param master: :param width: :param height: :return: """ ws = master.winfo_screenwidth() hs = master.winfo_screenheig...
31.306785
116
0.576274
# -*- coding: utf-8 -*- """ @author: hsowan <hsowan.me@gmail.com> @date: 2019/10/19 """ import os from tkinter import * from tkinter import simpledialog, messagebox, filedialog, dialog from tkinter import ttk import yaml import smtplib from email.mime.text import MIMEText from email.header import Header from smtplib ...
1,824
224
0
8,674
0
0
0
89
332
0c4b4d51a705eb165b6b3aefbcd194e6b68b539a
3,106
py
Python
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
irc_harvest.py
pauldardeau/irc-wheat
94ecc407497c2b6c9c22d566315c12cb3015e558
[ "BSD-3-Clause" ]
null
null
null
import irc_wheat import sys def parse_date(d): """Parse date string to (yyyy, MM, dd) :param d: the date string to parse :returns: parsed date as tuple or None on error """ date_fields = d.split('-') if date_fields and len(date_fields) == 3: return (int(date_fields[0]), int(da...
30.752475
78
0.554733
import irc_wheat import sys def parse_date(d): """Parse date string to (yyyy, MM, dd) :param d: the date string to parse :returns: parsed date as tuple or None on error """ date_fields = d.split('-') if date_fields and len(date_fields) == 3: return (int(date_fields[0]), int(da...
0
0
0
0
0
0
0
0
0
eae142ea1ecb1f8ff613dd717c0d305593aeab43
2,128
py
Python
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
1
2021-02-22T02:53:26.000Z
2021-02-22T02:53:26.000Z
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
5
2021-03-26T15:15:34.000Z
2021-06-11T20:16:00.000Z
src/Operators/RaycastSelect.py
paigeco/VirtualGoniometer
536e7e77fbb036ad8d777b42e751a0f3e80b8242
[ "CC0-1.0" ]
null
null
null
""" [ raycast select module ] """
38.690909
98
0.650846
""" [ raycast select module ] """ from bpy.types import Operator import bpy from bpy import ops as O from .DoRaycast import do_raycast from . import CallbackOptions class PerformRaycastSelect(Operator): """Run a side differentiation and select the points by raycast""" bl_idname = "view3d.raycast_select_pair"...
0
0
0
1,938
0
0
0
21
134
cb5dff93b42d21207db6a7d97bdc3e24798ca2be
230
py
Python
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
aiogoogletrans/__init__.py
kngxscn/aiogoogletrans
f54c895f6d76b4558f8e836b05c0a4822b532bd4
[ "MIT" ]
null
null
null
"""Free Google Translate API for Python. Translates totally free of charge.""" __all__ = 'Translator', __version__ = '3.2.1' from aiogoogletrans.client import Translator
28.75
78
0.791304
"""Free Google Translate API for Python. Translates totally free of charge.""" __all__ = 'Translator', __version__ = '3.2.1' from aiogoogletrans.client import Translator from aiogoogletrans.constants import LANGCODES, LANGUAGES
0
0
0
0
0
0
0
36
22
95ff0eddae9687a2a7c6b035062ae599b96de1ce
6,641
py
Python
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
transforms/polus-recycle-vector-plugin/src/main.py
LabShare/polus-plugin-utils
9332ca6c229401d57b063a81973d48ce718c654c
[ "MIT" ]
null
null
null
import argparse, logging from pathlib import Path # Initialize the logger logging.basicConfig( format="%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s", datefmt="%d-%b-%y %H:%M:%S", ) logger = logging.getLogger("main") logger.setLevel(logging.INFO) if __name__ == "__main__": # Setup the Argum...
35.137566
101
0.556392
import argparse, logging, filepattern from pathlib import Path # Initialize the logger logging.basicConfig( format="%(asctime)s - %(name)-8s - %(levelname)-8s - %(message)s", datefmt="%d-%b-%y %H:%M:%S", ) logger = logging.getLogger("main") logger.setLevel(logging.INFO) def close_vectors(vectors): if isi...
0
0
0
0
0
4,711
0
13
46
ee86298212e016955fab793497037c9a177307ce
377
py
Python
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
LeetCode/1.two-sum.py
allen-ash/OJ
1edcfb53b81fabac9a83d01a71fd74b73c5dab07
[ "MIT" ]
null
null
null
# # @lc app=leetcode id=1 lang=python3 # # [1] Two Sum # # @lc code=start # @lc code=end
19.842105
64
0.498674
# # @lc app=leetcode id=1 lang=python3 # # [1] Two Sum # # @lc code=start class Solution: def twoSum(self, nums: List[int], target: int) -> List[int]: mem = dict() for i, num in enumerate(nums): if target - num in mem: return [mem[target-num], i] else: ...
0
0
0
264
0
0
0
0
22
905a81519555ef280dde1a2844d6a5be9267d82a
1,652
py
Python
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
1
2019-06-03T14:56:05.000Z
2019-06-03T14:56:05.000Z
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
3
2021-03-31T19:10:28.000Z
2021-12-13T20:03:54.000Z
app/__init__.py
Bangys/unnamed-demo
34484107d8831cfa0158e51572d6680d92ff236d
[ "MIT" ]
null
null
null
from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy bootstrap = Bootstrap() db = SQLAlchemy()
31.169811
83
0.616223
from flask import Flask from flask_bootstrap import Bootstrap from flask_sqlalchemy import SQLAlchemy from config import config from config import Config as CF from utils import log bootstrap = Bootstrap() db = SQLAlchemy() def create_app(config_name): app = Flask(__name__) app.config.from_object(config[conf...
36
0
0
0
0
1,391
0
16
111
91cecf87858a2bfc2dd753dbe1a29fff369d9038
10,384
py
Python
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
7
2018-12-16T05:14:13.000Z
2021-11-19T14:49:51.000Z
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
null
null
null
source/kernels.py
aaronpmishkin/gaussian_processes
91dafe4896f45ace99cfdb0e4dbc7ff3a1086b0d
[ "Apache-2.0" ]
null
null
null
# -*- coding: utf-8 -*- # @Author: aaronpmishkin # @Date: 2017-07-28 21:07:21 # @Last Modified by: aaronpmishkin # @Last Modified time: 2017-08-09 13:09:35
35.2
99
0.561152
# -*- coding: utf-8 -*- # @Author: aaronpmishkin # @Date: 2017-07-28 21:07:21 # @Last Modified by: aaronpmishkin # @Last Modified time: 2017-08-09 13:09:35 import numpy as np from scipy.spatial.distance import cdist class RBF(): """ RBF Implementation of the radial basis function kernel. Also called the ...
0
0
0
10,108
0
0
0
16
91
b5717efa0f43455211ed07cd99d055ff0b823b2d
2,767
py
Python
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
resources/waitlist.py
WareDave/flaskRepo
92e7cee6581508f878427c5cfba20a5d839e9ea7
[ "MIT" ]
null
null
null
from flask import Blueprint waitlists = Blueprint('waitlists', 'waitlists') print() # Index route # Create route # Show route # Update route # Delete route
38.971831
142
0.676545
from flask import Blueprint, jsonify, request from playhouse.shortcuts import model_to_dict from flask_login import current_user, login_required import models waitlists = Blueprint('waitlists', 'waitlists') print() # Index route @waitlist.route('/', methods=["GET"]) def get_all_waitlists(): try: waitlist...
0
2,361
0
0
0
0
0
65
177
36b34a28d70a8996132af4708395d2bc3181b745
239
py
Python
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
HackerRank/pairs_difference.py
SimeonRaykov/Algorithms
6f580bb69ee5badb8550e6424bfd4a8eaca775a2
[ "MIT" ]
null
null
null
print(pairs_difference(2,[1, 5, 3, 4, 2]))
18.384615
48
0.619247
import itertools def pairs_difference(diff, arr): counter = 0 for pair in itertools.product(arr, repeat=2): if pair[0] - pair[1] == diff: counter+=1 return counter print(pairs_difference(2,[1, 5, 3, 4, 2]))
0
0
0
0
0
146
0
-5
48
70b1a3efae17962ce406fcba2c7ecbf4c8b0bf0f
37
py
Python
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
1
2021-11-05T19:39:36.000Z
2021-11-05T19:39:36.000Z
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
Autokey/CapsKeybinds/alt/pageup.py
MisaghM/Capslock-Keybindings
00332c7d39cf776c43fe13aa08e1c2969747425d
[ "MIT" ]
null
null
null
keyboard.send_keys("<alt>+<page_up>")
37
37
0.72973
keyboard.send_keys("<alt>+<page_up>")
0
0
0
0
0
0
0
0
0
73dc22b154058b3ebae0cfacf372a6ddb7b5daf3
3,906
py
Python
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
null
null
null
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
1
2019-04-01T14:12:57.000Z
2019-04-01T14:12:57.000Z
example/mqtt/listener.py
dkmalav/tavern
e8ecab9bc876523997d61c57d572c330c08124a2
[ "MIT" ]
1
2019-01-31T16:39:51.000Z
2019-01-31T16:39:51.000Z
import logging import os DATABASE = os.environ.get("DB_NAME") if __name__ == "__main__": db = get_db() with db: try: db.execute("CREATE TABLE devices_table (device_id TEXT NOT NULL, lights_on INTEGER NOT NULL)") except: pass try: db.execu...
23.817073
106
0.621352
import json import logging import logging.config import os import sqlite3 import yaml import paho.mqtt.client as paho DATABASE = os.environ.get("DB_NAME") def get_client(): mqtt_client = paho.Client(transport="websockets", client_id="listener") mqtt_client.enable_logger() mqtt_client.connect_async(host...
0
0
0
0
0
3,177
0
-17
318
daf6b4f7b30ce0839dfcc31c06acf5c851fbc4d0
1,378
py
Python
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
1
2016-10-05T21:57:20.000Z
2016-10-05T21:57:20.000Z
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
null
null
null
csc work/misc/w8/p/palindrome.py
mdnu/snake
0df9d46ab226e1b9e5da0fa697862dd81f635029
[ "MIT" ]
1
2020-03-19T01:43:02.000Z
2020-03-19T01:43:02.000Z
def reverse(s): ''' (str) -> str Return a reversed version of s. >>> reverse('hello') 'olleh' >>> reverse('a') 'a' ''' new = '' for i in range(len(s)): new += s[len(s) - 1 - i] return new def is_palindrome(s): ''' (str) -> bool Return True iff...
19.971014
67
0.469521
def reverse(s): ''' (str) -> str Return a reversed version of s. >>> reverse('hello') 'olleh' >>> reverse('a') 'a' ''' new = '' for i in range(len(s)): new += s[len(s) - 1 - i] return new def is_palindrome(s): ''' (str) -> bool Return True iff...
0
0
0
0
0
238
0
0
27
d5c2ff21e29cae641742586603bef5a262bc823c
30,671
py
Python
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
Assets/StreamingAssets/.q/Lib/site-packages/docplex/mp/tck.py
hennlo/Q-shall-not-pass
8013ce891462683eb9cfedc4ac12a1e602fc1ba8
[ "Apache-2.0" ]
null
null
null
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2016 # -------------------------------------------------------------------------- # gendoc: ignore from...
39.071338
124
0.636236
# -------------------------------------------------------------------------- # Source file provided under Apache License, Version 2.0, January 2004, # http://www.apache.org/licenses/ # (c) Copyright IBM Corp. 2015, 2016 # -------------------------------------------------------------------------- # gendoc: ignore imp...
0
3,653
0
24,529
0
607
0
368
563
895d5c7ec5c22176fbc7bef3c30c34da72d63571
2,275
py
Python
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
1
2019-06-10T20:06:31.000Z
2019-06-10T20:06:31.000Z
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
null
null
null
examples/density.py
dwbullok/python-colormath
4b218effd53a52da891bbbb60661426ef194d085
[ "BSD-3-Clause" ]
null
null
null
""" This module shows you how to perform various kinds of density calculations. """ # Does some sys.path manipulation so we can run examples in-place. # noinspection PyUnresolvedReferences from colormath.color_objects import SpectralColor EXAMPLE_COLOR = SpectralColor( observer=2, illuminant='d50', ...
40.625
79
0.712967
""" This module shows you how to perform various kinds of density calculations. """ # Does some sys.path manipulation so we can run examples in-place. # noinspection PyUnresolvedReferences import example_config from colormath.color_objects import SpectralColor from colormath.density_standards import ANSI_STA...
0
0
0
0
0
879
0
48
121
461953fe324f3ff8e9df49cd3b2a5efd8490471c
7,744
py
Python
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
addon_common/common/fsm.py
senjacob/retopoflow
7817bb7d68f98e5ae2c7835f28eeafe76367789e
[ "OML" ]
null
null
null
''' Copyright (C) 2021 CG Cookie https://github.com/CGCookie/retopoflow This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later v...
39.510204
121
0.545584
''' Copyright (C) 2021 CG Cookie https://github.com/CGCookie/retopoflow This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later v...
0
36
0
6,473
0
328
0
19
159
9c0404f68429c409eb8f0997baf0db54ee2504c3
1,147
py
Python
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
2
2015-11-13T23:03:12.000Z
2015-12-19T02:43:20.000Z
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
null
null
null
pymoira/errors.py
vasilvv/pymoira
27facba223c220bf4c55d9b7e799a2ff951eef13
[ "MIT" ]
1
2019-10-23T06:26:13.000Z
2019-10-23T06:26:13.000Z
# ## PyMoira client library ## ## This file contains the Moira-related errors. #
25.488889
82
0.67306
# ## PyMoira client library ## ## This file contains the Moira-related errors. # from . import constants class BaseError(Exception): """Any exception thrown by the library is inhereted from this""" pass class ConnectionError(BaseError): """An error which prevents the client from having or continuing a m...
0
0
0
903
0
0
0
2
161
03baf1ba8ce7c71522b48fe54bd648527baf03d1
1,489
py
Python
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
5
2020-03-13T09:13:08.000Z
2020-12-24T18:47:12.000Z
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
1
2021-01-18T12:59:12.000Z
2021-01-19T03:01:12.000Z
yahoo_fantasy_bot/tests/conftest.py
spilchen/yahoo-baseball-assistant
a2bed8059cd9201b145d83f5dca20e1b9f4c67e8
[ "MIT" ]
2
2019-11-19T21:13:52.000Z
2020-12-24T18:47:18.000Z
#!/usr/bin/python RBLDR_COLS = ["player_id", "name", "eligible_positions", "selected_position"] RSEL_COLS = ["player_id", "name", "HR", "OBP", "W", "ERA"]
32.369565
78
0.523842
#!/usr/bin/python import pytest import pandas as pd import numpy as np from yahoo_fantasy_bot import roster RBLDR_COLS = ["player_id", "name", "eligible_positions", "selected_position"] RSEL_COLS = ["player_id", "name", "HR", "OBP", "W", "ERA"] @pytest.fixture def empty_roster(): rcont = roster.Container() ...
0
1,170
0
0
0
0
0
2
158
f91f71824a7c23cd535e3952e8e8887c71192c65
2,202
py
Python
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
1
2019-11-25T07:23:42.000Z
2019-11-25T07:23:42.000Z
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
13
2020-01-07T16:09:47.000Z
2022-03-02T12:51:44.000Z
dataStructure/graph/graph_table.py
bigfoolliu/liu_aistuff
aa661d37c05c257ee293285dd0868fb7e8227628
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ A --> B A --> C B --> C B --> D C --> D D --> C E --> F F --> C """ def find_one_path(graph, start, end, path=[]): """ graphstartend graph: dict start: str end: str return: list """ path = path + [start] if s...
21.80198
96
0.536331
#!/usr/bin/env python3 # -*- coding:utf-8 -*- # author: bigfoolliu """ 使用邻接表表示图 A --> B A --> C B --> C B --> D C --> D D --> C E --> F F --> C """ def find_one_path(graph, start, end, path=[]): """ 寻找graph中由start到end顶点的其中一条路径 graph: dict start: str end: str return: list """ path = p...
375
0
0
0
0
0
0
0
0
2d47f11252fc21b9bd13eeb20e404a8ba4f7d27d
2,340
py
Python
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
MyScripts/093-Examples-2nd-Order-Free-Response.py
diegoomataix/Curso_AeroPython
c2cf71a938062bc70dbbf7c2f21e09653fa2cedd
[ "CC-BY-4.0" ]
null
null
null
###________________________ 2nd-Order-Free-Response ________________________### import matplotlib matplotlib.rcParams.update({'font.size': 22}) ##__________ Functions for dumping characteristic cases __________## ##__________ 2nd order free response __________## for xii in [1.5, 1.85, 2.5]: # for xii in [0.00, 1.00...
27.857143
84
0.520085
###________________________ 2nd-Order-Free-Response ________________________### import numpy as np import matplotlib.pyplot as plt import matplotlib matplotlib.rcParams.update({'font.size': 22}) ##__________ Functions for dumping characteristic cases __________## def undumped(wn, x0, x_dot0, t): return x0 * np.c...
0
0
0
0
0
1,662
0
7
158
60a55c07741b3506a72dc3654cdf78961a3b481c
981
py
Python
doubanfm/views/help_view.py
porson/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
2
2017-02-08T04:08:03.000Z
2017-02-08T04:08:08.000Z
doubanfm/views/help_view.py
Free-sky/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
null
null
null
doubanfm/views/help_view.py
Free-sky/douban.fm
5c492bfef331f4f17ded1e17fdb704aefdfc0716
[ "MIT" ]
null
null
null
#!/usr/bin/env python2 # -*- coding: utf-8 -*-
27.25
73
0.62895
#!/usr/bin/env python2 # -*- coding: utf-8 -*- from doubanfm.views.lrc_view import Lrc from doubanfm.dal.dal_help import HelpDal class Help(Lrc): """帮助界面""" def __init__(self, data): super(Help, self).__init__(data) def set_dal(self): dal = HelpDal(self.data) self.c = dal.c # 主题 ...
36
0
0
816
0
0
0
38
67
8e4a944b85936c87ae204d5b7eda86c6a71e9905
392
py
Python
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
null
null
null
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
null
null
null
utilities/mappings.py
PeterA182/liteSaber
6560feb70fd23916c0188ba98a751f8fee99a18b
[ "MIT" ]
1
2019-06-28T01:19:38.000Z
2019-06-28T01:19:38.000Z
maps = { 'batting': { 'a': 'assists', 'ab': 'atbats', 'ao': 'air_outs', 'avg': 'batting_avg', 'bb': 'base_on_balls', 'cs': 'caught_stealing', 'e': 'error', 'gidp': 'ground_into_dp', 'go': 'ground_out', 'h': 'hit', 'hbp': 'hit_by...
23.058824
33
0.415816
maps = { 'batting': { 'a': 'assists', 'ab': 'atbats', 'ao': 'air_outs', 'avg': 'batting_avg', 'bb': 'base_on_balls', 'cs': 'caught_stealing', 'e': 'error', 'gidp': 'ground_into_dp', 'go': 'ground_out', 'h': 'hit', 'hbp': 'hit_by...
0
0
0
0
0
0
0
0
0
58ad1179e2800ca6f9e07afcd2f2e47a8d128a3e
2,698
py
Python
tests/test_graphtools.py
HenryKenlay/grapht
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
1
2020-01-06T20:22:22.000Z
2020-01-06T20:22:22.000Z
tests/test_graphtools.py
HenryKenlay/graphtools
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
2
2021-09-28T00:16:36.000Z
2022-02-26T06:19:10.000Z
tests/test_graphtools.py
henrykenlay/grapht
3ab2485c353f87a487ed5b70e5298121a924b56e
[ "Apache-2.0" ]
1
2020-01-28T14:12:54.000Z
2020-01-28T14:12:54.000Z
import networkx as nx G = nx.barabasi_albert_graph(100, 2) G.add_edge(0, 1) # the initial condition of BA(n, 2) means it can have pendant edges, this stops that happening G_with_pendant = G.copy() G_with_pendant.add_node(100) G_with_pendant.add_edge(0, 100) G_with_isolate = G.copy() G_with_isolate.add_node(100)
37.472222
111
0.668273
import networkx as nx import numpy as np import scipy.sparse as sp from grapht.graphtools import * G = nx.barabasi_albert_graph(100, 2) G.add_edge(0, 1) # the initial condition of BA(n, 2) means it can have pendant edges, this stops that happening G_with_pendant = G.copy() G_with_pendant.add_node(100) G_with_pendant.a...
0
0
0
0
0
2,165
0
11
208
b0382d03044bf19f6588f3ec952aded129e7e5a7
408
py
Python
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
5
2020-11-30T22:26:03.000Z
2020-12-01T22:34:25.000Z
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
10
2020-12-01T22:55:29.000Z
2020-12-11T18:31:46.000Z
keras/layers/recurrent.py
ikingye/keras
1a3ee8441933fc007be6b2beb47af67998d50737
[ "MIT" ]
15
2020-11-30T22:12:22.000Z
2020-12-09T01:32:48.000Z
"""Recurrent layers and their base classes."""
31.384615
51
0.843137
"""Recurrent layers and their base classes.""" from tensorflow.keras.layers import RNN from tensorflow.keras.layers import StackedRNNCells from tensorflow.keras.layers import SimpleRNN from tensorflow.keras.layers import GRU from tensorflow.keras.layers import LSTM from tensorflow.keras.layers import SimpleRNNCell f...
0
0
0
0
0
0
0
182
179
c0976b99b5d5a1ee80c9a0cfaa2ab28e201e771f
64
py
Python
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
7
2017-09-20T16:40:39.000Z
2021-08-31T18:15:08.000Z
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
Codewars/8kyu/my-head-is-at-the-wrong-end/Python/solution1.py
RevansChen/online-judge
ad1b07fee7bd3c49418becccda904e17505f3018
[ "MIT" ]
null
null
null
# Python - 2.7.6
16
25
0.625
# Python - 2.7.6 def fix_the_meerkat(arr): return arr[::-1]
0
0
0
0
0
25
0
0
23
da72280ee299accaeded93bb0d38638389db5680
846
py
Python
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
rotate.py
lstorchi/molsuperimpose
c6129e676b287040b17a7e5d5680176e2db361b6
[ "Apache-2.0" ]
null
null
null
import sys import pybel filename = "" verbose = False if (len(sys.argv)) == 2: filename = sys.argv[1] else: print "usage :", sys.argv[0] , " filename.xyz" exit(1) matrix = pybel.ob.matrix3x3() matrix.RotAboutAxisByAngle(pybel.ob.vector3(1, 0, 0), 90) if verbose: for i in range(3): for j in range(3): ...
21.15
57
0.620567
import sys import pybel filename = "" verbose = False if (len(sys.argv)) == 2: filename = sys.argv[1] else: print "usage :", sys.argv[0] , " filename.xyz" exit(1) matrix = pybel.ob.matrix3x3() matrix.RotAboutAxisByAngle(pybel.ob.vector3(1, 0, 0), 90) if verbose: for i in range(3): for j in range(3): ...
0
0
0
0
0
0
0
0
0
2a563552eedff6618af603ad8844730cb87f25f6
606
py
Python
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
3
2021-06-20T02:24:10.000Z
2022-01-26T23:55:33.000Z
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
core/recc/system/user.py
bogonets/answer
57f892a9841980bcbc35fa1e27521b34cd94bc25
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
23.307692
67
0.638614
# -*- coding: utf-8 -*- from os import setuid, chown from pwd import getpwnam from typing import Union def get_user_id(user: Union[str, int]) -> int: if isinstance(user, str): info = getpwnam(user) pw_uid = info[2] assert isinstance(pw_uid, int) return pw_uid elif isinstance(u...
0
0
0
0
0
430
0
13
136
d153cb3b5c03c5b94d7eb0c099254847fdec267b
16,275
py
Python
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
scripts/tests/test_gristle_determinator_cmd.py
sidhu177/DataGristle
d9dd383e146c13a2a9a8cd265330122a9c565609
[ "BSD-3-Clause" ]
null
null
null
#!/usr/bin/env python """ Tests gristle_determinator.py Contains a primary class: FileStructureFixtureManager Which is extended by six classes that override various methods or variables. This is a failed experiment - since the output isn't as informative as it should be. This should be redesigned. ...
40.086207
120
0.579908
#!/usr/bin/env python """ Tests gristle_determinator.py Contains a primary class: FileStructureFixtureManager Which is extended by six classes that override various methods or variables. This is a failed experiment - since the output isn't as informative as it should be. This should be redesigned. ...
0
0
0
13,728
0
469
0
-15
249
5c7ad6f8d852ce85b7feb9c261b673e4a5fce78b
5,823
py
Python
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
Cuarta_escena.py
ArturoSirvent/presentacion_entropia
ab7a35dbca89b6bb868a357f09c80b0ed7198a93
[ "MIT" ]
null
null
null
#puedes decir, bueno pero esque si hay muchas esferas o su radio es muy grande, pues no les queda otra que ordenarse para caber, claro. #Bueno pues esque es eso lo qeu pasa cuando la temperatura es baja que se debe buscar la ordenacion para no solaparse, sino el estado no existiria, o #o quiza empezarian a solapar ...
38.058824
150
0.65018
from manimlib.imports import * import numpy as np class Esferas_duras(Scene): #ahora vamos a explicar el caso de esferas duras, qeu por encima de 50% de ocupacion muestan cristalización #despues vamos a introducir el tema de espacio disponible def construct(self): titulo=TextMobject("Cristalizació...
32
0
0
5,018
0
131
0
6
137
1541ac7c6b33d08f7f998f7950f090afd6c14b38
470
py
Python
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
93
2021-08-11T13:52:37.000Z
2022-03-29T23:19:07.000Z
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
4
2021-12-15T17:23:14.000Z
2022-03-24T04:51:40.000Z
Layers/Swish.py
Vaibhavs10/IMS-Toucan
931e4ce63a4cc675cb15b72474a3c3619632a07b
[ "Apache-2.0" ]
25
2021-08-11T14:23:47.000Z
2022-03-28T20:23:51.000Z
# Copyright 2020 Johns Hopkins University (Shinji Watanabe) # Northwestern Polytechnical University (Pengcheng Guo) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Adapted by Florian Lux 2021
24.736842
70
0.646809
# Copyright 2020 Johns Hopkins University (Shinji Watanabe) # Northwestern Polytechnical University (Pengcheng Guo) # Apache 2.0 (http://www.apache.org/licenses/LICENSE-2.0) # Adapted by Florian Lux 2021 import torch class Swish(torch.nn.Module): """ Construct an Swish activation function fo...
0
0
0
211
0
0
0
-9
46
b1f07dd9b9200b676df26d563936a24690638dde
365
py
Python
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
6
2015-01-26T06:38:47.000Z
2016-04-22T16:54:43.000Z
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
2
2015-01-26T16:35:32.000Z
2015-02-20T17:03:50.000Z
raspberry-pi-2/Pump/main.py
hivebio/ministat-1
4fdb0b9a016c3cfeb61f7bcf72caea885c37554d
[ "BSD-2-Clause" ]
3
2016-09-02T22:28:05.000Z
2020-12-26T09:12:50.000Z
import os, sys lib_path = os.path.abspath(os.path.join('..', 'utils')) sys.path.append(lib_path) import RPIO import RPi.GPIO as GPIO from pump import Pump # use BCM mode to play well with RPIO GPIO.setmode(GPIO.BCM) # start dispatch loop in background RPIO.wait_for_interrupts(threaded=True) p0 = Pump(23, 24)
18.25
55
0.753425
import os, sys lib_path = os.path.abspath(os.path.join('..', 'utils')) sys.path.append(lib_path) import ftplib as FTP import credentials as cred import RPIO import RPi.GPIO as GPIO from pump import Pump # use BCM mode to play well with RPIO GPIO.setmode(GPIO.BCM) # start dispatch loop in background RPIO.wait_for_in...
3
0
0
0
0
0
0
4
45
15d68f87a8909d9b38611bb04ed4dfd16984022d
163
py
Python
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
1
2019-09-27T01:43:51.000Z
2019-09-27T01:43:51.000Z
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
null
null
null
test/multicall/multicall.py
cxapython/Cyberbrain
8deb949a6b8a909c2ac23b2d84ae6e705940072d
[ "MIT" ]
1
2019-09-27T01:43:54.000Z
2019-09-27T01:43:54.000Z
"""Multiple calls in one logical line.""" import cyberbrain cyberbrain.init() x = {f(x=1), f(y=2)} cyberbrain.register(x)
10.1875
41
0.631902
"""Multiple calls in one logical line.""" import cyberbrain cyberbrain.init() def f(*args, **kwargs): pass x = {f(x=1), f(y=2)} cyberbrain.register(x)
0
0
0
0
0
11
0
0
23
6a727db51b330233fc53a4457786c2a8e8c28735
244
py
Python
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
1
2020-10-29T03:28:08.000Z
2020-10-29T03:28:08.000Z
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
batch_script.py
aarjavchauhan/web_visualization
7a4b8a5d22d140762ae29ec808bb02dbc79763f4
[ "MIT" ]
null
null
null
import os import sys folder = sys.argv[1] script = sys.argv[2] for root, dirs, files in os.walk(folder): for filename in files: data_file = "{}/{}".format(root,filename) os.system("python3 {} {}".format(script,data_file))
22.181818
59
0.639344
import os import sys folder = sys.argv[1] script = sys.argv[2] for root, dirs, files in os.walk(folder): for filename in files: data_file = "{}/{}".format(root,filename) os.system("python3 {} {}".format(script,data_file))
0
0
0
0
0
0
0
0
0
5b54e28f1e01326c5484bf6e2bf04e4d4c28018a
9,674
py
Python
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
1
2020-06-26T16:23:35.000Z
2020-06-26T16:23:35.000Z
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
3
2020-11-13T17:47:42.000Z
2022-02-09T23:39:42.000Z
Mixmatch/streetview_dataset/parse_data_to_tfrecord_lib.py
googleinterns/bizview-semi-supervised-learning
3739ee461c393069d0cf00c462248e5a99e1c55b
[ "Apache-2.0" ]
1
2020-09-13T07:43:21.000Z
2020-09-13T07:43:21.000Z
import tensorflow as tf tf.enable_eager_execution() # Global constants # Information from input tfrecord files SOURCE_ID = 'image/source_id' BBOX_CONFIDENCE = 'image/object/bbox/confidence' BBOX_XMIN = 'image/object/bbox/xmin' BBOX_YMIN = 'image/object/bbox/ymin' BBOX_XMAX = 'image/object/bbox/xmax' BBOX_YMAX = 'imag...
40.308333
189
0.686583
import numpy as np import tensorflow as tf import itertools import os # used for directory operations import io from PIL import Image # used to read images from directory import random tf.enable_eager_execution() # Global constants # Information from input tfrecord files SOURCE_ID = 'image/source_id' BBOX_CONFIDENC...
0
0
0
0
0
7,721
0
-40
445
066eb90268da41c2823854bf89d685050ff3e7e1
1,806
py
Python
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
src/p_type_service.py
amitsou/cloud_services
22a2381227ecab8d1626e3dfa961821954188327
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import sys sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import processing_utils as pu def on_log(client, userdata, level, buf): """ Log callback """ print("log: ", buf) pass def on_disconnect(client, userdata,...
26.173913
106
0.633444
# -*- coding: utf-8 -*- import sys sys.path.insert(0, os.path.join(os.path.dirname( os.path.realpath(__file__)), "../")) from Functions import processing_utils as pu def on_log(client, userdata, level, buf): """ Log callback """ print("log: ", buf) pass def on_disconnect(client, userdata,...
0
0
0
0
0
0
0
0
0
d2422cbcadfa238af5f96116a4735b6326ae1570
108
py
Python
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
insomniac/extra_features/action_warmup.py
chikko80/Insomniac
2d49a6d4e5a15eb63bddd9aace3cc872cf40b01a
[ "MIT" ]
null
null
null
from insomniac import activation_controller exec(activation_controller.get_extra_feature("action_warmup"))
27
62
0.87963
from insomniac import activation_controller exec(activation_controller.get_extra_feature("action_warmup"))
0
0
0
0
0
0
0
0
0
fdc6ea6fc9fd6c8cf57341345967e0cba0bde198
4,677
py
Python
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
minimir/NewbieAction.py
TinyZzh/note-python
7698f01ece80d6670d2af5707c32504f49eba36c
[ "Apache-2.0" ]
null
null
null
# -*- coding:UTF-8 -*-
41.758929
116
0.492196
# -*- coding:UTF-8 -*- import logging from datetime import datetime from typing import List, Callable from minimir import Struct from minimir.BattleAction import BattleAction from minimir.Utils import Utils class NewbieAction(BattleAction): # 新账户引导 # 1. 等级低于50级,转生等级0的新账户 # 2. 优先挂机。 每间隔=((等级/10) + 1) * 10...
630
0
0
4,235
0
0
0
52
156
43a84bd4eb3fb5d8fa0a3d8ae221862f3ed8789d
5,412
py
Python
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
10
2021-06-08T00:20:14.000Z
2022-02-01T17:27:36.000Z
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
4
2021-10-31T09:28:45.000Z
2022-03-06T08:07:35.000Z
m3u8_To_MP4/v2_multithreads_processor.py
songs18/m3u8_To_MP4
cec3fedd96b1872dc823d465bcb2afc5d0e7e8d2
[ "MIT" ]
1
2022-03-20T03:38:40.000Z
2022-03-20T03:38:40.000Z
# -*- coding: utf-8 -*-
48.756757
205
0.631559
# -*- coding: utf-8 -*- import concurrent.futures import logging import os import sys from Crypto.Cipher import AES from m3u8_To_MP4 import v2_abstract_task_processor from m3u8_To_MP4.helpers import path_helper from m3u8_To_MP4.helpers import printer_helper from m3u8_To_MP4.networks.synchronous.sync_http_r...
0
0
0
4,788
0
194
0
113
286
9417b738b7f84aca758c1404b51b45d994effd14
6,665
py
Python
robotic_object_search/House3D/utils/helper.py
Xin-Ye-1/HRL-GRG
b36c0c3f9f7ec3a1b59925df0be514f7540ee122
[ "Apache-2.0" ]
7
2021-03-28T03:13:01.000Z
2022-03-30T03:16:04.000Z
utils/helper.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
null
null
null
utils/helper.py
Xin-Ye-1/HIEM
6764f579eef6ec92dd85a005af27419f630df7da
[ "Apache-2.0" ]
2
2021-06-22T08:06:28.000Z
2021-11-09T07:33:59.000Z
#!/usr/bin/env python import scipy.signal import json import os IMAGE_WIDTH = 600 IMAGE_HEIGHT = 450 # cfg = json.load(open('../config.json','r')) cfg = json.load(open(os.path.join(os.path.dirname(os.path.dirname(__file__)), 'config.json'),'r'))
37.44382
114
0.635259
#!/usr/bin/env python import tensorflow as tf import numpy as np import scipy.signal from scipy import misc import scipy.io from PIL import Image import json import os from offline_feature import * from bbox_tool import * import glob from reward_function import * from semantic_environment import * from shortest_path im...
0
0
0
0
0
5,914
0
21
472
b19a9236d00b7d2bec4c999cbd05278cd754cce4
671
py
Python
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
examples/vdist.py
unjambonakap/pymap3d
5a0ca7b6964917b954edbd50844c36c54b5e7c73
[ "BSD-2-Clause" ]
null
null
null
#!/usr/bin/env python if __name__ == '__main__': # pragma: no cover main()
31.952381
79
0.675112
#!/usr/bin/env python from pymap3d.vincenty import vdist from argparse import ArgumentParser def main(): p = ArgumentParser(description='vdist distance between WGS-84 coordinates') p.add_argument('lat1', help='latitude1 WGS-84 [degrees]', type=float) p.add_argument('lon1', help='longitude1 WGS-84 [degrees...
0
0
0
0
0
494
0
27
67
27794f69d075b4738175010914ffed940e109425
770
py
Python
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
mytravelblog/accounts/urls.py
yetoshimo/my-travel-blog
de67dd135e66f2dda121850d54fd56fd644b9bff
[ "MIT" ]
null
null
null
from django.urls import path urlpatterns = ( path('login/', UserLoginView.as_view(), name='login user'), path('logout/', UserLogoutConfirmationView.as_view(), name='logout user confirmation'), path('logout/signout/', UserLogoutView.as_view(), name='logout user'), path('profile-details/<int:pk>/', User...
45.294118
96
0.711688
from django.urls import path from mytravelblog.accounts.views import * urlpatterns = ( path('login/', UserLoginView.as_view(), name='login user'), path('logout/', UserLogoutConfirmationView.as_view(), name='logout user confirmation'), path('logout/signout/', UserLogoutView.as_view(), name='logout user'), ...
0
0
0
0
0
0
0
20
23
61cf70ddffa302ce92c009ba30a09a6df91ec3f1
265
py
Python
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
null
null
null
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
null
null
null
serial_port_switch.py
truonghoangduy/esp32-gateway-devices
6232be5219528910cff380822e2d540b608bac21
[ "MIT" ]
1
2022-03-01T03:40:39.000Z
2022-03-01T03:40:39.000Z
# import util import sys import os pioPath = ".platformio/penv/lib/python3.9/site-packages fullPath = os.path.join(os.path.expanduser('~'), pioPath) print(fullPath) sys.path.append(os.path.join(os.path.expanduser('~'), pioPath)) import util util.get_serial_ports()
26.5
63
0.758491
# import util import sys import os pioPath = ".platformio/penv/lib/python3.9/site-packages fullPath = os.path.join(os.path.expanduser('~'), pioPath) print(fullPath) sys.path.append(os.path.join(os.path.expanduser('~'), pioPath)) import util util.get_serial_ports()
0
0
0
0
0
0
0
0
0
72acb6e2ec44e71ce1922b88225888035123a68d
1,536
py
Python
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
5
2015-04-30T00:13:21.000Z
2019-07-10T02:17:24.000Z
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
null
null
null
build/android/pylib/local/device/local_device_environment.py
kjthegod/chromium
cf940f7f418436b77e15b1ea23e6fa100ca1c91a
[ "BSD-3-Clause-No-Nuclear-License-2014", "BSD-3-Clause" ]
2
2015-03-27T11:15:39.000Z
2016-08-17T14:19:56.000Z
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file.
26.947368
72
0.727865
# Copyright 2014 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. from pylib.base import environment from pylib.device import adb_wrapper from pylib.device import device_errors from pylib.device import device_utils from pyl...
0
179
0
983
0
0
0
76
134
d050a0f9094cfd8b88db3f7e61314f6f7dc6f6fc
328
py
Python
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
2
2019-02-16T18:32:42.000Z
2020-09-11T22:33:12.000Z
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
null
null
null
miniFPL/api_url.py
sayandhar/miniFPL
c4107a8112b8f0548209cf47aad9be88262eca49
[ "MIT" ]
1
2018-08-31T09:04:54.000Z
2018-08-31T09:04:54.000Z
BASE_URL = 'https://fantasy.premierleague.com/drf/' FPL_DATA = BASE_URL + 'bootstrap-static' # (player id) PLAYER_DATA = BASE_URL + 'element-summary/{}' # (gameweek) DREAM_TEAM_DATA = BASE_URL + 'dream-team/{}' # (team id) USER_DATA = BASE_URL + 'entry/{}' # (gameweek) USER_GAMEWEEK_TEAM_DATA = USER_DATA + '/event/{}...
25.230769
55
0.698171
BASE_URL = 'https://fantasy.premierleague.com/drf/' FPL_DATA = BASE_URL + 'bootstrap-static' # (player id) PLAYER_DATA = BASE_URL + 'element-summary/{}' # (gameweek) DREAM_TEAM_DATA = BASE_URL + 'dream-team/{}' # (team id) USER_DATA = BASE_URL + 'entry/{}' # (gameweek) USER_GAMEWEEK_TEAM_DATA = USER_DATA + '/event/{}...
0
0
0
0
0
0
0
0
0
0c71477059bcf2d2c50224cbfe3dd457c1e6410a
1,319
py
Python
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
25
2015-01-14T10:45:13.000Z
2021-05-26T17:21:41.000Z
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
641
2015-01-15T11:10:50.000Z
2021-06-15T22:18:42.000Z
app/authentication.py
uk-gov-mirror/alphagov.digitalmarketplace-api
5a1db63691d0c4a435714837196ab6914badaf62
[ "MIT" ]
22
2015-06-13T15:37:45.000Z
2021-08-19T23:40:49.000Z
def get_allowed_tokens_from_config(config, module='main'): """Return a list of allowed auth tokens from the application config""" env_variable_name = 'DM_API_AUTH_TOKENS' if module == 'callbacks': env_variable_name = 'DM_API_CALLBACK_AUTH_TOKENS' return [token for token in config.get(env_v...
34.710526
94
0.716452
from flask import current_app, abort, request from dmutils.authentication import UnauthorizedWWWAuthenticate def requires_authentication(module='main'): if current_app.config['AUTH_REQUIRED']: incoming_token = get_token_from_headers(request.headers) if not incoming_token: raise Unaut...
0
0
0
0
0
780
0
65
114
f25042b468f867d8a3e0d386bfe6356608e13a01
3,565
py
Python
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
tests/autoruntests/DetunersTest.py
fsoubelet/PyHEADTAIL
51cae8845cceb61cc3f140db4ab0eeb68469110f
[ "BSD-3-Clause" ]
null
null
null
import PyHEADTAIL.particles.generators as generators if __name__ == '__main__': run()
25.464286
94
0.630295
import numpy as np from scipy.constants import m_p, c, e import matplotlib.pyplot as plt import PyHEADTAIL.particles.generators as generators from PyHEADTAIL.trackers.transverse_tracking import TransverseMap from PyHEADTAIL.trackers.detuners import Chromaticity, AmplitudeDetuning def run(): def track(bunch, map_...
0
0
0
0
0
3,219
0
118
133
97d53868b8cbceaa9480f55ebd5b0b00b648516c
1,007
py
Python
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
Chapter1/calculating_pi.py
SJHH-Nguyen-D/ClassicComputerScienceProblemsInPython
9e178432ddb8b5e0ab63bf97334f557310ccc43c
[ "Apache-2.0" ]
null
null
null
# calculating_pi.py # From Classic Computer Science Problems in Python Chapter 1 # Copyright 2018 David Kopec # # 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/license...
32.483871
74
0.712016
# calculating_pi.py # From Classic Computer Science Problems in Python Chapter 1 # Copyright 2018 David Kopec # # 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/license...
0
0
0
0
0
270
0
0
23
dd9fdc2eaacf283b85356158878ae10bfe7e7467
6,962
py
Python
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
extensions/auth/_test_module.py
icoman/AppServer
b7715d90662e112638000b5a3c242fbcb59488a3
[ "MIT" ]
null
null
null
# # auth test module - add, update, delete # """ MIT License Copyright (c) 2017, 2018 Ioan Coman 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 limitatio...
35.161616
96
0.606148
# # auth test module - add, update, delete # """ MIT License Copyright (c) 2017, 2018 Ioan Coman 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 limitatio...
0
0
0
4,639
0
660
0
-49
202
4dccc417c9de8bcf074c288d63345b8ce2f1340f
12,496
py
Python
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
3
2020-03-03T09:19:40.000Z
2021-10-16T10:09:00.000Z
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
9
2020-03-03T13:57:14.000Z
2020-04-28T09:37:42.000Z
rs2wapy/models/models.py
tuokri/rs2wapy
6d4d940abca0acece4c5e36c6830c6b647c736c8
[ "MIT" ]
1
2020-03-17T16:17:36.000Z
2020-03-17T16:17:36.000Z
"""TODO: Use dataclasses.""" from __future__ import annotations import sys from typing import Dict from typing import Type from logbook import Logger from logbook import StreamHandler BAN_DATE_FMT = "%Y/%m/%d %H:%M:%S" StreamHandler(sys.stdout, level="WARNING").push_application() logger = Logger(__name__) HEX_CO...
25.398374
85
0.62356
"""TODO: Use dataclasses.""" from __future__ import annotations import abc import datetime import sys from collections import MutableMapping from typing import Any from typing import Dict from typing import Iterator from typing import KeysView from typing import List from typing import Optional from typing import Tup...
0
3,493
0
6,905
0
0
0
90
821
e8045703d37f2099bf362d4e174b682f893a37bb
190
py
Python
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
1
2021-05-24T19:44:04.000Z
2021-05-24T19:44:04.000Z
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
Coursera/ex5.1.py
FabianoBill/Estudos-em-python
32c3f9e37b83630c923ff7c0c77aa7d80fbc3174
[ "MIT" ]
null
null
null
l = int(input("digite a largura: ")) a = int(input("digite a altura: ")) L = A = 1 while A <= a: while L <= l: print("#", end="") L += 1 A += 1 L = 1 print()
17.272727
36
0.426316
l = int(input("digite a largura: ")) a = int(input("digite a altura: ")) L = A = 1 while A <= a: while L <= l: print("#", end="") L += 1 A += 1 L = 1 print()
0
0
0
0
0
0
0
0
0
d3cbc1601e2628492af0ecc8529e4d4bfd2791df
1,829
py
Python
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
sharq/utils.py
bhuvanvenkat-plivo/sharq
32bbfbdcbbaa8e154271ffd125ac4500382f3d19
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Copyright (c) 2014 Plivo Team. See LICENSE.txt for details. import time import msgpack VALID_IDENTIFIER_SET = set(list('abcdefghijklmnopqrstuvwxyz0123456789_-')) def is_valid_identifier(identifier): """Checks if the given identifier is valid or not. A valid identifier may consists o...
24.386667
74
0.666484
# -*- coding: utf-8 -*- # Copyright (c) 2014 Plivo Team. See LICENSE.txt for details. import time import msgpack VALID_IDENTIFIER_SET = set(list('abcdefghijklmnopqrstuvwxyz0123456789_-')) def is_valid_identifier(identifier): """Checks if the given identifier is valid or not. A valid identifier may consists o...
0
0
0
0
0
0
0
0
0
c15ecbb686f6aadc4d7e1e63436d36887d403ee5
3,030
py
Python
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
6
2020-03-16T11:23:32.000Z
2021-01-16T21:04:01.000Z
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
null
null
null
lab4_simulated_annealing/task_1/main.py
j-adamczyk/Numerical-Algorithms
47cfa8154bab448d1bf87b892d83e45c68dd2e2a
[ "MIT" ]
null
null
null
import plotter n = 200 iterations = 500000 temperature = 1000 decay_rate = 0.99995 swap_type = "consecutive" low = 0 high = 1 distribution = "uniform" first_path, best_path, distances_plot_data, temperatures_plot_data = travelling_salesman_problem(n, iterations, temperature, decay_rate, swap_type, low, high, dist...
30.3
172
0.665017
import copy import generators import math import neighbor_states as ns import numpy as np import plotter import random as rand def get_matrix(cities): n = len(cities) result = np.zeros((n, n)) for x in range(n): for y in range(n): x1 = cities[x][0] y1 = cities[x][1] ...
0
0
0
0
0
2,432
0
-20
201
4dc65ac449ff42d60012e9346f5cadec81deb3cc
10,088
py
Python
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
5
2021-07-05T13:48:59.000Z
2021-12-08T11:40:51.000Z
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
src/rcmodel/reinforce.py
BFourcin/rcmodel
160eb2ad7ea60f328abde157baeef7378e28d815
[ "MIT" ]
null
null
null
import torch import torch.nn as nn from matplotlib import pyplot as plt import pandas as pd import numpy as np import time from rcmodel.tools import BuildingTemperatureDataset if __name__ == '__main__': path_sorted = '/Users/benfourcin/OneDrive - University of Exeter/PhD/LSI/Data/210813data_sorted.csv' t...
34.19661
139
0.618656
import gym from gym import spaces import torch import torch.nn as nn from matplotlib import pyplot as plt import pandas as pd import numpy as np from xitorch.interpolate import Interp1D from tqdm.auto import tqdm, trange import time from rcmodel.room import Room from rcmodel.building import Building from rcmodel.RCMo...
2
0
0
5,889
0
2,018
0
77
273
b62f59c6e173df9ffd9859826fa97d14c5d0dc78
679
py
Python
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
2
2021-07-09T15:07:59.000Z
2021-07-10T08:51:03.000Z
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
null
null
null
main.py
UntriexTv/favorable-fishers
e8aa4f83982fb43a36bb150cc749db03d361a58e
[ "MIT" ]
2
2021-07-12T09:16:23.000Z
2021-07-31T20:19:37.000Z
import sys from WidgetManager import WidgetManager from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError """ The application is initialized using an asciimatics wrapper """ widgetmanager = WidgetManager() last_scene = None while True: try: Screen...
23.413793
86
0.715758
import sys from WidgetManager import WidgetManager from Dashboard import Dashboard from asciimatics.screen import Screen from asciimatics.exceptions import ResizeScreenError """ The application is initialized using an asciimatics wrapper """ def app(screen, scene): dashboard = Dashboard(screen,...
0
0
0
0
0
138
0
10
49
c1cbb4533ea139bb4fcbe6f0800fc5384c15add6
631
py
Python
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
1
2019-11-19T01:06:36.000Z
2019-11-19T01:06:36.000Z
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
1
2020-05-07T22:09:11.000Z
2020-05-08T06:52:10.000Z
ho/00_hello_world.py
cie/python
b953f5e9d159abe9bd865c9642595a37ac43661b
[ "CC-BY-4.0" ]
null
null
null
import pyxel # ablak szlessge, magassga, cme pyxel.init(255,255, caption="Hello") # Mit csinljunk egy kpkocka eltt # Hogyan rajzolunk ki egy-egy kpkockt # Elindtjuk pyxel.run(update, draw)
28.681818
65
0.673534
import pyxel import math # ablak szélessége, magassága, címe pyxel.init(255,255, caption="Hello") # Mit csináljunk egy képkocka előtt def update(): # kiírjuk alul, hogy Hello 0!, Hello 1! stb. mindig az # aktuális képkocka sorszámát # ***** a)feladat: módosítsd úgy, hogy Hello World!-öt írjon! print("Hell...
60
0
0
0
0
350
0
-10
66
8026d66a42c5933da5b8c6df58e0453ba24b348b
478
py
Python
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
bot/db_helpers/db_helpers.py
Dakhnovskiy/pomogator_bot
9a8b9d5f79b800020d99ffd6034df054d405e434
[ "Apache-2.0" ]
null
null
null
from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from ..config import settings __engine = create_engine(settings.DATABASE) __session_maker = sessionmaker(bind=__engine)
18.384615
45
0.728033
from contextlib import contextmanager from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker from ..config import settings __engine = create_engine(settings.DATABASE) __session_maker = sessionmaker(bind=__engine) def get_engine(): return __engine @contextmanager def get_session(): s...
0
176
0
0
0
16
0
16
68
025737d3d3b41f3afb2122fc8d30280b19fe4156
249
py
Python
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
1
2022-03-17T01:19:23.000Z
2022-03-17T01:19:23.000Z
skytour/skytour/apps/dso/urls_priority.py
ursomniac/skytour
3320d96d7ca41b8f52ede87e7112477902a37a0e
[ "MIT" ]
null
null
null
from django.urls import path from .views import PriorityListView, PriorityDetailView urlpatterns = ( path('', PriorityListView.as_view(), name='priority-list'), path('<str:priority>', PriorityDetailView.as_view(), name='priority-detail'), )
35.571429
81
0.742972
from django.urls import path from .views import PriorityListView, PriorityDetailView urlpatterns = ( path('', PriorityListView.as_view(), name='priority-list'), path('<str:priority>', PriorityDetailView.as_view(), name='priority-detail'), )
0
0
0
0
0
0
0
0
0
d5dabdb3ee14b6b74a3ae95c363cf62ee4281bd3
2,790
py
Python
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
docs/source/conf.py
jsam/redgrease
245755b34bce287c63abb6624478cdf8189816b6
[ "MIT" ]
null
null
null
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
32.44186
79
0.670251
# Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Path setup -------------------------------------------------------------- # If ex...
4
0
0
0
0
0
0
0
0
748ad3066400275f1cbf9df97b8a3dbd41db4235
1,229
py
Python
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
177
2017-08-21T08:57:43.000Z
2020-06-22T03:44:22.000Z
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
2
2018-09-06T13:39:12.000Z
2019-06-03T02:54:45.000Z
leetcode/433.minimum-genetic-mutation.py
geemaple/algorithm
68bc5032e1ee52c22ef2f2e608053484c487af54
[ "MIT" ]
23
2017-08-23T06:01:28.000Z
2020-04-20T03:17:36.000Z
CHOICES = ["A", "C", "G", "T"]
28.581395
67
0.436941
CHOICES = ["A", "C", "G", "T"] class Solution(object): def minMutation(self, start, end, bank): """ :type start: str :type end: str :type bank: List[str] :rtype: int """ queue = [start] level = 0 bank_set = set(bank) visited = set([star...
0
0
0
1,177
0
0
0
0
22
7c179bba7fe82aa4cf7a9cd397c544496afb53e9
1,530
py
Python
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
2
2020-12-23T18:59:22.000Z
2021-04-14T13:16:09.000Z
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
DailyProgrammer/DP20170826A.py
DayGitH/Python-Challenges
bc32f1332a92fcc2dfa6f5ea4d95f8a8d64c3edf
[ "MIT" ]
null
null
null
""" [17-08-21] Challenge #328 [Easy] Latin Squares https://www.reddit.com/r/dailyprogrammer/comments/6v29zk/170821_challenge_328_easy_latin_squares/ #**Description** A [Latin square](https://en.wikipedia.org/wiki/Latin_square)is annnarray filled withndifferent symbols, each occurring exactly once in each row and exac...
28.333333
119
0.710458
""" [17-08-21] Challenge #328 [Easy] Latin Squares https://www.reddit.com/r/dailyprogrammer/comments/6v29zk/170821_challenge_328_easy_latin_squares/ #**Description** A [Latin square](https://en.wikipedia.org/wiki/Latin_square) is an n × n array filled with n different symbols, each occurring exactly once in each row ...
18
0
0
0
0
-1
0
0
23
6b69d1ff458af77522bd52bd85a4421763aabc2a
3,419
py
Python
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
main.py
ufopilot/AutomicTerminal
5e049838eb51d3b7a4f3b562187f28257dde8c23
[ "MIT" ]
null
null
null
AutomicTerminal.run(title="Automic", log="textual.log")
32.254717
87
0.678853
from qore import * from libs.menu import Menu from libs.monitor import Monitor from libs.agents import Agents from libs.header import AppHeader from libs.health import Health class AutomicTerminal(App): async def on_load(self) -> None: """Bind keys here.""" await self.bind("a", "toggle_assembly", "Toggl...
0
0
2,295
860
0
0
0
43
162
04584df5159930bd46ea83f3a8fdbd6456b725d6
3,909
py
Python
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
1
2021-03-09T03:57:27.000Z
2021-03-09T03:57:27.000Z
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
null
null
null
scripts/misc/quality.py
young-oct/OCT_jupyter
2d8e6897b967b28901da019b8d7ccde4bb3fee58
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # @Time : 2021-04-26 7:52 p.m. # @Author : young wang # @FileName: quality.py # @Software: PyCharm import numpy as np def ROI(x, y, width, height,s): '''obtain the ROI from the standard layout [330x512] parameters ---------- s has the standard dimension [330x512] y is...
23.835366
94
0.63648
# -*- coding: utf-8 -*- # @Time : 2021-04-26 7:52 p.m. # @Author : young wang # @FileName: quality.py # @Software: PyCharm import numpy as np from skimage.filters import gaussian from scipy.ndimage import median_filter from misc.processing import imag2uint def gaussian_blur(noisy, sigma=0.5): out = gaussian(...
4
0
0
0
0
1,442
0
49
135
dc811f4c086d939f2566ed85ebb5c52fd7df8113
3,467
py
Python
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
db.py
BPtacek/twitter_bot
9df4175cc507ce8b1f9d847e92f0b69809f61a12
[ "MIT" ]
null
null
null
import sqlite3 conn = sqlite3.connect('twitter_resources.db', check_same_thread=False) c = conn.cursor()
37.27957
88
0.592443
import requests import sqlite3 conn = sqlite3.connect('twitter_resources.db', check_same_thread=False) c = conn.cursor() def setup_db(): c.execute("""CREATE TABLE IF NOT EXISTS teams_twitter ( id INTEGER PRIMARY KEY, team_name TEXT NOT NULL UNIQUE, twitter_handle TEXT NOT NULL...
0
0
0
0
0
3,249
0
-6
114
16c75f1f1c9db46d3d956b6d325f41a44060954c
1,729
py
Python
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
4
2021-03-18T17:23:40.000Z
2022-02-01T19:07:01.000Z
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
8
2021-04-30T20:46:57.000Z
2022-03-10T07:25:31.000Z
tests/unit/test_CXCSVData.py
docinfosci/canvasxpress-python
532a981b04d0f50bbde1852c695117a6220f4589
[ "MIT" ]
1
2022-02-03T00:35:14.000Z
2022-02-03T00:35:14.000Z
csv_sample = """ "C1","C2","C3" 1,2,3 4,5,6 """
23.684932
73
0.728167
import csv from copy import copy, deepcopy import pytest from hypothesis import given from hypothesis.extra.pandas import data_frames, column from canvasxpress.data.matrix import CXCSVData from tests.util.hypothesis_support import everything_except csv_sample = """ "C1","C2","C3" 1,2,3 4,5,6 """ @given( data_f...
0
587
0
0
0
650
0
95
340
37622db5e295df54423f2cd1b72fd2fb623225b2
1,335
py
Python
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
1
2021-06-01T19:10:23.000Z
2021-06-01T19:10:23.000Z
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
null
null
null
env/Lib/site-packages/pangocffi/__init__.py
kodelaben/manimce
fef4f1bd748d1cc8c1ade73e7561d4235dc253ca
[ "MIT" ]
null
null
null
import ctypes.util from .ffi_build import ffi def _dlopen(generated_ffi, *names): """Try various names for the same library, for different platforms.""" for name in names: for lib_name in (name, 'lib' + name): try: path = ctypes.util.find_library(lib_name) l...
35.131579
78
0.668165
import ctypes.util from .ffi_build import ffi def _dlopen(generated_ffi, *names): """Try various names for the same library, for different platforms.""" for name in names: for lib_name in (name, 'lib' + name): try: path = ctypes.util.find_library(lib_name) l...
0
0
0
0
0
0
0
108
360
bf6253393c8bcc238caab589dc52fa201083043f
3,454
py
Python
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
word-formatter/src/classifier/classifier.py
MonsterPixel/WordFormat-Python
b6d4e4c74ca66d2076163a4187e8b2851262da65
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*-
27.854839
109
0.555298
# -*- coding: utf-8 -*- import os from datetime import datetime from src.utils.filemeta import get_filename from src.loader.converter import Converter from src.utils.logging import logger class Classifier(object): NAME = None MODEL = None def __init__(self, args=None, model=None, files=None, raw=None,...
0
133
0
3,107
0
0
0
54
136
fbf1ae27d9bcac66c8206372667b4d1af0f93cae
1,223
py
Python
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
qwhelan/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
3
2018-12-29T02:39:09.000Z
2021-11-23T22:42:57.000Z
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
qwhelan/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
1
2021-08-23T05:42:36.000Z
2021-08-23T05:42:36.000Z
.asv/results/benchmarkers-MacBook-Pro.local/clean.py
LaudateCorpus1/conda-benchmarks
7b7de2c0057e0d1ec1d35e2ca4d24aa8ac6b9b69
[ "BSD-3-Clause" ]
8
2019-01-26T09:42:52.000Z
2022-01-28T20:19:21.000Z
import json import glob # test_name = 'time_solve_r_essentials_r_base_conda_forge' test_name = 'time_solve_anaconda_44' for f in glob.glob("*.json"): with open(f) as fd: d = json.load(fd) if f != 'machine.json' and d: # timeval = ((d.get('results', {}) or {}).get(test_name, {}) or {}).get('res...
37.060606
97
0.503679
import os import json import glob # test_name = 'time_solve_r_essentials_r_base_conda_forge' test_name = 'time_solve_anaconda_44' for f in glob.glob("*.json"): with open(f) as fd: d = json.load(fd) if f != 'machine.json' and d: # timeval = ((d.get('results', {}) or {}).get(test_name, {}) or {}...
0
0
0
0
0
0
0
-12
22
8b6a420f8f67c2fa137e731c7ca7ec8cb49f00ef
8,035
py
Python
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
1
2022-01-11T11:52:36.000Z
2022-01-11T11:52:36.000Z
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
16
2021-10-08T10:15:21.000Z
2022-01-23T12:59:03.000Z
src/model/setup.py
solevis/PSS-Fleet-Helper
4d36a31b4737a53964cde1625a3d6ff2c04bd76a
[ "MIT" ]
1
2022-02-07T19:48:26.000Z
2022-02-07T19:48:26.000Z
import asyncio as _asyncio from .. import utils as _utils # ---------- Initialization ---------- # ---------- DB Schema ---------- # ---------- Helper ----------- # ---------- Testing ---------- if __name__ == '__main__': _asyncio.get_event_loop().run_until_complete(test())
39.387255
155
0.692097
import asyncio as _asyncio from typing import Callable as _Callable from . import database as _database from .chat_log import PssChatLogger as _PssChatLogger from .reaction_role import ReactionRole as _ReactionRole from .reaction_role import ReactionRoleChange as _ReactionRoleChange from .reaction_role import Reaction...
0
0
7,213
0
0
0
0
204
317
5a22f91d70ec399fbc9a12f833abc6e6fb9565b2
1,178
py
Python
python/main.py
gurux13/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
5
2022-02-15T20:06:58.000Z
2022-02-18T10:18:03.000Z
python/main.py
SkyFox277/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
null
null
null
python/main.py
SkyFox277/babagram
6910130f1373e09154da4ce9a744f94287d754f2
[ "CC0-1.0" ]
1
2022-02-16T08:39:03.000Z
2022-02-16T08:39:03.000Z
if __name__ == '__main__': main()
28.047619
53
0.679966
from button_logic import ButtonLogic from fake_hw import FakeHardware from hardware import Hardware, is_pi from internet_checker import InternetChecker from paper_status import PaperStatus from recording import Recording from tg import Telegram import os def main(): print("CWD:", os) hardware = Hardware() ...
0
0
0
0
0
861
0
79
199
e5fed20291a4c45d2300812bfeebdc77b27f19c1
23,594
py
Python
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
1
2020-10-30T01:15:19.000Z
2020-10-30T01:15:19.000Z
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
null
null
null
builds/Beta 0.4/src/main.py
CupOfJoeCode/ivy3d
e31a96b698029f5075fd21fd0bdc52288f842216
[ "MIT" ]
null
null
null
#Import Modules import pygame as pg from time import sleep import easygui #Custom Modules from sceneFile import scene, world import shapes pg.init() #Initialize pygame VERSION = "Beta 0.4" # Version textFont = "font/opensans.ttf" # set default font w = 800 # Screen size h = 600 translate = (w/2,h/2) d = pg.dis...
34.494152
284
0.510384
#Import Modules import pygame as pg from pygame import gfxdraw from math import * from random import randint from time import sleep from glob import glob import easygui import types #Custom Modules from sceneFile import scene,world,player import guibuttons import shapes pg.init() #Initialize pygame VERSION = "Beta 0...
0
0
0
1,301
0
11,437
0
0
419
2aaecf9aca1b3795f1ceb691479472897e523a63
2,172
py
Python
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
33
2018-10-19T03:41:56.000Z
2022-01-23T16:26:02.000Z
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
318
2018-09-23T15:16:54.000Z
2022-03-31T22:58:55.000Z
setup.py
lusi1990/betterlifepsi
8e7f8562967ab1816d8c25db3251c550a357f39c
[ "MIT" ]
19
2018-10-22T18:04:18.000Z
2021-12-06T19:49:05.000Z
# coding=utf-8 import re import ast from setuptools import setup from os import path _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('psi/app/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) with open('etc/requirements/common...
33.415385
98
0.632597
# coding=utf-8 import re import ast from setuptools import setup from os import path _version_re = re.compile(r'__version__\s+=\s+(.*)') with open('psi/app/__init__.py', 'rb') as f: version = str(ast.literal_eval(_version_re.search( f.read().decode('utf-8')).group(1))) with open('etc/requirements/common...
0
0
0
0
0
0
0
0
0
1da281e07bc31e868ecd89b10b7296abf13775a4
1,046
py
Python
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
30
2015-01-25T16:22:51.000Z
2022-01-20T15:56:47.000Z
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
2
2020-04-13T15:00:37.000Z
2020-09-23T12:35:59.000Z
fasta/fasta_qual_to_fastq.py
linsalrob/EdwardsLab
3d4eef1dda61c31ce8163d94d86f186275a6e4a4
[ "MIT" ]
24
2015-04-17T00:52:05.000Z
2021-11-26T17:50:01.000Z
""" Convert a fasta/quality files to a fastq file. I can't believe I'm writing this in 2020 """ import os import sys import argparse from roblib import read_fasta, write_fastq, message __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintai...
30.764706
87
0.691205
""" Convert a fasta/quality files to a fastq file. I can't believe I'm writing this in 2020 """ import os import sys import argparse from roblib import read_fasta, write_fastq, message __author__ = 'Rob Edwards' __copyright__ = 'Copyright 2020, Rob Edwards' __credits__ = ['Rob Edwards'] __license__ = 'MIT' __maintai...
0
0
0
0
0
0
0
0
0
f0d4eb63ef0ed095a17e63a5117da5f1eae16b93
170
py
Python
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
002_time.py
a1852rw/004_Python_Training
e88906d7e7f33ca07d5e6ff87d82f526c57e71a8
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 # -*- codint: utf-8 -*- import datetime d1 = datetime.datetime.today() print("today: " ,d1) d2 = datetime.datetime.now() print("now: " ,d2)
11.333333
30
0.623529
#!/usr/bin/env python3 # -*- codint: utf-8 -*- import datetime d1 = datetime.datetime.today() print("today: " ,d1) d2 = datetime.datetime.now() print("now: " ,d2)
0
0
0
0
0
0
0
0
0
ac1dbd9bbcd51ffad9cf1a7e52c26d803fb67bd8
13,900
py
Python
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
texar/torch/modules/pretrained/bert.py
wwt17/texar-pytorch
9fb3ae8f7b541da5c808357033a93fba1817bfbd
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 The Texar 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 ...
43.167702
101
0.576043
# Copyright 2019 The Texar 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 ...
0
3,273
0
9,623
0
0
0
27
158
54fa1fa2261b14d9874756198f220bae47f20d65
7,647
py
Python
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
loadingmenu.py
documenti-aperti/sw-offline
4dfb34e0a3359c4e765634fdba0b26dcc4ecd32c
[ "MIT" ]
null
null
null
#Libraries #Pythons
42.483333
134
0.641166
#Libraries from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from os.path import split as PATHSPLIT #Pythons from settings import * class LoadingMenu(QGroupBox): def __init__(self, parent, w, h): #Initialize father super(LoadingMenu, self).__init__(pare...
0
0
0
7,400
0
0
0
35
189
0fc9e2a005f7bc91a275f0d524d82bc08f3c3abb
14,849
py
Python
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
congressclient/tests/v1/test_datasource.py
mail2nsrajesh/python-congressclient
ec89672c4a7af02af075f82285f1124ef44d942c
[ "Apache-2.0" ]
null
null
null
# 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 # distrib...
38.270619
79
0.57647
# 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 # distrib...
0
0
0
13,816
0
0
0
68
388
ca4497e32d8554e6566a2fee5b27ac735b5f8a0c
519
py
Python
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
2.py
gor-dimm/lr3
dcc1ad607a3144381c8f53759ef8546651c82555
[ "MIT" ]
null
null
null
# , , - a = input(" : ") b = input(" : ") c = input(" : ") print(min(a, b, c), (max(min(a, b), min(b, c)) if not min(a, b) == min(b, c) else min(a, c)), max(a, b, c)) print(max(a, b, c), (min(max(a, b), max(b, c)) if not max(a, b) == max(b...
37.071429
109
0.516378
# Напечатать три данных действительных числа , и сначала в порядке их возрастания, затем - в порядке убывания a = input("Введите первое число: ") b = input("Введите второе число: ") c = input("Введите третье число: ") print(min(a, b, c), (max(min(a, b), min(b, c)) if not min(a, b) == min(b, c) ...
284
0
0
0
0
0
0
0
0
2fcb27cc7a4f4d1bdf595bd91bd8f9abe77e380f
784
py
Python
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
10
2017-11-25T01:47:20.000Z
2020-03-24T18:28:24.000Z
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
319
2017-11-16T09:56:03.000Z
2022-03-28T00:24:37.000Z
users/migrations/0003_user_card_number.py
MAKENTNU/web
7a5b512bf4c087d1561cdb623d7df4b3d04811a2
[ "MIT" ]
6
2017-11-12T14:04:08.000Z
2021-03-10T09:41:18.000Z
# Generated by Django 2.2.5 on 2019-10-18 17:41
34.086957
134
0.576531
# Generated by Django 2.2.5 on 2019-10-18 17:41 import card.modelfields import django.core.validators from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('users', '0002_rename_user_table'), ] operations = [ migrations.AddField( model_name...
0
0
0
624
0
0
0
21
90
bb8089210e933344c7763a5a9f8498d7c72e6f93
2,010
py
Python
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
controller/packages.py
fossabot/do
18a76fdb611b4d4aca97b71be87d3ab4df470d81
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # BEWARE: to not import this package at startup, # but only into functions otherwise pip will go crazy # (we cannot understand why, but it does!) # which version of python is this? # Retrocompatibility for Python < 3.6 try: import_exceptions = (ModuleNotFoundError, ImportError) except Name...
26.8
77
0.651741
# -*- coding: utf-8 -*- # BEWARE: to not import this package at startup, # but only into functions otherwise pip will go crazy # (we cannot understand why, but it does!) # which version of python is this? # Retrocompatibility for Python < 3.6 from sultan.api import Sultan try: import_exceptions = (ModuleNotFoundE...
0
0
0
0
0
1,521
0
8
114
11f97299c93769f17d9b167d578d54fe3e28a177
6,341
py
Python
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
Vertretungsplan - BBS II Emden.py
zlyfer/Vertretungsplan-Client-BBS2-Emden
eb9e1e28f0e76465003ae7e54e3ce37d28feb9a6
[ "MIT" ]
null
null
null
import json import os # variables page = 0 vplan = None tableContent = [] navigationLabel = None leftArrow = None rightArrow = None tableHeaders = ["Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] #tableHeaders = ["ID", "Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] # test # config setup co...
23.928302
121
0.657783
from tkinter import ttk from tkinter import * import requests import json import os # variables page = 0 vplan = None tableContent = [] navigationLabel = None leftArrow = None rightArrow = None tableHeaders = ["Datum", "Kurs", "Stunde", "Fach", "Raum", "Lehrer", "Info"] #tableHeaders = ["ID", "Datum", "Kurs", "Stunde...
0
0
0
0
0
4,584
0
-4
407
9c665169a686b2b7b6718c895e3cab0b8a5b858a
3,386
py
Python
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
spec2model/file_manager.py
vsoch/map2model
4d5c187ab660da5d3fe088b49f92c298b9fd9a7b
[ "MIT" ]
null
null
null
config_file_path = 'spec2model/configuration.yml'
40.795181
108
0.682812
from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive import spec2model.config_manager as yml_manager config_file_path = 'spec2model/configuration.yml' class FolderDigger: gauth = "This variable will have the Google Authorization file" specs_id = '0Bw_p-HKWUjHoNThZOWNKbGhOODg' drive =...
0
0
0
3,190
0
0
0
56
89
6f303a9a3b31a25b5dc723634c5d2449fbf6c36e
2,581
py
Python
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
null
null
null
postprocessing/check_budgets_balance/futurizedReadBinaryData.py
larson-group/clubb_release
b4d671e3e238dbe00752c0dead6a0d4f9897350a
[ "Intel", "Unlicense", "NetCDF" ]
1
2022-01-28T22:22:04.000Z
2022-01-28T22:22:04.000Z
#! /usr/bin/python3 # Author: Cavyn VonDeylen # Date: August 2010 # Larson-Group UWM # Updated to python 3 by Tyler Cernik from __future__ import print_function from __future__ import division from __future__ import unicode_literals import struct # Handles binary data #------------------------------------------------...
34.878378
99
0.588532
#! /usr/bin/python3 # Author: Cavyn VonDeylen # Date: August 2010 # Larson-Group UWM # Updated to python 3 by Tyler Cernik from __future__ import print_function from __future__ import division from __future__ import unicode_literals import struct # Handles binary data #------------------------------------------------...
0
0
0
0
0
0
0
0
0
cb495600a41947b1d94bf9580b821c4073762c83
1,431
py
Python
builder/wheel.py
allenporter/home-assistant-wheels
c7ae5629b7045691d495cf40e9ae123946ba9c76
[ "Apache-2.0" ]
14
2021-01-17T23:31:10.000Z
2022-02-25T18:23:53.000Z
builder/wheel.py
allenporter/home-assistant-wheels
c7ae5629b7045691d495cf40e9ae123946ba9c76
[ "Apache-2.0" ]
140
2020-02-03T11:12:29.000Z
2022-03-29T07:24:34.000Z
builder/wheel.py
allenporter/home-assistant-wheels
c7ae5629b7045691d495cf40e9ae123946ba9c76
[ "Apache-2.0" ]
14
2020-07-05T07:40:57.000Z
2022-03-10T23:26:14.000Z
"""Utils for wheel.""" from contextlib import suppress from pathlib import Path import re import shutil from .utils import run_command, build_arch RE_WHEEL_PLATFORM = re.compile(r"^(?P<name>.*-)cp\d{2}m?-linux_\w+\.whl$") ARCH_PLAT = { "amd64": "linux_x86_64", "i386": "linux_i686", "aarch6...
30.446809
100
0.639413
"""Utils for wheel.""" from contextlib import suppress from pathlib import Path import re import shutil from .utils import run_command, build_arch RE_WHEEL_PLATFORM = re.compile(r"^(?P<name>.*-)cp\d{2}m?-linux_\w+\.whl$") ARCH_PLAT = { "amd64": "linux_x86_64", "i386": "linux_i686", "aarch6...
0
0
0
0
0
0
0
0
0
1cb684d2bf98f35c08eef045efcf405bf30ab2ea
1,135
py
Python
packnet/interface.py
c0mplh4cks/packnet
8a4fa4f398e59a9c0e35d35ad8194d3ed8b56cb7
[ "MIT" ]
2
2021-01-08T12:26:51.000Z
2021-09-17T05:16:33.000Z
packnet/interface.py
c0mplh4cks/packnet
8a4fa4f398e59a9c0e35d35ad8194d3ed8b56cb7
[ "MIT" ]
null
null
null
packnet/interface.py
c0mplh4cks/packnet
8a4fa4f398e59a9c0e35d35ad8194d3ed8b56cb7
[ "MIT" ]
2
2020-12-14T21:18:48.000Z
2021-09-17T11:04:36.000Z
""" PACKNET - c0mplh4cks INTERFACE """ # === Importing Dependencies === # # === Interface === #
19.568966
92
0.574449
""" PACKNET - c0mplh4cks INTERFACE """ # === Importing Dependencies === # import socket from time import time from .standards import encode, decode from . import ADDR, MAC # === Interface === # class Interface(): def __init__(self, card=None, port=0, passive=False, timeout=64): self.pass...
0
0
0
899
0
0
0
10
110
95d66a14992e28b3c373cbfacf4f6d039c4b0e91
359
py
Python
smp_manifold_learning/scripts/create_dir_if_not_exist.py
gsutanto/smp_manifold_learning
60ef8278942c784c8d3bcd0a09031475f80d96fb
[ "MIT" ]
11
2020-09-26T12:13:01.000Z
2022-03-23T07:34:14.000Z
smp_manifold_learning/scripts/create_dir_if_not_exist.py
gsutanto/smp_manifold_learning
60ef8278942c784c8d3bcd0a09031475f80d96fb
[ "MIT" ]
1
2021-04-10T10:42:28.000Z
2021-04-16T07:04:26.000Z
smp_manifold_learning/scripts/create_dir_if_not_exist.py
gsutanto/smp_manifold_learning
60ef8278942c784c8d3bcd0a09031475f80d96fb
[ "MIT" ]
5
2020-09-24T18:52:46.000Z
2022-03-23T07:26:15.000Z
import argparse from smp_manifold_learning.differentiable_models.utils import create_dir_if_not_exist parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument("-d", "--dir_path", default='../plot/ecmnn/', type=str) if __name__ == '__main__': args = parser.parse_args() dir_path = args.dir_pat...
29.916667
85
0.774373
import argparse from smp_manifold_learning.differentiable_models.utils import create_dir_if_not_exist parser = argparse.ArgumentParser(allow_abbrev=False) parser.add_argument("-d", "--dir_path", default='../plot/ecmnn/', type=str) if __name__ == '__main__': args = parser.parse_args() dir_path = args.dir_pat...
0
0
0
0
0
0
0
0
0
9f4fe7c4c5b6a35be415fce1b8b7462a20ce88df
432
py
Python
dashboard/migrations/0010_antenna_ant_name.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
null
null
null
dashboard/migrations/0010_antenna_ant_name.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
6
2020-09-10T05:33:17.000Z
2021-03-16T20:36:47.000Z
dashboard/migrations/0010_antenna_ant_name.py
HERA-Team/heranow
1bc827459a7a92f600cefbd0c8a08f629a211cda
[ "BSD-3-Clause" ]
null
null
null
# Generated by Django 3.0.3 on 2020-08-13 18:04
21.6
64
0.592593
# Generated by Django 3.0.3 on 2020-08-13 18:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("dashboard", "0009_hookupnotes"), ] operations = [ migrations.AddField( model_name="antenna", name="ant_name", ...
0
0
0
318
0
0
0
19
46
55f3a6b88a946898726d384c6d0d5e2eb62cc48f
828
py
Python
website-backend/ava/common/uuid_utils.py
kbladin/ava-capture
2fc24f4a3712f721c3a229b499631e00697209a5
[ "BSD-3-Clause" ]
null
null
null
website-backend/ava/common/uuid_utils.py
kbladin/ava-capture
2fc24f4a3712f721c3a229b499631e00697209a5
[ "BSD-3-Clause" ]
null
null
null
website-backend/ava/common/uuid_utils.py
kbladin/ava-capture
2fc24f4a3712f721c3a229b499631e00697209a5
[ "BSD-3-Clause" ]
null
null
null
# # Copyright (c) 2017 Electronic Arts Inc. All Rights Reserved # # https://stackoverflow.com/questions/1181919/python-base-36-encoding/1181924 def base36encode(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'): """Converts an integer to a base36 string.""" if not isinstance(number, (int, long)): ...
25.090909
77
0.655797
# # Copyright (c) 2017 Electronic Arts Inc. All Rights Reserved # import uuid # https://stackoverflow.com/questions/1181919/python-base-36-encoding/1181924 def base36encode(number, alphabet='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'): """Converts an integer to a base36 string.""" if not isinstance(number, (int,...
0
0
0
0
0
114
0
-10
46
2c90a03c1e24538f9c99a9df8168f749aec70377
4,801
py
Python
med_log.py
Zierman/medlog
ad0d932187d67b34895c7a74dc7deea8df1921c3
[ "MIT" ]
null
null
null
med_log.py
Zierman/medlog
ad0d932187d67b34895c7a74dc7deea8df1921c3
[ "MIT" ]
2
2021-12-05T06:29:41.000Z
2021-12-05T07:50:14.000Z
med_log.py
Zierman/medlog
ad0d932187d67b34895c7a74dc7deea8df1921c3
[ "MIT" ]
null
null
null
from __future__ import annotations DEFAULT_LOG_FILE = 'logs/med.log' DEFAULT_DATE_TIME_FORMAT = r'%m/%d/%Y %H:%M'
35.043796
113
0.656738
from __future__ import annotations from dataclasses import dataclass, Field from datetime import datetime, timedelta from typing import Union, Optional, Tuple, List from parse import parse from med import Med, MedRegistry, DOSAGE_PARSE_FORMAT DEFAULT_LOG_FILE = 'logs/med.log' DEFAULT_DATE_TIME_FORMAT = r'%m/%d/%Y %H...
0
1,051
0
893
0
2,413
0
98
227
a9ab98b718aa838357f77aed9bea96e0588c0a11
10,896
py
Python
ffta/analysis/filtering.py
lindat18/ffta
f510a2068b7626e2984e54afc1a577450e560e97
[ "MIT" ]
null
null
null
ffta/analysis/filtering.py
lindat18/ffta
f510a2068b7626e2984e54afc1a577450e560e97
[ "MIT" ]
null
null
null
ffta/analysis/filtering.py
lindat18/ffta
f510a2068b7626e2984e54afc1a577450e560e97
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Mon Feb 26 17:15:36 2018 @author: Raj """ import pycroscopy as px import pyUSID as usid import numpy as np from ffta.load import get_utils from ffta import pixel from matplotlib import pyplot as plt import warnings ''' For filtering data using the pycroscopy filter command ...
28.978723
117
0.73192
# -*- coding: utf-8 -*- """ Created on Mon Feb 26 17:15:36 2018 @author: Raj """ import pycroscopy as px from pycroscopy.processing.fft import FrequencyFilter import pyUSID as usid import numpy as np from scipy import signal as sps from ffta.load import get_utils from ffta import pixel from matplotlib import pyplot...
0
0
0
1,915
0
544
0
42
89
52823e59cd073588f3ba138cace3b20df0d5b5b5
3,395
py
Python
calvin/runtime/north/plugins/port/queue/test/test_collect_tagged.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
334
2015-06-04T15:14:28.000Z
2022-02-09T11:14:17.000Z
calvin/runtime/north/plugins/port/queue/test/test_collect_tagged.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
89
2015-06-13T19:15:35.000Z
2019-12-03T19:23:20.000Z
calvin/runtime/north/plugins/port/queue/test/test_collect_tagged.py
gabrielcercel/calvin-base
c0315f100643230d65aed1745e1c22df3e7a7c2c
[ "Apache-2.0" ]
112
2015-06-06T19:16:54.000Z
2020-10-19T01:27:55.000Z
import pytest pytest_unittest = pytest.mark.unittest
34.642857
104
0.554345
import pytest from calvin.runtime.north.plugins.port import queue from calvin.runtime.north.calvin_token import Token from calvin.runtime.north.plugins.port.queue.common import QueueEmpty from calvin.runtime.north.plugins.port.queue.test.test_collect_unordered import TestCollectUnorderedFIFO pytest_unittest = pytest.m...
0
2,780
0
12
0
165
0
191
193
92c65123a6c522968afa5a515527ab9b438ba792
1,706
py
Python
python/odml/nix_demo.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/nix_demo.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
python/odml/nix_demo.py
mpsonntag/snippets
fc3cc42ea49b885c1f29c0aef1379055a931a978
[ "BSD-3-Clause" ]
null
null
null
import matplotlib.pyplot as plt import pandas as pd from pathlib import Path import nixio as nix fnbase = Path.joinpath(Path.home(), 'Chaos', 'work') fnraw = str(Path.joinpath(fnbase, '_Lab_Zimmer/calcium_imaging/results/N2/urx/shift210421/20120705Pflp178GCaMP5kshift210421W7URXx2.log')) ...
28.915254
129
0.743259
import matplotlib.pyplot as plt import pandas as pd from pathlib import Path import nixio as nix fnbase = Path.joinpath(Path.home(), 'Chaos', 'work') fnraw = str(Path.joinpath(fnbase, '_Lab_Zimmer/calcium_imaging/results/N2/urx/shift210421/20120705Pflp178GCaMP5kshift210421W7URXx2.log')) ...
0
0
0
0
0
0
0
0
0
1e91a5afa6e064ba7a41a2c596e40f3890588e36
12,082
py
Python
jupyros/ros_widgets.py
ihuicatl/jupyter-ros
ea9c9e89f0ebf82108ac4d96897b2c64e6f74563
[ "BSD-3-Clause" ]
null
null
null
jupyros/ros_widgets.py
ihuicatl/jupyter-ros
ea9c9e89f0ebf82108ac4d96897b2c64e6f74563
[ "BSD-3-Clause" ]
null
null
null
jupyros/ros_widgets.py
ihuicatl/jupyter-ros
ea9c9e89f0ebf82108ac4d96897b2c64e6f74563
[ "BSD-3-Clause" ]
null
null
null
############################################################################# # Copyright (c) Wolf Vollprecht, QuantStack # # # # Distributed under the terms of the BSD 3-Clause License. # # ...
35.02029
131
0.595514
############################################################################# # Copyright (c) Wolf Vollprecht, QuantStack # # # # Distributed under the terms of the BSD 3-Clause License. # # ...
0
0
0
0
0
5,035
0
0
396
a292b4b0b721e7945377bc0b2da0181e22768ebd
4,369
bzl
Python
nixpkgs/repositories.bzl
seewpx/rules_nixpkgs
1c02fe914763448398739bb295b858362bb2810b
[ "Apache-2.0" ]
null
null
null
nixpkgs/repositories.bzl
seewpx/rules_nixpkgs
1c02fe914763448398739bb295b858362bb2810b
[ "Apache-2.0" ]
null
null
null
nixpkgs/repositories.bzl
seewpx/rules_nixpkgs
1c02fe914763448398739bb295b858362bb2810b
[ "Apache-2.0" ]
null
null
null
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") def rules_nixpkgs_dependencies(rules_nixpkgs_name = "io_tweag_rules_nixpkgs"): """Load repositories required by r...
45.041237
126
0.613642
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") def rules_nixpkgs_dependencies(rules_nixpkgs_name = "io_tweag_rules_nixpkgs"): """Load repositories required by r...
0
0
0
0
0
0
0
0
0
8d09485db8efd21615a8b003ba88ca0a4332df60
2,041
py
Python
src/_dependencies/injectable.py
dry-python/dependencies
1a8bba41ab42d0b5249b36471f5300d9faba81e7
[ "BSD-2-Clause" ]
175
2018-07-21T13:04:44.000Z
2020-05-27T15:31:06.000Z
src/_dependencies/injectable.py
proofit404/dependencies
204e0cfadca801d64857f24aa4c74e7939ed9af0
[ "BSD-2-Clause" ]
325
2016-05-16T11:16:11.000Z
2022-03-04T00:45:57.000Z
src/_dependencies/injectable.py
dry-python/dependencies
1a8bba41ab42d0b5249b36471f5300d9faba81e7
[ "BSD-2-Clause" ]
18
2018-06-17T09:33:16.000Z
2020-05-20T18:12:30.000Z
# Messages. default_class_value_template = """ {owner} has a default value of {argument!r} argument set to {value!r} class. You should either change the name of the argument into '{argument}_class' or set the default value to an instance of that class. """.strip()
30.014706
76
0.680059
from inspect import isclass from inspect import signature from _dependencies.exceptions import DependencyError def _function_args(func, funcname, owner): arguments = _args(func, funcname, owner) return _separate(arguments) def _method_args(func, funcname, owner): arguments = _args(func, funcname, owner...
0
0
0
0
0
1,539
0
45
182
a027763e2428f3baf3eb8729ecd4250edf35d58d
347
py
Python
4_Applied ML with Python/Review/plot1.py
syedmeesamali/CourseraPlus
0e729d10938ecb55fde69433c6b02cb02b8e6d10
[ "MIT" ]
null
null
null
4_Applied ML with Python/Review/plot1.py
syedmeesamali/CourseraPlus
0e729d10938ecb55fde69433c6b02cb02b8e6d10
[ "MIT" ]
null
null
null
4_Applied ML with Python/Review/plot1.py
syedmeesamali/CourseraPlus
0e729d10938ecb55fde69433c6b02cb02b8e6d10
[ "MIT" ]
null
null
null
from sklearn import datasets iris = datasets.load_iris()
24.785714
62
0.855908
import matplotlib.pyplot as plt import numpy as np from sklearn.metrics import accuracy_score from sklearn.linear_model import LogisticRegression from sklearn.svm import SVC from sklearn.gaussian_process import GaussianProcessClassifier from sklearn.gaussian_process.kernels import RBF from sklearn import datasets i...
0
0
0
0
0
0
0
132
156