blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
616
content_id
stringlengths
40
40
detected_licenses
listlengths
0
69
license_type
stringclasses
2 values
repo_name
stringlengths
5
118
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
63
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
2.91k
686M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
23 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
213 values
src_encoding
stringclasses
30 values
language
stringclasses
1 value
is_vendor
bool
2 classes
is_generated
bool
2 classes
length_bytes
int64
2
10.3M
extension
stringclasses
246 values
content
stringlengths
2
10.3M
authors
listlengths
1
1
author_id
stringlengths
0
212
e2ded373e1f8f469c36f864985b1007db0cdfbeb
d314e9f320fbb4c31980efb4292be31c931e8714
/harness/determined/ipc.py
7cb033aae53e61954b12af5b5a38bd4ab572ec75
[ "Apache-2.0" ]
permissive
takabayashi/determined
34919124882db2f31eb230645b249d30ff352c96
820c7250d8fdc6abba83c106f36eede6fc9f5f3a
refs/heads/master
2022-05-29T15:07:55.989815
2020-04-29T16:39:53
2020-04-29T17:26:54
260,006,201
1
0
Apache-2.0
2020-04-29T18:15:30
2020-04-29T18:15:29
null
UTF-8
Python
false
false
13,233
py
import logging import time from typing import Any, Callable, Dict, List, Optional, Tuple, cast import zmq from zmq.error import ZMQBindError, ZMQError from determined_common import check class _OneSidedBarrier: """ _OneSidedBarrier is a message from participants (usually workers) to a single process (usuall...
[ "hello@determined.ai" ]
hello@determined.ai
622595217199714974e8967515ca307ed7900e52
b1bf615bfa1ee2065e3adfe90310814c3b27c61d
/2020-12-24/make-sum-divisible-by-p.py
829b242c230d12f5a764d05f10434507131476dd
[]
no_license
Huajiecheng/leetcode
73b09a88e61ea3b16ca3bf440fadd1470652ccf2
4becf814a2a06611ee909ec700380ab83ac8ab99
refs/heads/main
2023-03-19T21:54:20.952909
2021-03-06T03:34:52
2021-03-06T03:34:52
320,959,720
0
0
null
null
null
null
UTF-8
Python
false
false
579
py
class Solution: def minSubarray(self, nums: List[int], p: int) -> int: total = sum(nums)%p if total == 0: return 0 pref = {0:-1} result = len(nums) temp = 0 for i in range(len(nums)): temp = (temp + nums[i])%p if (temp - t...
[ "chenghuajie1998@gmail.com" ]
chenghuajie1998@gmail.com
4a4297cf16a767efcc9ea61ef9ea5aa97d08900e
9af167954df1b7f2dda03647403ec10f45ab73c1
/example_classification.py
b8dd9b24b1a9e73ebc6b75a3031b71c58867c656
[]
no_license
alexanderdz27/NeuralGenetic
7659cdda5fbdc6257a601cc9da0ea116c89e390c
82e73d92dc1a32ad17f982cfa8230d6eb4d17321
refs/heads/master
2023-06-05T05:40:45.660055
2021-06-18T03:33:16
2021-06-18T03:33:16
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,479
py
import numpy import pygad import pygad.nn import pygad.gann def fitness_func(solution, sol_idx): global GANN_instance, data_inputs, data_outputs predictions = pygad.nn.predict(last_layer=GANN_instance.population_networks[sol_idx], data_inputs=data_inputs) corre...
[ "noreply@github.com" ]
alexanderdz27.noreply@github.com
4e84132f9e9c8d0f91a156d0d1a7a5ec7f69aa1d
d013ace4b5c22895b837d0db42a4059497499430
/ch10/ex03_zip.py
a0d73bc94b1606c9d36712bf227534118d16091a
[]
no_license
jeonghaejun/01.python
b83fd317d353dc71a1ac27964e49f694f042ce49
770e79391b257b38246e7e912db29e5adf965208
refs/heads/master
2023-02-25T13:45:29.310438
2021-01-31T10:57:21
2021-01-31T10:57:21
328,698,070
0
0
null
null
null
null
UTF-8
Python
false
false
850
py
info = """ 고길동 홍길동 둘리 도우너 30 40 50 60 70 90 60 56 78 80 100 20 90 100 30 40 50 60""" info_lines = info.splitlines() students = info_lines[0].split() # key파트 scores = info_lines[1:] print(scores) # scores = [line.split() for line in scores] # value파트 # print(scores) # result = dict(zip(students, scores)) # print(...
[ "wjdgownsll@gmail.com" ]
wjdgownsll@gmail.com
8f76bfa8589646fd35727b1844481d3e8b72db0a
aa7c04dfce69ebb57049b79c2bca07909037bf21
/manage.py
fd65ea474f6097185f90cdf09d20c5e7365b4694
[]
no_license
bricedurand/imagotv
68586456c86002ef148ac3b40dded9df5d604c5f
77afa9fb1d1a2de8580503df476d283f992c8d29
refs/heads/master
2022-12-11T18:03:15.910907
2019-10-09T14:30:00
2019-10-09T14:30:00
247,509,990
0
0
null
2022-12-08T07:25:28
2020-03-15T16:54:47
Python
UTF-8
Python
false
false
627
py
#!/usr/bin/env python """Django's command-line utility for administrative tasks.""" import os import sys def main(): os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'imagotv.settings') try: from django.core.management import execute_from_command_line except ImportError as exc: raise Import...
[ "brice.durand2@gmail.com" ]
brice.durand2@gmail.com
e839a3146f26510aa1e0238cb2c25c17901e88ef
50008b3b7fb7e14f793e92f5b27bf302112a3cb4
/recipes/Python/577680_Multithreaded_Mandelbrot_Fractal/recipe-577680.py
cadeff717c7ba504886676411207393bf73ca6fb
[ "MIT" ]
permissive
betty29/code-1
db56807e19ac9cfe711b41d475a322c168cfdca6
d097ca0ad6a6aee2180d32dce6a3322621f655fd
refs/heads/master
2023-03-14T08:15:47.492844
2021-02-24T15:39:59
2021-02-24T15:39:59
341,878,663
0
0
MIT
2021-02-24T15:40:00
2021-02-24T11:31:15
Python
UTF-8
Python
false
false
1,749
py
# Multi-threaded Mandelbrot Fractal (Do not run using IDLE!) # FB - 201104306 import threading from PIL import Image w = 512 # image width h = 512 # image height image = Image.new("RGB", (w, h)) wh = w * h maxIt = 256 # max number of iterations allowed # drawing region (xa < xb & ya < yb) xa = -2.0 xb = 1.0 ya = -1.5 y...
[ "betty@qburst.com" ]
betty@qburst.com
3d620860ad59574efaeb995c21fa074d91cd3f78
14b48383d46e3acc3c10318d199a7c2855c53c69
/diagnose/query_table.py
d8ddbbf1068a0649f85b080ea88667c686780aa9
[]
no_license
zhongyu211/diagnose
afb2ab68df5be0ede4c63229e6b363d8f9a6f245
8b0565364a959ea9469e0fcd0de5bffe40640c08
refs/heads/master
2021-01-23T12:17:56.948637
2015-07-30T15:45:41
2015-07-30T15:45:41
39,955,296
0
0
null
null
null
null
UTF-8
Python
false
false
2,056
py
from diagnose_app.models import * class query_table: """ this class use to query table based on conditions """ def __init__(self,tableName,startDay,startTime,endDay,endTime,counterList): self.__tableName__ = tableName self.__startDay__ = startDay self.__startTime__ = startTime self.__endDay__ = endDay s...
[ "zhongyu211@126.com" ]
zhongyu211@126.com
d5149a9a3254804f686937ca02866d417bae3195
ca7aa979e7059467e158830b76673f5b77a0f5a3
/Python_codes/p03548/s664916381.py
4058808e3a1fb64328b5edad5b5303adb72da23f
[]
no_license
Aasthaengg/IBMdataset
7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901
f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8
refs/heads/main
2023-04-22T10:22:44.763102
2021-05-13T17:27:22
2021-05-13T17:27:22
367,112,348
0
0
null
null
null
null
UTF-8
Python
false
false
62
py
x,y,z=map(int,input().split()) xx=x-z yy=y+z print(int(xx/yy))
[ "66529651+Aastha2104@users.noreply.github.com" ]
66529651+Aastha2104@users.noreply.github.com
236ced02e8996b3a0752c78e789074fc455c672d
1844de0e8eb99b70fa4a94ab8e85a8f81ab4c7cc
/util_future/util_data/basic_info.py
252c6cb403ba041e1fbf0db970435c995beca592
[]
no_license
NewLanded/time_friend
2e8d901a05cb8b9155b51ed7ede44a9791471c18
ff150cf29a1e26067179eb7c59c2a4dff1777afe
refs/heads/main
2023-06-27T11:39:50.348289
2021-08-02T06:48:17
2021-08-02T06:48:17
380,187,400
0
0
null
null
null
null
UTF-8
Python
false
false
4,654
py
import re from itertools import count from fastapi import HTTPException, status from config import TRADE_CODE_LIST from util_base.db import (get_boolean_value, get_multi_data, get_single_value) class BasicInfo: def __init__(self, db_conn): self.db_conn = db_conn def __del_...
[ "l1141041@163.com" ]
l1141041@163.com
d652e8d342d4ed592c456d84677d33b5263bc550
07ceea42987c134c9073a4115ada928501f9ff41
/asg_28.py
74f07efbcf3b5c1e3b596b518f6b0e39dde148e2
[]
no_license
nirajandata/iwbootcamp_assignments
62d10bd7d3ce0c719f69c65a0504a2655fd193e3
a898779cff843c54ab60ad2c8c867a8aa6dde7cb
refs/heads/main
2023-03-07T23:50:54.919365
2021-02-20T11:50:32
2021-02-20T11:50:32
337,075,903
0
0
null
null
null
null
UTF-8
Python
false
false
42
py
m1={1:2,4:5} m={6:8} m.update(m1) print(m)
[ "nirajan.data@gmail.com" ]
nirajan.data@gmail.com
d735c26448881883d2ba49b2b1bbe561d190b6f6
0a3c7011795a704e7908d9d3261f40021c3fa8f7
/app/modules/public/mod_home/views.py
3ed51529db46e16ae7c933e06fb8937fe17d5a26
[]
no_license
assemblio/hct
10b08e7173eb2a06fbae510b25bffb6a2d2e4c4b
fd526a32045fa1182fa67ea18fc47db967a3c598
refs/heads/master
2021-01-23T02:53:33.861624
2015-08-30T19:14:35
2015-08-30T19:14:35
31,592,213
0
0
null
null
null
null
UTF-8
Python
false
false
575
py
from flask import request, render_template from flask import Blueprint # Define the blueprint: mod_home = Blueprint('mod_home', __name__) # Set the route and accepted methods @mod_home.route('/') def index(): return render_template('home/index.html') @mod_home.route('/about-us') def about_us(): return rende...
[ "partin.imeri@gmail.com" ]
partin.imeri@gmail.com
0258b0c719764b2c7c5bae595205a21bf97528f7
864285315c3a154639355f14ab1ff14633576405
/mapclientplugins/segmentationstep/model/node.py
3ee013be596ccf7cbfb66abb1198c320b7ed3ebc
[]
no_license
hsorby/segmentationstep
774dc537967c9643bd0094dc4e64eefa472588b0
321505374f9434ac0ae832b0b00398c2d4ac1fbe
refs/heads/main
2021-09-28T09:06:07.197158
2015-08-14T07:59:55
2015-08-14T07:59:55
21,375,254
0
0
null
null
null
null
UTF-8
Python
false
false
20,685
py
''' MAP Client, a program to generate detailed musculoskeletal models for OpenSim. Copyright (C) 2012 University of Auckland This file is part of MAP Client. (http://launchpad.net/mapclient) MAP Client is free software: you can redistribute it and/or modify it under the terms of the GNU General Publi...
[ "h.sorby@auckland.ac.nz" ]
h.sorby@auckland.ac.nz
081385780b3a6973dbe32ec0b3e9133546fce8a1
7064db507df92534747556be5e9c71ac629c9446
/Analysis/trappist1/plotEvolTrappist1.py
fe9561b912a65aeaecc96fd3362beae4125cbf91
[]
no_license
dflemin3/EHI
766a974625e6d16ae3452cd57710f527564e267c
de2394838cf5609d0ec77f365613994aa52ed9e2
refs/heads/master
2020-04-18T04:29:35.052930
2019-05-15T22:24:28
2019-05-15T22:24:28
167,240,810
0
0
null
null
null
null
UTF-8
Python
false
false
3,973
py
#!/usr/bin/env python # -*- coding: utf-8 -*- """ """ import numpy as np import os import matplotlib as mpl import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec #Typical plot parameters that make for pretty plots mpl.rcParams['figure.figsize'] = (9,8) mpl.rcParams['font.size'] = 26.0 ## for Palat...
[ "dflemin3@uw.edu" ]
dflemin3@uw.edu
f7e50bf1d16e0bf0011ed4628336620a82c81547
c0a93aa192b307a63d585799df64fc79088b7005
/robot_smach_states/src/robot_smach_states/util/designators/deprecation_warnings.py
683e1003318182d7ca5f0c9478b9629886abf320
[]
no_license
sunarditay/tue_robocup
b75e2ea9ca040537aae6a8cf4c72bb5adc96a149
189bd987822f9bd1c477769892e154964f97d2f0
refs/heads/master
2020-03-25T13:35:59.331692
2018-06-16T16:58:45
2018-06-16T16:58:45
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,138
py
#! /usr/bin/env python """Deprecation warnings. From: - https://wiki.python.org/moin/PythonDecoratorLibrary#Generating_Deprecation_Warnings - http://stackoverflow.com/questions/2536307/decorators-in-the-python-standard-lib-deprecated-specifically """ __author__ = 'Loy' import warnings import functools import inspect ...
[ "loy.vanbeek@gmail.com" ]
loy.vanbeek@gmail.com
b39ab9b08081e002abc6808a6796aed2fc518304
b7fa9ad7ef6875d5d3dc56a554bf205f4e6c40b1
/cookbook/migrations/0003_step_date_added.py
e694ee18a157a690544e9269285ca24524953e8f
[]
no_license
geofftang/mise
7578a9e2e14fd35ef9aa4ec64e7e29787740d4a9
2139b08486e0cf2184195a6c0908b693c6d6afea
refs/heads/master
2021-05-02T18:25:30.167192
2018-04-11T05:28:48
2018-04-11T05:38:21
120,657,083
0
0
null
null
null
null
UTF-8
Python
false
false
564
py
# -*- coding: utf-8 -*- # Generated by Django 1.11.8 on 2018-03-07 05:38 from __future__ import unicode_literals from django.db import migrations, models import django.utils.timezone class Migration(migrations.Migration): dependencies = [ ('cookbook', '0002_remove_step_date_added'), ] operation...
[ "geoffrey.j.tang@gmail.com" ]
geoffrey.j.tang@gmail.com
9d3a6d558304fc8d107d7e1685804bfb7f0e0bb5
86a66eec7ea95bcb7eb1fef97ae129606c061e95
/Singlepic/wsgi.py
bd39473a6b35baeeabfb9e7057510101d8c48a99
[]
no_license
Bogaevskiy/Singlepic
8db9ea28a7a46254ab14766315e5315475f5696c
91c8094693b7e8f04ea49fefefc63b8f5b86b4d7
refs/heads/master
2020-11-25T23:27:26.377896
2020-04-21T18:51:05
2020-04-21T18:51:05
223,022,465
1
0
null
null
null
null
UTF-8
Python
false
false
411
py
""" WSGI config for Singlepic project. It exposes the WSGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/ """ import os from django.core.wsgi import get_wsgi_application os.environ.setdefaul...
[ "vileflesh@2ch.hk" ]
vileflesh@2ch.hk
c287d5683e9ee27525987d8330386c0a0d3497ff
a2c4e411f4872f1c501618ed553ee5c87c3270db
/hacker/migrations/0003_delete_submission.py
447336e821a3fcc51a6a5b0a36f787fcb29e42f4
[ "MIT" ]
permissive
lamnt-git/bug_bounty
c22f438f0c05c62329eb77ba1ce68c55a54d0b56
fbb53d266a36c7df68e5f81fbafb0cf34891f764
refs/heads/master
2022-12-22T08:09:13.224931
2020-01-03T04:49:46
2020-01-03T04:49:46
231,513,592
0
0
NOASSERTION
2022-12-08T03:22:58
2020-01-03T04:44:20
Python
UTF-8
Python
false
false
290
py
# Generated by Django 2.2.6 on 2020-01-02 13:09 from django.db import migrations class Migration(migrations.Migration): dependencies = [ ('hacker', '0002_submission'), ] operations = [ migrations.DeleteModel( name='Submission', ), ]
[ "tunglambk123@gmail.com" ]
tunglambk123@gmail.com
921138bb02bc4ee32c67ab050aea636d5599d976
8c4c244007ebbbcdfe75059c44dd3ecf94d3221e
/tiaotiao/subexperimentgr14.py
6b279f98bfa304f1d543f43c523f96bd768cee91
[]
no_license
michelle3113/tt_no1
590df6dfb66c62155b1fe865ceacdfc3d9b78285
128096d8751edab884879261d67390e8b384100f
refs/heads/master
2020-12-23T02:51:02.706598
2020-06-25T14:02:06
2020-06-25T14:02:06
237,012,431
3
0
null
null
null
null
UTF-8
Python
false
false
4,944
py
import pandas as pd import numpy as np import scipy from sklearn.ensemble import RandomForestClassifier from sklearn.utils import shuffle from sklearn.metrics import mean_squared_error # MSE from sklearn.metrics import confusion_matrix from scipy import stats from sklearn.metrics import r2_score # R^2 from scipy.stats...
[ "evanfeng97@gmail.com" ]
evanfeng97@gmail.com
adfe6915a3b64d12dc6776c8b1a88a1f57f06fe7
1274c7a7cb16aefb3fb0b052c2448eea5643f14f
/webempresa/webempresa/blog/urls.py
59b20335d8e611873f66f47a8394b30756e417e4
[]
no_license
No-Haiku/mis-paginas-en-django
241316b2eb44fb7bfd5227ae50fe30759e1e9768
54e428b8a4e05d2731a7a07801f1fcf9690cce86
refs/heads/main
2023-05-30T09:37:21.300821
2021-06-17T06:32:09
2021-06-17T06:32:09
336,439,360
0
0
null
null
null
null
UTF-8
Python
false
false
190
py
from django.urls import path from . import views urlpatterns = [ path('', views.blog, name="blog"), path('category/<int:category_id>/', views.category, name="category"), ]
[ "66711328+No-Haiku@users.noreply.github.com" ]
66711328+No-Haiku@users.noreply.github.com
7016107af932a3a637e855b91589feec91a4ea95
5d45e2bf2287e3878cc90415854a796ed5532142
/talk/_server.py
ab188a339616e6e87622dc5153ec9172d8be2f03
[]
no_license
ap--/teaching-python-aidd-adv-oct-2021
cce2bfb62f295014ecc1c0e7217dc0e1b26e781d
8ef3a712805088c7d211ce8155e6838a2df6ef30
refs/heads/main
2023-08-22T04:25:41.383181
2021-10-21T12:08:55
2021-10-21T12:08:55
419,219,843
1
0
null
null
null
null
UTF-8
Python
false
false
591
py
from pathlib import Path from flask import Flask from flask import request app = Flask( __name__, static_url_path='', static_folder=str(Path(__file__).parent.joinpath("../data")) ) @app.route("/") def hello_world(): return "Hello Hello World!" @app.route("/greeting") def greeting(): name = reques...
[ "andreas@poehlmann.io" ]
andreas@poehlmann.io
9b09056d8459349da2fc2bcd60ee7f7c34f3d3dc
c68ec45e9b4302ae28d8f70797c335180ee1a196
/stages/03_kubernetes/project/app/routes.py
f2d47acb40665e72b2bcd50fba4b945877a1f734
[ "MIT", "LicenseRef-scancode-other-permissive" ]
permissive
dgr113/my-otus-tests
90069f856a7177ca36490a3d4716f1870e5eefd2
c573d85be422eb76986fa217ffc0fe3415b6df2b
refs/heads/main
2023-04-23T07:12:31.403027
2021-05-11T10:14:05
2021-05-11T10:14:05
309,331,188
0
0
null
null
null
null
UTF-8
Python
false
false
1,043
py
# coding: utf-8 from typing import Sequence from flask import jsonify, current_app, request from flask_restful import Resource # type: ignore from .models import Client # type: ignore class Index(Resource): def get(self): return jsonify({ 'result': "{} from {}!".format(current_app.config[...
[ "dmitry-gr87@yandex.ru" ]
dmitry-gr87@yandex.ru
9b9e01b1834d7671cca3e226996c4e193900163e
8b4db3ef33fa27ef4ff885cde09666da88872045
/sfc/settings.py
5c75aa7d94a54ce50e8b39cf06e616135cc8fb9b
[]
no_license
KoyanagiAyuha/sfc
b2f4051871febbac18fb56d6ecd03a31adfee11b
a7e1b0bce4d945bdb2db046db4d1e303a0596a92
refs/heads/master
2023-06-06T14:19:52.065280
2021-06-23T15:17:25
2021-06-23T15:17:25
379,646,171
0
0
null
null
null
null
UTF-8
Python
false
false
3,448
py
""" Django settings for sfc project. Generated by 'django-admin startproject' using Django 3.1. For more information on this file, see https://docs.djangoproject.com/en/3.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/3.1/ref/settings/ """ from pathlib impor...
[ "ayuha.koyanagi@gmail.com" ]
ayuha.koyanagi@gmail.com
0be4413bf097642311edff3d6acbdf9b72493722
ccc78f2398bfc245c385a78938a52e61edea98e9
/Module4 Midterm exam.py
1672f14ad11211fbd4f5098e73ecaa7acc641c60
[]
no_license
PrimWILL/Introduction-to-Python-Absolute-Beginner
b29a41af4898758765699459e75fe66bd7b4a534
85316f1fe2e09fe3525fbee44b422f5dc1fc6a01
refs/heads/master
2020-07-29T17:25:24.546198
2019-09-25T06:56:49
2019-09-25T06:56:49
209,900,183
0
0
null
null
null
null
UTF-8
Python
false
false
665
py
guess = 99 def STR_ANALYSIS(str): if str.isdigit(): str = int(str) if str > 99: return print(str, "is a pretty big number") elif str < 99: return print(str, "is a smaller number than expected") else: return print("Correct! Congratulation.") el...
[ "51026374+PrimWILL@users.noreply.github.com" ]
51026374+PrimWILL@users.noreply.github.com
28b0dbc65927fd0812b8358bd48dcd2790f3c99c
ccb87e34b5d105e35794591ba3aada625c8a838f
/jim_python_practice_programs/6.60_simple_interest.py
77e45b9835a3414df609b8fd91c906d237dba3f5
[]
no_license
jaford/thissrocks
c2519135af007bf1cc37c511487c98db1ddd5a5b
e7d8b91d23de615f2124493742079988650396b9
refs/heads/master
2023-08-17T17:15:49.819091
2023-07-21T21:59:23
2023-07-21T21:59:23
10,363,528
4
0
null
2023-07-21T21:59:24
2013-05-29T16:00:32
Python
UTF-8
Python
false
false
600
py
#Write a program to calculate simple interest # Replace ___ with your code def simple_interest(): # take float input for principal, rate, and time P = float(input("Enter the principal amount: ")) R = float(input("Enter the interest rate: ")) T = float(input("Enter the time in years: ")) # calculate the sim...
[ "jamesford3@gmail.com" ]
jamesford3@gmail.com
53f3c190d40848ae5daf091e4bfbccdccc998ef3
866ba733b70fa722f1c6b89b5f3ead429856098d
/server/mysite/film_lookup/apps.py
6f0bd459dc4de2629dd0b6f353fb1dc6373181c5
[]
no_license
gkink/BachelorProject
3f5460468d2b34a05e85696ed1a57ed01cfc4699
5e64f0eda63bdaba76c4d7f49f78876670c2dca1
refs/heads/master
2021-03-24T12:25:08.569948
2016-08-08T00:25:16
2016-08-08T00:25:16
54,229,726
0
0
null
null
null
null
UTF-8
Python
false
false
95
py
from django.apps import AppConfig class FilmLookupConfig(AppConfig): name = 'film_lookup'
[ "gosip12@freeuni.edu.ge" ]
gosip12@freeuni.edu.ge
3e9165b2692d54c88a6ac4046cc4146d400488f0
d3d5b933fe0672ba141b3cfde0ad942438b38304
/06.Advanced Loops/PyramidOfNumbers.py
086d08ac9925be33755ebc4f64df2f7908cf2fb7
[ "MIT" ]
permissive
wesenu/Python-3
065aa49b7978c6f0cc1ebdd364d7b02059ab4dc6
55163496dac452a7110b7f76edc6894ee195f1fe
refs/heads/master
2023-03-15T11:52:54.877026
2018-08-20T11:56:34
2018-08-20T11:56:34
null
0
0
null
null
null
null
UTF-8
Python
false
false
245
py
n = int(input()) num = 1 for i in range(1, n+1): for j in range(i): if i > 0: print(' ', end='') print(num, end='') num += 1 if num > n: break print() if num > n: break
[ "nikolay.vutov.nv@gmail.com" ]
nikolay.vutov.nv@gmail.com
d348f9fda6a4f0d2d5430ca7702d28c57f1d71b4
9facf0143ee2e34251f145dfab1d3b8e14e66200
/check_cycles.py
cad64672679a9b3c0f76c7e2c91de39169b03a63
[]
no_license
alihaiderrizvi/handy-algorithms
f3e35ac4e9a89a2df77f7a751e1861ea7f1fcdbd
2e78fc9984d52c33ff825ce02dfa2da68c66dd71
refs/heads/main
2023-02-26T10:50:40.001516
2021-02-02T12:28:21
2021-02-02T12:28:21
335,281,360
0
0
null
null
null
null
UTF-8
Python
false
false
603
py
def is_cyclic(numNodes, connections): graph = {} indegree = {} for i in range(numNodes): graph[i] = [] indegree[i] = 0 for i,j in connections: graph[i].append(j) indegree[j] += 1 queue = [] for i in indegree: if indegree[i] == 0: ...
[ "noreply@github.com" ]
alihaiderrizvi.noreply@github.com
65592f9371d44d9f279f7e13104ef745cce86f21
ad4eeb3ddca55770acaa290f50444b39174eac89
/migrations/versions/38a42c2f5012_initial_setup.py
21ca376d18f31daf24467e1cdd83d1bd03322fbc
[]
no_license
hcen001/crest-metadata-initiative
6177988e262eeef070a18253ffd7296d715726c7
d9b62c7ea4f2fcf44a2d25a4edbfbda50304dc4b
refs/heads/master
2022-12-09T16:08:23.118808
2018-07-20T21:28:44
2018-07-20T21:28:44
141,611,159
0
0
null
2022-09-16T17:48:53
2018-07-19T17:28:08
CSS
UTF-8
Python
false
false
1,405
py
"""initial setup Revision ID: 38a42c2f5012 Revises: Create Date: 2018-07-18 15:01:38.452443 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '38a42c2f5012' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "hcen001@cs.fiu.edu" ]
hcen001@cs.fiu.edu
4b529eb1a41fa41aebc04458383a380f44631bc0
9c87bcfe6b374f638b4731ff1c50872c608869c3
/BankApp/testScript.py
6cd4cd18192c84d9297c5230c9fa967f7bce5f95
[]
no_license
rashbhat/BankApplication
10ca91006e47fcafe9bf1072c161a7250f363626
7fbb769f1966f71818012b2ffe6a08cb43932993
refs/heads/master
2021-01-10T05:00:15.148426
2015-11-18T12:34:27
2015-11-18T12:34:27
46,332,963
0
0
null
null
null
null
UTF-8
Python
false
false
3,437
py
from BankApp.models import * import time def addBank(bankName='corporation',count=1): start= time.time() try: BankDetails.objects.all().delete() list = [] for i in range(0,count): list.append(BankDetails(bank_name=bankName)) bank = BankDetails.o...
[ "rashmi.bhat@tarams.com" ]
rashmi.bhat@tarams.com
57c9aaaa261bf0b0d4e271cb10e4c8e9674e9dd7
354f06515afe31f97a7301ced9229f379830c5b0
/Document/doc.py
304746b0324b1299af21abeb229306de3d849bb9
[]
no_license
mushthofa/HackerRankPython
a9bbe905c5baede197ad174ee986c3331f8fcadf
3a03928c05a9e2bc79fd4c4014bfa455b86841e5
refs/heads/master
2020-06-28T17:07:19.058230
2019-08-02T20:13:39
2019-08-02T20:13:39
200,292,171
0
0
null
null
null
null
UTF-8
Python
false
false
1,150
py
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Sun Jul 2 01:14:48 2017 @author: mush """ from sklearn.feature_extraction.text import CountVectorizer from sklearn.feature_extraction.text import TfidfTransformer from sklearn.linear_model import LogisticRegression from sklearn.pipeline import Pipeline fr...
[ "noreply@github.com" ]
mushthofa.noreply@github.com
5b87429b97fd2963755878b89b8492ca457369ba
ae7c8af0df1229bb948b736871f6453ebdc2968d
/english_rule.py
891fc31bcd646ff9796e4b523f41c8498c5afe3f
[]
no_license
fishjawzrex/Algorithms-and-Data-Structures-in-Python
7dd9a8a09c9e09985724e67e0df62f92c11c0edf
03ef0298395ef9ae5ecdf157ae301db3f1849df2
refs/heads/master
2020-06-18T07:47:51.940712
2019-07-10T14:31:23
2019-07-10T14:31:23
196,220,102
0
0
null
null
null
null
UTF-8
Python
false
false
628
py
class EnglishRuler: def __init__(self, inches, ticks): self.inches = inches self.ticks = ticks def draw_line(self,ticks,label): line = '-'*ticks if label: line += label print(line) def draw_interval(self,center_line): if center_line: self.draw_interval(center_line...
[ "noreply@github.com" ]
fishjawzrex.noreply@github.com
f5c38733f167bf2ed48272b6324bb99c940da5c5
482160f217892648c408b73e814427ca62afe14a
/chat application/server.py
4b57733367bbeb697ee29247f7bcbf9d343b19d4
[]
no_license
JasonVanRaamsdonk/Socket-Programming---Python
752da9fd6ceeb5bdf6c3531da8b3bb3b768e26ce
87693817be4b93bd1a260c88995176c0697a6332
refs/heads/master
2020-08-27T11:34:33.254049
2019-11-02T00:51:12
2019-11-02T00:51:12
217,353,291
0
0
null
null
null
null
UTF-8
Python
false
false
2,401
py
""" author: Jason van Raamsdonk handling multiple connection server-side """ import socket import select # gives operating level o/i capabilities HEADER_LENGTH = 10 IP = "127.0.0.1" PORT = 1234 server_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) server_socket.setsockopt(socket.SOL_SOCKET, socket.SO_RE...
[ "c17764691@mydit.ie" ]
c17764691@mydit.ie
d1f132ac90cc23d7a00f8efe98c24313cb2ee5c3
0b0e5d55c5d7ac66b58deaf9d7452d2485925881
/mvc/models.py
5fa9c6e0bbc4f3eb4734e332140699804a28f8f8
[]
no_license
390910131/tcicada
7b776198de74ca26a376b771ddafd7b64355b7c8
9387597734ef4b8afc2a4e0c80d5c1dcb592bd28
refs/heads/master
2021-01-15T19:44:58.275700
2010-08-19T15:37:50
2010-08-19T15:37:50
42,674,760
0
0
null
null
null
null
UTF-8
Python
false
false
4,409
py
# -*- coding:utf-8 -*- import time from django.db import models, connection from django.contrib import admin from django.utils import timesince, html from cicada.utils import function, formatter from cicada.settings import * # Create your models here. class Category(models.Model): name = models.CharField...
[ "kimlyfly@aa58f504-fbc4-ba3c-79f2-aa09fbc8d42c" ]
kimlyfly@aa58f504-fbc4-ba3c-79f2-aa09fbc8d42c
7dc929d5a5dbe01e80c475af5bbc70599883261f
068c02748396264ab920d93f4946132d01155f59
/venv/lib/python3.5/site-packages/captcha/widgets.py
fa530cb6b0f3306177da904a69c0bbb1c4377d24
[]
no_license
sumeyyekilic/Django-WebApp
8b1752c5cda6078dff98d63527cfca2c3fb014b2
3d2da87d714caae55a7fd550539e9efac0212dd6
refs/heads/master
2020-06-04T18:10:52.953144
2019-10-31T05:59:25
2019-10-31T05:59:25
192,136,312
5
0
null
2019-10-31T06:00:37
2019-06-16T00:49:45
Python
UTF-8
Python
false
false
1,333
py
from django import forms from django.conf import settings from django.utils.safestring import mark_safe from . import client from .constants import TEST_PUBLIC_KEY class ReCaptcha(forms.widgets.Widget): if getattr(settings, "NOCAPTCHA", False): recaptcha_response_name = 'g-recaptcha-response' rec...
[ "smyyekilic@gmail.com" ]
smyyekilic@gmail.com
52e73bbaf0f98cbdfba7c45a1b45c6439b23e49d
8013562f078a60b8370a37ab421d4c0378e51594
/01_EstruturaSequencial/Ex17.py
346f6e144310d5cbcd4ff82f28921d73a3990c01
[]
no_license
Luizcarlosqueiroz/PythonExercises
05226602afe52d8c0984bda80a09657260625075
695a3df9834b5085993b3675f14719af5980e6bf
refs/heads/master
2022-11-30T02:16:08.439853
2020-08-03T20:12:51
2020-08-03T20:12:51
276,566,313
0
0
null
null
null
null
UTF-8
Python
false
false
737
py
area = float(input("Qual o tamanho da área em metros a ser pintada? ")) litros = area / 6 latas = int(litros / 18) galoes = int(litros / 3.6) if litros % 18 != 0: latas += 1 if litros % 3.6 != 0: galoes += 1 mixLatas = int(litros/18) litrosRest = litros - (mixLatas*18) mixGaloes = int(litrosRest / 3.6) if l...
[ "luizcarlosqueirozf@gmail.com" ]
luizcarlosqueirozf@gmail.com
39e24e40bfd7c47b32d30ba9afc9a9ea08fcb122
087546cbb4dceecb3d1199ed07b95ee980b4af83
/scholarly_citation_finder/apps/parser/AuthorParser.py
596e015784d55cc57f0fe3507cc0b55c334ed05b
[ "MIT" ]
permissive
citationfinder/scholarly_citation_finder
369122c65607b90a42e395d6f916e489a7e9d2a3
3e6c340cfebc934a013759e27d8c145171110156
refs/heads/master
2020-04-12T01:40:30.084296
2017-02-19T16:30:38
2017-02-19T16:30:38
52,394,942
1
0
null
null
null
null
UTF-8
Python
false
false
4,863
py
#!/usr/bin/python # -*- coding: utf-8 -*- import logging from django.db.utils import DataError from scholarly_citation_finder.tools.nameparser.AuthorNameParser import AuthorNameParser from scholarly_citation_finder.apps.core.models import Author, AuthorNameBlock, AuthorNameVariation from scholarly_citation_finder.apps...
[ "code@xennis.org" ]
code@xennis.org
0e0ef3f81fb8b228e7805d8eeab539f69ebab911
67381bbdfef860b00ec4709ebae86563e632db20
/Probability_Loan/code.py
71d4a0a2ca68a3fc966c88dcae15c708a964081e
[ "MIT" ]
permissive
RounakPython/ga-learner-dsai-repo
7591099e4a4c9c799eec0aa8b699a70c61403023
8aeaab16affd865b31bd1f740d77f983e2ba5bbe
refs/heads/master
2022-12-27T13:56:23.051542
2020-10-11T06:51:53
2020-10-11T06:51:53
266,036,211
0
0
null
null
null
null
UTF-8
Python
false
false
1,480
py
# -------------- import numpy as np import pandas as pd import matplotlib.pyplot as plt # Load the dataframe df = pd.read_csv(path) #Code starts here #Task 1 total = df.shape[0] p_a = len(df[df['fico'] > 700]) / total p_b = len(df[df['purpose'] == 'debt_consolidation']) / total p_a_b = len(df[(df['f...
[ "RounakPython@users.noreply.github.com" ]
RounakPython@users.noreply.github.com
b333a3b4d733faf7a887292ac3ed667ff495649d
197cf9217cba0fc3c0eba7014ef836b43ac98461
/base/forms.py
89577d4332ac1ef9b95351c548bb5ebb1d73af4e
[]
no_license
barslmn/sci-pub
e9f14fc22070384fdde1c20451ed47ba45234797
18df0a8908ccc927f099f4581cafa225268c0558
refs/heads/master
2022-12-06T19:47:57.530307
2020-08-05T11:31:41
2020-08-05T11:31:41
285,229,138
0
0
null
null
null
null
UTF-8
Python
false
false
440
py
from django import forms from captcha.fields import CaptchaField class AllauthSignupForm(forms.Form): first_name = forms.CharField(max_length=30, label='First name') last_name = forms.CharField(max_length=30, label='Last name') captcha = CaptchaField() def signup(self, request, user): user.f...
[ "barslmn@gmail.com" ]
barslmn@gmail.com
ae33b5f0422bd597c0b9eb6cd088f47deba98e6b
9ba5d85bc644cc586abc29b6c82047deb4caea1f
/leetcode/275.h-指数-ii.py
1b67540878acfdffabeb52f8ebd82622e0e2e425
[ "MIT" ]
permissive
Data-Designer/Leetcode-Travel
f01dda19a1e37a2ba9da42e8ecda304c73645d99
147cf44904ce73cd4fd1cecf33f1ac8a336b0e6f
refs/heads/master
2023-07-30T22:54:53.101323
2021-09-14T04:34:08
2021-09-14T04:34:08
366,757,874
2
0
null
null
null
null
UTF-8
Python
false
false
783
py
''' Description: 具体思路是保证一个最长区间,其中的每一个数都大于区间长度 version: Author: Data Designer Date: 2021-05-30 10:33:55 LastEditors: Data Designer LastEditTime: 2021-05-30 10:43:46 ''' # # @lc app=leetcode.cn id=275 lang=python3 # # [275] H 指数 II # # @lc code=start class Solution: def hIndex(self, citations: List[int]) -> int: ...
[ "zc_dlmu@163.com" ]
zc_dlmu@163.com
cc1e4f5c83ecc6b4a61bf86e1b05ab29487d7b65
1bb42bac177fb4e979faa441363c27cb636a43aa
/multi_epoch_dp_matrix_factorization/multiple_participations/factorize_multi_epoch_prefix_sum.py
6b76010e64530c60ff33fca9365ce0968ed01d04
[ "BSD-3-Clause", "Apache-2.0" ]
permissive
google-research/federated
a6040e80fa0fbf533e0d665c66a9bc549d208b3d
329e60fa56b87f691303638ceb9dfa1fc5083953
refs/heads/master
2023-08-28T13:10:10.885505
2023-08-22T23:06:08
2023-08-22T23:06:40
295,559,343
595
187
Apache-2.0
2022-05-12T08:42:53
2020-09-14T23:09:07
Python
UTF-8
Python
false
false
7,541
py
# Copyright 2023, Google LLC. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
a4c06618a453e251976f90bba6bc5a9ec9cd78b1
c14745a84de92c11cd0e12c15b99dc214dc2da68
/img.py
2dc82f400d3c37e99ae77d7b89d64855d7a78a0b
[]
no_license
abhishek111226/ViTag
850d15666aea7370364ce3f9ff113cd97ee711ce
f128e80351dc42c7d3851e4442ae48396958661b
refs/heads/master
2020-07-30T15:12:27.535038
2019-12-24T13:44:43
2019-12-24T13:44:43
73,627,719
0
1
null
null
null
null
UTF-8
Python
false
false
1,167
py
import numpy as np import cv2 from matplotlib import pyplot as plt img1 = cv2.imread('./extract_taj/1.png',0) # queryImage img2 = cv2.imread('./extract_taj/5.png',0) # trainImage # Initiate SIFT detector sift = cv2.xfeatures2d.SIFT_create() # find the keypoints and descriptors with SIFT kp1, des1 = sift.det...
[ "abhishek0patwardhan@gmail.com" ]
abhishek0patwardhan@gmail.com
57d6682bc27b07ec0953a716508390f6945482bf
50e43348552237093193b0ad388d2c9081e73ce8
/module.py
598c9b00bf4770d72b1c9805d85eead70fa5b157
[]
no_license
antlikelion/python_practice
33d0cd46683ef5a41ff631392852e2fe9592c0c2
0e88decdbc3d7c20598dd201079c30e7045c3aa1
refs/heads/master
2020-05-04T16:26:22.908543
2019-04-03T11:52:50
2019-04-03T11:52:50
179,278,533
0
0
null
null
null
null
UTF-8
Python
false
false
563
py
class cal: def __init__(self, former, latter): self.former = former self.latter = latter def add(self): result = self.former+self.latter return result def sub(self): result = self.former-self.latter return result def mul(self): result = self.for...
[ "ignorant_woo@naver.com" ]
ignorant_woo@naver.com
39bd383c866c0e1600fd64751cde16b02dff786e
f0cb61445a288e6566bf4b04655a52c5220b6018
/Part5.py
10df9d8dbdd3d32b6147f69b2735a9c5b2978a07
[]
no_license
TrixniteTech/Youtube-Tutorial
48e76e995bb5cd710d95f6fd6c3c3038ec21bca5
c9d70ff1fb03e151a8b92a6e3afb506442f32af2
refs/heads/master
2023-02-07T07:31:30.975554
2020-12-20T09:52:52
2020-12-20T09:52:52
275,588,961
0
0
null
null
null
null
UTF-8
Python
false
false
1,027
py
import discord from discord.ext import commands client = commands.Bot(command_prefix = '.') @client.event async def on_ready(): print('Ready') @client.command() async def ping(ctx): await ctx.send(f"Pong!{round(client.latency*1000)}") @client.command...
[ "noreply@github.com" ]
TrixniteTech.noreply@github.com
6868c43b7cfd7d3d96ae0903e3158798a51ddd45
78e1d96cbdc5eed5891535081449a20c3e5e152f
/codeforces/Swap Adjacent Elements.py
19b744cf0b29e243faf4c3ab13e1404dd314a224
[]
no_license
sabiramhaida/cp_training
e44a3be4c2703187bcc2131abeb6dc55740a2f5f
1b908dfd52f172d0026e25d6f58a686516d561dd
refs/heads/master
2021-06-25T01:41:38.786029
2020-12-30T23:18:01
2020-12-30T23:18:01
176,548,432
3
0
null
null
null
null
UTF-8
Python
false
false
282
py
def solve(array,n,s): temp=0 for i in range(n): temp=max(temp,array[i]) if(s[i]=='0' and temp>i+1): print("NO") return print("YES") n=int(input()) array=list(int(i) for i in input().split()) s=input()+'0' solve(array,n,s)
[ "noreply@github.com" ]
sabiramhaida.noreply@github.com
ed4be1061f552d4c5b4f12cc0357a3d6c51a47b3
7d312b3056367391356270bbf3a7c3ff0411b76b
/Bai1.py
4e16693c2f6bb764e63095fbe6c3032b28e22c68
[]
no_license
inugato/python
b7f274055873c69994fa8f82f8540979d225598c
0154f62e9aa7c70e22ce4be872ead85065871eed
refs/heads/master
2021-07-05T08:32:17.802409
2017-09-28T02:59:15
2017-09-28T02:59:15
104,686,852
0
0
null
null
null
null
UTF-8
Python
false
false
90
py
sum = 0 i = 1 n = input('Enter value: ') while i <= n : sum = sum + i i=i+1 print(sum)
[ "longlamloi97@gmail.com" ]
longlamloi97@gmail.com
cfaf4399abcc938e8d055259cedc03d3aa529069
73340c329d519a8e4ba486527b2afd7fe1252dd5
/juststorit/worker_main.py
ec5c38b46f53b93a9c30ce26befe4391cbeffe4f
[]
no_license
kaivalya97/juststorit
46d5de0c94a2ea0a27ebed26ce8681061bae8b0f
1472151f9e940be6909db81a427c20b7cbbfee32
refs/heads/master
2020-03-20T14:29:44.224479
2018-06-15T12:56:24
2018-06-15T12:56:24
137,486,944
1
0
null
null
null
null
UTF-8
Python
false
false
2,317
py
from flask import Flask, request, jsonify import requests.exceptions from encrypt_split import encrypt_split from decrypt_merge import decrypt_merge from sn_up import sn_up import crud import os import random from worker_client import send_file,recv_file import json import sock_comm # worker - send - user - ...
[ "noreply@github.com" ]
kaivalya97.noreply@github.com
7dacf743b9b7356f778064776b91b73097e250b9
b580a663d12aa7ff58ab88522c6f30cdadfcb18e
/binary_search_recursive.py
addb8c92dd4074432590f91e351f4501744fd3d2
[]
no_license
jaquinocode/my-algorithms-python
02a44b9b8681d53c108243ae3ff05a66c5c09636
9fa0a684fe7a7cc041519fbd183123208b6fefbf
refs/heads/main
2023-08-17T04:34:05.885888
2021-09-13T07:05:12
2021-09-13T07:05:12
405,860,941
0
0
null
null
null
null
UTF-8
Python
false
false
632
py
def index_of(target, array): start = 0 end = len(array) - 1 target_index = binary_search(target, array, start, end) return target_index def binary_search(target, array, start, end): midIndex = start + abs(start - end)//2 if (start > end): return -1 elif target == array[midIndex]: retur...
[ "28276675+jaquinocode@users.noreply.github.com" ]
28276675+jaquinocode@users.noreply.github.com
5da14db6c3c90c59d24cc0b054e71bd057e6a4b1
25329df0c20dd3567f4bdcbcab2f0503a1aae8d3
/HW-001/app/config.py
ec0d5ad4f2800e0384c21062f192540ebc52816c
[]
no_license
JFX-Xx/10W-ML
f3e3c2f2affab46024a892b03b8573a02c4208f1
1b835722f6ae69764c634db5552e8f5fdf68990b
refs/heads/master
2020-07-13T02:06:52.732471
2019-08-28T15:51:42
2019-08-28T15:51:42
204,961,184
0
0
null
null
null
null
UTF-8
Python
false
false
204
py
# The toolbar is only enabled in debug mode: #DEBUG = True DEBUG = False # Secret key for generating tokens. # Set a 'SECRET_KEY' to enable the Flask session cookies. SECRET_KEY = 'this_is_a_secret_key'
[ "48290849+JFX-Xx@users.noreply.github.com" ]
48290849+JFX-Xx@users.noreply.github.com
a84af6faf9ff33e05a9abe3733d145e5fa3e25fa
55c250525bd7198ac905b1f2f86d16a44f73e03a
/Python/Games/AI Games/AIPong/Algorithm_1/gameAPI/agent.py
4a76f86cb231ed74b4db5a432f90ed80b5492ce7
[]
no_license
NateWeiler/Resources
213d18ba86f7cc9d845741b8571b9e2c2c6be916
bd4a8a82a3e83a381c97d19e5df42cbababfc66c
refs/heads/master
2023-09-03T17:50:31.937137
2023-08-28T23:50:57
2023-08-28T23:50:57
267,368,545
2
1
null
2022-09-08T15:20:18
2020-05-27T16:18:17
null
UTF-8
Python
false
false
128
py
version https://git-lfs.github.com/spec/v1 oid sha256:27cce145fe8172d870a360236c5c6253ce5da598c202beb0960aafdf81240309 size 415
[ "nateweiler84@gmail.com" ]
nateweiler84@gmail.com
d11b930e57bd88e67f6f8d6f670dc1cd6d3960a5
a777f50fb94d72f78c6e6ebd9bc45da5cbd704c1
/django_analytics/django_analytics/settings.py
2d3e31073c062273f99cf6b20dabc60ab8255bcb
[ "MIT" ]
permissive
creativepsyco/django-analytics
69709fe864d65829421efc24575f24c094ee686f
b058814728489f65f9cfdd694bbf2aed8c9fd58a
refs/heads/master
2020-04-05T23:06:24.401559
2014-02-09T17:16:10
2014-02-09T17:16:10
16,665,231
1
0
null
null
null
null
UTF-8
Python
false
false
5,322
py
# Django settings for django_analytics project. DEBUG = True TEMPLATE_DEBUG = DEBUG ADMINS = ( # ('Your Name', 'your_email@example.com'), ) MANAGERS = ADMINS DATABASES = { 'default': { 'ENGINE': 'django.db.backends', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'. 'NAME': '', ...
[ "mohit.kanwal@gmail.com" ]
mohit.kanwal@gmail.com
3f2d3b7bfa7aa5de1b5808bed56689912eac88a7
b09529aa860795a29ac00f03319115f2d5054e98
/com/tlz/python-storage/python-mysql/PyDBPool.py
4104026c674afdd0d3ab012c1aa8cd8a6848081d
[]
no_license
283938162/FirstPython
481425096368a4580b668f3e5b4d33e630e68b86
c7cdfb33375ca0122ed107c1d70a72397ea3558b
refs/heads/master
2021-09-12T15:54:50.947915
2018-04-18T10:05:47
2018-04-18T10:05:47
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,036
py
import pymysql from DBUtils.PooledDB import PooledDB ''' python object http://www.runoob.com/python/python-object.html ''' mysqlInfo = { "host": '39.108.231.238', "user": 'aliyun', "passwd": 'liu@2014', "dbname": 'DBTest', "port": 3306, "charset": 'utf8' } class PyDBPool: __pool = None # 构造函数中的变量全局可用 def _...
[ "283938162@qq.com" ]
283938162@qq.com
a024e5e80b9084277bff7e1aac07c1cfe8608543
f8ff84f02d6dfa66d003890c4f51ea575232ba93
/cinder/cinder/tests/unit/test_emc_vmax.py
322911710e286d00e473632ee464caf4e137f7e5
[ "Apache-2.0" ]
permissive
zarson/stack
8d341463bdf0136447bf1ada5be943df8ba55a4b
827003bc566ed992f754618063a771694e51cfca
refs/heads/master
2021-06-03T00:49:19.075199
2016-05-12T07:45:35
2016-05-12T07:45:35
58,616,957
0
1
null
2020-07-24T01:59:08
2016-05-12T07:08:17
Python
UTF-8
Python
false
false
322,901
py
# Copyright (c) 2012 - 2015 EMC Corporation, Inc. # 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 # # ...
[ "zhangsheng1730@hotmail.com" ]
zhangsheng1730@hotmail.com
a281901b631c2d1cd8e0a7f71112b0a17d2268be
7143ab72314f2fd01c77cbe30413e7c9c1861d14
/grapple/middleware.py
f9e6b07035681d5721a5b9d50fdfa6c4d7858ff3
[ "MIT", "BSD-3-Clause" ]
permissive
yashttm/wagtail-grapple
00e57912993f8914ee3b200e030e494ee1048be4
abaf758d4d3b6b023a36b5291d36cc6523ebabf2
refs/heads/main
2023-08-04T02:03:35.607325
2021-10-05T05:56:53
2021-10-05T05:56:53
413,691,061
0
0
BSD-3-Clause
2021-10-05T05:52:12
2021-10-05T05:52:12
null
UTF-8
Python
false
false
1,871
py
import inspect from graphql.execution.middleware import MIDDLEWARE_RESOLVER_FUNCTION from graphene import ResolveInfo from .registry import registry ROOT_TYPES = ["Query", "Mutation", "Subscription"] def get_middleware_resolvers(middlewares): for middleware in middlewares: if inspect.isfunction(middlew...
[ "noreply@github.com" ]
yashttm.noreply@github.com
c98ac2e400d366ef5b1728e28d6130604a754592
80381da9ebaeb9232669dc0540fa59fe8a1f794a
/setor/userAgents.py
c69503b1f9fa30630034b58c4fd6b9c607d4c475
[ "MIT" ]
permissive
IMMILDEW/setor
9f1a850ba6e7e7228b0d13baf0517898dba111f1
3d22cdcdd077da2b70ce9ce9ed963125d178f7ed
refs/heads/master
2020-03-28T13:44:39.632886
2018-05-15T02:38:28
2018-05-15T02:38:28
null
0
0
null
null
null
null
UTF-8
Python
false
false
8,830
py
#!/usr/bin/env python # -*- coding: utf-8 -*- ''' This userAgents put from: https://github.com/claudioviviani/wordbrutepress/blob/master/wordbrutepress.py#L85 Thanks so much for it. ''' userAgents = [ 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.7) Gecko/2009021910 Firefox/3.0.7', 'Moz...
[ "summon.agus@gmail.com" ]
summon.agus@gmail.com
0c768b30b11e1b2fc2f054dd70ff21fe6e306f6b
ba99ab021ba53de77611d30b0f7c18e6fedb4b09
/tango_with_django_project/settings.py
f88052ecdb29983050753096b5969c940248991a
[]
no_license
blairprophett/Django-Tutorial
8961bc86efc8115b953bf4e82f77ff2fab3c7293
7ef7f366804d7a31d4f10d5bbb57bc0722355446
refs/heads/master
2020-05-30T18:00:46.009618
2015-01-21T21:25:09
2015-01-21T21:25:09
29,602,982
0
0
null
null
null
null
UTF-8
Python
false
false
2,540
py
""" Django settings for tango_with_django_project project. For more information on this file, see https://docs.djangoproject.com/en/1.6/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.6/ref/settings/ """ # Build paths inside the project like this: os.path.join...
[ "blaircuny@gmail.com" ]
blaircuny@gmail.com
920124716f92dc68d37b475413f64312238cf5c5
df76fb81d5173476e269327b7cb0a58875c45b5c
/COSC262/labs/a1_4.py
76ca15b9338dbecf25c80af18050740fda0ad873
[]
no_license
pakeke-constructor/UNIVERSITY
c33899dea9ebe10dde1a8a11d5f07dd83a4ad02a
88b3829e3ca5a45924b422f2c50b04bd0cdbfb68
refs/heads/master
2023-08-26T03:51:18.023533
2021-11-09T00:17:39
2021-11-09T00:17:39
341,054,382
0
0
null
null
null
null
UTF-8
Python
false
false
2,305
py
from math import inf EN=enumerate RL= lambda x: range(len(x)) def get_info(info): directed = False weighted = False if info[0] == 'D': directed = True num_verts = int(info[1]) if len(info) > 2: if info[2] == "W": weighted = True return (directed, num_verts, weigh...
[ "OliverwdGarrett@gmail.com" ]
OliverwdGarrett@gmail.com
690353cf33b668f110fa1d0e006bf265b3dbc5f1
2d4493191ad031287a482bca8273c2ad7a7a0db8
/retrieve_urls.py
0659dc05c03081accc5a0a26750ddf28c3aedc7c
[]
no_license
Phleisch/MP3-z
a16a9e124d2ed609c714642e1a62e3d71bb81916
fa6ea3d2f74da94956394517bd4b63c2d2200dc4
refs/heads/master
2021-09-11T15:22:08.474392
2018-04-09T06:49:04
2018-04-09T06:49:04
125,971,309
0
0
null
null
null
null
UTF-8
Python
false
false
1,725
py
import re import urllib from bs4 import BeautifulSoup def get_urls(song_list): urls = open('SongURLs.txt', 'w') songs = song_list.readlines() regex = '[^A-Za-z0-9\'\. ]' search_const = 'https://www.youtube.com/results?search_query=' for song in songs: if '#' in song: continue song = song.stri...
[ "KaiFleischmans@gmail.com" ]
KaiFleischmans@gmail.com
b67ee0f8b149e415a8c4d1da320dd9452b6f2526
95613a70265e6871c25a4be18075c180427d0980
/contrib/devtools/check-doc.py
ef323db12a725f400a17f49a29e303a8145e70f2
[ "MIT" ]
permissive
CryptoLover705/NocNoc
394b7426a25a0b048fb5e2ae6c02b5f75099189e
fafa860f29c63d7357721a231fef7ad314355263
refs/heads/master
2023-02-11T04:11:49.555586
2021-01-01T00:21:57
2021-01-01T00:21:57
318,871,415
1
0
MIT
2020-12-05T19:25:13
2020-12-05T19:25:12
null
UTF-8
Python
false
false
1,912
py
#!/usr/bin/env python # Copyright (c) 2015-2016 The Bitcoin Core developers # Distributed under the MIT software license, see the accompanying # file COPYING or http://www.opensource.org/licenses/mit-license.php. ''' This checks if all command line args are documented. Return value is 0 to indicate no error. Author: @...
[ "edward.thomas3@yahoo.com" ]
edward.thomas3@yahoo.com
5a6006602948ef1a186d46113e83073574f1fad1
9133e8d160f3a647ea938414f61da955d538a078
/test_dir/settings.py
d64a8fcee51d049df2dee28a4c6704f5fa238b8d
[]
no_license
IvanChernoborodov/Test-task
3832e9e5c7722de1473e2d8246e0762015e97d2b
a7b8824e068f796bdb6f52822c78526f67d7e56f
refs/heads/master
2021-06-25T02:59:27.243113
2019-11-17T21:40:23
2019-11-17T21:40:23
174,311,312
0
0
null
2021-06-10T21:14:44
2019-03-07T09:16:22
Python
UTF-8
Python
false
false
4,204
py
""" Django settings for test_dir project. Generated by 'django-admin startproject' using Django 2.1.7. For more information on this file, see https://docs.djangoproject.com/en/2.1/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/2.1/ref/settings/ """ import os f...
[ "skich1984@gmail.com" ]
skich1984@gmail.com
c7eaad1617af662738ed1cdf822982fe1af2713c
48423db71e54dbde439c97b94637ac4cdd829377
/ex006.py
b1f19d7d0e93bac270e976ee381494bef89ec1c8
[]
no_license
jeeras/allexerciciespython3
5e12134a6a22683aa810a05e1b18bdb28791f495
c258ebe3d169bcc3ef0171bbf66217fb4a34052d
refs/heads/master
2020-03-19T18:52:12.345776
2018-06-10T17:16:59
2018-06-10T17:16:59
136,829,047
0
0
null
null
null
null
UTF-8
Python
false
false
262
py
print("Digite uma medida em metros: ") medida = float(input('')) medidakm = medida / 1000 medidacm = medida * 100 medidamm = medida * 1000 print("Sua medida foi {}, em km é {}, em cm é {}, em mm é {}".format(medida, medidakm, medidacm, medidamm))
[ "noreply@github.com" ]
jeeras.noreply@github.com
969829bbc08a2fdfed7f05ee11a5e0a8c2206fc5
171eed79c580d32a8e4e27e092bbbc0fa67c4681
/PyBot/drivers/if_sensors.py
835df9b3ac6848fba5a40e292ad1b5e3edb86b57
[ "MIT" ]
permissive
Nitzsch/PyBot
2396b5b1a3592ae8c967f938863010ac29670858
94c913fac949d4fd866d9b24f37f6610c58ecafa
refs/heads/master
2020-06-04T14:16:45.296711
2019-07-08T17:09:11
2019-07-08T17:09:11
192,058,815
0
0
null
null
null
null
UTF-8
Python
false
false
1,861
py
""" This file manages the TCRT5000 Sensors. Theyre used for the cliff left and right and for the wheel encodings. the cliff sensors are connected to the mcp23017 and the wheel encoders directly to the pi no real need of expl. methodes are quite simple. """ import mcp23017 as mcp import RPi.GPIO as GPIO import time...
[ "noreply@github.com" ]
Nitzsch.noreply@github.com
190bb7322b59d67fd63b71248baf7a3923c19c63
e568b2089b7ae7f5d8148994833562b8f5112975
/learn-python-the-hard-way/ex34.py
c33098f2879dbf4baeb5b48c13cef4fa14fae531
[]
no_license
marshallnw18/Python-SysAdmin-Scripts
d0047ddafcee9cc18b54b210c9003923bd74ba4c
3cbf3979385685cd893ad2cffcc4c811788d6c91
refs/heads/master
2023-06-19T12:42:44.658130
2021-07-13T14:46:55
2021-07-13T14:46:55
253,178,760
0
1
null
null
null
null
UTF-8
Python
false
false
1,932
py
#!/bin/usr/env python3.6 from sys import exit def gold_room(): print("This room is full of gold. How much do you take?") choice = input("> ") if "0" in choice or "1" in choice: how_much = int(choice) else: dead("Man, learn to type a number.") if how_much > 50: print("Nice,...
[ "marshallnw18@gmail.com" ]
marshallnw18@gmail.com
d2fd4e42dd200d6a5bee4313df22deee3eaa91b7
f77fbdcd4e154af10896df57d78de1781ae66383
/tests/detect_threadsafety_violations_test.py
98588cdb21e374a4fadd4ce5b9bbecb99922c9d8
[ "MIT" ]
permissive
hhru/pycerberus-deb
de6c1892f27897ee40d6c3e9ac24650372943ea0
6a372a549523efb55c50a7deb1db6c39ac979003
refs/heads/master
2020-05-03T05:38:41.952516
2011-06-02T12:55:13
2011-06-02T12:55:13
1,836,988
1
1
null
null
null
null
UTF-8
Python
false
false
2,028
py
# -*- coding: UTF-8 -*- # # The MIT License # # Copyright (c) 2010 Felix Schwarz <felix.schwarz@oss.schwarz.eu> # # 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, includ...
[ "knevcher@gmail.com" ]
knevcher@gmail.com
30536ef72e6a6da850b8eba2d4da0b5120788252
1ba0c55bf6a0001a21db20bab7b82e78ec249a94
/blog/models.py
7ba306d5a4d25d1c40c2d27542ed4b315c6a0510
[]
no_license
armaan786-web/django
b188bdd081160fd0e5a1b44b9a1eb6164884c77f
325b9c197071c3b379d0b72cfc8b9a9821a02a81
refs/heads/main
2023-03-13T00:24:58.306730
2021-03-03T08:25:44
2021-03-03T08:25:44
333,813,639
0
0
null
null
null
null
UTF-8
Python
false
false
674
py
from django.db import models # Create your models here. class Blogpost(models.Model): post_id = models.AutoField(primary_key=True) title = models.CharField(max_length=5000) head0 = models.CharField(max_length=500,default="") c_head0 = models.CharField(max_length=5000,default="") head1 = models.Cha...
[ "armaanalam65@gmail.com" ]
armaanalam65@gmail.com
f91fbe6b61d5c2e529a94d7101c6699f676abe8c
dcb38a3260be425af100ca881f4e6d491df42d82
/eemont/image.py
1f0442594f02a7efd6eb8faba6f9e5595e69caf7
[ "MIT" ]
permissive
sharadgupta27/eemont
14121ab4839403b0e1d7fa2ba76db7794d3d33ab
99f434e77dbbf7c015d8808ea544ee854b3af8c9
refs/heads/master
2023-06-05T11:53:50.691720
2021-06-27T11:49:24
2021-06-27T11:49:24
null
0
0
null
null
null
null
UTF-8
Python
false
false
34,683
py
import ee import warnings import requests from .common import _index from .common import _maskClouds from .common import _get_scale_params from .common import _get_offset_params from .common import _scale_STAC from .common import _preprocess from .common import _getSTAC from .common import _getDOI from .common import _...
[ "dml.mont@gmail.com" ]
dml.mont@gmail.com
ee3e49467a80d531a970152d9b6457cec9bf4862
1e381f2b974bc82cd2f0bd0cc5029cbda1baedb2
/Hackerearth/acet03/Puzzleria.py
50fd07de83d23ca12aca6fc092394f4390d5ded2
[]
no_license
rajat189/Competetive_programming
7655678935d40cada5a3d39ed400ee430f0311db
709065b3527eceb3923c13091608c174ae3a5d64
refs/heads/master
2021-01-19T05:53:35.790236
2016-04-12T19:12:34
2016-04-12T19:12:34
38,609,439
1
1
null
null
null
null
UTF-8
Python
false
false
309
py
# link :- https://www.hackerearth.com/acet03/algorithm/puzzleria/ # problem :- Puzzleria def fac(n): if n==1 or n==0: return 1 else : return n*fac(n-1) t=input() while t>0: t-=1 x,y=map(int,raw_input().split()) ans=(fac(7)/(fac(x)*fac(7-x)))*(fac(5)/(fac(y)*fac(5-y)))*fac(x+y) print ans
[ "coolrajatsharma18@gmail.com" ]
coolrajatsharma18@gmail.com
60cd264325bef4e607f1a0f01c23d4d270ac743a
8239d707d211eed8e91597b73a6e6c25694e8ab7
/test_l/replaceFileContent.py
fd08bfe4921ed182a584aac5eb30ba869239bae6
[]
no_license
Tw1stFate/LearnPython
083c705dc1576ffe42b924f9f69d8de31a61ac00
fb455e34bb4299b588d06997e5f6ecdaf6affe75
refs/heads/master
2022-10-11T00:36:33.467859
2020-06-14T15:01:20
2020-06-14T15:01:20
101,948,514
0
0
null
2019-07-01T02:43:45
2017-08-31T02:08:31
Python
UTF-8
Python
false
false
1,645
py
import os def replaceFileContent(path): for file in os.listdir(path): if os.path.isdir(path + '/' + file): replaceFileContent(path + '/' + file) # print('==========') else: # print(file) if file == '.DS_Store': continue ...
[ "devlynn@126.com" ]
devlynn@126.com
c59194c040c4a0fae4bf07f663deec3a01375ff6
f2462bff402f67648dfe850b159819e0bc5de3dc
/api/urls.py
3a7262c517673af5fc66d9c4dee9208915605dd8
[]
no_license
zerossB/Django-Logging
2b45b64f4601dcff67639c45353776700c72fdfe
a6072a0dae979641fa092d785ba93313bfba0df1
refs/heads/master
2022-12-05T16:32:12.923359
2020-08-31T00:15:25
2020-08-31T00:15:25
291,574,554
0
0
null
null
null
null
UTF-8
Python
false
false
133
py
from django.urls import path app_name = "api" from . import views urlpatterns = [path("", views.HomeView.as_view(), name="home")]
[ "zerossb@gmail.com" ]
zerossb@gmail.com
eb598d14dbeac43c675d45e387b3bc2e50637c24
678f794b2ce27eb396bcae8c683cac66a76f91fd
/00 - Alldirections/torch_train_res18-4.py
7f3ca37088174381f6fba7ecd2d0050e22492728
[]
no_license
jumpycat/00-Similarity
cc670ff4db2381b930797033613bfed3ebda0b16
18fd59c5cc95377da870c6f6565c2261849ea1a0
refs/heads/master
2023-08-13T21:17:51.439011
2021-09-13T08:13:23
2021-09-13T08:13:23
399,512,090
1
0
null
null
null
null
UTF-8
Python
false
false
12,123
py
import torch import torch.optim as optim import torchvision.transforms as transforms from torch.utils.data import Dataset, DataLoader import numpy as np import os import cv2 from PIL import Image from numpy.lib.stride_tricks import as_strided import torch.nn as nn from torchsummary import summary AVG_SIZE = 2 EPOCH = ...
[ "826244895@qq.com" ]
826244895@qq.com
29285e3e7e7a5f76f61f531bef3eeff8d1d35a6d
7704de5d02678908acdcbca4cf92e87e2251c64c
/UltimateNewFlask/ForumAppProject/migrations/versions/f3a6c6ba97cf_.py
78f3a3e53f72c6181f452e42dd2e52a2918d6f41
[ "BSD-3-Clause" ]
permissive
frontendprof/FlaskProjectsRepo
9e8e8ed27771aef3b6f5008722f6ed1daea376eb
18d8b737a03f132bf97483ae256be06fbd389eff
refs/heads/master
2020-07-02T15:22:27.859618
2020-01-15T08:57:05
2020-01-15T08:57:05
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,700
py
"""empty message Revision ID: f3a6c6ba97cf Revises: Create Date: 2019-10-04 23:09:42.639636 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'f3a6c6ba97cf' down_revision = None branch_labels = None depends_on = None def upgrade(): # ### commands auto gene...
[ "abdumaliksharipov@gmail.com" ]
abdumaliksharipov@gmail.com
3d0b8e1c2ce4cc6cb72a22a25fa5cf651b946b91
ded10c2f2f5f91c44ec950237a59225e8486abd8
/.history/2/matrix_squaring_20200420191916.py
56b8551f9db2c3e29060ef2717bae7c420791554
[]
no_license
jearistiz/Statistical-Physics-Projects
276a86407b32ded4e06b32efb2fadbd8eff8daed
d9c5b16a50856e148dc8604d92b6de3ea21fc552
refs/heads/master
2022-11-05T03:41:23.623050
2020-06-28T06:36:05
2020-06-28T06:36:05
254,909,897
1
0
null
null
null
null
UTF-8
Python
false
false
21,114
py
# -*- coding: utf-8 -*- from __future__ import division import os import numpy as np import matplotlib.pyplot as plt from time import time import pandas as pd # Author: Juan Esteban Aristizabal-Zuluaga # date: 20200414 def rho_free(x,xp,beta): """Uso: devuelve elemento de matriz dsnsidad para el caso de una part...
[ "jeaz.git@gmail.com" ]
jeaz.git@gmail.com
ac64f51aea7fe349c9f505f13c4f72df6051c56d
7c5c104b6093b6c3f2c8839591797c6812efc290
/parallel_xnoise.py
d41fac0c2b46deb1252dd04b1e746646b8ad0fa0
[]
no_license
parkus/galex
a29262c281834bcdb973f5f27c2a77460ebc029a
06065a7cc5a600c4b94fa7ce64cc841b34f2015f
refs/heads/master
2016-09-11T02:13:28.732370
2014-07-28T22:12:03
2014-07-28T22:12:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,465
py
# -*- coding: utf-8 -*- """ Created on Fri May 16 12:58:49 2014 @author: Parke """ import pointers, utils from multiprocessing import Pool from optparse import OptionParser from astropy.table import Table import variability as vb import pdfutils as pu import pdb parser = OptionParser() parser.add_option("-c", "--cat"...
[ "parke.loyd@gmail.com" ]
parke.loyd@gmail.com
030d3c79799f9e6685828f4e6ee3aed8b8bd432e
eab36f5adb15ba24acb51ace389959fa9592346f
/twisted-intro/twisted-client-4/get-poetry.py
87c612e3554aac9052021a3b37cee6d2425ee627
[ "MIT" ]
permissive
yance-dev/twdemo
ebda30c32dae3e722e740b71fe5623a6f47ff70f
e331f5a1c13df1d9e5bc2bba8a9a50dfd9b6b2ba
refs/heads/master
2022-02-07T10:29:28.804627
2019-06-14T16:57:39
2019-06-14T16:57:39
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,979
py
# This is the Twisted Get Poetry Now! client, version 4.0 import optparse, sys from twisted.internet import defer from twisted.internet.protocol import Protocol, ClientFactory def parse_args(): usage = """usage: %prog [options] [hostname]:port ... This is the Get Poetry Now! client, Twisted version 4.0 Run it ...
[ "1415940604@qq.com" ]
1415940604@qq.com
3c3b43a4cb14bf35539294a2f18b1ddab3a02e8d
653a3d9d66f3d359083cb588fc7c9ece8bb48417
/src/graph_transpiler/webdnn/backend/webgpu/kernels/max_pooling_2d.py
49ab3d4cef396af1c366129263b980c319d888a9
[ "Zlib", "MIT" ]
permissive
leonskim/webdnn
fec510254b15f3dec00f5bed8f498737b372e470
f97c798c9a659fe953f9dc8c8537b8917e4be7a2
refs/heads/master
2020-04-15T18:42:43.632244
2019-01-10T10:07:18
2019-01-10T10:07:18
164,921,764
0
0
NOASSERTION
2019-01-09T19:07:35
2019-01-09T19:07:30
Python
UTF-8
Python
false
false
3,947
py
from typing import List from webdnn.backend.code_generator.allocator import MemoryLayout from webdnn.backend.code_generator.injectors.buffer_injector import BufferInjector from webdnn.backend.code_generator.injectors.kernel_name_injector import KernelNameInjector from webdnn.backend.webgpu.generator import WebGPUDescr...
[ "y.kikura@gmail.com" ]
y.kikura@gmail.com
6a0f7809c86fd780ee902070abef4e4f821bb4fa
02360d68d2af6d4f40779dbb8223003b89d6209b
/algorithm_course/divide_conquer_algorithms/closest_points_problem.py
01000d9fe0768e95495cf7fd2620d3ded0379926
[]
no_license
codefoxut/pycourses
88b5b8490ea7a0d1c852ee008a62d37fb5112450
4163fdb96f3fcc962b95c5b56bece939e1f5d75e
refs/heads/main
2023-03-27T22:28:14.215125
2021-04-05T18:42:00
2021-04-05T18:42:00
354,257,302
0
0
null
null
null
null
UTF-8
Python
false
false
2,014
py
import math class Point: def __init__(self, x, y): self.x = x self.y = y def distance(p, q): """euclidean distance.""" return math.sqrt((p.x - q.x) ** 2 + (p.y - q.y) ** 2) def brute_force_approach(sub_array): # distance between all the points of sub array. min_distance = floa...
[ "ujjwal.tak@go-mmt.com" ]
ujjwal.tak@go-mmt.com
af2820638c3a3bbddaa78f505cf4d912cbd2d28f
ef6bffb9a672520950f10d6078ec7a6847ec6cce
/tests/test_scraper.py
4d25b506237fa192e14d7ffe2014f838f46d876a
[]
no_license
tybrs/yelp-corpus-generator
b0858315fd445d6114ff0c10d30f6662b489f573
7239ab2c4c911d3c0331b33c14783b9d4d8a6f0d
refs/heads/master
2021-10-13T15:36:04.389684
2021-10-06T23:35:24
2021-10-06T23:35:24
154,608,069
1
0
null
2021-10-06T23:36:57
2018-10-25T04:02:37
Python
UTF-8
Python
false
false
955
py
import requests from scrapy.http import Request, TextResponse from yaml import load, SafeLoader def test_xpaths(): """Unit test to make sure all xpaths in src/yelp_scrapy/xpath.yml retrieve a non-empty output for predefined test urls. """ config = load(open('scrapy/src/yelp_scrapy/xpath.yml', 'r'), ...
[ "gavagai@archy.localdomain" ]
gavagai@archy.localdomain
f23157568aaa28ae0889b1754bf588b412951638
87695989bbafe0ec6892cb4d1bb1965c84d6b35f
/vatt/utils/train/restore.py
837dd5fc3c500bc269bf00adf7462038e39318aa
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
guangyusong/google-research
ef6e85e7de75bd1289575374accc7fe19af896c7
cac4a7f3b82ab629e25fa8afe33ce80cc6933e54
refs/heads/master
2022-01-01T11:22:31.825772
2021-12-30T20:08:40
2021-12-30T20:19:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
7,711
py
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
[ "copybara-worker@google.com" ]
copybara-worker@google.com
d17c6af9dbeb02a7eb6d51bd2bb76681a825baab
6e57bdc0a6cd18f9f546559875256c4570256c45
/development/vndk/tools/header-checker/tests/module.py
82f6baa3b4b0b3f484f210df181dbf2744908297
[ "Apache-2.0" ]
permissive
dongdong331/test
969d6e945f7f21a5819cd1d5f536d12c552e825c
2ba7bcea4f9d9715cbb1c4e69271f7b185a0786e
refs/heads/master
2023-03-07T06:56:55.210503
2020-12-07T04:15:33
2020-12-07T04:15:33
134,398,935
2
1
null
2022-11-21T07:53:41
2018-05-22T10:26:42
null
UTF-8
Python
false
false
16,057
py
#!/usr/bin/env python3 import os import sys import tempfile import_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..')) import_path = os.path.abspath(os.path.join(import_path, 'utils')) sys.path.insert(1, import_path) from utils import run_header_abi_dumper_on_file from utils import run_header_abi_l...
[ "dongdong331@163.com" ]
dongdong331@163.com
2c590e0a193a11e38be8147c00b75b88ea0a4d98
93f93f96e8ef92e7bf5185ca7d8f12ecd9ee23f2
/0x0A-python-inheritance/8-rectangle.py
a40d3e0b1ff834e52c4c366f4a28acc2cb4858f2
[]
no_license
Alafresh/holbertonschool-higher_level_programming
1a54091d94eb2370badf35117c03b27e3baa1e35
111cf99415b0a0557c6f21f5acbe4c7b8ba5f325
refs/heads/master
2020-07-22T21:07:27.921742
2020-02-13T15:34:30
2020-02-13T15:34:30
207,327,647
0
0
null
null
null
null
UTF-8
Python
false
false
570
py
#!/usr/bin/python3 class BaseGeometry(): def area(self): raise Exception('area() is not implemented') def integer_validator(self, name, value): if type(value) != int: raise TypeError(name + ' must be an integer') elif value <= 0: raise ValueError(name + ' must...
[ "Alafresh" ]
Alafresh
455b5a68e06d42c27ff61f75e671d72f76de854f
435b287d58ed65bfa65bf042134e1bb1bfaed0dd
/day18/maze2.py
26df6506f86db48faee14acfb71ac7778833e7c7
[]
no_license
marxin/AoC2019
2ef5b79b37351e86be3e44c9d400332f6dae3ae0
2a76ec78908be2f3c3c145fef6e52ade11c48a7b
refs/heads/master
2020-12-01T20:53:38.068563
2019-12-25T08:38:05
2019-12-25T08:38:05
230,766,575
0
0
null
null
null
null
UTF-8
Python
false
false
12,054
py
#!/usr/bin/env python3 data = ''' ######### #b.A.@.a# ######### ''' data = ''' ######################## #f.D.E.e.C.b.A.@.a.B.c.# ######################.# #d.....................# ######################## ''' data = ''' ######################## #...............b.C.D.f# #.###################### #.....@.a.B.c.d.A.e.F.g...
[ "mliska@suse.cz" ]
mliska@suse.cz
87c1f871ded7f21d2508012994d13c3340fe3122
35b6cc658ba30c9c7b906dea40dafe48a01dd093
/Energy/Sinks/Exhibits/OceanVoyager/calc_hydraulic.py
75de46a7f2251503ba7458f443cc1e2faaab2e35
[]
no_license
rothnic/GeorgiaAquarium
4f56d374516560914f53dab520331c08bcb802e0
5b650decfafbe8b8b5e3298a3a2da9f2db5e1daa
refs/heads/master
2020-04-14T22:40:25.246815
2014-07-31T20:22:57
2014-07-31T20:22:57
null
0
0
null
null
null
null
UTF-8
Python
false
false
6,724
py
__author__ = 'Nick' from math import pi from numba import jit from Common.FfnetSurrogate.FfnetSurrogate import FfnetSurrogate import os def init_protein_skimmer_surrogate(): # Create configuration for surrogate inputCols = [ "ratedSpeed", "flc", "ratedEff", "ratedHead", ...
[ "nlr06886@gmail.com" ]
nlr06886@gmail.com
c87ea0bf9da1164e6130ba4e4549aa781cf6c0a6
6efdde402815db9865a150cdaaded0518ff6756f
/GameLauncher.py
3fc3242561a9c53a53d1f0224e84a138a2b88162
[]
no_license
BoxifyMC/BalloonPopper
6ae3719825a965c1811570dd68ef6beb4804bba7
adb8de0c49afea1e2dbbc2518f4216450234d8ce
refs/heads/master
2022-11-26T22:36:14.511055
2020-08-01T11:47:12
2020-08-01T11:47:12
284,248,570
0
0
null
null
null
null
UTF-8
Python
false
false
14
py
import client
[ "noreply@github.com" ]
BoxifyMC.noreply@github.com
adb37daac3e41737f7a4b3252d8f1793df7914f5
750bb7c7e00281c63678bf63fa7d2ceb28f9092d
/setup.py
ea00e7b52b27e4df4ce4f248788275cf951d06f9
[ "MIT" ]
permissive
the-bantoo/coffee_moments
90003e7d83461cda4d58f795a3368e38be40c710
725d4b795fedb4a3994290bb0e09cf7f48fbbd68
refs/heads/main
2023-08-05T07:16:37.203621
2021-08-24T08:57:54
2021-08-24T08:57:54
384,875,724
0
0
null
null
null
null
UTF-8
Python
false
false
518
py
from setuptools import setup, find_packages with open('requirements.txt') as f: install_requires = f.read().strip().split('\n') # get version from __version__ variable in coffee_moments/__init__.py from coffee_moments import __version__ as version setup( name='coffee_moments', version=version, description='Custo...
[ "frappe@ubuntu" ]
frappe@ubuntu
14ce2ae12e9992160937bc9c2370454accbd757a
5f1737a12f5143c7b90b7b9708ae8122006e20ef
/test_basic.py
27479b9e849f8e1d86834e137aaf26491464b07d
[]
no_license
KarumanchiMahesh/Account-Management-API-DevOps-
569d620548efc7926d7b78fe216c5f2893f2d156
d552b3674246dde82ff77aee4213900d69d9d585
refs/heads/master
2022-12-29T13:34:32.207673
2020-10-13T13:09:55
2020-10-13T13:09:55
303,705,751
0
0
null
null
null
null
UTF-8
Python
false
false
2,447
py
import unittest import helper, services class TestSum(unittest.TestCase): def test_header(self): headers = 'application/json' result = helper.is_headers_supported(headers) self.assertEqual(result, True) def test_nagtive_header(self): negative_headers = 'application/x...
[ "maheshkarumanchi23@gmail.com" ]
maheshkarumanchi23@gmail.com
3c1fe29ea31af97b0f515cbc89433aa3a6d5f930
66bc879a01c972291532e7fe468b9cd1fae2ffe3
/contact_book/asgi.py
1da888f13e0a3e7ae884a6ccc98bc2e78678fded
[]
no_license
Santhasangar/contactBook
02e03bc06b792ca9aba9bfc1e2ba830f51b9ff03
3486437e8d5ea9b618b6743f9e3a90e576672164
refs/heads/main
2023-03-01T15:29:38.994838
2021-01-31T07:47:07
2021-01-31T07:47:07
null
0
0
null
null
null
null
UTF-8
Python
false
false
417
py
""" ASGI config for contact_book project. It exposes the ASGI callable as a module-level variable named ``application``. For more information on this file, see https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/ """ import os from django.core.asgi import get_asgi_application os.environ.setdef...
[ "noreply@github.com" ]
Santhasangar.noreply@github.com
05bca5cdded25acf4419fa23cf1c9df996f234ed
5ede9cb1b4a13286c7844680f3ca3e7befb0f06d
/www/node/dragonfly/patch-tools_gyp_pylib_gyp_common.py
5255c7be2a70d48fc664d1f592e62d7567bee44a
[]
no_license
waynemareci/DPorts
3fdeb479f3aaee1188704799c143acaa0191de38
8f47230488a8a169641b023a357dbc9d50858d30
refs/heads/master
2021-01-17T08:52:43.282910
2014-12-16T05:42:03
2014-12-16T05:42:03
null
0
0
null
null
null
null
UTF-8
Python
false
false
380
py
--- tools/gyp/pylib/gyp/common.py.orig 2013-02-25 21:07:25.000000000 +0000 +++ tools/gyp/pylib/gyp/common.py @@ -369,6 +369,8 @@ def GetFlavor(params): return flavors[sys.platform] if sys.platform.startswith('sunos'): return 'solaris' + if sys.platform.startswith('dragonfly'): + return 'freebsd' if ...
[ "nobody@home.ok" ]
nobody@home.ok
30bc9b07ca0d937ca4ccdd7c2383acae700c1871
2fd087fbc5faf43940153693823969df6c8ec665
/pyc_decrypted/latest/encodings/ptcp154.py
9e2efa4550ab04d8b4c7ecfcc077ba9fc21a947f
[]
no_license
mickeystone/DropBoxLibrarySRC
ed132bbffda7f47df172056845e5f8f6c07fb5de
2e4a151caa88b48653f31a22cb207fff851b75f8
refs/heads/master
2021-05-27T05:02:30.255399
2013-08-27T13:16:55
2013-08-27T13:16:55
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,569
py
#Embedded file name: encodings/ptcp154.py import codecs class Codec(codecs.Codec): def encode(self, input, errors = 'strict'): return codecs.charmap_encode(input, errors, encoding_map) def decode(self, input, errors = 'strict'): return codecs.charmap_decode(input, errors, decoding_map) clas...
[ "bizonix@me.com" ]
bizonix@me.com
be68137aa8777b508a725fe7e108c85268c0621f
061c1c0907987f14b44dfe781babebdf2d0c91ad
/emd-src/plot_figureS3.py
9408dfca4e41bc93ac98558e3cb2fc7f63eadebe
[]
no_license
StromTroopers/asymmetric-motion
0b058ef21aaf3a55cd030923b43dddbb3e888b94
97f511d3fc6640522e339e5edba245e955485d96
refs/heads/master
2021-12-03T21:02:08.229255
2014-11-13T10:31:54
2014-11-13T10:31:54
null
0
0
null
null
null
null
UTF-8
Python
false
false
2,827
py
import numpy as np import h5py from emd.receptivefield import ReceptiveField # Receptive Field parameters # ========================== EMD_SIGMA_RF = {'sigma_theta': np.radians(33), 'sigma_phi_a': np.radians(45), 'sigma_phi_b': np.radians(102)} def plot_figure_S3A(ax0, ax1, cmap): ...
[ "mail@andreaspoehlmann.de" ]
mail@andreaspoehlmann.de
f1a08c6d3beec77681adb00a7cb1846e1855db7f
ff36072cee91426f338abc8109936f136bb9845c
/user/migrations/0001_initial.py
e91188a33e8fa637275f6d84ed1feeb3783d441c
[]
no_license
jsparmani/city_governance_api
bc2454d26f6b0c22498080776fba7cd3450c078b
96f9ea4024a5931fbda3f3074b2e29f65bb68f9b
refs/heads/master
2022-02-27T19:28:01.044257
2019-10-20T02:14:32
2019-10-20T02:14:32
215,721,679
0
0
null
null
null
null
UTF-8
Python
false
false
864
py
# Generated by Django 2.1.7 on 2019-10-18 18:20 from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ ('department', '0006_file_department'), migrations.swappable_depe...
[ "jsparmani@gmail.com" ]
jsparmani@gmail.com
3362eef2c11297763d25919eb761c0fc5eb0f66b
4f062f49d8c82419c760c28c6d7b00f8ce3f4836
/ipyslack/__init__.py
8f06e9172e3347c5712ede18c4618d68c376a18d
[ "MIT" ]
permissive
konstantint/ipyslack
bb47e75d001931b7689700e9d9efd449b96506f1
ccfc2b26a025c6d82b390954b31d62481980dc3d
refs/heads/master
2021-01-24T06:44:20.026797
2017-06-07T17:08:49
2017-06-07T17:08:49
93,318,737
5
0
null
null
null
null
UTF-8
Python
false
false
4,700
py
""" IPython magic for sending slack notifications. Copyright 2017, Konstantin Tretyakov Based on: https://github.com/kalaidin/ipytelegram/blob/master/ipytelegram.py License: MIT """ import sys import os import slacker import argparse import string from io import StringIO, BytesIO from IPython.core.magic import Magics...
[ "kt@ut.ee" ]
kt@ut.ee
5657f8b67362c0a1f6e3a5e0cd3de807cf2f0ca9
60f85abda06894729281f6cd86d33a06119c89e8
/test_python_docx/test_python_docx.py
28f48d0b63933698e11344cea2ab5babc88391ca
[]
no_license
lijingchn/html2doc
ac69acd9597cc91e97e5e8e5caf15c2f6c60843a
358fb86a8c64dda21926cd6df313f0aad7e8cca4
refs/heads/master
2021-01-23T16:50:59.270025
2016-11-20T08:47:51
2016-11-20T08:47:51
68,780,834
0
0
null
null
null
null
UTF-8
Python
false
false
4,973
py
#!/usr/bin/env python # encoding: utf-8 import json import pandas as pd from docx import Document from docx.shared import Inches from docx.shared import Pt # 处理元数据 class Handle_metadata(): def __init__(self,datafile): self.datafile = datafile self.metadata = self.get_metadata() def get_metad...
[ "lijingjing.chn@gmail.com" ]
lijingjing.chn@gmail.com
f0c4d0d5527dba4cc2a7c61ff1be203503bf82bc
a9ce9e90eceb4c527ba368fb32e7be3eb691f90d
/Aplicação/livraria/forms/cliente.py
16464dd7fb1fec6ba7afe63fb14331919339e8c8
[]
no_license
reno/projeto-eng-software
9aeaf2f4e012fb08d0bc4923d496e757d443ddb5
a5e1f3c1009e5e056add76a60e44c29e2954b6d5
refs/heads/master
2022-01-10T09:22:40.365657
2019-06-29T17:11:51
2019-06-29T17:11:51
183,648,698
1
0
null
null
null
null
UTF-8
Python
false
false
2,090
py
""" livraria/forms/cliente.py Define formularios usados no menu Clientes. """ from flask_wtf import FlaskForm from wtforms import StringField, DateField, SelectField, FormField, SubmitField from wtforms.validators import DataRequired as Data, Email, Regexp from livraria.models import * MSG_DOC = 'Informe apenas núme...
[ "renan.modenese@gmail.com" ]
renan.modenese@gmail.com
0f51a10d7923e3cc41c733b6ac55a879f4acbedb
b15d2787a1eeb56dfa700480364337216d2b1eb9
/accelbyte_py_sdk/api/ugc/operations/admin_content/admin_download_content_preview.py
9416b063ae2bbfaa0cbe46ad23d3786f5fa0d964
[ "MIT" ]
permissive
AccelByte/accelbyte-python-sdk
dedf3b8a592beef5fcf86b4245678ee3277f953d
539c617c7e6938892fa49f95585b2a45c97a59e0
refs/heads/main
2023-08-24T14:38:04.370340
2023-08-22T01:08:03
2023-08-22T01:08:03
410,735,805
2
1
MIT
2022-08-02T03:54:11
2021-09-27T04:00:10
Python
UTF-8
Python
false
false
7,206
py
# Copyright (c) 2021 AccelByte Inc. All Rights Reserved. # This is licensed software from AccelByte Inc, for limitations # and restrictions contact your company contract manager. # # Code generated. DO NOT EDIT! # template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint:...
[ "elmernocon@gmail.com" ]
elmernocon@gmail.com
09e0a676086371654a56d2662bdd6a243542a56c
a1cb1dbad03077c727b84901953d3ecccfa0f623
/Trump x Bible/tweet_dumper.py
cf9d8b2c888451a1453e32d881eec46af1c02041
[]
no_license
bgreenawald/Markov-Text-Generation
8982bfd4e0866882f0114ec1cde11ef8fc976c45
fedf5e84fbc3a8cd7bd0c7179a8913f6bd1d6e5c
refs/heads/master
2021-01-25T13:46:48.144129
2019-06-07T01:21:41
2019-06-07T01:21:41
123,608,715
0
0
null
null
null
null
UTF-8
Python
false
false
1,975
py
#!/usr/bin/env python # encoding: utf-8 import tweepy #https://github.com/tweepy/tweepy import csv #Twitter API credentials consumer_key = "pmTt2HRgUvx5uFWJVCNFZ2gJw" consumer_secret = "hhLQP7eUf0GkzHVjbj0Rsh6lavtTWpvXSSUTeTuYXO0uJgx6qx" access_key = "219705420-F12q5r55is7BsJVvsoJPn3BpYiWpaD7sHtuAbF1T" access_secret ...
[ "bgreenawald@gmail.com" ]
bgreenawald@gmail.com
61f83d9968d8194dc8460f48004575157a02f201
e56d792be935f2065aeb6dabaf742fcfe8a622ef
/Util/hsv_codes.py
757b81bf658bf05210a6e0073f8f5bc525e73a5b
[ "MIT" ]
permissive
huzz/LaserMote
464c4f862706fcaad4bb4004f5e2b6224ca80d31
acbf69a7e37746ae3a19138eb0c7fa30895511fa
refs/heads/master
2021-05-29T16:35:20.192286
2015-07-31T02:19:48
2015-07-31T02:19:48
null
0
0
null
null
null
null
UTF-8
Python
false
false
1,128
py
import cv2 import numpy as np cap = cv2.VideoCapture(0) def nothing(x): pass # Creating a window for later use cv2.namedWindow('result') # Starting with 100's to prevent error while masking h, s, v = 100, 100, 100 # Creating track bar cv2.createTrackbar('h', 'result', 0, 179, nothing) cv2.createTrackbar('s', ...
[ "ammsa7@gmail.com" ]
ammsa7@gmail.com
567639e372965e982c4e51dfa859140ce4a49b73
31e41995dea5e4a41bc9b942da7e5266cd686757
/learning/training/pythonsolns/py3/solns/timer.py
edd7d97a844d3616244d9d2fd6d29205b4fbc624
[]
no_license
tamle022276/python
3b75758b8794801d202565c05d32976c146beffd
4fec225d1e5e2bf0adac5048f7f9f3313ac76e23
refs/heads/master
2020-04-01T21:03:01.458768
2017-03-13T20:47:35
2017-03-13T20:47:35
64,878,939
0
0
null
null
null
null
UTF-8
Python
false
false
470
py
#!/usr/bin/env python3 # timer.py - Clock Exceptions from ClockException import * from Clock import Clock try: c1 = Clock(12, 33) print("%d:%d" %(c1.getHour(), c1.getMinute())) c2 = Clock (12, 73) # raises exception except ClockException as ex: print("%s: %s" %(ex.__class__.__name__, ex.re...
[ "tam.le@teradata.com" ]
tam.le@teradata.com
106229842fc806a718a90f7bd279400a6c6a8117
16f7d4d8a1826b0a60fc4ced662dc4ec029c60af
/Code/Libs/Python/PlotData.py
3aa2dfd6fcf24e638926618e0b17351abf850967
[]
no_license
Sharonrab/Autoboat
8ca5d935ce35b720298a957795e3352c00408cc9
7735ea0848235833835670a309486003864544a7
refs/heads/master
2021-01-16T19:53:50.445742
2016-03-01T20:28:32
2016-03-01T20:28:32
52,815,718
0
0
null
2016-02-29T19:02:56
2016-02-29T19:02:56
null
UTF-8
Python
false
false
2,395
py
# This file plots the data for given field(s) from .CSV files of recorded runs. With multiple fields specified, they all get plotted together. # Additionally, if the first argument is a number, it will plot this data for only that autonomous section import numpy as np import matplotlib.pyplot as plt import sys ...
[ "susurrus@gmail.com" ]
susurrus@gmail.com
e45a55e79d0de07c47f727688a518742cdd893e3
6e8fa7dfcd59fd545b9fff2d0935474582100192
/scripts/change_snap_to_csv.py
d03ca559ac0f7ad0b12a817baa050336239a9355
[]
no_license
avudzor/optimizing-subgraph-queries-combining-binary-and-worst-case-optimal-joins
2e85530b7a8ac5796f33f93df21d903ee534cef3
be9a64befd5212a1068ed2669e8f07933fabed55
refs/heads/master
2023-03-20T10:15:49.066800
2020-09-10T16:00:14
2020-09-11T00:53:13
null
0
0
null
null
null
null
UTF-8
Python
false
false
3,165
py
#!/usr/bin/env python3 """ Given an absolute path to a directory containing '.txt' files from The Stanford Large Network Dataset Collection, the script outputs for each file in the directory an edges '.csv' files. The CSV is later loaded to graphflow and saved to a directory in binary format. """ import sys import argp...
[ "m.amine.mhedhbi@gmail.com" ]
m.amine.mhedhbi@gmail.com
1c4c677cf4b4b6ae777e9e48d5dd9ed1d8338f8d
6268a19db5d7806b3a91d6350ec2777b3e13cee6
/old_stuff/code/aaron-cv/src/loss/hpo.py
ff3d306435b65ee6e4cc699da739304aaae99086
[]
no_license
aaronlws95/phd_2019
3ae48b4936f039f369be3a40404292182768cf3f
22ab0f5029b7d67d32421d06caaf3e8097a57772
refs/heads/master
2023-03-22T14:38:18.275184
2021-03-21T11:39:29
2021-03-21T11:39:29
186,387,381
0
0
null
null
null
null
UTF-8
Python
false
false
15,131
py
import torch import time import math import time import torch.nn as nn import numpy as np from src.utils import FPHA class HPOLoss(torch.nn.Module): """ HPO loss calculation """ def __init__(self, cfg): super().__init__() self.W = None self.H = None ...
[ "aaronlws95@gmail.com" ]
aaronlws95@gmail.com
313e02753867389f88313c3544ac0e53d58f6a9d
99c4d4a6592fded0e8e59652484ab226ac0bd38c
/code/batch-2/vse-naloge-brez-testov/DN6-M-108.py
3a22a42ad2bd80cd9b45619ec8eaeb982037e6c5
[]
no_license
benquick123/code-profiling
23e9aa5aecb91753e2f1fecdc3f6d62049a990d5
0d496d649247776d121683d10019ec2a7cba574c
refs/heads/master
2021-10-08T02:53:50.107036
2018-12-06T22:56:38
2018-12-06T22:56:38
126,011,752
0
0
null
null
null
null
UTF-8
Python
false
false
2,222
py
def besedilo(tvit): a = tvit.split(" ") stavek = " ".join(a[1:]) return stavek def zadnji_tvit(tviti): slovar = {} for tvit in tviti: avtor = tvit.split(":")[0] slovar[avtor] = besedilo(tvit) return slovar def prvi_tvit(tviti): slovar = {} for tvit...
[ "benjamin.fele@gmail.com" ]
benjamin.fele@gmail.com