blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f6538d7659db6addfb5002c1185aa040078ec4e | e80ab87a327c66c5e550ed4cbd23b1f96f409b4c | /assignment1/cs231n/classifiers/neural_net.py | e1a28c2663b8e5f93cc72b72470f60c9a1da3fe0 | [
"MIT"
] | permissive | iraquitan/stanford-cnn-visual-recog | 58a7a783e9165dd6af4cb079e9944d06a7fb7505 | 28d515661b65dc525f4d0532eeb0f37741d1c6d0 | refs/heads/master | 2022-12-20T19:18:19.837040 | 2019-06-05T20:46:19 | 2019-06-05T20:46:19 | 177,224,658 | 0 | 0 | MIT | 2022-12-07T23:32:26 | 2019-03-23T00:13:44 | Jupyter Notebook | UTF-8 | Python | false | false | 11,830 | py | from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
from .softmax import softmax_loss_vectorized
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network. The net has an input dimension of
N, a hidden layer dimension of H, and performs classification ove... | [
"iraquitanfilho@gmail.com"
] | iraquitanfilho@gmail.com |
aa680423f2958a393e449a990b4747fc8f1b6e0a | 7b5828edda7751700ca7002b40a214e39e5f48a8 | /EA/simulation/gsi_handlers/business_handlers.py | 37908330768a0f86bd61914ae6d9ee428b3c28f5 | [] | no_license | daniela-venuta/Sims-4-Python-Script-Workspace | 54c33dac02f84daed66f46b7307f222fede0fa62 | f408b28fb34626b2e3b2953152343d591a328d66 | refs/heads/main | 2023-03-29T18:08:39.202803 | 2021-03-30T19:00:42 | 2021-03-30T19:00:42 | 353,111,243 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,223 | py | from business.business_enums import BusinessType, BusinessEmployeeType
from gsi_handlers.gameplay_archiver import GameplayArchiver
from sims4.gsi.dispatcher import GsiHandler
from sims4.gsi.schema import GsiGridSchema, GsiFieldVisualizers
import services
business_managers_schema = GsiGridSchema(label='Business Managers... | [
"44103490+daniela-venuta@users.noreply.github.com"
] | 44103490+daniela-venuta@users.noreply.github.com |
95f3efbcfbb527dfeaefc187e196a7b44e16a647 | fa5d4f205daea86b7a1a2ac76701aadfba43ebf5 | /blog/migrations/0009_auto_20190205_1944.py | f3b2ad7b5cce5a31cf74a000553659dfe93c7414 | [] | no_license | Gootime/plateforme_django | 3b9e0d043e9c38bf01ca50d5988eb19a50d5a7db | 8c0840964258873938e79cc0b2f99612d4a73ee4 | refs/heads/master | 2022-12-08T09:32:19.020591 | 2019-04-19T14:48:28 | 2019-04-19T14:48:28 | 177,818,395 | 0 | 0 | null | 2022-12-08T01:21:45 | 2019-03-26T15:36:20 | HTML | UTF-8 | Python | false | false | 1,042 | py | # Generated by Django 2.1.3 on 2019-02-05 18:44
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('blog', '0008_capsule_category'),
]
operations = [
migrations.CreateModel(
name='PlaylistOrder',... | [
"gotimeingame@gmail.com"
] | gotimeingame@gmail.com |
24f09b1506d38dc1f4573c4e39aea68ff1b55a1d | 671022d37e94aa53b85094b4084ad7afd31132c9 | /webconfig/wsgi.py | f61a80ee5c59fd38a4c5ea9f9201da3bc30e7526 | [
"MIT"
] | permissive | gmferise/tree-model-demo | b1aa6724571425573cd5884503020c60272fb0d4 | 6305e033c1683651ddbfb45d9987c4f6461efdd0 | refs/heads/main | 2023-08-15T08:18:31.271625 | 2021-10-07T14:35:30 | 2021-10-07T14:35:30 | 414,634,796 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for webconfig 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/3.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"gmferise@gmail.com"
] | gmferise@gmail.com |
668a65b4b0b55b74b317267172130bd341836dc6 | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_6_mask_unet/mask_5_3a_sobel_k5/sobel_k5_s001_6l/step10_a_mask_5_3_sobel_k5_s001_6l.py | 11a26e1fd09e420e7e64ad4554eaaf5af90295e7 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,254 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
fe03050162375aa635804696a5e813c44fe84d13 | 712458e610774b753618307f85f504b2260917ee | /populate_rango.py | f0897dabaaf1419732535f94b65778b00a11f46b | [] | no_license | AhmadZafarani/shetab | cc86f1dcc3e9e9765136d4d3d8354a25839adfca | 9af489076c919543eda653ba4eabd9cbab442531 | refs/heads/master | 2023-06-12T13:16:34.888327 | 2021-07-08T06:54:02 | 2021-07-08T06:54:02 | 355,777,425 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,258 | py | import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE',
'tango_with_django_project.settings')
import django
django.setup()
from rango.models import Category, Page
def populate():
python_pages = [
{"title": "Official Python Tutorial",
"url": "http://docs.python.org/2/t... | [
"ahmadzafarani2013@gmail.com"
] | ahmadzafarani2013@gmail.com |
7c7a13988c1414c47d5397c1e6f97e7be4e23afa | 90b95ac525ee731ec5ba7d5da5c9038396ac4c3d | /zoom_data/migrations/0032_auto_20180129_1556.py | 852054a2c4f744955572c6156d903d4e86f2e8a1 | [] | no_license | 5klynna5/zoom_c | 33364146915611917ae0e6e0fd49233370424929 | 59c39eece1dd0ad5e7e210f4f03d8bb64df44b98 | refs/heads/master | 2021-05-12T04:06:39.031130 | 2018-08-04T23:52:19 | 2018-08-04T23:52:19 | 117,153,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('zoom_data', '0031_auto_20180129_1151'),
]
operations = [
migrations.AlterField(
model_name='annual',
... | [
"anderson.kirsten.l@gmail.com"
] | anderson.kirsten.l@gmail.com |
71e5e0ac4ac04f50cb98103aed3a8f745c736247 | 630c4570bc8dbdfe47b76133579451ad901ccfb1 | /opecvPrj/asgi.py | ff04354449bbecb12045a07434d1835c117ab788 | [] | no_license | camelrush/face_recognition | cb97e35887de664571f406b51f27fb33ebf2fc14 | 7c1416b184758f1f9d45fec67ead5a2c5198e3cc | refs/heads/master | 2021-02-07T17:04:28.059745 | 2020-03-28T16:01:43 | 2020-03-28T16:01:43 | 244,054,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for opecvPrj 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.setdefault('DJANGO_SETT... | [
"shinya.pyonkici@gmail.com"
] | shinya.pyonkici@gmail.com |
10b42b9c096fb19446e043163c9cfb3ae6a2ed9d | 098f80474295aa024657330b8f0813eca7d015c2 | /UnrealPythonLibrary/PythonLibraries/PythonHelpers.py | 9614830514ae6520ef42d4429675bed7ed05a765 | [] | no_license | sniler/UnrealScript | e4c4387caa6402a61b4bf0ba8952faf598e4464e | a4587d578366551b2470862f18b33c42439c5cdd | refs/heads/master | 2023-04-01T18:45:37.803690 | 2021-04-13T11:25:13 | 2021-04-13T11:25:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 929 | py | # unreal._ObjectBase
# https://api.unrealengine.com/INT/PythonAPI/class/_ObjectBase.html
import unreal
# object_to_cast: obj unreal.Object : The object you want to cast
# object_class: obj unreal.Class : The class you want to cast the object into
def cast(object_to_cast=None, object_class=None):
try:
... | [
"timmyliang@tencent.com"
] | timmyliang@tencent.com |
ef6abd3fdc6fc6edee0112e69117a31560195ac9 | 0e719bc0915f83d0fb96a252ab24af9159624a44 | /Learning-python/scratch_paper.py | bf96c2d9827e17f7e7b13c46db92f3fddf2394d1 | [] | no_license | skhadka007/learning_algos | 09a0d89194fe610186e5af03a4683b971d1c7f2c | a9f7e432f5b6b5a2ccefb713e029c43be9421969 | refs/heads/master | 2023-09-02T03:11:27.855951 | 2021-10-04T14:11:34 | 2021-10-04T14:11:34 | 286,854,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,524 | py | location = 11
location = str(location)
# print("checkEmpty:", location)
row = int(location[0])
column = int(location[1])
# print(row, column)
row1 = ['X', ' ', 'X']
row2 = ['O', ' ', ' ']
row3 = ['X', 'O', 'X']
# if (row1[0]=='X' and rXw1[1]=='X' and row1[2]=='X'): #horizontals
# return 'X'
# elif (row... | [
"skhadka.code@gmail.com"
] | skhadka.code@gmail.com |
c619da97bac03ac05837116a61091bc98f5f3abe | a90696463a19e02a9cb4839b6fc0a198ae65994c | /app.py | 4721ac69381c12f20f13d991d52a27e1d2dac365 | [] | no_license | gurrambhaskar25/graduateadmissionprediction | d75566fc7a5af97fa6f71e75c37e0e252e174d99 | 28238f078026933c51dde781e2f8b74ce4291d26 | refs/heads/main | 2023-05-13T19:51:07.045796 | 2021-06-08T07:53:55 | 2021-06-08T07:53:55 | 309,035,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | from flask import Flask , render_template,request
import pickle
from sklearn.linear_model import LinearRegression
import numpy as np
app = Flask(__name__)
model = pickle.load(open('college.pkl', 'rb'))
@app.route('/')
def home():
return render_template('index.html')
@app.route('/predict',methods=['PO... | [
"noreply@github.com"
] | noreply@github.com |
0e4ea3b20b875aa0d0f525b5688b469b1ae1cd07 | 242f1dafae18d3c597b51067e2a8622c600d6df2 | /src/1300-1399/1389.create.target.array.in.given.order.py | fbf27d7eff98adccaa487419a2b2644f45f97e17 | [] | no_license | gyang274/leetcode | a873adaa083270eb05ddcdd3db225025533e0dfe | 6043134736452a6f4704b62857d0aed2e9571164 | refs/heads/master | 2021-08-07T15:15:01.885679 | 2020-12-22T20:57:19 | 2020-12-22T20:57:19 | 233,179,192 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from typing import List
class Solution:
def createTargetArray(self, nums: List[int], index: List[int]) -> List[int]:
ans = []
for i, x in zip(index, nums):
ans.insert(i, x)
return ans
if __name__ == '__main__':
solver = Solution()
cases = [
([1], [0]),
([0,1,2,3,4], [0,1,2,2,1]),
(... | [
"gyang274@gmail.com"
] | gyang274@gmail.com |
7dc23f2e6b30c1f56cb61a76d225e09a83b7d5b5 | d34b39c8f0a2f7ba39cd68c46a667c0ba462c939 | /Assignments/A3/code/data.py | e6c31a513bbe5cc7b92bf97a9b0de7ecdcc05294 | [] | no_license | hfiuza/Object-recognition-and-computer-vision | f0f0adb4ba8202bab5bc1b6b2d5acd13bb0f62b2 | 1462f9f1e4bfe597dcd5175375c48467839d5394 | refs/heads/master | 2020-04-01T14:54:00.270861 | 2018-12-28T15:13:04 | 2018-12-28T15:17:48 | 153,312,685 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,115 | py | import torchvision.transforms as transforms
# once the images are loaded, how do we pre-process them before being passed into the network
# by default, we resize the images to 64 x 64 in size
# and normalize them to mean = 0 and standard-deviation = 1 based on statistics collected from
# the training set
data_transfor... | [
"henriquegfn@gmail.com"
] | henriquegfn@gmail.com |
211eacb705507ff237263f7b7b3ebf16837f78c1 | fe25cd7ef24a3b2b80dc76e25813a2f6a5d8ca70 | /pokemon.py | 0af029f2feb69b799a82d634190cc4bee63c843e | [] | no_license | artur31415/py-simple-pokemon | dd26ef9ca9d3fd06f3cbfb2bba1c18131c46c653 | cce54e9eed43ae01ad7af6a5f81ad4efefadb29e | refs/heads/master | 2020-09-27T04:42:28.175931 | 2019-12-09T13:44:27 | 2019-12-09T13:44:27 | 226,432,830 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,024 | py | import random
class Skill:
def __init__(self, name, atk = 0, cost = 1):
self.name = name
self.cost = cost
self.atk = atk
#handle buffs
self.effect = {
"atr": "atk",
"val": "1",
"cdw": "3", #cooldown
"IsEnemy": True
}
#--------------------------------------
class Monster:
def __init__... | [
"noreply@github.com"
] | noreply@github.com |
56113bdeea081fbc16893e7fdd670b1aea96fa36 | 4cdd73fe38027d41bda2959f940fc8a2a6c4ca78 | /l10n_ve_islr_report/__openerp__.py | 437bf359edf4cb159557ab769dca6e3d5272dd75 | [] | no_license | adrt271988/l10n_ve | af408fcc0bd2c87475beccd5ec92ee180d35a0d8 | 0a762490f4ee0a4257fb75dc5ea5607dec91d3bd | refs/heads/master | 2020-04-05T14:04:14.374612 | 2016-09-05T22:19:54 | 2016-09-05T22:19:54 | 53,200,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,654 | py | # -*- coding: utf-8 -*-
##############################################################################
#
# OpenERP, Open Source Management Solution
# Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>).
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | [
"adrt271988@gmail.com"
] | adrt271988@gmail.com |
fbd7b63e0bea8d2f1a7fe3025d35f131a38d6a03 | cc8117a23ddd95731a6ddf402586e6187a9ad2f0 | /mars/test.py | 448e0af7988a05f154860e73ba28a83c21eac59e | [] | no_license | 78Moonlight78/sqlalchemy | ae482702286b6879fd3ba28cdf26490c443fe4ae | 1a4f452d2ab3ac478dc609f2430ba6183aad1be6 | refs/heads/main | 2023-03-29T23:33:55.300309 | 2021-04-05T09:23:36 | 2021-04-05T09:23:36 | 354,778,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from requests import get
print(get('http://localhost:5000/api/jobs').json())
print(get('http://localhost:5000/api/jobs/2').json())
print(get('http://localhost:5000/api/jobs/999').json())
print(get('http://localhost:5000/api/jobs/pyataya').json()) | [
"noreply@github.com"
] | noreply@github.com |
18ce61c2000a18f6226de2fae3759ecbdeeb9bfa | 2b471e5c6b669211a19abece478be8d96e34dea3 | /python3.6/modelservicerecord.py | d5e075128015a2212e739e974ae89332a36dde04 | [] | no_license | xhqiao89/OpenGMS_SDK_Python | 4ef341a5b894d28245d7ad5d1e2938ac6b406c56 | 4c211742a046fb9976cabb36ad15f3941b218e85 | refs/heads/master | 2020-07-31T17:43:35.645470 | 2019-10-10T18:55:43 | 2019-10-10T18:55:43 | 210,698,251 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,198 | py | import time
from utils import HttpHelper
from base import Service
from data import DataConfigrationItem
from utils import CommonMethod
class ModelServiceRunningRecord(Service):
def __init__(self, ip, port, id, msid, guid, status = 1, inputs = [], outputs = [], timespan = 0.0, standout = '', standerr = '', invokeer... | [
"xhqiao89@gmail.com"
] | xhqiao89@gmail.com |
aa65edc6a9fad44cf2ffbff749afa4d460888629 | 3944261f92ad298450742fd2d55300e58ad4df38 | /apps/users/migrations/0004_auto_20180427_1641.py | df9d05391f175eabee7681e7c7fa4a21eea4d0c3 | [] | no_license | ybyangjian/moocdemo | f38124351bb2da5421768e3a2aa94dd81d281cd6 | 0ebbe7f7da44fbea1a08dbbe0142fd7394891ee6 | refs/heads/master | 2020-03-13T07:21:44.856961 | 2018-04-28T15:34:35 | 2018-04-28T15:34:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | # Generated by Django 2.0.4 on 2018-04-27 16:41
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('users', '0003_auto_20180427_1623'),
]
operations = [
migrations.AlterField(
model_name='emailverifyrecord',
... | [
"809127232@qq.com"
] | 809127232@qq.com |
d01245daf3978c21934279b8155a5ee000cc07ce | 1297962650cabd546c2212c61b1fd816fe577e3f | /Extras/Tflow.py | c5b9e891155620a63ddfd9ce4f88da12179aef3a | [] | no_license | prbh695a/MyPrograms | 23eb00f1df1edcf1937961575b16e53f4a11f36d | e8fce30ab53f79d181e5c6db3e4857ca02293464 | refs/heads/master | 2022-12-15T23:08:58.362890 | 2020-09-17T13:29:15 | 2020-09-17T13:29:15 | 259,377,359 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,202 | py | import tensorflow as tf
from tensorflow import keras
import numpy as np
import matplotlib.pyplot as plt
hello_constant=tf.constant("Hello World")
tf.print(hello_constant)
#Loading Data
data=keras.datasets.fashion_mnist
#Passing training and test data
(train_images,train_labels),(test_images,test_labels) = data.loa... | [
"prateek.bhat.it@gmail.com"
] | prateek.bhat.it@gmail.com |
08ef7d7366442405ed1825291e85e0724e926c79 | 2374059f8366c2fa2930965f814aa21881cb43ac | /my_test.py | 8422dc0d5511ab0dc5daddf47a9b1b8e741ce1a7 | [
"Apache-2.0"
] | permissive | Athenian-ComputerScience-Fall2020/greatest-common-factor-21lsparks | 668cd6931c57e87441580cf2173e45b0f3d53f3d | e5a10375b8a82c3a82cdfe04bf3a21c9a17f6fc2 | refs/heads/master | 2022-12-22T22:45:23.695317 | 2020-09-24T22:41:26 | 2020-09-24T22:41:26 | 295,586,748 | 0 | 0 | Apache-2.0 | 2020-09-15T01:58:11 | 2020-09-15T01:58:02 | Python | UTF-8 | Python | false | false | 146 | py | from my_code import find_gcf
def test_find_gcf():
assert 5 == find_gcf(10,5)
assert 3 == find_gcf(6,9)
assert 6 == find_gcf(12, 66)
| [
"51799170+maleich@users.noreply.github.com"
] | 51799170+maleich@users.noreply.github.com |
0e0c0655d2c1df2ca5788835d9c5f18b23b60b9b | 06f9244f659b93a5af4d500bc02d05ff6a203025 | /ML DATA/genetic.py | 4a68be2a3ba88eef7a3eff9d270b366814e75322 | [] | no_license | shubhamk0027/covid-website | 656b2a4ee1a0b6d46327b7ddb0c76e34bd33da01 | 147cb435be607be6dd3d1adf15513dd12800062a | refs/heads/master | 2022-12-18T14:19:07.127933 | 2020-08-03T12:45:05 | 2020-08-03T12:45:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,999 | py | import random
# Number of individuals in each generation
POPULATION_SIZE = 100
# Valid genes
GENES = '''abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ 1234567890, .-;:_!"#%&/()=?@${[]}'''
# Target string to be generated
TARGET = "Ritwik Tiwari"
class Individual(object):
'''
Class represe... | [
"ritwiktiwari24@gmail.com"
] | ritwiktiwari24@gmail.com |
2fb3ccd4fca44e5a92226b3184e9435eaca3598a | 4185598eacfde6ea028c441aaa00dfa12729f6df | /main4.py | 7057624295c699ef8dca41dc086813d629695316 | [] | no_license | ErenO/ft_linear_regression | 2b785215e297be12b0103008afe7fc0bf712fc2b | 98b97901e270e68b469a11ef5a0f60be55263156 | refs/heads/master | 2021-01-21T11:36:31.738313 | 2019-01-22T00:53:40 | 2019-01-22T00:53:40 | 102,017,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,229 | py | #!/usr/bin/env python
# coding: utf-8
import os
from numpy import loadtxt, zeros, ones, array, linspace, logspace, genfromtxt
from pylab import scatter, show, title, xlabel, ylabel, plot, contour
import numpy as np
# import pandas as pd
import matplotlib.pyplot as plt
# def computeCost(X, y, theta):
# inner = np... | [
"eozdek@e2r11p2.42.fr"
] | eozdek@e2r11p2.42.fr |
33195cbe3b5aa41ae324922745c8b99c3ebb848a | 6ad0663f90f06c20a062b38a2d027f136a6d3289 | /lunwen/OPEREVENT/clusteranalysis/jiangwei_1.py | aaa9e58e933c8a08f96e81292002613113262ce7 | [] | no_license | highflykxf/pycharm_projects | 697869b346efe3440a16f1c02a4546b9738d4f43 | 5d3ada7f37ca7eddf275d9fb29755f1b82f2bfa9 | refs/heads/master | 2020-06-16T22:33:19.571788 | 2018-03-03T07:04:56 | 2018-03-03T07:04:56 | 75,062,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,954 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
import math
import pickle
import os
import re
import string
import sys
import csv
import shutil
import matplotlib.pyplot as plt
import nltk
import pandas as pd
from nltk.stem.snowball import SnowballStemmer
from nltk.tag import pos_tag
from ... | [
"xiangfei0919@gmail.com"
] | xiangfei0919@gmail.com |
ce66b53d7285dac6e176d5821653f51e284ddfd2 | b8ff486144e6253400dc7696b4f0271a0c53e6da | /Predavanje-09/nikolakblog/urls.py | 4c02537589c347c4fbb46f85ce4c2b7a5922a15e | [] | no_license | Mirko998/Django-kurs | 2c2e62d7e7355b06580e6d90e9e1a1132aea82b2 | 1188b4604c9a1256288891ab32d136a0505b5e12 | refs/heads/master | 2023-03-03T03:00:55.995779 | 2021-02-10T23:28:13 | 2021-02-10T23:28:13 | 336,784,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,351 | py | """nikolakblog URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"nk.mirko998@gmail.com"
] | nk.mirko998@gmail.com |
f48750b96160624daa9f6bcbea9eabc617cf6585 | c333189757c358edfaf705a139bf5100a77adb6a | /layer_naive.py | b4bf2f879d876985b28bcf9fd17bcf95f7fd167c | [] | no_license | infinith4/zerodeeplearning | 9f34172a1c7ccae0343f492ef38b96f32de364ba | 903ffc671f7842a049b3900d4c8ea3e398bd84fa | refs/heads/master | 2021-01-12T18:15:24.716563 | 2017-02-25T13:40:58 | 2017-02-25T13:40:58 | 71,352,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | # coding: utf-8
class MulLayer:
def __init__(self):
self.x = None
self.y = None
def forward(self, x,y):
self.x = x
self.y = y
out = x*y
return out
def backward(self, dout):
dx = dout * self.y # change x to y
dy = dout * self.x # c... | [
"infinith4@gmail.com"
] | infinith4@gmail.com |
ff61f9d12ceebe86532e622aaecb819f0c39eb8f | e7b7505c084e2c2608cbda472bc193d4a0153248 | /LeetcodeNew/python/LC_573.py | a585295ef01ebf47f30590d98f2feb1f45f6657f | [] | no_license | Taoge123/OptimizedLeetcode | 8e5c1cd07904dfce1248bc3e3f960d2f48057a5d | 3e50f6a936b98ad75c47d7c1719e69163c648235 | refs/heads/master | 2023-02-27T21:13:40.450089 | 2023-02-07T04:11:09 | 2023-02-07T04:11:09 | 170,044,224 | 9 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py |
"""
There's a tree, a squirrel, and several nuts. Positions are represented by the cells in a 2D grid. Your goal is to find the minimal distance for the squirrel to collect all the nuts and put them under the tree one by one. The squirrel can only take at most one nut at one time and can move in four directions - up, ... | [
"taocheng984@gmail.com"
] | taocheng984@gmail.com |
444a0213126c7ae41ecef808a9a61907c3e052a1 | 65df26aa3e179c61d0952208712bd30b1c518939 | /IG_Autolike.py | e57188d0d938d0bccc762d4b290487d8b77dbdfc | [
"MIT"
] | permissive | georgezywang/IG_Autolike | 6fe8a9a6ac01b6174a8c5e5738f892f22ae5d3b3 | 9517edacd25bca336cee9be3de2008e54f8beda7 | refs/heads/main | 2023-05-14T06:33:38.625933 | 2021-05-31T23:04:25 | 2021-05-31T23:04:25 | 365,931,913 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,901 | py | import argparse
import yaml
import instaloader
import threading
import signal
import sys
from instapy import InstaPy
from instapy.util import web_address_navigator, get_relationship_counts
from instapy.like_util import get_links_from_feed, check_link, like_image, verify_liking
from selenium.common.exceptions import No... | [
"georgezywang@outlook.com"
] | georgezywang@outlook.com |
a1a470654e0d19918061dc266e6ecf80c598e4c2 | a4f7a811dbb3cf5bbd298430d335a66421993ce9 | /2_test_hw/test_api_brewery_db.py | b058c16823f85c783b833cea70fcbb1099bd1566 | [] | no_license | bochanikc/auto-qa-course | 5b41a3f56f84f98d34d3008b04e7e328fddc3f28 | b6d3c65314debea2b2ca02a37116b1ab092c960f | refs/heads/master | 2022-12-12T03:08:29.933386 | 2022-10-10T18:57:32 | 2022-10-10T18:57:32 | 222,482,608 | 0 | 0 | null | 2021-06-02T00:44:57 | 2019-11-18T15:33:56 | Python | UTF-8 | Python | false | false | 1,258 | py | import random
import pytest
import pprint
@pytest.mark.parametrize('brewery_type, brewery_type_in_response', [('micro', 'micro'), ('brewpub', 'brewpub')])
def test_api_by_brewery_request(api_brewery, brewery_type, brewery_type_in_response):
res = api_brewery.get(
path="/breweries",
params={'by_typ... | [
"nikitafrolovbnc@gmail.com"
] | nikitafrolovbnc@gmail.com |
373a934fbcfd4c0494e43a836771b89136d7cfbf | 0bc6e9a02c9cf2c11381f214345e8517583df26e | /KDL/arm_navigation_msgs/src/arm_navigation_msgs/srv/__init__.py | 379f031ebce4fc138f73e8bdbcb8175567e17181 | [] | no_license | brennand/ics_bioloid_fuerte | 811468decf9de950e624716950df25ed6194fdc4 | 62565d6e91f8747b6ab5e61b322bf008826d199c | refs/heads/master | 2021-01-10T19:41:28.538557 | 2013-05-27T13:03:55 | 2013-05-27T13:03:55 | 4,114,733 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | from _GetMotionPlan import *
from _FilterJointTrajectoryWithConstraints import *
from _GetStateValidity import *
from _GetJointTrajectoryValidity import *
from _FilterJointTrajectory import *
from _GetRobotTrajectoryValidity import *
from _GetPlanningScene import *
from _GetCollisionObjects import *
from _SetPlanningSc... | [
"bren@tum.de"
] | bren@tum.de |
2c04493cb273d512782685740ac79e2cbd5f69c8 | 1168714f6e900a8011473f9b8facb315ca74e833 | /URI/Beginner/2670_maquina-de-cafe.py | f284b94e2be7dfd4370aa28ff1817783ce4fc6e5 | [] | no_license | thomazthz/programming-challenges | d60fc6a7cf0008cfcd06cb5ddbb86fa6b0d1ade1 | 7767431a67b8ebf01a9539087484479739ac1368 | refs/heads/master | 2023-01-23T08:46:18.553139 | 2023-01-08T23:25:07 | 2023-01-08T23:25:07 | 38,544,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | # -*- coding: utf-8 -*-
# Maratona de Programção da SBC, ACM ICPC 2017
# https://www.urionlinejudge.com.br/judge/pt/problems/view/2670
a1 = int(input())
a2 = int(input())
a3 = int(input())
print(min((a2 * 2 + a3 * 4, a1 * 2 + a3 * 2, a1 * 4 + a2 * 2)))
| [
"thomazthz0@gmail.com"
] | thomazthz0@gmail.com |
3762b2ddd3b499501b422e888c874dcaba0a1833 | 2f816ccb6eb76a75d96a59b2d48309ea9789e815 | /main.py | d228cb48b829baa851d62c2eaa4354289decfd61 | [] | no_license | superman-wrdh/tornado_rest_api | a6102509726d9da3b03909a32ec2e45b34ee414a | 327630763c1dfb2db6435816dfac843d405b10ff | refs/heads/master | 2022-04-11T04:49:17.383870 | 2020-04-11T13:23:45 | 2020-04-11T13:23:45 | 254,538,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 685 | py | import logging
import tornado.ioloop
import tornado.web
from lib.rest_handler import RestHandler
from customer_handers import UserLoginHandler
from customer_handers import UserAuthDemoHandler
class MainHandler(RestHandler):
def get(self):
self.write("Hello, world")
def make_app():
return tornado.web... | [
"13419655360@163.com"
] | 13419655360@163.com |
0cbf2f1b7ec5d1f577341e36cb4ba628c179c49c | 090ea950fb8c2a22ad7a6aac58df3ac5153d1ffc | /mooclet_engine/data_exchange/migrations/0001_initial.py | acafb0453282da836496e6f44dab13d613ed3f9a | [
"MIT"
] | permissive | pretendWhale/mooclet-engine | b2c2453d15274557835b4010bec03084395e0725 | 5dd38970d94aaf636cd15eddb966239a925b2be0 | refs/heads/master | 2023-08-03T12:21:39.190628 | 2023-07-28T12:48:31 | 2023-07-28T12:48:31 | 156,955,621 | 6 | 4 | MIT | 2023-07-28T12:48:33 | 2018-11-10T06:47:44 | Python | UTF-8 | Python | false | false | 1,801 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-06-01 08:44
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"sam.maldonado@cognitivescience.co"
] | sam.maldonado@cognitivescience.co |
eeadcf131b7e1e264e57d77af12db30f9879e795 | 10fe374817d2742200a381ef800ec2280bb433d2 | /Python_T2/Projects/Practice Stuff.py | 960a2d7b76a9b1b98ac66957641566b831d203c3 | [] | no_license | irvingperez11/python | 5e00cf21c686acb07e4867fb89dfbb8168758990 | 728589ccfecdb5f52ddd0cb96117b3d2a48e10d2 | refs/heads/master | 2021-04-15T12:21:21.603401 | 2016-08-02T16:34:58 | 2016-08-02T16:34:58 | 63,884,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | class Triangle (object):
number_of_sides = 3
def __init__ (self, number_of_sides, angle1, angle2, angle3):
self.number_of_sides = number_of_sides
self.angle1 = angle1
self.angle2 = angle2
self.angle3 = angle3
def check_angles(self):
if sum(self.angle1, self.angl... | [
"irving@campinteractive.org"
] | irving@campinteractive.org |
cce12cc1866e216c00ea4269d0fb797ee94f2014 | 7c8d4ccd9f3552780e78aadee240564d120260e3 | /pagerank_reducer.py | 53c70e3cf5a16d22dbacc85cc35f06604a138782 | [] | no_license | b0gdanp3trovic/pagerank_mapreduce | 8f17d16e94e7054d6db9c15c77bda543dfeced43 | 3a764041d80a4e1400a0894ea14b629044cd0beb | refs/heads/main | 2023-05-09T19:40:21.004317 | 2021-06-05T19:32:47 | 2021-06-05T19:32:47 | 355,469,593 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,454 | py | #!/usr/bin/python3
import sys
current_destination = None
current_rank = None
dest_dict = {}
for line in sys.stdin:
destination, source_info = line.split('\t')
source_info = source_info.split(' ')
source = source_info[0]
source_rank = source_info[1]
source_outdegree = source_info[2]
if(source... | [
"bogdanlmaorofl@gmail.com"
] | bogdanlmaorofl@gmail.com |
666bf1d20cd7fa6c7aca37814b0f0c25d89ed126 | 5ff71d4fb2b9a2d69a1993d0ef14ed50b131f7b9 | /xyz_histeq.py | c525e77769062fdb7a4c8a8ce3b90807a5241a05 | [] | no_license | SuvanshKumar/image-equalization | f950c3aa421ad34d0bc7ab391c8d7352340de9f2 | 1a1198f27ca818b656014beb26a0fb77f1822ebb | refs/heads/master | 2021-05-26T22:57:52.846671 | 2020-04-08T19:39:10 | 2020-04-08T19:39:10 | 254,182,402 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,684 | py | import cv2
import numpy as np
import sys
# read arguments
if(len(sys.argv) != 7) :
print(sys.argv[0], ": takes 6 arguments. Not ", len(sys.argv)-1)
print("Expecting arguments: w1 h1 w2 h2 ImageIn ImageOut.")
print("Example:", sys.argv[0], " 0.2 0.1 0.8 0.5 fruits.jpg out.png")
sys.exit()
w1 = float(sy... | [
"suvansh.kumar07@gmail.com"
] | suvansh.kumar07@gmail.com |
f3b81faf8b198c973e769422e4d2fc0286aa3f00 | 31706a986caeb915a397370a2ed58703fe60846c | /enghack/a_basic_concepts/d_printing_variables.py | 4959b30ec93dc88f995e3ca37a83967602f5494b | [] | no_license | ricetech/enghack-2021-python-workshop | b4f6d38c17f4c4b7e2c63ca2ec00513e7150725c | b28c1283d6929d04a4a4b8ceb3394d27fe9a9430 | refs/heads/main | 2023-06-01T14:35:21.254008 | 2021-06-26T00:37:51 | 2021-06-26T00:37:51 | 380,026,266 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | # EngHack 2021 - Intro to Python
# Example code
# Written by Eric Chen (@the_ricetech)
some_str = "hello world"
some_num = 26.5
# Using commas (automatic spaces & type casting)
print(some_str, some_num, (2 + 2))
# Using plus signs (no spaces or type casting)
print(some_str + str(some_num) + str(2 + 2))
# Add spaces ... | [
"39015447+ricetech@users.noreply.github.com"
] | 39015447+ricetech@users.noreply.github.com |
abf24deb33aa929ed64e1f57511d697e2db26a85 | e1436eb68e51dcd1becb7e0f8671b51eb4b23ec0 | /desktop/kde/applications/parley/actions.py | 4ecd82fc5604b7c01eeb26036ad05c7448cec256 | [] | no_license | SulinOS/SulinKDE | bef0ebbecafa6082ad7599f377c95573468827fb | 9984e0f40a5a011e59d439a24856bde78deea1c2 | refs/heads/master | 2020-09-16T05:34:20.333558 | 2020-06-10T08:10:53 | 2020-06-10T08:10:53 | 223,669,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from inary.actionsapi import inarytools
from inary.actionsapi import kde
def setup():
kde.configure()
def build():
kde.make()
def install():
kd... | [
"zaryob.dev@gmail.com"
] | zaryob.dev@gmail.com |
f7bd018b460bf6f1fe50a6f58d1c0d447650c1d4 | 2c5cf25dcd32f6b418bcfb4c2b8937061f393270 | /src/network.py | 2a2b8bc59269c7917b2e24173d60f1a989e460c0 | [] | no_license | ibrsrm/Fec-Generator | 0689d653f1112663b986e0e6219df826ab0c108e | 87745a004850254a6fe084a89af6aa3504bd4934 | refs/heads/master | 2020-09-26T06:59:45.407138 | 2019-12-16T19:46:13 | 2019-12-16T19:46:13 | 226,197,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,582 | py | #!/usr/bin/python
import socket
import util
import threading
from time import sleep
from options import Options
class Sender (threading.Thread):
__TAG = "NETWORK:"
def __init__(self, name, finishedCallback, address, port, buffers):
threading.Thread.__init__(self)
self.__lock = threading.Lock()
... | [
"Ibrahim.Serim@airties.com"
] | Ibrahim.Serim@airties.com |
f49db6663ec0211a03497fae9b0a7d5b4a7ae930 | e5f1befb7c7ca0072747b33086fc6569a6befd01 | /old/videos/02.py | 18f9ca234fd808ffb6c7a2703c07f80bf5cdd3a6 | [] | no_license | nepomnyashchii/TestGit | ae08d8bb1b7d2ab9389a309fd1dc9e24729b019c | c7abf4ab08ee3c2f3ea1fb09a1938bff7a3e0e5c | refs/heads/master | 2020-04-28T23:41:51.053547 | 2020-01-24T12:22:40 | 2020-01-24T12:22:40 | 175,666,093 | 0 | 1 | null | 2019-03-15T13:44:03 | 2019-03-14T17:08:58 | null | UTF-8 | Python | false | false | 472 | py | import random
from random import randint
import math
# from random import *
from math import sqrt
from math import sqrt as my_sqrt
for element in range (10):
print(random.randint(1, 10))
#random object (randint function as method and 1,10 are arguments)
num =10
print(math.sqrt(num))
print(sqrt(num))
... | [
"nepomnyashchii@gmail.com"
] | nepomnyashchii@gmail.com |
69f7c25b5d8ca4cf20f4e5712a564a84a35aab49 | 168d0c347402a5804a98bb2cd2fed5c763781741 | /sagittaros-Deal-crawler-abba8dfcc339fd24812dc7a36c366044f9f8855e/dealscrape/spiders/groupon_sg.py | a40d0cd177ab7272e8aa20482bcc15560397e7c7 | [] | no_license | mtaziz/dealschrome | c1821e839f1fb382b4ee22ca8dc20260952ac0a1 | b2987329449b1055462ed3343a647ec118a96fe1 | refs/heads/master | 2021-01-21T20:52:47.960742 | 2015-09-24T08:49:11 | 2015-09-24T08:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,657 | py | from scrapy.contrib.linkextractors.sgml import SgmlLinkExtractor
from scrapy.contrib.spiders import CrawlSpider, Rule
from dealscrape.utils import data_extractor
from dealscrape.utils import location_resolver
from dealscrape.utils import description_resolver
import time
from dealscrape.exceptions import ItemError, Item... | [
"felixsagitta@gmail.com"
] | felixsagitta@gmail.com |
a2cddebe1b8e935a0b005b18b37a54ee33bfca24 | 15f4d65299a646fc6b3202e38a6f413247b18d44 | /problems/python/004/largest_palindrome_product.py | dc412511d9c6e94404febdc2bdc2d86eb225d724 | [] | no_license | aalvrz/project-euler | 48aa8c57dad5edecb6eadc3fadbe307dc72536a7 | fe06104bf01a3ff1970399a12048e8dea27b071a | refs/heads/master | 2021-09-28T07:59:01.645487 | 2018-11-15T16:57:05 | 2018-11-15T16:57:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | ### Jaime Alvarez - March 2016
"""
A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 x 99.
Find the largest palindrome made from the product of two 3-digit numbers.
"""
def isPalindrome(num):
# Determines if the number is a palindrome... | [
"jaime_andres@unitec.edu"
] | jaime_andres@unitec.edu |
1eb2c69e39eb6d6bd675881d116ed661bf5ca728 | d0f35b0665d9edc8c10c3fba0be423997a33b4c3 | /class21.py | 8794aec15c069dfedded3807d24a7cf71a77d1bc | [] | no_license | wppply/LeetCode-in-Python | 8bd1ac6fad3a7ec6d47c90ee5d5b8b6449c98274 | 90ae6c088250439dd5c851df0d36660be2e53b6a | refs/heads/master | 2020-03-18T13:57:29.684767 | 2018-10-04T22:06:11 | 2018-10-04T22:06:11 | 134,820,380 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,531 | py | """
p1:
remove repeat element in arr
"""
"""
p1.1:
remove repeat element in sorted arr
"""
def remove_repeat(arr):
if len(arr) < 2: return arr
write = 0 # everything before write is the output
read = 1
while read < len(arr):
if arr[read] == arr[write-1]:
pass # meet repeat elem... | [
"wppply@gmail.com"
] | wppply@gmail.com |
cf29657646e6dc10ca79da4d4d8f025b52a0bdd1 | 7416056e689dfc94391c4b108652cea02d59a31a | /reservation/migrations/0009_auto_20200128_0154.py | ee59b4e4dcefa53f8ef69cf34200507a3c15f18a | [] | no_license | zshanabek/house-booking-app | 0ea29fb8113671eb164ead8d335a986b850898a1 | cca5225f40b8a055a2db78810258325f2ba7ded1 | refs/heads/master | 2022-11-28T00:20:12.789534 | 2020-08-14T09:16:40 | 2020-08-14T09:16:40 | 225,791,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 532 | py | # Generated by Django 2.2.7 on 2020-01-27 19:54
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('reservation', '0008_auto_20200125_2102'),
]
operations = [
migrations.AlterField(
model_name='reservation',
name='ch... | [
"zshanabek@gmail.com"
] | zshanabek@gmail.com |
2c91335477d73b65ac5d14613159c8a1e35f5fc4 | dc5d61370f4649f73d2974811eb95babf072ec38 | /xiaoye/templatetags/PhraseTag.py | 077ca4cc2c022dc385d288ae0dde83ae2ff59f58 | [] | no_license | xiaoyexu/mysite | ba1184756ddca525b438344f8dbbb80e651907ae | 47cca94be54ee4a9f39b56061d7763710ceac9af | refs/heads/master | 2020-04-06T07:02:30.508923 | 2016-09-19T04:13:30 | 2016-09-19T04:13:30 | 65,890,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 910 | py | # -*- coding: UTF-8 -*-
__author__ = 'xuxiaoye'
from django import template
from xiaoye.common import *
register = template.Library()
class PhraseTag(template.Node):
def __init__(self, appId, phraseId):
self.appId = appId
self.phraseId = phraseId
def render(self, context):
appId = pa... | [
"xiaoye.xu@outlook.com"
] | xiaoye.xu@outlook.com |
08bded91bfa4cec0dbe34fd48500b86cb9f2aa64 | 4a4d18191d1c0aaaa831310a40fe6b4b8ab05ab0 | /atri_core.py | 76f61958b50b1f0c050f38c752830db27782505c | [] | no_license | theodorehreuter/Portfolio | 5a80782ddff0aa0ab7e94c329bddbc2c8c241863 | 87f62dfd29433a8d11d1a20f2fe32f1115c8fc66 | refs/heads/master | 2020-06-28T01:54:43.206992 | 2019-09-14T16:41:59 | 2019-09-14T16:41:59 | 200,112,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,337 | py | # This script is written by Theodore Reuter, Geospatial Fellow working at the USDOT BTS OSAV OST on the port performance project. This script is designed to
# take csv inputs of GPS points and run them through python geospatial packages and scripts to produce truck turn times. Turn time is defined as the amount of ... | [
"noreply@github.com"
] | noreply@github.com |
14fa983cfe1477711cec5e444cd096d0faa80ee2 | a9c502de7c6f406cc8791689676b1a367e436f07 | /version/unNote_v043 added pages.py | c8f94b489eb3893738d9262abe3652db642acb52 | [] | no_license | PTomalak/unNote | d96e1c6df914f3c96b4899697619deb31a699c69 | 94682803eb44f628403b0fb6c36c0cbbd486ce81 | refs/heads/main | 2023-08-24T02:57:12.947799 | 2021-11-01T12:20:33 | 2021-11-01T12:20:33 | 408,133,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,935 | py | import os
# import json
import pygame as pg
import pygame.image
from pygame import gfxdraw
from pygame.locals import *
from os import environ
from sys import platform as _sys_platform
def platform():
if 'ANDROID_ARGUMENT' in environ:
return "android"
elif _sys_platform in ('linux', 'linux... | [
"noreply@github.com"
] | noreply@github.com |
887d2c35f89352c9da2ee2fcc793c8313eaa2076 | 71bae512b517eca4549cca22a320eb505214f4ca | /app/main/forms.py | 590ebd95861df0d8cf40c2b006e0726efe0598b8 | [
"MIT"
] | permissive | sandrineTuyizere/Blog | 3343c71096fda4296b9614e8822f4fe3d7f7c402 | 9e130c58e9ef550ed9d1dd2badb343e1156d3162 | refs/heads/master | 2023-01-24T10:56:44.255091 | 2020-12-06T18:38:10 | 2020-12-06T18:38:10 | 319,085,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 879 | py | from flask_wtf import FlaskForm
from wtforms import StringField,SelectField,TextAreaField,SubmitField
from wtforms.validators import Required
class UpdateBlogForm(FlaskForm):
title=StringField('Title', validators=[Required()])
category=SelectField('Category',choices=[('Music','Music'),('Job','Job'),('News','... | [
"sandrauyizere@gmail.com"
] | sandrauyizere@gmail.com |
b00affce1bafa775af687743ec956e96a48cebb5 | 948c245eeb61dc079bf86422450f34741fe47f8c | /AP1/V354/Text/q.py | 56f12ccc5b833b86c6616f8f13536441190c696f | [] | no_license | KattiBrae/APWS201718 | 1acf9928d11a35a4d6084905f593254d27ec5862 | 203bf82cda4dc9463f2efaacdfd6b8b04a5ae1ca | refs/heads/master | 2020-05-09T05:20:47.966508 | 2019-05-17T14:08:20 | 2019-05-17T14:08:20 | 180,987,198 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import numpy
import sympy
import math
#q = sympy.var('q')
#R = sympy.var('R')
#L = sympy.var('L')
#C = sympy.var('C')
R=48.1
dR=0.1
#
L=10.11e-3
dL=0.03e-3
#
C=2.098e-9
dC=0.006e-9
#
#print('q')
#q= math.sqrt(L) /(R * math.sqrt(C))
#print(q)
#
#print('dqdR')
#dqdR= q.diff(R)
#print(dqdR)
#
#print('dqdL')
#dqdL= q.dif... | [
"katharina.braegelmann@tu-dortmund.de"
] | katharina.braegelmann@tu-dortmund.de |
f662e13a92f620780fa576c53bfe5eaaf4dc40d3 | 5dfbfa153f22b3f58f8138f62edaeef30bad46d3 | /ros_ws/build/baxter_examples/catkin_generated/pkg.develspace.context.pc.py | ce6228515fedb8113370e7fdd69d2285856a9049 | [] | no_license | adubredu/rascapp_robot | f09e67626bd5a617a569c9a049504285cecdee98 | 29ace46657dd3a0a6736e086ff09daa29e9cf10f | refs/heads/master | 2022-01-19T07:52:58.511741 | 2019-04-01T19:22:48 | 2019-04-01T19:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 587 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/bill/bill_ros/ros_ws/devel/include".split(';') if "/home/bill/bill_ros/ros_ws/devel/include" != "" else []
PROJECT_CATKIN_DEPENDS = "rospy;xacro;actionlib;sensor_msgs;control_msgs;trajectory_msgs... | [
"alphonsusbq436@gmail.com"
] | alphonsusbq436@gmail.com |
ce09c19948934131b89e21389fd05708d8774ff8 | 13a667a6f5758db545ea830347ff2c776433ff0a | /hotel/urls.py | 05535555d920c4874188407e5642911e051398b8 | [] | no_license | vobornikondrej/HotelDjango | b7671d940fc49372932b7abe15f5908600c1c9b6 | 319ce3b95e4b7bde1644a3554ec4e0421beb2b09 | refs/heads/master | 2021-01-16T22:30:29.240301 | 2016-07-10T09:19:32 | 2016-07-10T09:19:32 | 62,990,884 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from django.conf.urls import url
from . import views
app_name='hotel'
urlpatterns=[
url(r'^$', views.index, name='index')
] | [
"ondrej.vobornik@tcpcloud.eu"
] | ondrej.vobornik@tcpcloud.eu |
7ece41992a372aa3f70f324afeb0a236582a84a8 | d15ab1f5cbc5f19a452fd0536ae3d84994002486 | /dns_tools.py | 86acc85f33bcb2f60a7161a7c4726a98eb0cbe23 | [] | no_license | Woovie/cloudflare_tools | a0113ea6023503830126a9ac3f85b4279b24be49 | 6542dbe50561d2237787999af635769aa1a33520 | refs/heads/master | 2023-01-14T00:07:25.254767 | 2020-11-14T18:32:26 | 2020-11-14T18:39:22 | 312,879,302 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | import configparser, json, requests, re
config = configparser.ConfigParser()
config.read('config.ini')
class DnsQuery():
def __init__(self):
self.api_url = config['cloudflare']['endpoint']
self.token = config['cloudflare']['token']
pass
def verify_token(self) -> bool:
verify_e... | [
"woovie@woovie.net"
] | woovie@woovie.net |
d2a5b9b9a29d86b5328ee75e928d1972d2a4925e | 3f005487c3e956cd9bfbca2defe22525c4f5e5ad | /action/mnist_softmax_regression_version1.py | 346095c382247b9cf2b3eb38ad1f5c4f59401d5d | [
"Apache-2.0"
] | permissive | hiwgy/tfdemo | f1131ef3c305907bb69e9cc4e86e59a60cecdd10 | ea404a8bfdc1ab18bc5b4be49d5bc9abcd641983 | refs/heads/master | 2020-06-19T00:06:34.254551 | 2019-07-22T11:35:22 | 2019-07-22T11:35:22 | 196,499,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,612 | py |
import tensorflow as tf
import dataset
sess = tf.InteractiveSession()
mnist_train = dataset.train("./mnist_data");
mnist_test = dataset.test("./mnist_data");
# https://www.tensorflow.org/guide/datasets
print(mnist_train.output_shapes, mnist_train.output_types)
print(mnist_test.output_shapes, mnist_test.output_types... | [
"wangguangyuan@baidu.com"
] | wangguangyuan@baidu.com |
bad3a971df51fc48dd7aa6aa0d5316c90a10c2c7 | 2fbffc8221bb5b0e19e1230f8a824f19d9058760 | /anime_downloader/extractors/jwplayer_extractor.py | a354d88d0d400ec94d17951ae4756fe5f9d762bb | [
"MIT"
] | permissive | MyForking/Anime-Downloader-1 | c97c390fca52c60e944ac3af3417c25bec4c4d7d | 5d8b6a1632b1711b46e2f192d083b652272db5c8 | refs/heads/master | 2021-05-21T23:29:10.232334 | 2020-03-30T12:03:29 | 2020-03-30T12:03:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,884 | py | import re
from extractors.base_extractor import BaseExtractor
class JWPlayerExtractor(BaseExtractor):
def __init__(self, url, session):
super().__init__(url, session)
def extract_sources(self):
page_content = self.extract_page_content()
link_sources = [match.group(1) for match in
... | [
"oshanmen@gmail.com"
] | oshanmen@gmail.com |
ecf480960a333b095c84b0f2b9b8b00194fab7b6 | 623b0dea82ac378fd7921c69b1cec3a2a3670226 | /hello_DRF/router/urls.py | 9dcb978295c02bf1fa301aa348b273e02910ae57 | [] | no_license | ShahedAhmadAhadi/DjangoRestFramework001 | 3ae9d54d9b5eb6f4bd989d9fd2637782e0a619ef | f47a3262404870ab79829544a91a46df4defddd0 | refs/heads/master | 2023-06-13T02:22:41.051245 | 2021-07-06T16:59:33 | 2021-07-06T16:59:33 | 378,909,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 420 | py | from .views import CreateRecords
from django.conf import settings
from django.urls import path
from rest_framework import routers
app_name = 'router'
router = routers.SimpleRouter()
router.register(r'router', CreateRecords, basename='employee')
# router.register(r'template', template_view)
urlpatterns = router.urls
... | [
"shaheda.a16@gmail.com"
] | shaheda.a16@gmail.com |
50f09fd89866e284ebff2f2ffdcc23f6d72bd2e4 | ca246c327df24ac2da477b83dff7759d0b51e0f8 | /example/__init__.py | fb879368bdaae4cbc4cba36df34d58c05a214b80 | [] | no_license | leadermin/dp-tornado | 2dc3a40bdabb5ed9e3fe869a58bd4a53889c5451 | d61be76994cc389987701ae596b3c2443d884c0a | refs/heads/master | 2020-12-29T00:00:49.686127 | 2016-01-04T13:28:23 | 2016-01-04T13:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 280 | py | # -*- coding: utf-8 -*-
import os
from dp_tornado import Bootstrap
kwargs = {
'application_path': os.path.join(os.path.dirname(os.path.realpath(__file__))),
'scheduler': [
('* * * * *', 'scheduler.foo')
]
}
bootstrap = Bootstrap()
bootstrap.run(**kwargs)
| [
"youngyongpark@gmail.com"
] | youngyongpark@gmail.com |
c6b949749b5ff617fce0a2cc8cd810d27be68fa1 | 8e9b5f2b6eed72c71480fe2d896273aeb2a0f16e | /MxOline/apps/users/models.py | bf9911608a981c6011609bc057589ca1383c1202 | [] | no_license | izhaojinlong/undergraduated_design | b83546bba76976afbbfafc16107faec8baf83e4f | 7f109ae0cea4d69bdc115b5fc88add2c7fb150c7 | refs/heads/master | 2022-12-09T21:04:50.629900 | 2019-07-09T14:18:30 | 2019-07-09T14:18:30 | 131,683,767 | 0 | 0 | null | 2022-11-22T02:39:39 | 2018-05-01T06:33:08 | Python | UTF-8 | Python | false | false | 2,378 | py | # _*_ encoding:utf-8 _*_
from __future__ import unicode_literals
from datetime import datetime
from django.db import models
from django.contrib.auth.models import AbstractUser
# Create your models here.
class UserProfile(AbstractUser):
nick_name = models.CharField(max_length=50, verbose_name=u"昵称", default="")
... | [
"zjlcn@live.com"
] | zjlcn@live.com |
c3a3ea7fd40e49ce5b6ab41fd1770592acaa2ca3 | 96a919dcb1873be7cfd7edb8213907c88a8360fc | /printStairs.py | bce44148be0aadfb23e8ee51dd35b8a3539c384d | [] | no_license | divyak1995/PythonFiles | 2921280571ee6f3946281144385c444aced35e3c | 4e69047f023b8c9bcf474927dfa2b4bb18746528 | refs/heads/master | 2021-04-15T08:17:11.936943 | 2019-10-20T16:33:30 | 2019-10-20T16:33:30 | 126,425,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py |
def printStairPathsUtil(ans,i,n):
if(n<0):
return
if(n==0):
ans[i]=''
print(''.join(ans))
return
ans[i]='1'
printStairPathsUtil(ans,i+1,n-1)
ans[i]='2'
printStairPathsUtil(ans,i+1,n-2)
def printStairPaths(n):
ans=['']*(n+1)
printStairPathsUtil(ans,0,n);
n=7
prin... | [
"noreply@github.com"
] | noreply@github.com |
5388aa37ce371ef5f7f6cb2f18770e3a8791d1bd | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /MY_REPOS/misc-experiments/_FIREBFIRE/grpc-SwiftPM/tools/run_tests/run_microbenchmark.py | 4b9cd4bc8e85661f9a9cfeefbcc310b227710f5d | [
"MIT",
"Apache-2.0"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 9,289 | py | #!/usr/bin/env python
# Copyright 2017 gRPC 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 applicable law o... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
f15f0f1514850ac6d4503704428d236fc8eb6912 | 2cb75c2df37cd0d90bf93dac463000ae5c5e585d | /tapatalk/subscription.py | 96399c4ee225530df37a51a32b163393bc72d393 | [] | no_license | svdgraaf/django-tapatalk | aa107656de1954c152be6088776851723f8b6ba5 | 077f12e92f07a4ee0edec3ee0ea111ff88f40649 | refs/heads/master | 2021-01-01T16:06:18.591499 | 2013-06-26T13:39:02 | 2013-06-26T13:39:02 | 7,270,931 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | from util import *
def get_subscribed_topic(request, start_num=0, last_num=20):
topics = request.user.subscriptions.all()
data = {
'total_topic_num': len(topics),
'topics': []
}
for topic in topics:
data['topics'].append(topic.as_tapatalk())
return data
| [
"mail@svdgraaf.nl"
] | mail@svdgraaf.nl |
f56a31aab3627f0716bf703032bffcf508ba3875 | d4a8621af120c30ba8e40a77d0e3b6e9d1e6e7a9 | /hanabi-sv/flask-api/main.py | 89b93b326ce42c4122af73f820ca8b93016169c1 | [] | no_license | mFragaBA/hanabi-game | abcbaec7c0c870d4c892bbae7cc76a04c0f0877a | 2cb68371ba286e93f0cfcc6326f7a40298e880ab | refs/heads/main | 2023-04-19T07:56:45.375263 | 2021-05-10T00:02:42 | 2021-05-10T00:02:42 | 327,093,422 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,822 | py | import time
import uuid
from flask import Flask, render_template, request, jsonify
from flask_cors import CORS, cross_origin
from flask_socketio import SocketIO, join_room, leave_room, emit, send
from model.manager import Manager
app = Flask(__name__)
app.config['SECRET_KEY'] = 'secret!'
app.config['CORS_HEADERS'] = '... | [
"fragamartine@gmail.com"
] | fragamartine@gmail.com |
005b04366f7279fbc07c16daa7f5d0b64d2de961 | b611968ae2d700928c4b16f973efc2e902a21157 | /not_django/base_controller.py | bcc7d02156b2422aa9de1567db21acbb0114700d | [] | no_license | nediola/hydroponics | d8b8a94b5735e2a9965df9c8743a3fef513fd15a | ff479b91ff679e1f35b0af1f263419f47175bbad | refs/heads/master | 2016-09-06T04:32:12.676341 | 2015-05-21T19:25:30 | 2015-05-21T19:25:30 | 34,571,963 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,451 | py | import RPi.GPIO as GPIO
import threading
import time
import urllib
import urllib2
import json
LOGIN = 'base1'
PASS = 'base1'
SERVER_URL = 'http://192.168.10.45:5000/base/'
GET_TASKS_URL = SERVER_URL + 'get_tasks/'
TIMER_SEC_INTERVAL = 10 # 5 minutes
PIN_SENSOR = 4
#---------Settings--------------------#
GPIO.setmode... | [
"nediola@yandex.ru"
] | nediola@yandex.ru |
73b05d21e802abdebc78e16ca74f15083963bfc9 | 69fd9d4de4caad16d95d47b2fbae0f48cdde1198 | /venv/Scripts/easy_install-script.py | 6cd1c5e1c100cc2dc868d29e9a52e98ad8ca010c | [] | no_license | seanmcerlean/Pong | 0a315da5d136a1db95454e5cf3f5b4b44b6d1fa3 | f48b2c856cdf059ab4178f208665832d8c151fcf | refs/heads/master | 2020-12-04T07:28:32.761043 | 2020-01-11T22:05:20 | 2020-01-11T22:05:20 | 231,677,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!"C:\Users\CEX Cookstown\PycharmProjects\Pong\venv\Scripts\python.exe"
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.... | [
"seanmcerlean82@gmail.com"
] | seanmcerlean82@gmail.com |
5b7b08cc64f27b668429b60c89c6dfff39a1be47 | 3e2ec14daf3e246334e175719bc38adcf15cee5a | /challenges/graphs/black_shapes.py | 711d0422815e2bd4f14aaa3777a4b3ce9f1aaf6a | [
"CC0-1.0"
] | permissive | lukasmartinelli/sharpen | a616ee981d81efb2c844c5106ce30bd97f36e034 | 6f314fc2aa17990ede04055e7c3ac9394a6c12c0 | refs/heads/master | 2021-01-20T12:11:25.452306 | 2019-06-08T21:06:12 | 2019-06-08T21:06:12 | 58,558,368 | 13 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | import collections
def adjacent_black_fields(matrix, row_idx, col_idx):
adjacent = [(row_idx + 1, col_idx), (row_idx - 1, col_idx),
(row_idx, col_idx + 1), (row_idx, col_idx - 1)]
def is_within_matrix(row_idx, col_idx):
row_count = len(matrix)
col_count = len(matrix[0])
... | [
"me@lukasmartinelli.ch"
] | me@lukasmartinelli.ch |
c997505a25477db93db4c5f964cc6a9d6580f38d | 82b18029dc62e9f4ef7c81ffb81b8661cb273cff | /1047/1047.py | 0669404fb986aa517a32b3ba4edc323322e5b891 | [] | no_license | patrickDugan04/leetcode | 6f93bd5940630f47bb0108d5574ec839f0cad007 | 8536cf15af3dacd269aaa933a54be0465a1434f5 | refs/heads/master | 2022-11-16T05:31:52.583513 | 2020-07-11T19:27:46 | 2020-07-11T19:27:46 | 274,278,489 | 4 | 0 | null | 2020-07-11T19:27:48 | 2020-06-23T01:19:55 | Python | UTF-8 | Python | false | false | 457 | py | def remove(s):
last = '!'
l = []
edit = False
for i in s:
if len(s) == 0:
return "", False
if i == last:
l.pop()
edit = True
last = "!"
else:
l.append(i)
last = i
return l, edit
class Solution:
def re... | [
"patrickdugan04@gmail.com"
] | patrickdugan04@gmail.com |
1b45ce3e2345411a4d4a4c9e03fdc71ab41d64a8 | 5294cea8f1e78ed632e6afac361451890f594611 | /kungfu_demo_2.py | 70730246982b2375cdc09211ddafdac460250b91 | [] | no_license | Liu-Eric/qianbo | 51b1aa49a5ebe9baf2095810b772c3536ee0c000 | 360343942f7f92827527d405225e3cbfd9cf1507 | refs/heads/master | 2020-03-10T12:42:53.510905 | 2018-04-14T14:59:49 | 2018-04-14T14:59:49 | 129,384,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,161 | py | ###kongfu demo
M_TICKER = '000776'
M_EXCHANGE = EXCHANGE.SZE
SOURCE_INDEX = SOURCE.XTP
def initialize(context):
print "running initialize"
context.add_md (source=SOURCE_INDEX)
context.add_td (source=SOURCE_INDEX)
context.subscribe (tickers=[M_TICKER], source=SOURCE_INDEX)
def on_tick(... | [
"noreply@github.com"
] | noreply@github.com |
2d11dd526266ae00028c7873376f028e6a9f53d7 | cd017281f1aa31dabe0420a7299aef3a635bc5c3 | /NatNet_SDK_3.1/Samples/PythonClient/PythonSample.py | 3b0af69ca19df7db9a62bfe36aa815e78a706d96 | [] | no_license | snowymo/Optitrack | e8b93c5cf9b968fd0ae8c23ff0103b5368599a2d | f78d3f2e227186844cf58fb6ca20b5a5d7d2f51a | refs/heads/master | 2020-09-17T08:32:08.463091 | 2019-12-17T04:30:17 | 2019-12-17T04:30:17 | 224,054,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,149 | py | # Copyright © 2018 Naturalpoint
#
# 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, ... | [
"snowymohehe@gmail.com"
] | snowymohehe@gmail.com |
83f67eb1126eb3952caf34740d621467f28863e0 | 3a19c1b17f553b6d54e5c345d550ca494c3593e1 | /td1-problem22.py | 4130c59d812ac8cfd5ae3a90bfb24b370ea9992d | [] | no_license | mines-nancy-tcss5ac-2018/td1-TomLaville | 95faf73aca9375fe7ba990043e9c371713524eaa | 4967cda4594b7706d8edcdaf99a7945ea90ad8e3 | refs/heads/master | 2020-03-31T00:16:54.328127 | 2018-10-07T19:05:42 | 2018-10-07T19:05:42 | 151,733,523 | 0 | 0 | null | null | null | null | IBM852 | Python | false | false | 876 | py | values = ["\"","A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M","N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"]
def scoreName(nom):
s = 0
for char in nom:
s+= values.index(char)
return s
def solve():
noms = [] ##liste ... | [
"noreply@github.com"
] | noreply@github.com |
42c75c056f242e7e057cfeaa7d10706ce2698b87 | 6dc2d18adccd7dd7bcf9695bcdb8c86aa7cb1eb9 | /py/jd_wskey2.py | 928862803bf4a34a6e4e957df3d052d6203abd88 | [] | no_license | livuswang/jd_job | 1c23f26ea58068590147c66929503a68deb95551 | 99894ff50af31b262b2b082fc7b6f6c4f897b6df | refs/heads/master | 2023-08-29T16:56:51.000661 | 2021-11-03T09:47:07 | 2021-11-03T09:47:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,413 | py | # -*- coding: utf-8 -*
'''
cron: 15 */8 * * * jd_wskey2.py
new Env('wskey转换2');
'''
import socket
import base64
import http.client
import json
import os
import sys
import logging
import time
import urllib.parse
logging.basicConfig(level=logging.INFO, format='%(message)s')
logger = logging.getLogger(__name__)
try:
... | [
"246771270@qq.com"
] | 246771270@qq.com |
99ca246ce1a0aa18c5d7773823738e815dc59d7b | 62f9d620ba82f3f5d94c2536683212c002f73039 | /flask_app.py | c3bd0590ad404808159ba787bfabf3eb0b6bb69b | [] | no_license | Nagarajuvuliki/google | 7e6d42f9bcfb57d5e8c8db5513c65249b07abbc0 | e82c27cb5530e991506366ceec00c85088dce7e9 | refs/heads/main | 2023-08-27T22:04:38.892946 | 2021-11-04T07:26:13 | 2021-11-04T07:26:13 | 423,329,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,459 | py | # https://www.youtube.com/watch?v=vISRn5qFrkM
from flask import Flask, request, jsonify, abort,render_template,url_for
import io
import json
import base64
from conn import nps_conn
import os
import logging
import numpy as np
from PIL import Image
from pathlib... | [
"noreply@github.com"
] | noreply@github.com |
9a1e9f13e277d1cc077d5b494efa3ec829c9a034 | 87fcf9a4fe84fd7eb416f68d7422e03d7a2ae29c | /Python/Aulas/aula4_5.py | 936472897979ec172c6f598662a3565fa1d26afa | [] | no_license | oratusxd/Estudos_IGTI | a0e0f2f1e8c82da2bb2eb8d8c8be5b11e9f0ce82 | 6e7397c5b58770d4069498fbabed40b68be26dda | refs/heads/main | 2023-08-11T01:54:25.393962 | 2021-09-15T10:55:05 | 2021-09-15T10:55:05 | 406,721,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,725 | py | # Dicitionary
cod_uf = {
21: 'Maranhão',
22: 'Piauí',
23: 'Ceará',
24: 'Rio Grande do Norte',
25: 'Paraíba',
26: 'Pernambuco',
27: 'Alagoas',
28: 'Sergipe',
29: 'Bahia'
}
print(type(cod_uf))
print(cod_uf) # Os dados só são ordenados pós python 3.7- LEMBRE-SE DISSO CARAIO
print(cod_uf.values()) # Pegan... | [
"noreply@github.com"
] | noreply@github.com |
64e20febf08eb21d8845cf26f76a8397863fb7d1 | f8c8a7adf70c77f9ea04e43c2e5945ebb7d5cfce | /infrastructure/backend/falcon/migrations/0009_auto_20191031_1237.py | bbefa37d8e61a489c0495ef132b424bbac4045fb | [] | no_license | organicmaps/autotest | e0907ec6312831efc1e46983106fc6fb72352418 | 11a584e9449cf0d2f034c3aab925e05c14d8d5e9 | refs/heads/master | 2023-01-14T05:06:35.952465 | 2020-11-23T12:49:47 | 2020-11-23T12:49:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,455 | py | # Generated by Django 2.2.2 on 2019-10-31 12:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('falcon', '0008_auto_20191024_1304'),
]
operations = [
migrations.CreateModel(
name='MajorReleas... | [
"k.kravchuk@corp.mail.ru"
] | k.kravchuk@corp.mail.ru |
7acffc09af312c4cf50348b8c11ac1c2f7a9299c | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/16/usersdata/134/7136/submittedfiles/triangulo.py | ed25ffd7bbcc72ababe8bfa8ba20892f52ef7ec7 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 260 | py | # -*- coding: utf-8 -*-
from __future__ import division
import math
a = input('Digite o valor de a:')
b = input('Digite o valor de b:')
c = input('Digite o valor de c:')
if a>=b>=c and a<(b+c) :
print ('S')
if (a**2)==((b**2)+(c**2)):
print
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
738f24c8abe7aa71f9590805a7fd41c835c0d2a1 | a2051c62363a945aae15c61e2853acd9d8e48e5a | /Date.py | 0cc84d96f75656c35914c530a7360e3f828c43db | [] | no_license | hamzaHMZ/projects-StudentManager | 30a51bc953f834c354d35c6d688b7bd38cfe453e | 0717faf86962b3c1b27423039dfe9b8779827292 | refs/heads/master | 2020-09-15T12:17:37.395449 | 2019-11-22T16:21:35 | 2019-11-22T16:21:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | import math
class Date:
"""
Class define a Date Class with Attributes :
- day
- mounth
- year
"""
#-------------------------------------------------------------------------------------------------------------------
# CONSTRUCTOR
def __init__(se... | [
"noreply@github.com"
] | noreply@github.com |
69291f4bb7b082fcb63d8d0a0ab580ce63b63c2a | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /GX3pQxvbTJApWYgRJ_22.py | ea51d20994790e177a6d6bdea78c3a0e36e6bd7b | [] | no_license | daniel-reich/turbo-robot | feda6c0523bb83ab8954b6d06302bfec5b16ebdf | a7a25c63097674c0a81675eed7e6b763785f1c41 | refs/heads/main | 2023-03-26T01:55:14.210264 | 2021-03-23T16:08:01 | 2021-03-23T16:08:01 | 350,773,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,291 | py | """
A Kaprekar Number is a positive integer that is equal to a number formed by
first squaring, then splitting and summing its two lexicographical parts:
* If the quantity of digits of the squared number is even, the left and right parts will have the same length.
* If the quantity of digits of the squared numb... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
e0936d5162d1da2069d517ff93eae88bc00260b7 | 5d501571d4a3fcd7711a030e36d61881275bdb9f | /posts/permissions.py | 49a19f8ddca830bacfc16afb1c7205de8a6323a6 | [] | no_license | pre22/BlogApi | f65978049729c1a074bdea792b2785d670bc6d30 | 0f8b42982d40704fc1ded49c67154b21de585ec4 | refs/heads/main | 2023-01-05T16:56:12.006228 | 2020-11-09T18:11:13 | 2020-11-09T18:11:13 | 304,912,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | from rest_framework import permissions
class IsAuthorOrReadOnly(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
# Read-only permission are allowed for any request
if request.method in permissions.SAFE_METHODS:
return True
# Write permissions are... | [
"43546663+pre22@users.noreply.github.com"
] | 43546663+pre22@users.noreply.github.com |
e787af13720d8fabc313f76939989fe35db824c6 | c1d04e439c230a15293d4ce41bc6c9e8a4026df8 | /programmers/더 맵게.py | b6a29aa8cde9c43cb80ae173e3fd9ec0770032e4 | [] | no_license | ieesejin/algorithm_study | fd2cccfc367ec80348f2412a8ba19c6d6a9bd65e | 8f083202818b3ca79f94f25eef221c97f9cb361b | refs/heads/main | 2023-06-07T04:33:42.920673 | 2021-06-29T06:13:52 | 2021-06-29T06:13:52 | 302,306,418 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 541 | py | # https://programmers.co.kr/learn/courses/30/lessons/42626
import heapq
def solution(scoville, K):
answer = 0
heapq.heapify(scoville) # heapq
while True:
if len(scoville) == 1 or scoville[0] >= K: # loop end condition
break
heapq.heappush(scoville, heapq.heappop(scoville) + ... | [
"ieesejin@naver.com"
] | ieesejin@naver.com |
1aa9b4da73812353b32163c00c47618900b6ec0d | 8e1e8693be65554cc5d7cf00ba253d3f4c9c5973 | /src/09_Video_Data.py | 9ba98feb1f063d096e1ead0db020f6e875a03c6e | [] | no_license | ChengBinJin/Hvass-Laboratory-Tensorflow | 72633f0c6c1573b4474dbacc5c9d5c6a1799e22d | 1df7b05bc742d19b67f96f05a1f5ef438215d7f4 | refs/heads/master | 2020-04-21T23:03:43.076990 | 2019-08-16T06:30:44 | 2019-08-16T06:30:44 | 169,933,716 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,066 | py | # Imports
import os
import time
import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
from matplotlib.image import imread
from datetime import timedelta
from sklearn.decomposition import PCA
from sklearn.manifold import TSNE
from sklearn.metrics import confusion_matrix
# Functions and ... | [
"sbkim0407@gmail.com"
] | sbkim0407@gmail.com |
385d81ebf0fe1b88c410c5cc365432458c44979c | cc053c467b7e368087f768bfcbdb4a7e0080ed15 | /2_9.py | 445f0b7b0a73d635127caf94a64c7e7a8b027d64 | [] | no_license | PatrykWalach/umcs-python | 7b1ccba6f60c3f88d83eb063bfac3e52cd65dc0b | 8645575ec6d9c63646170f1a5b697ff6ab46c19a | refs/heads/main | 2023-05-31T07:02:32.127485 | 2021-06-17T08:13:35 | 2021-06-17T08:13:35 | 342,712,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | import sys
KEY = 3
def encode(txt):
encoded = ''
for char in txt:
encoded += chr((ord(char) + KEY - 97) % 26 + 97)
return encoded
def decode(txt):
decoded = ""
for char in txt:
decoded += chr((ord(char) - KEY - 97) % 26 + 97)
return decoded
with open(sys.argv[1]) as r:
... | [
"patryk_walach_github@outlook.com"
] | patryk_walach_github@outlook.com |
4ecd5bcc5ea4fe1b7a22fa465a893bde979f27a9 | 1c61d9e996f24e87ae686c2b6a2f01ef052425d1 | /commentapp/models.py | fac77b8e1a73f5660b398fc85472661da265effd | [] | no_license | joft-ware/django_web | ba3be679299fdacba7fc1c49cb5317209e895a59 | 06f750fd4a2bdced2b0d67a198ebafd5d3407637 | refs/heads/master | 2023-02-26T19:52:49.247705 | 2021-02-02T14:12:53 | 2021-02-02T14:12:53 | 325,967,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 469 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
from articleapp.models import Article
class Comment(models.Model):
article = models.ForeignKey(Article, on_delete=models.SET_NULL, null=True, related_name='comment')
writer = models.ForeignKey(User, on_delete=... | [
"34998542+sky033116@users.noreply.github.com"
] | 34998542+sky033116@users.noreply.github.com |
89584a4110f29d4bcd60bac7f3af7e4c47fe3c86 | 2f216ff5348be63a6fb27c57b5d6ce6d3f97fe97 | /csm_workbench/api/menu.py | 3d2a72e454b84790ef46cd6fc2a184c277ff07c3 | [] | no_license | iansoft/csm-workbench | 06e090924fe0e4228d56d473064700cf0c419715 | b57d785f10b415dbcc1b1dfe0a36de439e30e7fe | refs/heads/master | 2021-01-17T20:55:38.487446 | 2016-08-15T11:08:45 | 2016-08-15T11:08:45 | 64,449,611 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,485 | py | # _*_ coding: utf-8 _*_
from django.db import connection
from manage_menu.models import Menu
from sqlhelper import dictfetchall
def init_menu(menu_config):
'''start build the menu tree'''
for m in menu_config:
menu = Menu(name=m["name"], url=m["url"], icon=m["icon"], openable=m["openable"])
menu.save()
for sub... | [
"anziloveanzi@hotmail.com"
] | anziloveanzi@hotmail.com |
cfd6abc227d4076fd9776f0e0c23c00875b1af4b | c5adc42291e6df5334e4420b70c5c468726c2310 | /tests/rest/xsl_transformation/fixtures/fixtures.py | 7ae525d277ce26e46c1c9ef5d6406da217f162d4 | [
"LicenseRef-scancode-public-domain"
] | permissive | cdcs-repos/core_main_app | a1aa9136040bbec5bc031a164afa428e26a8090b | e08a289ca1cb8b7e1092650cd184ff243fee89c1 | refs/heads/master | 2020-04-22T17:29:19.126625 | 2018-12-05T14:50:32 | 2018-12-06T15:05:16 | 170,542,664 | 0 | 0 | NOASSERTION | 2019-02-13T16:43:01 | 2019-02-13T16:43:01 | null | UTF-8 | Python | false | false | 1,035 | py | """ Fixtures files for XslTransformation
"""
from core_main_app.components.xsl_transformation.models import XslTransformation
from core_main_app.utils.integration_tests.fixture_interface import FixtureInterface
class XslTransformationFixtures(FixtureInterface):
""" Xsl Transformation fixtures
"""
data_1 =... | [
"adrien.catel@nist.gov"
] | adrien.catel@nist.gov |
3f6737c4f0d8e3700609d20ff2d4c0379d42c862 | bbfa96b66b384711ddd30add8eb35c89b58a3511 | /viewphoto/tests.py | f6e4c317b63ce44ea6890e11c7d412af2518a802 | [
"MIT"
] | permissive | BenkiKuu/djangoip1 | 3d50325843369cc5403f6f2fe5db6bb7d9eb0507 | 06749a1b754a12ccdf75fc61e1d5d0a08723c203 | refs/heads/master | 2020-03-22T23:34:22.044780 | 2018-07-23T12:21:55 | 2018-07-23T12:21:55 | 140,817,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,607 | py | from django.test import TestCase
from .models import Category, Location, Image
class CategoryTestClass(TestCase):
# Set up method
def setUp(self):
self.test_category = Category(name='Simba')
self.test_category.save_category()
# Tear down method
def tearDown(self):
Category.obj... | [
"iganeleo@gmail.com"
] | iganeleo@gmail.com |
0880e3a123ede3bcf2211f08a1ccf3132ed4b202 | 27f7ab32a865f4ae6b62d0b2a6a890352fea0cba | /ifmo_certs/courses/x0009_02/__init__.py | c0c67542929f42b7691098b602532d6a2ddb5444 | [] | no_license | defance/edx-ifmo-mod | 38b84381814b103e5cbf07419b1e1e142bc61a70 | 1b86a85a32c06322ab429d323f2ff2be84d0a1cc | refs/heads/master | 2021-01-22T20:59:42.575809 | 2015-10-28T12:57:43 | 2015-10-28T12:57:43 | 21,855,589 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | __author__ = 'd.ivanyushin'
from .x0009_02 import X0009_02
| [
"defance@gmail.com"
] | defance@gmail.com |
72ea9d987b690258eda963109c66f6be43e0316e | ef300495520be13d850cb97dc5cc904677753a86 | /kadai4-1.py | 16f2fcc067696799c1218c134b226314bb2b4db8 | [] | no_license | ShinNaruse/python | 042dc0d2a8e473151c74189c48758dd18b933229 | 86b5e6d5b6cd6732b762fce54819242a3da0899f | refs/heads/master | 2020-05-15T21:22:49.996109 | 2015-06-09T06:31:48 | 2015-06-09T06:31:48 | 34,678,514 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,231 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 18 15:21:41 2015
@author: 12T5062G
"""
import math
try:
# see if Swampy is installed as a package
from swampy.TurtleWorld import *
except ImportError:
# otherwise see if the modules are on the PYTHONPATH
from TurtleWorld import *
def square(t, length... | [
"shin.magnet@gmail.com"
] | shin.magnet@gmail.com |
eca8c315c2d5c04d9313dad5a84d86c2fdac32b7 | b3632873decefef0f11c6251a16c1efb0f65002e | /Sky_Test.py | fd55ad88f5284f065e1e4f5aa9bc4100252cf7a0 | [] | no_license | JenniferJehan/Codility | 422cbe7532c2e11fe545c3dd656525674d5a0d4d | cc2660577634ce3292e939c5fe6f551d921a98b1 | refs/heads/master | 2023-02-18T13:27:53.317075 | 2021-01-14T15:28:43 | 2021-01-14T15:28:43 | 328,484,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,673 | py | # msg_t ='b'
# for x in range(1,15000):
# msg_t += 'a'
# for x in range(1,15000):
# msg_t += 'b'
def solution1(msg):
temp = [[],[]]
switch = True
for x in msg:
if x == 'b':
switch = False
if switch == True:
temp[0].append(x)
if switch ==... | [
"noreply@github.com"
] | noreply@github.com |
05947191f7a5ddb2a9ff5e8e0385d1616f07bd04 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/machinelearningservices/v20210301preview/get_job.py | e9a9f325635bdf8571c3b2144867f1b62d2a343b | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 4,080 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | noreply@github.com |
e11ca1e33be1580d378d7f896cd2c0c689e25163 | 16dd3cb271756e1b2bdb737ef8e5ed0a1a0f8f9b | /comb3.py | 4793350abcb3d4d55cd2b6dbc56c3fa531308283 | [] | no_license | frog9800/astropy | c222caff661d3269c763991818d8d7682ffb06c4 | b85328304e6cf57d21072938aecdc7120499c36b | refs/heads/main | 2023-07-12T09:25:51.099265 | 2021-08-19T22:25:47 | 2021-08-19T22:25:47 | 373,980,511 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | from pathlib import Path
import os
from glob import glob
import shutil
from astropy.nddata import CCDData
from astropy.stats import mad_std
import ccdproc as ccdp
import matplotlib.pyplot as plt
import numpy as np
Sci_path1 = Path('Cal_science1')
Sci_path2 = Path('Cal_science2')
sci1_images = ccdp.ImageFileCollectio... | [
"mont.builder@gmail.com"
] | mont.builder@gmail.com |
568bb6f7583f9b9b17d99e929a115da96db2c90e | cb4d09c92911bc9980f1861946e0e7be52e47521 | /flujos_CNA2/phits/grafica_espectros.py | a9fac89f13b05ef9c953b0bf76fc7b5009b2de89 | [] | no_license | pbellino/Simulaciones_neutrinos | f226793831c17946f4bfd73277e47f4630b2210f | 689f34d07bc3ac7463e98e40da38d9ac39cbb527 | refs/heads/master | 2023-04-19T00:28:28.803575 | 2021-05-05T19:42:03 | 2021-05-05T19:42:03 | 260,090,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | #!/usr/bin/env python3
"""
Script para leer los resultados de cada corrida de PHITS
TODO
"""
import matplotlib.pyplot as plt
import seaborn as sns
import sys
sys.path.append('/home/pablo/CinePy/')
from modules.simulacion_modules import lee_espectro_phits_eng
sns.set()
if __name__ == '__main__':
archivo = 'cros... | [
"pbellino@gmail.com"
] | pbellino@gmail.com |
c43561fd7c7e6f341fda4b3e1171e710c080560f | 492f3793f1e67219e3fbf1365e9ed50945383de5 | /compilacion_fractals/Sierpinski/Sierpinski_rcoloredStar.py | ac476b277b9aeeb9931d260de137548a3d235683 | [] | no_license | iris9112/PyConCharlasFractals | 63008d1656b11e490d69dfdb08aae3a9914fa73a | 210085d4c196572308630c423fa2c54892578b1e | refs/heads/master | 2022-01-09T20:52:14.119337 | 2019-05-22T18:58:36 | 2019-05-22T18:58:36 | 118,304,365 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,424 | py | import numpy as np
import matplotlib.pylab as plt
import random
def gasket(pa, pb, pc, level):
x=(random.random(),random.random(),random.random())
if level == 0:
plt.fill([pa[0], pb[0], pc[0]], [pa[1], pb[1], pc[1]], color=x,alpha=0.9)
plt.hold(True)
else:
gasket(pa, (pa + pb) / 2.... | [
"iris9112@gmail.com"
] | iris9112@gmail.com |
209982e1f098eb52f03455f8eccda9e4ea4c2c90 | 9da5f5ac2bba27b4fabc16d9736bcd88d51cea73 | /manage.py | a9b7da691a39065e35c701ab42171a275175f4e2 | [] | no_license | jengrace/personal-website | c7f30437e6d904474f8bf4ffc76180aa063baf21 | 42b0a1932f6256a59d6a10787cc268bc67400596 | refs/heads/master | 2021-01-20T14:17:08.143362 | 2018-09-18T02:29:46 | 2018-09-18T02:29:46 | 90,584,659 | 1 | 0 | null | 2018-09-18T02:29:47 | 2017-05-08T03:57:22 | Python | UTF-8 | Python | false | false | 251 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "jengrace.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jenniferanngrace@gmail.com"
] | jenniferanngrace@gmail.com |
6b1c8b4c05b328358fdd4c9d0e9303611869d252 | 59516b0429dd5ce5184e5df116b861a29050351c | /bulk-rename-project/rprename/ui/window.py | e27bfd4c476c24c69846102ecdeafdf67d494dda | [] | no_license | Birendrakumarmahto/Hacktoberfest_2021 | 8320b61d2efa9d81354a046d920fdb9062e6e581 | fe6c5d959d5872cd4f75cb2bced99053e6398f62 | refs/heads/main | 2023-08-28T08:55:54.686980 | 2021-10-27T05:36:50 | 2021-10-27T05:36:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,319 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'window.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt5 import QtC... | [
"noreply@github.com"
] | noreply@github.com |
0fa3f991c3598622005e6926a494dab0686843bc | 2d612cc8a99cd3ba8eae50ee29eec8f44328f7e4 | /Higgs/test/wh/ControlEM.py | 7be5ccb6bfbba882c1131392c7add2c044b42c1b | [] | no_license | sshalhou/FinalStateAnalysis | 4046b6100e8103545cdb5ddcf26655196d324654 | 515b14dbeab0f340fc0487ec02a0643243b040b5 | refs/heads/master | 2021-01-18T05:41:09.721959 | 2012-12-03T16:51:05 | 2012-12-03T16:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,890 | py | '''
Make control plots of Z and ttbar -> emu events.
Author: Evan K. Friis, UW
'''
import EMuTree
from FinalStateAnalysis.PlotTools.MegaBase import MegaBase
import glob
import os
import FinalStateAnalysis.TagAndProbe.MuonPOGCorrections as MuonPOGCorrections
import FinalStateAnalysis.TagAndProbe.H2TauCorrections as ... | [
"sshalhou@login06.hep.wisc.edu"
] | sshalhou@login06.hep.wisc.edu |
a56febed6885c0b35f0a30ddce4934f5b6836066 | 53396d12d606bebea71c149aed0150af7b17b6f5 | /array/medium/221-maximal-square-1.py | b3885e1f68c33ae2c1dc19434984e2ec1137c8ff | [] | no_license | superggn/myleetcode | 4c623bd9ad3892d826df73ad3b2c122e08aaa9e9 | 40ca33aefbf0cf746a2d0b7e7f52643ae39591be | refs/heads/master | 2023-02-02T11:06:35.163570 | 2020-12-19T10:36:45 | 2020-12-19T10:36:45 | 322,821,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 837 | py | """
dp
https://leetcode-cn.com/problems/maximal-square/solution/zui-da-zheng-fang-xing-by-leetcode-solution/
"""
from typing import List
class Solution:
def maximalSquare(self, matrix: List[List[str]]) -> int:
if len(matrix) == 0 or len(matrix[0]) == 0:
return 0
maxSide = 0
... | [
"939401399@qq.com"
] | 939401399@qq.com |
0bb34c6d9971caca886ebad79a06d7b20f44f3bd | 52176e8b5c67a557c6b46dccb8237f4703641496 | /086.py | cfd63a551400895eba967eb40f80998f9219a348 | [] | no_license | nzkim1234/Codeup_Python | adeca6cd11e38dddcd8ebb5c6792a5040200d6ae | a9c9e612b2cc5cd026c76e8ed3fee0274cec4017 | refs/heads/main | 2023-05-11T07:28:16.239087 | 2021-06-01T14:43:46 | 2021-06-01T14:43:46 | 372,215,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 101 | py | a = int(input())
s = 0
c = 1
while True:
s += c
c += 1
if s >= a:
break
print(s)
| [
"nzkim1234@naver.com"
] | nzkim1234@naver.com |
06ab02e9ba259a23fa20f5bd9886c14512db016d | 247f0bf1ddeba4a63df5060cfff81a61e7cbea78 | /HolaWorld-vs2.py | cb98aa3274ebeae035d06db7ccc8721cd700671a | [] | no_license | RubenDarioGarcia2020/MyPortfolio | 774fff09747a84cdba212ac16d359456c3ea4afa | 98762d5bf713c0b41e7e014f0d0382244f54ccd5 | refs/heads/master | 2023-02-25T03:25:38.351813 | 2021-02-03T22:42:50 | 2021-02-03T22:42:50 | 334,003,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | # programa que saluda
print("Hola World")
| [
"rubendariogarcia@hotmail.com"
] | rubendariogarcia@hotmail.com |
08482fe6214b2752de4f244241d1bee84840b9a8 | 47243c719bc929eef1475f0f70752667b9455675 | /bungeni.main/branches/oauth/bungeni/alchemist/type_info.py | 2d6b1645d913fc2122f0e3dbcb9f1f7071449eff | [] | no_license | malangalanga/bungeni-portal | bbf72ce6d69415b11287a8796b81d4eb6520f03a | 5cf0ba31dfbff8d2c1b4aa8ab6f69c7a0ae9870d | refs/heads/master | 2021-01-19T15:31:42.943315 | 2014-11-18T09:03:00 | 2014-11-18T09:03:00 | 32,453,405 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,806 | py | # Bungeni Parliamentary Information System - http://www.bungeni.org/
# Copyright (C) 2010 - Africa i-Parliaments - http://www.parliaments.info/
# Licensed under GNU GPL v2 - http://www.gnu.org/licenses/gpl-2.0.txt
"""Aggregation of information about loaded domain types.
No public methods here -- all available methods... | [
"mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc"
] | mianonjoka@fc5d704a-7d24-0410-8c4a-57ddeba10ffc |
dedad2df78df530f7ef6b3776edaebe6d2267116 | 7dd7900c239cca7a68f2d07963a75fef0eed08f3 | /service/utils.py | 55b5e564ea7a868937ac15bad313c1fcf67deb40 | [] | no_license | jadeneu/dnd-5th-2-backend | 54dd9c72c8ae0ac2a28990b7b71c1cad1f11fd50 | 617fe72c112fdc8b3ae5d31b311b683b4bd7d8ba | refs/heads/main | 2023-08-15T02:35:31.169023 | 2021-09-20T12:24:52 | 2021-09-20T12:24:52 | 392,575,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 459 | py | def to_camel(snake_string):
components = snake_string.split("_")
return components[0] + "".join(x.title() for x in components[1:])
# snake_case로 키가 구성된 dictionary를 camelCase로 변환
def to_camel_dict(snake_dict):
camel_dict = {}
for snake_key, value in snake_dict.items():
if snake_key == "id":
... | [
"jhiya7420@naver.com"
] | jhiya7420@naver.com |
3037ffdf435b258f6ba29a033e6cd4421d3767c9 | 41ab40cc1beb75662b4c8c1427652618479d1a39 | /auth/users/views.py | 17cbb87d5624f03fade89de0c28706c0d2ad75ff | [] | no_license | foothub-archive/auth-service | aa3f9b9b63c2198183c8f1110a46bc8f68952cf3 | ce100f86853d2547f64a2f8fbf1634001571f603 | refs/heads/master | 2021-10-08T06:30:33.973641 | 2018-12-09T12:46:44 | 2018-12-09T12:46:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | from django.http import Http404
from rest_framework import mixins, viewsets, response, status, decorators, permissions
from rest_framework_jwt.serializers import VerifyJSONWebTokenSerializer
from rest_framework.response import Response
from .models import User
from .serializers import UserSerializer, ConfirmEmailSeria... | [
"acci.valverde@gmail.com"
] | acci.valverde@gmail.com |
2f7bbb0f809eb81529c08b49d694a4feb459b02f | 71063d96a5eb84480d3ce4bb7e77d87d0e0ec172 | /coursera/five weak/More than the previous.py | 2b37efa7f3cf54461d6a78015730ca9d41999c9a | [] | no_license | KonstantinGanzew/All_project | b1726ff8d74ac681529ff67240ff827942df4aa0 | 907e8084ed0bcfc13ad2f3720ed2fe8afca210a1 | refs/heads/master | 2020-04-02T10:22:50.699863 | 2018-10-23T14:00:56 | 2018-10-23T14:00:56 | 154,336,911 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | a = list(map(int, input().split()))
m = None
c = 0
for i in a:
if c == 0:
m = i
c += 1
else:
if i > m:
print(i, end=' ')
m = i
| [
"kanzew@gmail.com"
] | kanzew@gmail.com |
413cf825f10567f1b07c92410b7c8a1a4cd20504 | da7a7f94e06c366052277baae8470f3311c48aea | /mangadex_openapi/models/refresh_token.py | 67262d2be4816ac0b616db2d25ff47959d7105b3 | [
"MIT"
] | permissive | ongyx/mangadex-depreciated | b94c2fd7911088906ee60a431c25e648d82f7b50 | 56a244cf90d884b2589ab2466b44442409a296d7 | refs/heads/master | 2023-05-28T18:25:35.568623 | 2021-06-03T11:09:12 | 2021-06-03T11:09:12 | 367,671,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,245 | py | # coding: utf-8
"""
MangaDex API
MangaDex is an ad-free manga reader offering high-quality images! This document details our API as it is right now. It is in no way a promise to never change it, although we will endeavour to publicly notify any major change. # Authentication You can login with the `/auth/l... | [
"ongyongxin2020+github@gmail.com"
] | ongyongxin2020+github@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.