hexsha
stringlengths
40
40
size
int64
6
782k
ext
stringclasses
7 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
237
max_stars_repo_name
stringlengths
6
72
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
53k
⌀
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
184
max_issues_repo_name
stringlengths
6
72
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
27.1k
⌀
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
184
max_forks_repo_name
stringlengths
6
72
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
12.2k
⌀
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
⌀
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
⌀
content
stringlengths
6
782k
avg_line_length
float64
2.75
664k
max_line_length
int64
5
782k
alphanum_fraction
float64
0
1
8790c1ed3e59b73b318f2bef9c13b2386ae8da15
2,082
py
Python
marker_detection/Determining ArUco marker/guess_aruco_type.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
marker_detection/Determining ArUco marker/guess_aruco_type.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
marker_detection/Determining ArUco marker/guess_aruco_type.py
JuBepy/Gaze_Mouse
4ddea30b4f53deb744dac3f370e7f48baa3b99c2
[ "MIT" ]
null
null
null
#!/usr/bin/env python # import the necessary packages import argparse import imutils import cv2 # construct the argument parser and parse the arguments ap = argparse.ArgumentParser() ap.add_argument("-i", "--image", required=True, help="path to input image containing ArUCo tag") args = vars(ap.parse_args()) # defin...
35.896552
62
0.768492
57d918e67638c5aeb3eedc9ba8d16466409a09ab
7,457
py
Python
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/bbox.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,045
2019-05-09T02:50:43.000Z
2022-03-31T06:22:11.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/bbox.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,468
2019-05-16T00:48:18.000Z
2022-03-08T04:12:44.000Z
contrib/0.挖宝行动/youzidata-机坪跑道航空器识别/src/data/yolo_load/bbox.py
huaweicloud/ModelArts-Lab
75d06fb70d81469cc23cd422200877ce443866be
[ "Apache-2.0" ]
1,077
2019-05-09T02:50:53.000Z
2022-03-27T11:05:32.000Z
"""Bounding boxes transformation functions.""" from __future__ import division import numpy as np from mxnet import nd def crop(bbox, crop_box=None, allow_outside_center=True): """Crop bounding boxes according to slice area. This method is mainly used with image cropping to ensure bonding boxes fit within...
32.70614
93
0.599437
17c8df00a06e69180186b75a3ae25e63b37b59cb
5,454
py
Python
src/damage_image.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/damage_image.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
src/damage_image.py
tschibu/starthack-asimov
bbc6fe04986738c014fa4cbd02a7f9e23b8a9c29
[ "MIT" ]
null
null
null
import cv2 import helper.log_helper as logger import numpy as np import os import math import shutil class DamageImage: def __init__(self, angle_impact, max_force, damage_id, crash_time, max_force_offset=None): self.log = logger.get(False, "DamageImage") self.image = cv2.imread("images/car_big.png...
34.738854
121
0.617712
35058dc5fa82a97611b974ecfc5a1dee3f2542c4
217
py
Python
nz_django/day1/urls_include_demo/music/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_django/day1/urls_include_demo/music/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_django/day1/urls_include_demo/music/views.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from django.http import HttpResponse # Create your views here. def index(request): return HttpResponse('音乐首页') def music_detail(request,music_id): text = '音乐id是:%s' % music_id return HttpResponse(text)
19.727273
36
0.728111
351de58933c0f4f92d6891d090567958b44deaa1
7,189
py
Python
src/onegov/ticket/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ticket/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/ticket/collection.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
import random from collections import namedtuple from onegov.core.collection import Pagination from onegov.ticket import handlers as global_handlers from onegov.ticket.model import Ticket from sqlalchemy import desc, distinct, func from sqlalchemy.orm import joinedload, undefer from uuid import UUID class TicketColl...
31.951111
77
0.62999
dc860bd50d7ddb89a617e426956e6072719f03ed
534
py
Python
Project Euler Questions 1 - 10/Project Euler Question 10.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
1
2020-02-11T02:03:02.000Z
2020-02-11T02:03:02.000Z
Project Euler Questions 1 - 10/Project Euler Question 10.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
Project Euler Questions 1 - 10/Project Euler Question 10.py
Clayton-Threm/Coding-Practice
6671e8a15f9e797338caa617dae45093f4157bc1
[ "MIT" ]
null
null
null
#Project Euler Question 10 #The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. #Find the sum of all the primes below two million. import math def prime_sum(x): num = 3 primes = [2] while (num < x): for prime in primes: if prime > (int(math.sqrt(num) + 1)): primes.ap...
22.25
54
0.518727
f4d77c78068a5003971ea96a987eb2f77be95c82
376
py
Python
api/serializers/book.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
null
null
null
api/serializers/book.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
2
2018-05-11T18:26:18.000Z
2018-05-12T18:49:38.000Z
api/serializers/book.py
aidun/seite50
761a8e76f9e4473f70a8705dce169d61bf660267
[ "Apache-2.0" ]
1
2018-10-10T19:52:17.000Z
2018-10-10T19:52:17.000Z
from rest_framework import serializers from api.models.book import Book class BookSerializer(serializers.ModelSerializer): class Meta: model = Book fields = ('id', 'bookid', 'title', 'date_created', 'date_modified', 'description', 'published_date', 'seite50_sentence') rea...
34.181818
75
0.672872
f4f21c51013d0b7afe3c85a1b4f49718d9a1349d
69
py
Python
heatdrill/src/heatdrill/__init__.py
sogis/layerinfo_modules
a9afb391a407d9b835a5ceecb8a5140262a8f5a9
[ "MIT" ]
null
null
null
heatdrill/src/heatdrill/__init__.py
sogis/layerinfo_modules
a9afb391a407d9b835a5ceecb8a5140262a8f5a9
[ "MIT" ]
3
2020-01-09T10:39:38.000Z
2021-06-02T00:51:54.000Z
heatdrill/src/heatdrill/__init__.py
sogis/layerinfo_modules
a9afb391a407d9b835a5ceecb8a5140262a8f5a9
[ "MIT" ]
null
null
null
from .layer_info import layer_info from .layer_info import _testInit
23
34
0.855072
526160808e311ab9d2dd04ef5eefae48eff9d134
897
py
Python
trie.py
StanislavVolodarskiy/trie
fd3c462a0338f9cfdca45d7ddeb6647a9b6b5a57
[ "MIT" ]
null
null
null
trie.py
StanislavVolodarskiy/trie
fd3c462a0338f9cfdca45d7ddeb6647a9b6b5a57
[ "MIT" ]
null
null
null
trie.py
StanislavVolodarskiy/trie
fd3c462a0338f9cfdca45d7ddeb6647a9b6b5a57
[ "MIT" ]
null
null
null
def make_trie(iterable): root = {} for s in iterable: node = root for c in s: node = node.setdefault(c, {}) node[''] = None return root def contains(text, trie): if '' in trie: return True nodes = [] for c in text: nodes.append(trie) ...
21.878049
58
0.441472
bfedcca393fa8fb6ff08276c5df0788d1e7144f6
15,397
py
Python
mcfr.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
mcfr.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
mcfr.py
phebon/mcfr
71425420e5023cde364ca6f8c4e46c87cc3c44ab
[ "MIT" ]
null
null
null
import math as m import statistics as st '''Copyright (c) 2020 Moritz Siebert Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, c...
38.783375
171
0.655193
87338af793baf0df1601861e9cebcc011dd9c080
11,882
py
Python
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_hostgroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_hostgroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
exercises/networking_selfpaced/networking-workshop/collections/ansible_collections/community/general/plugins/modules/storage/netapp/netapp_e_hostgroup.py
tr3ck3r/linklight
5060f624c235ecf46cb62cefcc6bddc6bf8ca3e7
[ "MIT" ]
null
null
null
#!/usr/bin/python # -*- coding: utf-8 -*- # (c) 2016, NetApp, Inc # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = {"metadata_version": "1.1", "sta...
39.214521
151
0.591988
875fc4e6b9975d72fcfc9bb6100c13b2efe6665c
482
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v7_2/stock_uom_in_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/stock_uom_in_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v7_2/stock_uom_in_selling.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
import frappe def execute(): frappe.reload_doctype('Sales Order') frappe.reload_doctype('Sales Invoice') frappe.reload_doctype('Quotation') frappe.reload_doctype('Delivery Note') doctype_list = ['Sales Order Item', 'Delivery Note Item', 'Quotation Item', 'Sales Invoice Item'] for doctype in doctype_list: fra...
34.428571
98
0.744813
5ed76eda77618a96cd31f0a758d0e88c014d0a2d
98
py
Python
Python/turtle-drawing/star.py
DMeurer/small-projects
3d9e714db9cd8dd8a626d9b8f0faa44325ef10e1
[ "MIT" ]
1
2021-03-25T14:23:58.000Z
2021-03-25T14:23:58.000Z
Python/turtle-drawing/star.py
DMeurer/small-projects
3d9e714db9cd8dd8a626d9b8f0faa44325ef10e1
[ "MIT" ]
1
2021-01-15T17:03:06.000Z
2021-02-15T10:02:07.000Z
Python/turtle-drawing/star.py
DMeurer/small-projects
3d9e714db9cd8dd8a626d9b8f0faa44325ef10e1
[ "MIT" ]
null
null
null
import turtle t=turtle.Pen() a = 5 x = 10 for i in range(50): t.forward(80) t.right(144)
10.888889
19
0.602041
33e0879e91bea9a2d6e442804076a1d4c3b1e058
3,154
py
Python
app.py
tarbalint89/Flask-Login
bd9e0eed3055e938784fa3ce51e4d500b7e9d62c
[ "MIT" ]
null
null
null
app.py
tarbalint89/Flask-Login
bd9e0eed3055e938784fa3ce51e4d500b7e9d62c
[ "MIT" ]
null
null
null
app.py
tarbalint89/Flask-Login
bd9e0eed3055e938784fa3ce51e4d500b7e9d62c
[ "MIT" ]
null
null
null
from os import error from flask import Flask, render_template, url_for, redirect from flask_bootstrap import Bootstrap from flask_wtf import FlaskForm from flask_wtf.recaptcha import validators from wtforms import StringField, PasswordField, BooleanField from wtforms.validators import InputRequired, Email, Length from ...
35.840909
116
0.718453
1d28287dcaf11d13ae01635d3ef341dc5c02d193
1,093
py
Python
Packs/Core/Integrations/CortexCoreIR/CortexCoreIR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2021-12-06T21:38:24.000Z
2022-01-13T08:23:36.000Z
Packs/Core/Integrations/CortexCoreIR/CortexCoreIR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
61
2021-10-07T08:54:38.000Z
2022-03-31T10:25:35.000Z
Packs/Core/Integrations/CortexCoreIR/CortexCoreIR_test.py
jrauen/content
81a92be1cbb053a5f26a6f325eff3afc0ca840e0
[ "MIT" ]
2
2022-01-05T15:27:01.000Z
2022-02-01T19:27:43.000Z
import json Core_URL = 'https://api.xdrurl.com' def load_test_data(json_path): with open(json_path) as f: return json.load(f) def test_report_incorrect_wildfire_command(mocker): """ Given: - FilterObject and name to get by exclisions. When - A user desires to get exclusions....
33.121212
97
0.705398
d555b598961a3c8ae2812c7580c33a54c0c939c7
29,656
py
Python
gemtown/songs/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
gemtown/songs/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
5
2020-09-04T20:13:39.000Z
2022-02-17T22:03:33.000Z
gemtown/songs/views.py
doramong0926/gemtown
2c39284e3c68f0cc11994bed0ee2abaad0ea06b6
[ "MIT" ]
null
null
null
from rest_framework.views import APIView from rest_framework.response import Response from rest_framework import status from rest_framework.permissions import BasePermission, AllowAny, IsAdminUser, IsAuthenticated from . import models, serializers from gemtown.users import models as user_models from gemtown.musicians i...
36.254279
157
0.537497
63578176ad265827120c5ff02e7723a4e1679905
300
py
Python
production/pygsl-0.9.5/pygsl/testing/complex.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2019-07-29T02:53:51.000Z
2019-07-29T02:53:51.000Z
production/pygsl-0.9.5/pygsl/testing/complex.py
juhnowski/FishingRod
457e7afb5cab424296dff95e1acf10ebf70d32a9
[ "MIT" ]
1
2021-09-11T14:30:32.000Z
2021-09-11T14:30:32.000Z
Dockerfiles/gedlab-khmer-filter-abund/pymodules/python2.7/lib/python/pygsl/testing/complex.py
poojavade/Genomics_Docker
829b5094bba18bbe03ae97daf925fee40a8476e8
[ "Apache-2.0" ]
2
2016-12-19T02:27:46.000Z
2019-07-29T02:53:54.000Z
import _ufuncs _token = "complex_" _tokl = len(_token) for _name in dir(_ufuncs): if _name[:_tokl] == _token: _shortname = _name[_tokl:] _cmd = "%s = _ufuncs.%s" % (_shortname, _name) #printy cmd exec(_cmd) del _token del _tokl del _shortname del _name del _cmd
18.75
54
0.63
983ce53d78309e0b446269375b89aea6eee03bd3
8,301
py
Python
tests/test_structural_conversions.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
49
2018-11-07T06:43:33.000Z
2022-03-18T20:53:06.000Z
tests/test_structural_conversions.py
guruvamsi-policharla/noisy-krotov
c5397d9dbde68d06f17e88620d6a6b2c74664841
[ "BSD-3-Clause" ]
94
2018-11-06T20:15:04.000Z
2022-01-06T09:06:15.000Z
tests/test_structural_conversions.py
qucontrol/krotov
9f9a22336c433dc3a37637ce8cc8324df4290b46
[ "BSD-3-Clause" ]
20
2018-11-06T20:03:11.000Z
2022-03-12T05:29:21.000Z
"""Test of structural conversions""" import logging from functools import partial import numpy as np import pytest import qutip import krotov from krotov.conversions import ( discretize, extract_controls, extract_controls_mapping, pulse_options_dict_to_list, ) from krotov.shapes import qutip_callback ...
31.206767
78
0.655704
98b138378193839341be0692af952b9ffe9e8e2a
4,326
py
Python
projects/g4h2-graduation-project/src/backends/benchmark/main.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/benchmark/main.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
projects/g4h2-graduation-project/src/backends/benchmark/main.py
keybrl/xdu-coursework
9d0e905bef28c18d87d3b97643de0d32f9f08ee0
[ "MIT" ]
null
null
null
import base64 import json import logging import threading import time from hashlib import md5 from typing import Any, Dict, List import requests logging.basicConfig(level=logging.INFO) logger = logging.getLogger() logger.setLevel(logging.INFO) def single_thread_test(url: str, test_data: str, test_tim...
29.630137
116
0.540684
f686d0202dfc804f21b7d06f6fd00854ce79310b
1,083
py
Python
Gundlagen IT-Hardware/Aufgabe3.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
2
2021-11-16T22:53:25.000Z
2021-11-17T12:30:49.000Z
Gundlagen IT-Hardware/Aufgabe3.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-02-23T18:56:51.000Z
2022-02-23T19:09:20.000Z
Gundlagen IT-Hardware/Aufgabe3.py
thieleju/studium
f23db7c7d2c30a2f0095cfdd25a4944c39d80d82
[ "MIT" ]
1
2022-01-24T16:54:10.000Z
2022-01-24T16:54:10.000Z
import time import explorerhat as hat # hat.motor.forwards() touched = [False] * 8 def ohai(channel, event): if event == "press": touched[channel - 1] = True if event == "release": touched[channel - 1] = False print(str(channel)+ ": " + str(event)) hat.touch.pressed(ohai) hat...
19.690909
47
0.57156
63e8cc367de9463ecf2dbfcf26e3efe2c07243bc
786
py
Python
pacman-arch/test/pacman/tests/sync046.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/sync046.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/sync046.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a sync package with interdependent conflicts" sp = pmpkg("pkg1") sp.conflicts = ["pkg2", "pkg3", "pkg4"] self.addpkg2db("sync", sp); lp1 = pmpkg("pkg2") lp1.depends = ["pkg3"] lp1.install['pre_remove'] = "[ -f pkg3file ] && echo '' > pkg2ok" self.addpkg2db("local", lp1); lp2 = pmpkg("pkg3...
26.2
73
0.675573
c3a6789a09964c0b6b62e261753ffdcd75c9565f
256
py
Python
Python/EstruturaSequencial/Exercicios/Exercicio05.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio05.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
Python/EstruturaSequencial/Exercicios/Exercicio05.py
ekballo/Back-End
b252e3b2a16ce36486344823f14afa6691fde9bc
[ "MIT" ]
null
null
null
#Faça um Programa que converta metros para centímetros. metro = float(input('Digite o Valor em Metros que deseja Converter: ')) resultado = metro * 100 print('O Valor de Metros {:.1f}m, convertido para centimetros é {:.1f}cm. '.format(metro,resultado))
32
100
0.734375
f62cee984cbf15bc543aa38bf17ceaec84d51553
435
py
Python
Language Proficiency/Python/Strings/Merge the Tools!/merge_tools.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Language Proficiency/Python/Strings/Merge the Tools!/merge_tools.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Language Proficiency/Python/Strings/Merge the Tools!/merge_tools.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def merge_the_tools(string, k): # your code goes here temp = [] length = 0 for char in string: if char not in temp: temp.append(char) length += 1 if length == k: print(''.join([char for char in temp])) temp = [] ...
19.772727
51
0.517241
141ffaacb887482b3fe5b8ca9b826359490f2760
368
py
Python
transonic/analyses/test_exast.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
88
2019-01-08T16:39:08.000Z
2022-02-06T14:19:23.000Z
transonic/analyses/test_exast.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
13
2019-06-20T15:53:10.000Z
2021-02-09T11:03:29.000Z
transonic/analyses/test_exast.py
fluiddyn/transonic
a460e9f6d1139f79b668cb3306d1e8a7e190b72d
[ "BSD-3-Clause" ]
1
2019-11-05T03:03:14.000Z
2019-11-05T03:03:14.000Z
import ast from .extast import parse, unparse def test_ExtSlice(): code = "foo[:, b]" code_back = unparse(parse(code)).strip() assert code_back == code code_back = unparse(ast.parse(code)).strip() assert code_back == code def test_comment(): code = "# a comment" code_back = unparse(par...
18.4
48
0.646739
1453667bc97282a41acc5798e96986d755a45bef
26
py
Python
algo/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
1
2021-01-18T09:11:59.000Z
2021-01-18T09:11:59.000Z
algo/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
algo/__init__.py
teastares/or_lab
c8fb5c22d31c1e2b93381397202be7b71a3fc796
[ "MIT" ]
null
null
null
from algo.simplex import *
26
26
0.807692
0d172ee9014bf5a03d86aa8453f2ae04aca181d5
9,895
py
Python
official/cv/simclr/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/simclr/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/simclr/train.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
57.196532
120
0.710864
37028169f176d0a509e0ccd6b91d9d5e09824be6
6,656
py
Python
contest_server/pjkiserver/ruleserver/generate_move_bitboard.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/ruleserver/generate_move_bitboard.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
contest_server/pjkiserver/ruleserver/generate_move_bitboard.py
amrohendawi/AlphaZero-implementation
42103e63308ba256208b6dd6ddcbef2e797e9932
[ "MIT" ]
null
null
null
''' @Author: Sebastian Piotr Polak @Version: 2020-05-17 ''' import numpy as np from .bitboard import Board class MoveBoard: """ Generate possible move-bitboards for a figure on a certain field Current field is not included """ def generate(self, figure, x, y, player='w', game_mode="RK"): ...
27.167347
94
0.465895
259a537585ec0bd7fd43549b1cbcaa6899fa5acb
5,715
py
Python
official/cv/c3d/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
official/cv/c3d/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
official/cv/c3d/src/utils.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
33.816568
97
0.584252
4c9bd84bd6943f6ea929b80d7bd7ffb98b8ac293
307
py
Python
tp1/source/PointGen.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/PointGen.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
tp1/source/PointGen.py
ha2398/ia-tps
3696c92c8e2549aab6ac83da317cef8e15762eea
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 ''' Trabalho Pratico 1: Inteligência Artificial Autor: Hugo Araujo de Sousa (2013007463) PointGen.py: Point generator to run ''' from random import * import sys seed() num_points = int(sys.argv[1]) for i in range(num_points): for j in range(4): print(randint(0, 255), end=' ')
17.055556
43
0.70684
980343735de55d87f6f4d4a8975f66e75058eee6
1,364
py
Python
torba/torba/workbench/_output_dock.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
4,076
2018-06-01T05:54:24.000Z
2022-03-07T21:05:52.000Z
torba/torba/workbench/_output_dock.py
mittalkartik2000/lbry-sdk
a07b17ec0c9c5d0a88bc730caf6ab955e0971b38
[ "MIT" ]
80
2018-06-14T01:02:03.000Z
2019-06-19T10:45:39.000Z
torba/torba/workbench/_output_dock.py
braveheart12/lbry-sdk
dc709b468f9dce60d206161785def5c7ace2b763
[ "MIT" ]
20
2018-06-27T21:52:22.000Z
2022-03-08T11:25:23.000Z
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'output_dock.ui', # licensing of 'output_dock.ui' applies. # # Created: Sat Oct 27 16:41:03 2018 # by: pyside2-uic running on PySide2 5.11.2 # # WARNING! All changes made in this file will be lost! from PySide2 import QtCore, QtGui, Qt...
38.971429
101
0.730938
2c61ff5bcafff89272ab8e3b6c44f180d13414cd
2,322
py
Python
plotting/plot_profile_factors.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/plot_profile_factors.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
plotting/plot_profile_factors.py
metxchris/MMM-Explorer
251b4d7af56241882611bc47e94ec2923e4be8da
[ "MIT" ]
null
null
null
#!/usr/bin/python3 """Create profile plots using the profiles.py module These are the same profile plots that can be created when running mmm_controller, except a scan factor can also be specified. """ # Standard Packages import sys; sys.path.insert(0, '../') # Local Packages import modules.options import modules.u...
36.857143
103
0.736003
1aa821c8535b68cc90c901ea09d0f102db7d288a
6,287
py
Python
main.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
main.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
main.py
Packauskas/dongus
7c18e24716ea53fcec88cb6efc1913bdb36f0448
[ "MIT" ]
null
null
null
from pprint import pprint import requests import numpy as np import giphy_client as gc from giphy_client.rest import ApiException from numpy import random from variables import basic_response_list from variables import dingus_hi from variables import roast_list from random import randint from flask import Flask, reques...
30.519417
103
0.656593
2051618fd917adb9dc9e7a3cda5abdf144c8d7b0
1,626
py
Python
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulationbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
4
2020-11-13T02:35:56.000Z
2021-03-29T20:15:54.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulationbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
9
2020-12-09T02:12:39.000Z
2021-02-18T00:15:28.000Z
Co-Simulation/Sumo/sumo-1.7.0/tools/contributed/sumopy/coremodules/simulation/simulationbase.py
uruzahe/carla
940c2ab23cce1eda1ef66de35f66b42d40865fb1
[ "MIT" ]
1
2020-11-20T19:31:26.000Z
2020-11-20T19:31:26.000Z
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo # Copyright (C) 2016-2020 German Aerospace Center (DLR) and others. # SUMOPy module # Copyright (C) 2012-2017 University of Bologna - DICAM # This program and the accompanying materials are made available under the # terms of the Eclipse Public ...
37.813953
77
0.662977
b37ccaa2541abbe9635b8d097b41ec1cf469a8c3
783
py
Python
app/schema/document_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/document_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/schema/document_schema.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
from marshmallow import Schema, fields, validate, EXCLUDE, post_load from app.models import Document class DocumentSchema(Schema): class Meta: unknown = EXCLUDE id = fields.Int(validate=validate.Range(min=1), dump_only=True) title = fields.Str(validate=validate.Length(min=1, max=80)) content...
31.32
75
0.729246
03bb10abbc7babddbce80b5efcca7e787b16022a
2,755
py
Python
.circleci/checklhe/globalvariables.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
3
2015-06-08T13:09:28.000Z
2020-09-04T19:59:36.000Z
.circleci/checklhe/globalvariables.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
64
2015-06-24T15:08:17.000Z
2022-01-25T04:59:32.000Z
.circleci/checklhe/globalvariables.py
tmartini/JHUGen
80da31668d7b7eb5b02bb4cac435562c45075d24
[ "Apache-2.0" ]
19
2015-05-04T22:15:41.000Z
2021-07-06T10:04:40.000Z
import particlecategory import particle import config import collections import cPickle eventcounter = collections.Counter() startedinit = False finishedinit = False class GlobalVariablesMinimal: #for stuff that's needed before GlobalVariables is inited #I'm aware this is ugly def __init__(self): ...
34.012346
113
0.677314
2fac56f53ba4573ec3b0b3d079403ef935885eb5
8,393
py
Python
src/onegov/gazette/views/notice_states.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/notice_states.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
src/onegov/gazette/views/notice_states.py
politbuero-kampagnen/onegov-cloud
20148bf321b71f617b64376fe7249b2b9b9c4aa9
[ "MIT" ]
null
null
null
from mailthon.enclosure import Attachment from morepath import redirect from onegov.core.security import Personal from onegov.core.security import Private from onegov.core.templates import render_template from onegov.gazette import _ from onegov.gazette import GazetteApp from onegov.gazette.forms import EmptyForm from ...
30.97048
78
0.590611
471184c727ec2c2b1b8c5b225b7c222e957188ed
1,420
py
Python
venv/lib/python3.7/site-packages/twilio/rest/bulkexports/v1/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
1,362
2015-01-04T10:25:18.000Z
2022-03-24T10:07:08.000Z
venv/lib/python3.7/site-packages/twilio/rest/bulkexports/v1/__init__.py
uosorio/heroku_face
7d6465e71dba17a15d8edaef520adb2fcd09d91e
[ "Apache-2.0" ]
299
2015-01-30T09:52:39.000Z
2022-03-31T23:03:02.000Z
bot/lib/python3.7/site-packages/twilio/rest/bulkexports/v1/__init__.py
carlosrh18/DavinciBot
d73a6b7f68d7bab25d134d3f85c6b63a86c206c5
[ "MIT" ]
622
2015-01-03T04:43:09.000Z
2022-03-29T14:11:00.000Z
# coding=utf-8 r""" This code was generated by \ / _ _ _| _ _ | (_)\/(_)(_|\/| |(/_ v1.0.0 / / """ from twilio.base.version import Version from twilio.rest.bulkexports.v1.export import ExportList from twilio.rest.bulkexports.v1.export_configuration import ExportConfigurationList class V1(Version...
26.296296
87
0.623239
5bbfaffac9b2fb4b71e92b550fdbded7e60691d6
6,108
py
Python
abfahrt/classes/Train.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
1
2022-01-30T14:30:02.000Z
2022-01-30T14:30:02.000Z
abfahrt/classes/Train.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
abfahrt/classes/Train.py
Team-Zugig-zum-Erfolg/InformatiCup
788076ac38bf6d8f462465b7fb96db14d13bed30
[ "MIT" ]
null
null
null
# This module provides runtime support for type hints. The most fundamental support consists of the types Any, Union, Callable, TypeVar, and Generic. For a full specification, please see PEP 484. For a simplified introduction to type hints, see PEP 483. (https://docs.python.org/3/library/typing.html) from typing import...
25.663866
301
0.537328
1b83e1aab9ce234a92ce7366a44d9eeaf1e98570
7,563
py
Python
analise_de_dados/transcriptminer.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
analise_de_dados/transcriptminer.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
analise_de_dados/transcriptminer.py
gustavodsf/rdx_hack
3b504bf8181495fdd1c3a06f963970469f6655f1
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- import os import difflib as dfl import re import nltk.corpus import pandas as pd pattern = re.compile(r'\b(' + r'|'.join(nltk.corpus.stopwords.words('portuguese')) + r')\b\s*') def tensao (texto): ret=[] ret.append(sum([dfl.SequenceMatcher(None,item,"tensao").ratio()>0.75 for item in t...
43.97093
243
0.617348
edb35571084892b7a394a965688c9dc3ba7d2d51
373
py
Python
src/extras.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
src/extras.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
src/extras.py
bela127/Pruning_with_Saliency_Information
d0d67c88c863c49def3011862a9a26e94e6f5bf9
[ "MIT" ]
null
null
null
def extras(): c = tf.placeholder(tf.int32, shape=[None, 3, 100]) print(c.shape) [d, e, f] = tf.unstack(c, axis=1) #unstack tensors along one dimension. print(d.shape) print(e.shape) a = tf.concat([d,e],1) #Concatenates tensors along one dimension. print(a.shape) ...
31.083333
79
0.552279
edfc0890d2d58e37fe849657c3f2eaf3f460a49c
6,011
py
Python
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hashtable_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hashtable_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
8
2020-03-24T17:47:23.000Z
2022-03-12T00:33:21.000Z
cs/lambda_cs/05_hash_tables_and_blockchain/Hash-Tables/notes/hashtable_notes.py
tobias-fyi/vela
b0b3d3c6dc3fa397c8c7a492098a02cf75e0ff82
[ "MIT" ]
null
null
null
""" Hash tables :: Day 2 notes - Hash tables * Hash tables have an underlying Array structure * This is why they are as hast at accessing elements as arrays * The main difference is that hash tables are indexed using a hash function in an unordered fashion, whereas arrays are indexed via contiguous ordered...
29.465686
86
0.619364
fcfa13ef3b7bc6b3cedf624c79bb50a8ac7162f7
6,700
py
Python
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/testcase/testcase_manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
1
2022-02-15T08:51:55.000Z
2022-02-15T08:51:55.000Z
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/testcase/testcase_manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
hihope_neptune-oh_hid/00_src/v0.1/test/developertest/src/core/testcase/testcase_manager.py
dawmlight/vendor_oh_fun
bc9fb50920f06cd4c27399f60076f5793043c77d
[ "Apache-2.0" ]
null
null
null
#!/usr/bin/env python3 # coding=utf-8 # # Copyright (c) 2020 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0...
39.880952
79
0.582388
1e2e567e6c311d02d9564d5603c1e12d44b13f93
6,927
py
Python
TESTMP.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
4
2019-03-17T19:55:43.000Z
2019-04-30T15:22:36.000Z
TESTMP.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
TESTMP.py
simi48/Ef-If_Jassen
6076839492bff591cf9b457e949999e9167903e6
[ "Apache-2.0" ]
null
null
null
import Jassen as js import multiprocessing #*NOTE Multiprocessing ?usually? does not work in iPython (Spyder). To use MP, run file through Anaconda: navigate to folder and type: `python JassRNN.py` import numpy as np from tqdm import tqdm #using anaconda/pip: pip install tqdm import time def TrainArrayInputRaw(): ...
31.921659
177
0.587412
ec5965775ec949a6a97a50426fd89940ae6ba6e4
409
py
Python
elements/python/6/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
11
2019-02-08T06:54:34.000Z
2021-08-07T18:57:39.000Z
elements/python/6/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
1
2019-05-21T08:14:10.000Z
2019-05-21T08:14:10.000Z
elements/python/6/5/soln.py
mmcloughlin/problems
6095842ffe007a12ec8c2093850515aa4e046616
[ "MIT" ]
null
null
null
import random def remove(a, k): """ Remove all occurances of k from a. """ n = len(a) rd = 0 wr = 0 while rd < n: if a[rd] != k: a[wr] = a[rd] wr += 1 rd += 1 del a[wr:] return wr def main(): a = [random.randrange(3) for _ in range(16)]...
14.103448
48
0.444988
de1192b78b0abf2f5a7d72c102772778cad3942b
1,444
py
Python
python_reference/useful_scripts/multivariate_gaussian_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:16:23.000Z
2019-05-10T09:16:23.000Z
python_reference/useful_scripts/multivariate_gaussian_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
null
null
null
python_reference/useful_scripts/multivariate_gaussian_pdf.py
gopala-kr/ds-notebooks
bc35430ecdd851f2ceab8f2437eec4d77cb59423
[ "MIT" ]
1
2019-05-10T09:17:28.000Z
2019-05-10T09:17:28.000Z
# Sebastian Raschka 04/2014 import numpy as np def pdf_multivariate_gauss(x, mu, cov): ''' Caculate the multivariate normal density (pdf) Keyword arguments: x = numpy array of a "d x 1" sample vector mu = numpy array of a "d x 1" mean vector cov = "numpy array of a d x d" cova...
35.219512
99
0.635734
e70fa67a71c63e8bab129e3e9fc74b7ca874460f
860
py
Python
datasets/dataset_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
datasets/dataset_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
datasets/dataset_factory.py
pgmikhael/MLExperiments
d3613a70e537ea5aaa0453ddaa76938c32637c49
[ "MIT" ]
null
null
null
import torch from torch.utils import data from collections import defaultdict from tqdm import tqdm import pdb import json import time NO_DATASET_ERR = "Dataset {} not in DATASET_REGISTRY! Available datasets are {}" DATASET_REGISTRY = {} def RegisterDataset(dataset_name): """Registers a dataset.""" def deco...
23.243243
85
0.739535
e78c1c8fad66f1072a49a89c8b11292293abeb87
12,929
py
Python
2DNet/src/tuils/loss_function.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/tuils/loss_function.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
2DNet/src/tuils/loss_function.py
BhaveshJP25/RSNA
48d85faf82651b1ae4fdcd829ce2d4978a858d3f
[ "MIT" ]
null
null
null
import torch.nn.functional as F import torch.nn as nn import numpy as np import torch from torch.autograd import Variable class FocalLoss(nn.Module): def __init__(self, gamma=2): super().__init__() self.gamma = gamma def forward(self, logit, target): target = target.float() max...
37.475362
125
0.605925
e7b949dca5686de0620b1fc094293acad13530dc
2,155
py
Python
2020-09-03-1348-gma_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1348-gma_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
2020-09-03-1348-gma_becher.py
gmaubach/OOP-with-Python
9b059e911d55d616e756324564f1f2cc524aa53d
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- """ Created on Wed Sep 3 12:07:10 2020 @author: Georg Maubach Programmieren Sie eine Klasse Becher, die Volumen und Fullmenge des Bechers in Milliliter als Fliesskommazahl speichert. Schreiben Sie einen Konstruktor für Volumen und Fullmenge, setzen Sie fur leere Becher ein Standarda...
27.628205
74
0.584223
6b7ee52a9b0ba60982c3e3dc00fd73814ce573b0
172
py
Python
Pythonjunior2020/Woche3/Aufgabe_3_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
Pythonjunior2020/Woche3/Aufgabe_3_1_3.py
Zeyecx/HPI-Potsdam
ed45ca471cee204dde74dd2c3efae3877ee71036
[ "MIT" ]
null
null
null
# 3.1.3, Woche 3, Block 1, Aufgabe 3 # Dekleration x = 5 y = 3 # Funktionen def berechne_anzahl(x,y): return x+y # Main print(x,"+",y,"=",berechne_anzahl(x,y))
14.333333
39
0.604651
d417a1b2e57cb722bb7ebfdb61f64f0da2453d2e
44
py
Python
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.18-while-loop-a.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.18-while-loop-a.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
Python/Books/Learning-Programming-with-Python.Tamim-Shahriar-Subeen/chapter-006/ph-6.18-while-loop-a.py
shihab4t/Books-Code
b637b6b2ad42e11faf87d29047311160fe3b2490
[ "Unlicense" ]
null
null
null
i = 5 while i >= 0: i -= 1 print(i)
8.8
13
0.386364
99444ce83b2edca35f2f271193cc08cf3438409e
434
py
Python
frappe-bench/apps/erpnext/erpnext/patches/v4_2/fix_account_master_type.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:55:29.000Z
2021-04-29T14:55:29.000Z
frappe-bench/apps/erpnext/erpnext/patches/v4_2/fix_account_master_type.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/patches/v4_2/fix_account_master_type.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2021-04-29T14:39:01.000Z
2021-04-29T14:39:01.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe def execute(): for d in frappe.db.sql("""select name from `tabAccount` where ifnull(master_type, '') not in ('Customer', 'Supplier', '...
33.384615
100
0.709677
5151be3dd172433bd6ecc3696e3319e4fc087376
13,721
py
Python
Integrations/python/deephaven/lang/transformer.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
55
2021-05-11T16:01:59.000Z
2022-03-30T14:30:33.000Z
Integrations/python/deephaven/lang/transformer.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
943
2021-05-10T14:00:02.000Z
2022-03-31T21:28:15.000Z
Integrations/python/deephaven/lang/transformer.py
devinrsmith/deephaven-core
3a6930046faf1cd556f62a914ce1cfd7860147b9
[ "MIT" ]
29
2021-05-10T11:33:16.000Z
2022-03-30T21:01:54.000Z
""" Transforms analyzed nodes into vectorized functions. **The contents of this module are intended only for internal Deephaven use and may change at any time.** """ # When copying "ast we want to generate" from the ast.dump method, you just need to add a from import here, # and then wire the new ast into the correct...
45.134868
121
0.615844
64e91fe6af3bf2fd5664ba882fd519e369964d3a
1,133
py
Python
twitoff/models.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
null
null
null
twitoff/models.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
1
2021-06-02T00:47:17.000Z
2021-06-02T00:47:17.000Z
twitoff/models.py
Pdugovich/TwitOff
9c06677ed763cf5d14fec53a10024126792681c4
[ "MIT" ]
null
null
null
"""These are my database models""" from flask_sqlalchemy import SQLAlchemy #import database, capital for global scope DB = SQLAlchemy() class User(DB.Model): """Twitter users that we analyze""" id = DB.Column(DB.BigInteger, primary_key=True) name = DB.Column(DB.String(15), nullable=False) newest_twee...
34.333333
74
0.676964
64f9d01594b936b1071a45025dfec9e335edc6c9
134
py
Python
benwaonline/auth/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
benwaonline/auth/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
16
2017-09-13T10:21:40.000Z
2020-06-01T04:32:22.000Z
benwaonline/auth/__init__.py
goosechooser/benwaonline
e2879412aa6c3c230d25cd60072445165517b6b6
[ "MIT" ]
null
null
null
from flask import Blueprint authbp = Blueprint('authbp', __name__, template_folder='templates') from benwaonline.auth import views
19.142857
67
0.798507
56daa9ec22c2e108f6e9195b55d2f80b581f8f88
195
py
Python
Chapter2_Python/ForLoop.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
Chapter2_Python/ForLoop.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
Chapter2_Python/ForLoop.py
derfabs/UdemyGAN_Template
1c7d263d22ccf1ba580c71befe71e3bf6e2facb6
[ "MIT" ]
null
null
null
grades = [1, 2, 3, 4] for grade in grades: print(grade) print("") for idx in range(len(grades)): print(grades[idx]) # range (start, stop, step) for i in range(0, 10, 1): print(i)
13.928571
30
0.594872
a48df3b1fb41ce454ea254f01179a859f0a85da6
225
py
Python
Curso-Em-Video-Python/2Exercicios/034-aumentos-multiplos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/034-aumentos-multiplos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
Curso-Em-Video-Python/2Exercicios/034-aumentos-multiplos.py
pedrohd21/Cursos-Feitos
b223aad83867bfa45ad161d133e33c2c200d42bd
[ "MIT" ]
null
null
null
salario = float(input('Digite seu salario: ')) if salario < 1251: print('Seu novo salario é: R${:.2f}'.format(((salario*15)/100)+salario)) else: print('Seu novo salario é: R${:.2f}'.format(((salario*10)/100)+salario))
45
76
0.648889
f16cf1b21b44de7a9c713f226a120f6635b22dbd
947
py
Python
roboraptorz/client/mqttApp/Common.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
roboraptorz/client/mqttApp/Common.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
null
null
null
roboraptorz/client/mqttApp/Common.py
icebear8/roboRinth
c0789a9faf978f31b0ed020d26fee2b04fb298ee
[ "MIT" ]
1
2019-10-22T07:47:51.000Z
2019-10-22T07:47:51.000Z
from enum import Enum class ControlMode(Enum): SCOUTING = 1 NAVIGATING = 2 # Abstracted direction of the robot to be used between RoboDriver and App class RoboDirection(Enum): NORTH = 1 EAST = 2 SOUTH = 3 WEST = 4 class RoboStatus(Enum): IDLE = 1 BUSY = 2 class LineColor(Enum): ...
18.568627
74
0.631468
74db9262b799b88a00077a0cd72199febb4de2cb
790
py
Python
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
226
2018-12-29T01:13:49.000Z
2022-03-30T19:16:31.000Z
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
5,100
2019-01-14T18:19:25.000Z
2022-03-31T23:08:36.000Z
src/test/tests/hybrid/image_proc.py
visit-dav/vis
c08bc6e538ecd7d30ddc6399ec3022b9e062127e
[ "BSD-3-Clause" ]
84
2019-01-24T17:41:50.000Z
2022-03-10T10:01:46.000Z
# ---------------------------------------------------------------------------- # CLASSES: nightly # # Test Case: image_proc.py # # Tests: mesh - Image # plots - Pseudocolor # # Defect ID: '6492 # # Programmer: Hank Childs # Date: August 19, 2005 # # -----------------------------...
23.235294
78
0.563291
7468c01c3366a3c6d4667ad324c20d7b43a3e426
213
py
Python
python/en/_matplotlib/001_plot_a_line3.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/001_plot_a_line3.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
python/en/_matplotlib/001_plot_a_line3.py
aimldl/coding
70ddbfaa454ab92fd072ee8dc614ecc330b34a70
[ "MIT" ]
null
null
null
!#/usr/bin/env python3 # -*- coding: utf-8 -*- import matplotlib.pyplot as plt plt.plot([1, 2, 3, 4, 5],[1, 4, 9, 16, 25], 'ro') plt.plot([1, 2, 3, 4, 5],[1, 4, 9, 16, 25], 'b-') plt.axis([0,6,0,20]) plt.show()
21.3
49
0.530516
746b84e9be646ed249017013be7526aa1ae61890
585
py
Python
src/aijack/collaborative/core/server.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:44.000Z
2022-03-17T21:17:44.000Z
src/aijack/collaborative/core/server.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
null
null
null
src/aijack/collaborative/core/server.py
luoshenseeker/AIJack
4e871a5b3beb4b7c976d38060d6956efcebf880d
[ "MIT" ]
1
2022-03-17T21:17:46.000Z
2022-03-17T21:17:46.000Z
import torch class BaseServer(torch.nn.Module): def __init__(self, clients, server_model, server_id=0): super(BaseServer, self).__init__() self.clients = clients self.server_id = server_id self.server_model = server_model self.num_clients = len(clients) def forward(sel...
20.172414
59
0.615385
56a70ed4345a2803d03662f770048ab6ba334c81
4,904
py
Python
agspiel/api/historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2021-03-09T21:37:41.000Z
2021-03-09T21:37:41.000Z
agspiel/api/historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
4
2020-11-13T19:34:58.000Z
2021-07-24T16:25:27.000Z
agspiel/api/historic_ag.py
KingKevin23/agspiel-python-api
33e74ff6bee2f9ce353da757bdb99e929acc1a13
[ "MIT" ]
1
2020-08-24T14:38:18.000Z
2020-08-24T14:38:18.000Z
# Copyright (c) 2021 | KingKevin23 (@kingkevin023) from datetime import datetime, date class HistorischeAg: # Currently not included stats: # UserID, IndexID, Premiumstatus, Übernahmeschutz, AGSXDurchschnittsplatzierung, Wachstumsdurchschnittsplatz def __init__(self, wkn:int, datum:date, api_data:dict)...
20.779661
135
0.595432
d913fc72e63b202357f269be295f2484bba080e8
393
py
Python
source-code/Pseudocode/Horner-Schema/basiswechsel.py
keithmannock/LaTeX-examples
6829f6cf9710b314a4bf0b64abdae5bcf6997fd0
[ "MIT" ]
2
2017-11-02T10:09:12.000Z
2017-11-24T22:16:18.000Z
source-code/Pseudocode/Horner-Schema/basiswechsel.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
source-code/Pseudocode/Horner-Schema/basiswechsel.py
everbot/LaTeX-examples
9558d8b3c19776cb068b9753dcd3f88645dd7134
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- def string(zahl): if zahl <= 9: return str(zahl) else: return chr(55+zahl) def horner(b, Z): ergebnis = '' while Z > 0: rest = Z % b ergebnis = string(rest) + ergebnis Z = (Z - rest)/b return ergebnis if __name_...
18.714286
42
0.516539
79a1e0b044d0039c92ce99c0728cda97b702eb7e
1,165
py
Python
TUMAGA/main.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2017-12-12T13:58:08.000Z
2017-12-12T13:58:08.000Z
TUMAGA/main.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
null
null
null
TUMAGA/main.py
wittrup/crap
a77474588fd54a5a998e24df7b1e6e2ab473ded1
[ "MIT" ]
1
2019-11-03T10:16:35.000Z
2019-11-03T10:16:35.000Z
import turtle from amazon import Boa from keysclass import Keys import configparser screensizemin = min(turtle.screensize()) zero = {'left': screensizemin * -1} zero['right'] = screensizemin zero['top'] = screensizemin zero['bottom'] = screensizemin * -1 def setcmd1(): keys.settargetboa(a) def setcmd2(): keys...
23.3
43
0.641202
8dc986d45d3c4a99ce124108c2b3a8a107296b78
1,336
py
Python
nz_crawl_demo/day2/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
null
null
null
nz_crawl_demo/day2/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
27
2020-02-12T07:55:58.000Z
2022-03-12T00:19:09.000Z
nz_crawl_demo/day2/demo1.py
gaohj/nzflask_bbs
36a94c380b78241ed5d1e07edab9618c3e8d477b
[ "Apache-2.0" ]
2
2020-02-18T01:54:55.000Z
2020-02-21T11:36:28.000Z
from urllib import request import re headers = { "User-Agent":"Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; en) Presto/2.8.131 Version/11.11", } url = "https://search.51job.com/list/180200%252C190200%252C020000%252C040000%252C080200,000000,0000,00,9,99,python,2,1.html?lang=c&stype=&postchannel=0000&workyear=99...
30.363636
349
0.693862
5c4492dc31d656a3c101962d77f453fe81d04630
1,115
py
Python
quant/api/coinegg.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
7
2017-10-22T15:00:09.000Z
2019-09-19T11:45:43.000Z
quant/api/coinegg.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
1
2018-01-19T16:19:40.000Z
2018-01-19T16:19:40.000Z
quant/api/coinegg.py
doubleDragon/QuantBot
53a1d6c62ecece47bf777da0c0754430b706b7fd
[ "MIT" ]
5
2017-12-11T15:10:29.000Z
2018-12-21T17:40:58.000Z
import requests class PublicClient(object): """ https://www.coinegg.com/explain.api.html#three-one """ def __init__(self): self.public_url = "https://www.coinegg.com/api/v1" def url_for(self, path): url = "%s/%s" % (self.public_url, path) return url @classmethod ...
25.930233
66
0.545291
eb9d959974ab26386fe27ea7eb2ceb93231d487c
540
py
Python
hardware/chip/rtl872xd/prepend_header.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
hardware/chip/rtl872xd/prepend_header.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
hardware/chip/rtl872xd/prepend_header.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# Date : 2019/03/08 # Author : Snow Yang # Mail : yangsw@mxchip.com import re import os import sys from struct import pack image_file = sys.argv[1] section_start_name = sys.argv[2] symbol_list_file = sys.argv[3] size = os.path.getsize(image_file) addr = int('0x'+re.search(r"\n(\w+) (\w+) "+section_start_name,...
28.421053
108
0.672222
ba6ac10207e6c68d35ab30fd594da3827a6f60ff
384
py
Python
SurveyManager/survey/migrations/0005_pregunta_numero.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0005_pregunta_numero.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
SurveyManager/survey/migrations/0005_pregunta_numero.py
javiervar/SurveyManager
bbe2ed356654c32586c587f58c609c8ce014e96b
[ "MIT" ]
null
null
null
# Generated by Django 2.1.2 on 2018-11-26 08:26 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('survey', '0004_auto_20181126_0658'), ] operations = [ migrations.AddField( model_name='pregunta', name='numero', ...
20.210526
49
0.596354
ba90714e07a4adc75b094dd26e20d64a5b0d4f86
1,859
py
Python
src/data_science/data_science/tools/transformations.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/tools/transformations.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
src/data_science/data_science/tools/transformations.py
viclule/api_models_deployment_framework
7595cf0b4f3e277925b968014102d7561547bcd4
[ "MIT" ]
null
null
null
import datetime def iso_to_datetime(isotime): """ Transform isotime to datetime. :param isotime: isotime """ if len(isotime) == 24: time = datetime.datetime.strptime(isotime.replace('Z', ''), '%Y-%m-%dT%H:%M:%S.%f') elif len(isotime) == 20:...
28.166667
77
0.601399
baa36177e01c3096f6eb69662a7cd460576ceaaf
4,548
py
Python
research/cv/dem/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
77
2021-10-15T08:32:37.000Z
2022-03-30T13:09:11.000Z
research/cv/dem/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
3
2021-10-30T14:44:57.000Z
2022-02-14T06:57:57.000Z
research/cv/dem/src/dataset.py
leelige/mindspore
5199e05ba3888963473f2b07da3f7bca5b9ef6dc
[ "Apache-2.0" ]
24
2021-10-15T08:32:45.000Z
2022-03-24T18:45:20.000Z
# Copyright 2021 Huawei Technologies Co., Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to...
36.095238
93
0.682718
2408fb913efbf2fb8707268169ccd9669d2c099c
1,018
py
Python
app/models/files.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/files.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
app/models/files.py
zhiyong-lv/flask-login
d8bf0719bae19ba8f7f44ea6d6a8ca65ba22aa63
[ "MIT" ]
null
null
null
import datetime from sqlalchemy.dialects.mysql import TINYINT, BIGINT, INTEGER from app import db class File(db.Model): uuid = db.Column(db.String(50), primary_key=True, nullable=False) file_name = db.Column(db.String(200), nullable=False) file_size = db.Column(BIGINT(unsigned=True), nullable=False) ...
39.153846
108
0.722004
3046e5058b2ab4cb5c783655b096df1abc5ce7c2
3,117
py
Python
engine/Answer.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Answer.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
engine/Answer.py
StefanSchmelz/whoGetsTheMillion
99a42b6a2e99def4faa05787b4869387d7827f86
[ "MIT" ]
null
null
null
""" <CF> "<TEXT>" TEXT => Text of the answer CF => correct or fifty/fifty C | F -------|---- 0 -> f | f 1 -> t | t 2 -> f | t 3 -> t | f Example: "How are you?" 1 "fine" 0 "miserable" 2 "okay" ...
32.134021
95
0.448829
307aaf463d8a6eac2849fdda2c44c402312003a7
1,443
py
Python
solutions/py_engine_demo/cp_solutions_res.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
4,538
2017-10-20T05:19:03.000Z
2022-03-30T02:29:30.000Z
solutions/py_engine_demo/cp_solutions_res.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,088
2017-10-21T07:57:22.000Z
2022-03-31T08:15:49.000Z
solutions/py_engine_demo/cp_solutions_res.py
wstong999/AliOS-Things
6554769cb5b797e28a30a4aa89b3f4cb2ef2f5d9
[ "Apache-2.0" ]
1,860
2017-10-20T05:22:35.000Z
2022-03-27T10:54:14.000Z
# coding=utf-8 import shutil import os import sys import stat import datetime import subprocess from datetime import datetime def copy_resources_objs(script_in, build_params_in): build_params = open(build_params_in) data = build_params.read() data_prebuild_dir='' if 'ALI_AOS_HAAS_EDU_K1' in data: # ...
28.86
99
0.686071
06806486c7275c8038b0cb55e17b145b6d5695f3
3,488
py
Python
yolov5-coreml-tflite-converter/tflite/convert.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/convert.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
yolov5-coreml-tflite-converter/tflite/convert.py
SchweizerischeBundesbahnen/sbb-ml-models
485356aeb0a277907c160d435f7f654154046a70
[ "MIT" ]
null
null
null
import argparse from constants import DEFAULT_MODEL_OUTPUT_DIR, DEFAULT_TFLITE_NAME, DEFAULT_INPUT_RESOLUTION, \ DEFAULT_QUANTIZATION_TYPE, DEFAULT_SOURCE_DATASET, \ DEFAULT_NB_CALIBRATION, DEFAULT_MAX_NUMBER_DETECTION, DEFAULT_IOU_THRESHOLD, DEFAULT_CONF_THRESHOLD, SIMPLE, PADDED, \ COMBINED, BAHNHOF, WAG...
59.118644
234
0.680333
06a984caf2abd237e2669a04901572ce21f749e1
1,352
py
Python
Theories/DataStructures/Graph/TopologicalSort/Medium/CourseScheduleII/course_schedule.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/DataStructures/Graph/TopologicalSort/Medium/CourseScheduleII/course_schedule.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
Theories/DataStructures/Graph/TopologicalSort/Medium/CourseScheduleII/course_schedule.py
dolong2110/Algorithm-By-Problems-Python
31ecc7367aaabdd2b0ac0af7f63ca5796d70c730
[ "MIT" ]
null
null
null
from collections import defaultdict, deque from typing import List # BFS # TC: O(V+E); SC: O(V+E) def findOrder(self, numCourses: int, prerequisites: List[List[int]]) -> List[int]: G, indegree, q, ans = defaultdict(list), [0 for _ in range(numCourses)], deque(), [] for nxt, pre in prerequisites: G[pre...
28.765957
88
0.563609
0007491748f09ee3cc8c575387ee545de30ecb32
368
py
Python
Competitions/Week of Code 34/Once in a Tram/tram.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
1
2021-02-22T17:37:45.000Z
2021-02-22T17:37:45.000Z
Competitions/Week of Code 34/Once in a Tram/tram.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
Competitions/Week of Code 34/Once in a Tram/tram.py
xuedong/hacker-rank
ce8a60f80c2c6935b427f9409d7e826ee0d26a89
[ "MIT" ]
null
null
null
#!/bin/python3 import sys def isLucky(n): myStr = str(n) arr = [int(arr_i) for arr_i in list(myStr)] return (arr[0] + arr[1] + arr[2] == arr[3] + arr[4] + arr[5]) def onceInATram(x): i = x+1 while not isLucky(i): i += 1 return i if __name__ == "__main__": x = int(input().strip()...
17.52381
65
0.55163
cc47ad924e65ebc1fddff721105d517e398a2797
3,373
py
Python
frappe-bench/apps/erpnext/erpnext/stock/report/itemwise_recommended_reorder_level/itemwise_recommended_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/report/itemwise_recommended_reorder_level/itemwise_recommended_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/stock/report/itemwise_recommended_reorder_level/itemwise_recommended_reorder_level.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
1
2022-03-17T22:49:40.000Z
2022-03-17T22:49:40.000Z
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import frappe from frappe import _ from frappe.utils import getdate, flt def execute(filters=None): if not filters: filters = {} float_preceision = f...
37.065934
109
0.729321
9dd9077f7c90692314d72e666b258e0be84b32fc
1,523
py
Python
day14/higher_lower.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day14/higher_lower.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
day14/higher_lower.py
nurmatthias/100DaysOfCode
22002e4b31d13e6b52e6b9222d2e91c2070c5744
[ "Apache-2.0" ]
null
null
null
import random from higher_lower_art import logo, vs from higher_lower_data import data from higher_lower_fnc import clear_screen def get_random_account(): return random.choice(data) def format_data(account): name = account["name"] description = account["description"] country = account["country"] return f...
23.430769
79
0.633618
ae441c943f5bf0dd3887738b930ad50372ab8177
453
py
Python
imgtl/template.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
imgtl/template.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
imgtl/template.py
reviforks/imgtl
b2141f9f0d7f2d318661f6ff6ab9594cff5b80f3
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf-8 -*- import re from jinja2 import evalcontextfilter, Markup, escape RE_NL2BR = re.compile(r'(\r)?\n', re.UNICODE | re.MULTILINE) @evalcontextfilter def jinja2_filter_nl2br(eval_ctx, value): res = RE_NL2BR.sub('<br>\n', unicode(escape(value))) if eval_ctx.autoescape: ...
23.842105
60
0.677704
4e5d4c351329221327f4d2610e6973d211ff96c7
383
py
Python
projects/Automation/scan_pigpio.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
projects/Automation/scan_pigpio.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
projects/Automation/scan_pigpio.py
DockerComposeFiles/ARM
b0faddb525ad134ff8c589c370d8e61ab030c216
[ "MIT" ]
null
null
null
#!/usr/bin/env python import pigpio pigpio.exceptions = False # Fehlerbehandlung pi = pigpio.pi() for bus in range(2): for x in range(0x08, 0x79): h = pi.i2c_open(bus, x) if h >= 0: s = pi.i2c_read_byte(h) if s >= 0: print("device {} found on bus {}".form...
20.157895
77
0.535248
6da741383b28eb3db16637fb95cd1bc3b5f8cee4
6,581
py
Python
skripte/python/edit_tools/test_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/test_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
skripte/python/edit_tools/test_teilwoerter.py
hyphenation/languages-german
4330a0b1254e88615cb4c83e4b3dc2f0810c76d9
[ "MIT" ]
null
null
null
#!/usr/bin/env python # -*- coding: utf8 -*- # :Copyright: © 2012 Günter Milde. # :Licence: This work may be distributed and/or modified under # the conditions of the `LaTeX Project Public License`, # either version 1.3 of this license or (at your option) # any later version. # :V...
28.244635
86
0.62179
097ae02c096dcfa08c81a9b271e3cfeb6fd6f732
419
py
Python
pacman-arch/test/pacman/tests/upgrade083.py
Maxython/pacman-for-termux
3b208eb9274cbfc7a27fca673ea8a58f09ebad47
[ "MIT" ]
23
2021-05-21T19:11:06.000Z
2022-03-31T18:14:20.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade083.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
11
2021-05-21T12:08:44.000Z
2021-12-21T08:30:08.000Z
source/pacman-6.0.1/test/pacman/tests/upgrade083.py
Scottx86-64/dotfiles-1
51004b1e2b032664cce6b553d2052757c286087d
[ "Unlicense" ]
1
2021-09-26T08:44:40.000Z
2021-09-26T08:44:40.000Z
self.description = "Install a package (wrong architecture, auto)" import os machine = os.uname()[4] p = pmpkg("dummy") p.files = ["bin/dummy", "usr/man/man1/dummy.1"] p.arch = machine + 'wrong' self.addpkg(p) self.option["Architecture"] = ['auto'] self.args = "-U %s" % p.filename() self.addrule("PACMAN_...
20.95
65
0.653938
115629de4501e51006ce1fc68a3f6b3fe506c850
8,775
py
Python
Mscan/xsearch.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
4
2021-04-23T15:39:17.000Z
2021-12-27T22:53:24.000Z
xsearch/xsearch.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
null
null
null
xsearch/xsearch.py
Unam3dd/Train-2018-2020
afb6ae70fe338cbe55a21b74648d91996b818fa2
[ "MIT" ]
2
2021-04-19T08:28:54.000Z
2022-01-19T13:23:29.000Z
#!/usr/bin/python2 #-*- coding:utf-8 -*- import platform import os import sys import json import time try: from datetime import datetime except ImportError: print("\033[32m[\033[31m!\033[32m] Datetime Not Found ! Please Install Datetime") try: import requests except ImportError: print("\033[32m[\033[...
42.1875
126
0.523761
feddb675915ddbf3e6c704949b151bea82439cca
1,236
py
Python
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/bridge.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/bridge.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
null
null
null
2-resources/_External-learning-resources/02-pyth/python-patterns-master/patterns/structural/bridge.py
eengineergz/Lambda
1fe511f7ef550aed998b75c18a432abf6ab41c5f
[ "MIT" ]
1
2021-11-05T07:48:26.000Z
2021-11-05T07:48:26.000Z
""" *References: http://en.wikibooks.org/wiki/Computer_Science_Design_Patterns/Bridge_Pattern#Python *TL;DR Decouples an abstraction from its implementation. """ # ConcreteImplementor 1/2 class DrawingAPI1: def draw_circle(self, x, y, radius): print(f"API1.circle at {x}:{y} radius {radius}") # Concrete...
22.472727
92
0.639159
c94f7bded52e1336a1db4a07c276bc9c7ad4be5e
2,999
py
Python
latex-template/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2019-11-27T07:01:08.000Z
2019-11-27T07:01:08.000Z
latex-template/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
null
null
null
latex-template/plots/plot.py
Ninilini/FP-Bachelor
0ca4d45efb211278793d1667731b09d35cfc94aa
[ "MIT" ]
1
2022-02-20T09:24:16.000Z
2022-02-20T09:24:16.000Z
# coding=utf-8 import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt from scipy.optimize import curve_fit import uncertainties.unumpy as unp from uncertainties import ufloat import sympy from uncertainties import correlated_values, correlation_matrix import scipy.integrate as int from uncertaintie...
31.904255
354
0.597866
c97a2d046252861638dc05bc23db3a183605c9f3
598
py
Python
lib/python/qmk/cli/json/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/json/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
lib/python/qmk/cli/json/keymap.py
fzf/qmk_toolbox
10d6b425bd24b45002555022baf16fb11254118b
[ "MIT" ]
null
null
null
"""Generate a keymap.c from a configurator export. """ from pathlib import Path from milc import cli @cli.argument('-o', '--output', arg_only=True, type=Path, help='File to write to') @cli.argument('-q', '--quiet', arg_only=True, action='store_true', help="Quiet mode, only output error messages") @cli.argument('file...
35.176471
113
0.700669
6edf3602660a8fcdfbef65d02d9e3b3319e602ef
483
py
Python
pvs_suban/migrations/0014_alter_contact_email.py
hackit90/django-invoices
770d5cffe7831539b885c517b0a435cc764e0a8c
[ "MIT" ]
null
null
null
pvs_suban/migrations/0014_alter_contact_email.py
hackit90/django-invoices
770d5cffe7831539b885c517b0a435cc764e0a8c
[ "MIT" ]
null
null
null
pvs_suban/migrations/0014_alter_contact_email.py
hackit90/django-invoices
770d5cffe7831539b885c517b0a435cc764e0a8c
[ "MIT" ]
null
null
null
# Generated by Django 3.2.4 on 2021-06-23 13:34 import django.core.validators from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('pvs_suban', '0013_alter_invoiceposition_invoice'), ] operations = [ migrations.AlterField( model_n...
24.15
104
0.654244
28758efd5ced0193c046960be2b24255114a850b
2,551
py
Python
skil/resources/credentials.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
23
2018-09-19T13:34:27.000Z
2022-02-14T09:49:35.000Z
skil/resources/credentials.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
33
2018-10-18T07:58:05.000Z
2019-05-16T08:24:12.000Z
skil/resources/credentials.py
pcrete/skil-python
672a1aa9e8af020c960ab9ee280cbb6b194afc3f
[ "Apache-2.0" ]
11
2018-10-21T18:58:57.000Z
2022-02-14T09:49:36.000Z
from skil_client import AddCredentialsRequest import skil_client class Credentials(object): """Credentials SKIL resource credentials manage cloud provider and other credentials for you. Currently supported credentials are AWS, Azure, GoogleCloud and Hadoop # Arguments: skil: `Skil` server in...
32.291139
104
0.649941
6c2058e0bfa1d36a3e18b27c8aab4304fb8132e5
4,170
py
Python
table.py
Scauting-Burgum/ScautDB
d848671aff29a14b458966820dbb8275cd2c3154
[ "MIT" ]
null
null
null
table.py
Scauting-Burgum/ScautDB
d848671aff29a14b458966820dbb8275cd2c3154
[ "MIT" ]
null
null
null
table.py
Scauting-Burgum/ScautDB
d848671aff29a14b458966820dbb8275cd2c3154
[ "MIT" ]
null
null
null
class Table: def __init__(self, database, name): from database import Database if not isinstance(database, Database): raise TypeError('the \"database\" argument is not an instance of ScautDB.Database') elif not isinstance(name, str): raise TypeError('the \"name\" argument is not a string') sel...
32.578125
131
0.688249
06cf1acaae562d8658bb9093624529ae2c6b1e85
732
py
Python
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_leave_approver/employee_leave_approver.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_leave_approver/employee_leave_approver.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
frappe-bench/apps/erpnext/erpnext/hr/doctype/employee_leave_approver/employee_leave_approver.py
Semicheche/foa_frappe_docker
a186b65d5e807dd4caf049e8aeb3620a799c1225
[ "MIT" ]
null
null
null
# Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt # For license information, please see license.txt from __future__ import unicode_literals import frappe from frappe.model.document import Document class EmployeeLeaveApprover(Document): pa...
29.28
79
0.765027
6619dad5ab025c5399872eec6c997b42dae7d7aa
402
py
Python
code/01_phenotype_engineering/CCU013_03_test_data_integrity.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/01_phenotype_engineering/CCU013_03_test_data_integrity.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
code/01_phenotype_engineering/CCU013_03_test_data_integrity.py
BHFDSC/CCU013_01_ENG-COVID-19_event_phenotyping
83afef23f96c7b31fef64c6f735737d1afa3082d
[ "Apache-2.0" ]
null
null
null
# Databricks notebook source df = spark.table('dars_nic_391419_j3w9t_collab.ccu013_covid_events') if df.count() > df.dropDuplicates(['person_id_deid']).count(): raise ValueError('Data has duplicates') df.exceptAll(df.dropDuplicates(['person_id_deid'])).show() else: print("No duplicate ids detected") # COM...
26.8
68
0.721393
b0b67bec9fb3e4bf50da753d2def019c9705c836
906
py
Python
sketches/cuteplanet05/spaceship.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
4
2018-06-03T02:11:46.000Z
2021-08-18T19:55:15.000Z
sketches/cuteplanet05/spaceship.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
null
null
null
sketches/cuteplanet05/spaceship.py
kantel/processingpy
74aae222e46f68d1c8f06307aaede3cdae65c8ec
[ "MIT" ]
3
2019-12-23T19:12:51.000Z
2021-04-30T14:00:31.000Z
class Spaceship(): def __init__(self, pic, posX, posY): self.pic = pic self.x = posX self.y = posY self.dx = 0 self.dy = 0 def loadPic(self): self.img = loadImage(self.pic) def move(self): self.x += self.dx if self.x >= width...
23.842105
40
0.443709
b0e8a573f1f8837f8463d014d974e0b12ced2b30
457
py
Python
__init__.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
15
2018-05-16T02:39:01.000Z
2021-05-22T13:12:55.000Z
__init__.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
null
null
null
__init__.py
pchaos/wanggejiaoyi
60242d465bf10d4be46ee6eafc99557affc2a52e
[ "MIT" ]
9
2018-05-16T00:47:34.000Z
2021-11-26T05:39:48.000Z
# -*- coding: utf-8 -*- """ ------------------------------------------------- @File: __init__ Description : @Author : pchaos @Time: 2018-4-1 ------------------------------------------------- Change Activity: 18-4-1: @Contact : p19992003#gmail.com --------------------...
25.388889
49
0.367615
b00a1e5ae1ea89adc451515c33e13b4e7db9a3b1
527
py
Python
WiSe-2122/Wiederholung/Gruppe-B/for-Schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
1
2022-03-23T09:40:39.000Z
2022-03-23T09:40:39.000Z
WiSe-2122/Wiederholung/Gruppe-B/for-Schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
WiSe-2122/Wiederholung/Gruppe-B/for-Schleifen.py
jonasrdt/Wirtschaftsinformatik2
30d5d896808b98664c55cb6fbb3b30a7f1904d9f
[ "MIT" ]
null
null
null
vornamen = [["Julia", "Birkemeyer", "Kiel", "25"], ["Mark", "Hubrich", "Hamburg", "22"], ["Anna-Lena", "Hagemann", "Lübeck", "26"], ["Thorben", "Walter", "Schleswig", "21"]] for name in range(len(vornamen)): print("Der Vorname lautet: \t", vornamen[name][0], "\nDer Nachname la...
40.538462
102
0.573055
594bd96c5d7e624c7279ea41c0c6904512bc35cc
424
py
Python
backend/songwriter/migrations/0014_auto_20171118_2019.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
backend/songwriter/migrations/0014_auto_20171118_2019.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
12
2017-09-25T20:13:29.000Z
2020-02-12T00:12:41.000Z
backend/songwriter/migrations/0014_auto_20171118_2019.py
giliam/turbo-songwriter
3d100b08dc19c60d7a1324120e06bd9f971eea5a
[ "MIT" ]
null
null
null
# -*- coding: utf-8 -*- # Generated by Django 1.11.1 on 2017-11-18 19:19 from __future__ import unicode_literals from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('songwriter', '0013_songsgroup'), ] operations = [ migrations.RenameField( ...
20.190476
48
0.601415
a71fa8b32a0e7de6b376aa19fb84991f97417cb3
2,980
py
Python
bolt/utils/logs.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
9
2019-02-17T06:33:14.000Z
2021-10-05T02:19:00.000Z
bolt/utils/logs.py
ns-phennessy/Bolt
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
28
2019-02-10T07:48:05.000Z
2021-12-20T00:15:37.000Z
bolt/utils/logs.py
ph7vc/CL4M-B0T
e992cf63b1215ea7c241cab94edc251653dbaed7
[ "MIT" ]
4
2015-03-13T03:58:55.000Z
2015-05-27T08:29:46.000Z
""" Description: FILL ME OUT Contributors: - Patrick Hennessy """ from bolt.core.exceptions import InvalidConfigurationError from copy import copy from logging import Formatter import logging import os import sys def setup_logger(config): level, log_dir = get_logging_configuation(config)...
29.50495
106
0.659396
59c29bbe0c67cec491355c58d09a45d7d325912a
48,787
py
Python
MyXSS.py
hakimkt/SAIVS
c310bd7c9426f0d21efeea8866cf6b881b7e8530
[ "Apache-2.0" ]
40
2018-10-29T02:29:13.000Z
2021-11-23T13:14:50.000Z
MyXSS.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
1
2021-02-23T12:27:28.000Z
2021-02-23T12:27:28.000Z
MyXSS.py
5l1v3r1/SAIVS
aa62451665b6398ba329d68592bf4313be60a886
[ "Apache-2.0" ]
29
2018-10-29T02:29:17.000Z
2022-03-17T06:31:35.000Z
# -*- coding: utf-8 -*- from __future__ import print_function from keras.models import Sequential from keras.layers import Dense, Activation, Dropout from keras.layers import LSTM from keras.models import model_from_json from MyAgent import Agent from MyDecision import Decision from MyEnvironment import Environ...
47.643555
128
0.4798
abf002cd35e6cc3e2773fef1966394f5470e6acb
211
py
Python
Cracking_the_Coding_Interview/bit_manipulation_lonely_integer.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/bit_manipulation_lonely_integer.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Cracking_the_Coding_Interview/bit_manipulation_lonely_integer.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 from collections import Counter n = int(input().strip()) cnt = Counter(list(map(int, input().strip().split(' ')))) for k, v in cnt.items(): if v == 1: print(k) break
19.181818
57
0.582938
c6ff68fed3ee5c16cab1b0f5d320fe02a2c0e16b
3,961
py
Python
orchestrator/agent.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
null
null
null
orchestrator/agent.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
null
null
null
orchestrator/agent.py
suvambasak/fog-service-orchestration
8404484c32b2f6c0bfb2ed820dc46d56f055141d
[ "Apache-2.0" ]
1
2022-02-02T14:49:40.000Z
2022-02-02T14:49:40.000Z
import asyncio import websockets import json import shlex import os import time from printer import ColorPrint from command_executor import CommandExecutor from tosca_processor import TOSCAProcessor async def template_builder(url: str): "TOSCA Service Template creator" printer = ColorPrint() tosca = TOSC...
27.506944
87
0.561474
759b6e4070f7697a4ca2317860ff0c7166874573
2,216
py
Python
Algorithms/Implementation/append_and_delete.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/append_and_delete.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
Algorithms/Implementation/append_and_delete.py
byung-u/HackerRank
4c02fefff7002b3af774b99ebf8d40f149f9d163
[ "MIT" ]
null
null
null
#!/usr/bin/env python3 def simple_solution(s, len_s, t, len_t, k): common_len = 0 for i in range(min(len_s, len_t)): if s[i] == t[i]: common_len += 1 else: break if (len_s + len_t - 2 * common_len) > k: # case 1 print('No') elif (len_s + len_t - 2 * com...
24.351648
69
0.433664
9b9c8f48920a80d8d0a541e59e45b92a0cb2c2ba
53
py
Python
volley/logging.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
8
2022-02-24T14:59:24.000Z
2022-03-31T04:37:55.000Z
volley/logging.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
3
2022-02-27T17:08:52.000Z
2022-03-18T13:11:01.000Z
volley/logging.py
shipt/py-volley
0114651478c8df7304d3fe3cb9f72998901bb3fe
[ "MIT" ]
2
2022-02-24T15:03:07.000Z
2022-03-15T03:12:00.000Z
import logging logger = logging.getLogger("volley")
13.25
36
0.773585