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 220
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 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
357248cb94353f91c0ae97139073ed46440fcdc8 | c5cb5ef8bc136a40ef79628daf06c6cc1f7e44ac | /compare_mcx_printing.py | 777a96051fbbe0b2b82776195f855360ea60fb6d | [] | no_license | metasyn/mcx-comparison | 6e7b3164d9cc2452be0b111425c0b84e19783f58 | 5e3d3988c0c0e97d870af177cb7eabd3551b930a | refs/heads/master | 2020-06-04T01:43:13.415252 | 2014-03-04T19:33:37 | 2014-03-04T19:33:37 | 20,038,624 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,043 | py | # mcx setting equivalence test
# ajohnson - 2014 - 2 11
from __future__ import division
import sys
# use ard to send a unix command: mcxquery -computerOnly
# to all the computers that you want to compare mcx values for
# export the command results as a text file, that will be the input
infile = open(sys.argv[1], 'r'... | [
"alexx.johnson@gmail.com"
] | alexx.johnson@gmail.com |
373377356e344a5f785375da56c4540432697303 | 49b861ac5ca3adfe8861a10839b18d9448eb8020 | /python/chop.py | 6f74fd49fb24d4987b5f98bb39819310de26f8b4 | [
"BSD-2-Clause"
] | permissive | symisc/pixlab | deee8dcd8b4816c135ad666340e4023dbcefbb66 | b4ffb1d6b8ff2204ac0db51842ada921478ed66c | refs/heads/master | 2023-08-04T19:39:44.813119 | 2023-07-31T03:51:16 | 2023-07-31T03:51:16 | 85,357,712 | 107 | 34 | null | null | null | null | UTF-8 | Python | false | false | 465 | py | import requests
import json
# Removes a region of an image and collapses the image to occupy the removed portion.
# https://pixlab.io/#/cmd?id=chop for more info.
req = requests.get('https://api.pixlab.io/chop',params={'img':'http://www.allaboutbirds.org/guide/PHOTO/LARGE/blue_jay_8.jpg','height':20,'x':45,'y':72,'key'... | [
"noreply@github.com"
] | symisc.noreply@github.com |
eb53a990da835beaca9e9cc878481161831bfb1f | 1bb2a9150de01c618163bbb8f872bdce6f14df4f | /BaekJoon/2981_검문.py | acbbec8e742ffdac47cb7a67e0dc300dcd8ab895 | [] | no_license | whyj107/Algorithm | a1c9a49a12a067366bd0f93abf9fa35ebd62102e | aca83908cee49ba638bef906087ab3559b36b146 | refs/heads/master | 2023-04-14T12:59:52.761752 | 2021-05-01T03:53:31 | 2021-05-01T03:53:31 | 240,014,212 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 989 | py | # 문제
# 검문
# https://www.acmicpc.net/problem/2981
# 풀이
from sys import stdin
N = int(stdin.readline())
M = [int(stdin.readline()) for i in range(N)]
M.sort()
tmp = M[-1] - M[0]
y = []
for i in range(2, int(tmp**0.5)+1):
if tmp % i == 0:
y.append(i)
if tmp//i not in y: y.append(tmp/... | [
"noreply@github.com"
] | whyj107.noreply@github.com |
2ce9a1b049459c79da30b6a1c77b1b59475eaa01 | 2f260fa01c744d93aacfe592b62b1cee08b469de | /sphinx/tello/source/_static/code/python/control-program/tello.py | 5b7390453ddf2deefede00ae55943829785944fd | [
"CC-BY-4.0"
] | permissive | oneoffcoder/books | 2c1b9b5c97d3eaaf47bafcb1af884b1adcc23bba | 35c69915a2a54f62c2c3a542045719cf5540f6ba | refs/heads/master | 2023-06-25T16:00:10.926072 | 2023-06-20T03:40:09 | 2023-06-20T03:40:09 | 216,915,443 | 50 | 3 | null | 2023-03-07T01:27:50 | 2019-10-22T21:46:03 | Jupyter Notebook | UTF-8 | Python | false | false | 8,757 | py | import socket
import threading
import time
class Tello(object):
"""
Wrapper class to interact with the Tello drone.
"""
def __init__(self, local_ip, local_port, imperial=False,
command_timeout=.3,
tello_ip='192.168.10.1',
tello_port=8889):
"... | [
"vangjee@gmail.com"
] | vangjee@gmail.com |
43170fa8f7fc5a3560607c4b21a1cb123096b586 | f6c1a4593859ad75000e726414f25fbf02766143 | /setup.py | 7edb29cfc794fbf5f917801018c219ab2e44a25c | [] | no_license | jbeezley/metadata_extractor | b753ce6f9e55e5bc92f16b5decfbab5b992ac621 | 1401127bf572119353e3c504278ff7436e077c9e | refs/heads/master | 2020-03-20T00:57:52.713434 | 2018-06-12T13:49:54 | 2018-06-12T13:49:54 | 137,062,489 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,917 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
###############################################################################
# Copyright 2013 Kitware Inc.
#
# 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 cop... | [
"jonathan.beezley@kitware.com"
] | jonathan.beezley@kitware.com |
439ae386234b53e7520364ad483113a36b46d116 | 362f8eeb4dad793eb488f4e80acb65ace793c6e8 | /test/sorry_jpg.py | 29e738548f5e6dc88f7561bb43d957ddeb9366a8 | [] | no_license | louxinye/lxybot_v2 | ab3613fab060b9d8d805482a9705fbdaab776cd9 | 8ac3ce319491d81e2ec5dda54c778e317fd56719 | refs/heads/master | 2021-04-15T07:59:17.103282 | 2018-12-03T03:01:29 | 2018-12-03T03:01:29 | 126,855,317 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,112 | py | # -*- coding: utf-8 -*-
# 开发中........
from urllib import parse,request
import requests
import json
headers = {
'Accept' : '*/*',
'Accept-Language' : 'zh-CN,zh;q=0.8',
'Cache-Control': 'max-age=0',
'Upgrade-Insecure-Requests' : '1',
'content-type': 'text/plain;charset=UTF-8',
'User-Agent': 'Mozi... | [
"1061566571@qq.com"
] | 1061566571@qq.com |
88e94952e8652a14ab593a057fe5cd8e5c67fecc | d9298c3f4634a3523b7a2f5f1e5c7e7c8d9f0272 | /Xpresso_kipoi/model.py | 5ee6928c9d23d1daa7c262fea5512d858b01a1bd | [] | no_license | Hoeze/Xpresso_kipoi | 105127185fbf0d4cbbded073298963cb880395f9 | 252c76b6d71bad2ebde34ce7a1035c3f38fed6aa | refs/heads/main | 2023-01-04T01:04:26.418662 | 2020-10-20T20:33:06 | 2020-10-20T20:33:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,099 | py | from kipoi.model import BaseModel
from keras.models import load_model
from keras.layers import Layer
from keras import backend as K
import tensorflow as tf
import numpy as np
class Xpresso(BaseModel):
def __init__(self, weights):
self.nuc_dict = {'A':[1 ,0 ,0 ,0 ],'C':[0 ,1 ,0 ,0 ],'G':[0 ,0 ,1 ,0 ... | [
"vagar@sci-pvm-vagar.calicolabs.local"
] | vagar@sci-pvm-vagar.calicolabs.local |
af7e89df385ab20dc1f91bac730a8ca9b629cf3f | 1316cd6763e784811c769c1de577235c921af0de | /Apps/qscan/pyth2p7/scanner.py | fe77520db52aa55bf64dc1ebb7679cf1b63d600f | [] | no_license | VELA-CLARA-software/Software | a6fb6b848584e5893fd6939a447d23134ce636cc | 2e2a88ac0b2b03a495c868d2e11e6481e05097c3 | refs/heads/master | 2023-02-05T07:40:58.260798 | 2023-01-27T09:39:09 | 2023-01-27T09:39:09 | 69,860,536 | 7 | 3 | null | 2021-04-07T14:17:07 | 2016-10-03T10:20:46 | Mathematica | UTF-8 | Python | false | false | 9,766 | py | from PyQt4 import QtGui, QtCore
from PyQt4.QtCore import pyqtSignal
from PyQt4.QtCore import pyqtSlot
import sys,os
#import view
import numpy as np
sys.path.append("\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage\\")
#sys.path.append("\\\\apclara1\\ControlRoomApps\\Controllers\\bin\\stage\\Python3_x64\\")
#sys.... | [
"duncan.scott@stfc.ac.uk"
] | duncan.scott@stfc.ac.uk |
c56a3f8d77a5d05be57428bbda596c5e31709503 | 241724e83f5c12ed9d7dd3b825dfe4e2b1b0f777 | /examples/boundary_conditions.py | a73111c7860a10c82ddfefc46005d3f0954a7718 | [
"MIT"
] | permissive | xuanxu/py-pde | d8be358ab76d4060b14afc74bc7d836591c6188e | de33d938aea8680eff872ae1b64569895662a248 | refs/heads/master | 2021-03-09T21:37:13.920717 | 2020-03-10T12:18:03 | 2020-03-10T12:18:03 | 246,382,909 | 0 | 0 | MIT | 2020-03-10T18:54:22 | 2020-03-10T18:54:22 | null | UTF-8 | Python | false | false | 521 | py | #!/usr/bin/env python3
from pde import UnitGrid, ScalarField, DiffusionPDE
grid = UnitGrid([16, 16], periodic=[False, True]) # generate grid
state = ScalarField.random_uniform(grid, 0.2, 0.3) # generate initial condition
# set boundary conditions `bc` for all axes
bc_x_left = {'type': 'derivative', 'value': 0.1} ... | [
"david.zwicker@ds.mpg.de"
] | david.zwicker@ds.mpg.de |
c9eb862aeb4359055031d9ae873ff6ea6800bbe0 | eeca249274299a5acc495126eeda237c7317d40a | /THE/yt_lib_opt/try.py | 4ec3a2e3972fb2a41de14c49422fec5b7a46e6b4 | [] | no_license | nickmillr/yt-ontogenesis | ab44891b115b32d87c758ae8552715603c316a14 | 8fa9795f1e8861e3a809a6237851697512576cd8 | refs/heads/master | 2016-09-06T09:09:44.008411 | 2014-11-12T20:41:11 | 2014-11-12T20:41:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 337 | py | import yt
from yt.units import *
from yt.mods import *
import load_dataset as ld
import nearest_halo as nh
import star as s
code='enzo'
z=1.0
halo=54
ds = ld.load_data(code, z)
sphere_center=nh._center_of_mass(code,z,halo)
radius=nh._radius(code,z,halo)
sp = ds.sphere(sphere_center, (int(radius), "kpc"))
dd = sp.quant... | [
"nam002@marietta.edu"
] | nam002@marietta.edu |
9de55bb18ec1a43da35cc70b126f10dac1654751 | 60d47d279a007adbef10f3f808c6497f6c4a328d | /views.py | 86c08d4dc42eba82f6d51b520c0691367a306f72 | [] | no_license | tmaszkiewicz/app | 97ca1a13f4c9128d4c2ca8413d617de08db4881b | f4adbed1aad6cbdb949f949f308268ff67580f86 | refs/heads/main | 2023-08-23T15:46:57.598122 | 2021-11-05T14:15:11 | 2021-11-05T14:15:11 | 424,933,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request, *arg, **kwargs):
url = 'app/home.html'
context = {
}
tekst = "dasdasd"
context['tekst']=tekst
#return HttpResponse("LoveMonika")
return render(request,url,context)
| [
"t.maszkiewicz@gmail.com"
] | t.maszkiewicz@gmail.com |
8ebd15e0eeac0255627e3a4bca3146244f8e6cb3 | 425c28656cceb9f4098f86f4e53d810beb7e1f89 | /Store/migrations/0007_remove_orders_user_profile.py | 665699cc56e8e72fa67f5850761e248eb85a171b | [] | no_license | Arpan555/KGN_BAZAR | 4a06c564828125cce6e32faff1984fbdaab43149 | b7e84ceea4b17de0f62566ca9f3d2d96948a09ec | refs/heads/main | 2023-08-15T07:33:42.886654 | 2021-10-06T16:09:46 | 2021-10-06T16:09:46 | 414,282,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 343 | py | # Generated by Django 3.1.1 on 2020-09-30 04:47
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('Store', '0006_orders_email'),
]
operations = [
migrations.RemoveField(
model_name='orders',
name='user_profile... | [
"arpanpatidar65@gmail.com"
] | arpanpatidar65@gmail.com |
b7f1a23ed37c6438acc3ebc50d0a908d8e2e6287 | 67dd57d1a529a05405f201ce0d0d04829d9f3e2f | /Practica2/ejercicio2.py | e54ccae5469b177d631aac7f552e53f7ff1b2470 | [] | no_license | chema969/IMD | 72b7fe82cec54181e3670bc5827b36bdd656a8f8 | 742ddcb7fdbbea4da602b96c20188d87ea96f340 | refs/heads/master | 2020-08-01T05:27:30.153815 | 2019-12-21T15:40:57 | 2019-12-21T15:40:57 | 210,880,226 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
fig, axs = plt.subplots(ncols=2,sharex=True)
nombre_fichero="basesDeDatos/diabetes.csv"
data = pd.read_csv(nombre_fichero)
data.groupby("class").plas.hist(alpha=0.4, ax=axs[1])
axs[1].set_title('Histograma sin normalizar')
data.groupby("class").p... | [
"chema969@hotmail.com"
] | chema969@hotmail.com |
8a6a7e50e68280271d06ba16a0a7c6fcd77c4f9e | 6950eb30f8fa3b62ab11abe8ee1f70609f486fbc | /shell/pbomb.py | 960b06d8ea17fc351cd93c45bcaadb2c65010a62 | [
"MIT"
] | permissive | pbl64k/icfpc2016 | ca347139f06323f1de9ca7f559a2d432e7ef283f | 57edac99b0f21f48e14dfdb4742783ba8abb2da1 | refs/heads/master | 2021-01-19T03:22:15.738647 | 2016-08-08T19:35:34 | 2016-08-08T19:35:34 | 65,162,062 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 543 | py | #!/usr/bin/env python
import sys
import os
import time
import simplejson as json
blob = json.loads(sys.stdin.read())
for prob in blob['problems']:
print 'Problem', str(prob['problem_id'])
os.system('.cabal-sandbox/bin/icfpc2016-zhmppxm ' + ' <probs/' + str(prob['problem_id']) + '-' + prob['problem_spec_hash'... | [
"pbl64k@gmail.com"
] | pbl64k@gmail.com |
184b7da7cb5866239070d75f25a4f648b2c21ba3 | d83a3ee1084311df70626fb2ce0be483f5631472 | /histVarPng.py | 3386cfd4a875f26af378b42735047ac756a1b6cf | [
"MIT"
] | permissive | AineNicD/pands-project | 1ea0e758dbcbab0f72958712672d12da36878294 | 55f7dbab4f106f4776be4e0248c941a4246e64ac | refs/heads/master | 2021-04-19T03:03:12.837525 | 2020-04-30T22:50:45 | 2020-04-30T22:50:45 | 249,573,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | #Saves a historgram of each variable to png files
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
#read data
data = pd.read_csv("irisDataSet.csv")
#names of variables
names = ['sepal_length', 'sepal_width', 'petal_length', 'petal_width', 'species']
# sepe... | [
"noreply@github.com"
] | AineNicD.noreply@github.com |
91abc10c50eaf8da3dbf150d0f254a8c6b7a3fc2 | 30c6d52e9d285b358d62f24e971ca20b180ed2ee | /tests/tc2.py | 2a7e618f00bd0831c1dcdcebb0c7d57a96c34c70 | [
"MIT"
] | permissive | rxse/python-demoshop | c4c3e79f5f67e697bf221e241dc0e7978a0c9586 | b7b8c2ef59a63350433c9d50b4730c7344cbbcc6 | refs/heads/master | 2020-08-01T15:42:55.537210 | 2020-03-30T07:25:50 | 2020-03-30T07:25:50 | 211,036,804 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 986 | py | # Ranorex Webtestit Test File
from utils.base_test import BaseTest
from pageobjects.items_overview_po import ItemsOverviewPo
class Tc2(BaseTest):
def test_fast_checkout(self):
driver = self.get_driver()
# Open the page
overview = ItemsOverviewPo(driver).open(
"https://demosho... | [
"smatijas@Sasas-MacBook-Pro.local"
] | smatijas@Sasas-MacBook-Pro.local |
98d22f1272cf3b173a633a6aa4f96343b8ca83c7 | 1683cd92471c08a6e6fb4a2913a78ba2658d1fc8 | /tests/abell2218_high_red_huber.py | cff3fc8793439591c84261f8971c84abe91ff249 | [
"CECILL-B",
"LicenseRef-scancode-cecill-b-en"
] | permissive | pombredanne/csh | 04ed74007d3725782871ef7a4fb52ba6b4a0a45c | 6e36fea6ccb9fdd6e79f92d9fd1840f98f4c9805 | refs/heads/master | 2021-01-01T00:06:15.637419 | 2011-07-18T15:28:04 | 2011-07-18T15:28:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | import os
import csh
import lo
# define data set
datadir = os.getenv('CSH_DATA')
#filenames = [datadir + '/1342184598_red_PreparedFrames.fits[5954:67614]',
# datadir + '/1342184599_red_PreparedFrames.fits[5954:67615]']
filenames = [datadir + '/1342184598_red_PreparedFrames.fits',
datadir + '/1... | [
"nbarbey@sapherschel4.extra.cea.fr"
] | nbarbey@sapherschel4.extra.cea.fr |
056c947683ddb8f5d4853e367c173f5af567bb82 | 1818bd3151bb1a04e669918d3d59579709136df3 | /coconut/setup.py | f7ada82ff62f9ca23719096c54a1cb078fadb0a2 | [
"Apache-2.0"
] | permissive | MatthewBrien/PythonCorpus | 3db489cf1f0e8245d2c284af7439f7d69e623a87 | 526c1f78cdf17f9151552bcbfef5582cf8655446 | refs/heads/master | 2021-04-27T10:34:45.880859 | 2016-07-02T02:17:48 | 2016-07-02T02:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,787 | py | #!/usr/bin/env python
#-----------------------------------------------------------------------------------------------------------------------
# INFO:
#-----------------------------------------------------------------------------------------------------------------------
"""
Author: Evan Hubinger
License: Apache 2.0
... | [
"luke.inkster@hotmail.com"
] | luke.inkster@hotmail.com |
eed790ecc6634099cbae4eed0343224ecf168876 | bcba30701c3b09995e4bfcfdd7cdcafd81635187 | /mp.py | df6f8b68fe8e93d84c09569a8cd5f621c93f8d42 | [] | no_license | guotechfin/istock | f7376f04c74097afcb96a925a6823036b037c9f7 | 3eae7a58cf36c69a1e410d3647841f1e14c81cc6 | refs/heads/master | 2021-01-13T13:57:21.598684 | 2016-08-15T08:17:36 | 2016-08-15T08:17:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | #!/usr/bin/env python
#coding=utf-8
from multiprocessing import Pool
from time import sleep
from ga1 import *
def main():
pool = Pool(processes=20) # set the processes max number 3
sc = sc_get()
for i in sc:
result = pool.apply_async(get_result, i)
pool.close()
pool.join()
if result... | [
"noreply@github.com"
] | guotechfin.noreply@github.com |
1804e27f2aaf570252b3379d08e9789ad92856ba | f0e53d4eb9517db4a62070590c7a3256f3bd7743 | /neutron/tests/functional/agent/linux/test_ovsdb_monitor.py | 93bc06fe3665ccf9bfc4785fd4ea9ea2bff8a8b9 | [
"Apache-2.0"
] | permissive | lookmee/neutron | 064e58aef246dd95edd391bb07ee34acf97019e6 | 313fdd16140e9a42eb0f21d4a45406ae1c7adf25 | refs/heads/master | 2020-12-31T01:36:18.938921 | 2013-11-16T04:07:51 | 2013-11-16T04:07:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,042 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2013 Red Hat, Inc.
#
# 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
#
#... | [
"marun@redhat.com"
] | marun@redhat.com |
e9658d417076aadb516ad617c0dd66220ee1e14e | e394eb85637bb2683aee3cfa1004b2a6e22ffeea | /Zy/learn/drawTogether.py | 239c9aecd43fbd9d655973e909f3241385285949 | [] | no_license | icyeyes1999/DataScience | d55d08ca808ccc315d6548f388cef142b1e454d8 | 2c10a720663d7ee31d72677cfc93e44ae43c72bf | refs/heads/master | 2022-11-24T04:53:45.485883 | 2020-07-28T15:47:19 | 2020-07-28T15:47:19 | 281,598,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | import numpy as np
import matplotlib.pyplot as plt
import json
#折线图
# 一共20天 6.20-7.5 有些天掉出榜单
with open("test_data.json", "r", encoding='UTF-8') as f:
temp = json.loads(f.read())
index_1 = 1
for i in temp.keys():
x = []
y = []
print(i)
print(temp[i])
if(len(temp[i])<10... | [
"181250188@nju.edu.cn"
] | 181250188@nju.edu.cn |
7613b87d4f7bb041d44a46de933c8c6fcf6b6ca7 | 7c27302ec89cda9b14a4dc5b2c3b41824e694dd6 | /class2.py | d57b5a73e4bb6d2e85672af5b483edb9ed154948 | [
"MIT"
] | permissive | ranjithvbr/test | 583580a8d35ecae64a118c4ab3ae58d28835dc75 | 37cb7a876c402fc68e4624071924b2851ab7b1c4 | refs/heads/master | 2020-03-23T03:24:30.013593 | 2018-10-11T12:49:22 | 2018-10-11T12:49:22 | 141,028,651 | 2 | 1 | MIT | 2018-10-11T12:49:23 | 2018-07-15T13:15:10 | Python | UTF-8 | Python | false | false | 642 | py | class Employee:
'Common base class for all employees'
empCount = 0
def __init__(num,name, salary):
num.new = name
num.new2 = salary
Employee.empCount =Employee.empCount+ 1
def display(num):
print "Total Employee %d" % Employee.empCount
def displayEmployee(num):
... | [
"ranjithvbr@gmail.com"
] | ranjithvbr@gmail.com |
fb833a786a0d20f87937019f8e9caa12a42bd37f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02859/s282657113.py | e434f658756ad3e7e51c07a4f92cf7ee39d78ef2 | [] | 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 | 33 | py | N = int(input())
print(int(N**2)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
6daa5e177776fee9980d7e78a7104777855e9d2e | e3c72896c9379425cc06e8ff1c1b35a0b755169b | /Analysis/plot.py | 8c05c90d3cfeaaf9b72b3590b54e96f95cb686c9 | [] | no_license | geracobo/PyPiano | ced350558c40d202be3a85c0a111cebb6c109b20 | e5e840738eef11751fd3e536ce5a4d37945ecedf | refs/heads/master | 2020-05-06T12:19:09.257066 | 2014-01-05T18:55:01 | 2014-01-05T18:55:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 652 | py | #!/usr/bin/env python
# coding=utf-8
from matplotlib import pyplot
import numpy as np
import csv
samplerate = 44100
period = 1/float(samplerate)
f = open('sample-data.csv')
y = np.empty((1))
time = np.empty((1))
at = float(0)
for row in f:
data = row
y=np.append(y,float(data))
time=np.append(time, at)
at = at+... | [
"gera.cobo@gmail.com"
] | gera.cobo@gmail.com |
9144392619c0c79d7fa7143d83361431229e5a74 | f8f0263b9febfa4eeccabe920290abd8afbd54c7 | /app/functions/customer_happiness.py | 2cd7cc2d7c260cf173c5bfbc17f652a4052874f8 | [] | no_license | kiamatt/helios-zoho-api | 8a2949e802f2a5cda4f62f6d31b5fc41112a2709 | 7c24882d7a2fd123440ae347f5aa23310fecbb4d | refs/heads/master | 2022-12-05T22:55:22.151738 | 2020-08-21T11:26:32 | 2020-08-21T11:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 702 | py | from .utils import zoho_auth
import os
import boto3
import json
from datetime import datetime
BUCKET = os.environ['BUCKET']
def main(event, context):
s3 = boto3.client('s3')
department_id = 'allDepartment'
params = f'?department={department_id}'
base_path = 'customerHappiness'
path = f'{base_path}... | [
"matthewmartinez1003@gmail.com"
] | matthewmartinez1003@gmail.com |
8a9ae51e7fb7f3ad1ad2245e5036b15a9fa4ec17 | 293b290895e97465460905b492901c434b3c6dcf | /crime_stats.py | d1648992693ae8c12e654e5e9be67a92e4e98177 | [] | no_license | srujanbelde/EnvisionChicago-DataAnalytics | 0b5acb68d02c4df6bd36946b7a1da1c0e5d8433b | 461077d1308a210d79af05015b55b244879ccd41 | refs/heads/master | 2020-03-11T11:19:31.268867 | 2018-04-17T21:23:16 | 2018-04-17T21:23:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import pandas as pd
import re
from difflib import SequenceMatcher
import datetime
crimes_file_path = "Crimes_Census_Final_output.csv"
census_ages = "age_groups.csv"
def integrate_ages_crimes():
crimes_census = pd.read_csv(crimes_file_path, nrows=50000000)
crimes_census.columns = [c.replace(' ', '_') for c in... | [
"teja.bhargav@gmail.com"
] | teja.bhargav@gmail.com |
aaed72c4c34418066429eb2c96fbe9b95606cdb3 | de358ba57518d65393c810da20c53e1c41494bff | /LRUcache.py | 49f000a37b16c4cd24efb3415b3888324acb43b6 | [] | no_license | avirupdandapat/ALGOPROJECT | 43eef94b13e38452cdc6a506b17b6fee581a07e1 | 55b60a0c6e51cae900e243505f6a4557ad4d7069 | refs/heads/master | 2022-12-29T13:02:54.655976 | 2020-10-18T12:23:57 | 2020-10-18T12:23:57 | 305,095,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | from collections import deque
class LRUCache:
# @param capacity, an integer
def __init__(self, capacity):
self.capacity = capacity
self.dic = {}
self.q = deque()
# @return an integer
def get(self, key):
if key in self.dic:
self.q.remove(key)
se... | [
"avirup.dandapat@mindtree.com"
] | avirup.dandapat@mindtree.com |
92abc9246fc22cd7a32206f48ca38cf04e952ccb | a19431dd88abad381368c547648038089e817b4c | /venv/Scripts/django-admin.py | 39555b4993d519d25f778d659814b24dd7381d00 | [] | no_license | allimpossible/my-first-blog | 6d3a41d7d2350f21b28699eca8cecf36a1f96cfc | 63b684cd7723766c1fa607c3d9561fa2cbe873d0 | refs/heads/master | 2020-04-13T17:35:53.678133 | 2018-12-28T01:31:57 | 2018-12-28T01:31:57 | 163,351,773 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 172 | py | #!C:\Users\shadow\PycharmProjects\WebTest\venv\Scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"zhuangbidafa@gmail.com"
] | zhuangbidafa@gmail.com |
6453b2b087efd59f3078f1b53708a18af9747775 | 055cc43b5eda7bbf4a077fbec7307f40c37cddfa | /Part 3 - Classification/Section 17 - Kernel SVM/kernel_svm.py | 85b8e690d2084c37fb24edb6f5895fd9f81c5b95 | [] | no_license | sinamahbobi/Machine-Learning-A-Z-Assignments | 2548244cef99a78c25ed7ba6a9ab3fb915395761 | e9ba69580e436cdaba819d20b2d53a5a83c325e8 | refs/heads/master | 2021-01-16T12:30:13.775359 | 2020-02-25T23:29:10 | 2020-02-25T23:29:10 | 243,122,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,678 | py | # Classification template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test se... | [
"noreply@github.com"
] | sinamahbobi.noreply@github.com |
7a6c2a7dc5a319d417e4d9d4710514d22f3313ff | 48548fa087bb3b8f69fdf2b5d4af5d3703ea755c | /Django_new/apprenti/python/developcom/listes.py | 7047e8f7258b1d2c32c8eb42b3f16a13dbe914ca | [] | no_license | BKIBONZI/DJANGO | 168a69190e0b26796d33b50abc7f4e6b45a64693 | c34d6dcd243e31226bb99da6bf260601f98966fc | refs/heads/master | 2020-09-06T14:25:22.837546 | 2019-11-08T11:15:41 | 2019-11-08T11:15:41 | 220,450,227 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | numbers = [1,2,3,4,5]
if __name__ == '__main__' :
# afficher la liste à l'écran
print(numbers)
# afficher à l'écran le type dela lits
print(type(numbers))
# afficher l'element de la liste en position 0
print(numbers[3])
| [
"bkibonzi@e1r1p14.42.fr"
] | bkibonzi@e1r1p14.42.fr |
a8753bfe34916e7be2706d5e78dbd5c973275542 | d9652ac6f107747da9f57b47d054dc6862d98119 | /XiAnalyzer/XiMassPt/python/ximasspt_cfi.py | 81f8be50247f77e04001bb73f1df10db21520fc7 | [] | no_license | BenjaminTran/XI_CMSSW5_3_20 | 306f9ae51c5505a6ae2a4488142d78da4d13fcec | cfdc4fb6810a7ad9fc2a1fdac8e52c2f3199ae30 | refs/heads/master | 2021-01-21T10:59:54.595125 | 2017-05-18T16:34:39 | 2017-05-18T16:34:39 | 91,715,758 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 858 | py | import FWCore.ParameterSet.Config as cms
import HLTrigger.HLTfilters.hltHighLevel_cfi
hltHM = HLTrigger.HLTfilters.hltHighLevel_cfi.hltHighLevel.clone()
hltHM.HLTPaths = [
'HLT_PAPixelTracks_Multiplicity100_v*',
'HLT_PAPixelTracks_Multiplicity130_v*',
'HLT_PAPixelTracks_... | [
"blt1@192.168.1.10"
] | blt1@192.168.1.10 |
008c0cfc5535c8ef65db4e64a7fb8f83c307aed7 | 971b74f845ea064e3880580c5fb8e4a5eb35035a | /nlex/lib/abc/structure.py | f058bbcc6e68f1815b1897b184b26f237ebb67e6 | [] | no_license | a710128/nlex | 44cad95ef198ed19275246cefaa0e21cda8a63ec | b9a96d862669b977df43979c234c8edfcb7f2a15 | refs/heads/main | 2022-12-27T00:14:22.961008 | 2020-10-12T08:13:44 | 2020-10-12T08:13:44 | 300,345,359 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 367 | py | from typing import Union, Tuple
class Structure(object):
def __init__(self):
pass
def set_slot(self, slot : 'Slot') -> None:
pass
def is_slot(self, slot : 'Slot') -> bool:
return False
def get_value(self) -> Tuple[int, int]:
return (0, 0)
def last(self) -> Uni... | [
"qbjooo@qq.com"
] | qbjooo@qq.com |
d2d20572d982ee26e2f12321d0b30cbe73a1f96d | 1dd687bdb3bb964383c3f4dde7e9eae8a09be5f5 | /pyleecan/Functions/Optimization/evaluate.py | 0a1af3f9cf3e0b559605e9893c1c9f85951875f6 | [
"Apache-2.0"
] | permissive | Kelos-Zhu/pyleecan | 4daa2c8738cfe8a721ac2bdf883c59a1b52d8570 | 368f8379688e31a6c26d2c1cd426f21dfbceff2a | refs/heads/master | 2022-11-18T14:30:29.787005 | 2020-07-09T16:55:02 | 2020-07-09T16:55:02 | 278,112,321 | 0 | 0 | Apache-2.0 | 2020-07-08T14:31:39 | 2020-07-08T14:31:38 | null | UTF-8 | Python | false | false | 2,398 | py | # -*- coding: utf-8 -*-
from logging import WARNING
import traceback
import sys
if sys.version_info > (3, 0):
from io import StringIO
else:
from StringIO import StringIO
from os import stat, remove
from datetime import datetime
def evaluate(solver, indiv):
"""Evaluate the individual according to the sol... | [
"cedric.marinel@eomys.com"
] | cedric.marinel@eomys.com |
da45f7852916d35f50bd49f037a7b3edd42a3e21 | 68d38b305b81e0216fa9f6769fe47e34784c77f2 | /alascrapy/spiders/amazon_uk_reviews.py | 15695e7d86cb23644a4dfb659ed43372c84943c0 | [] | no_license | ADJet1437/ScrapyProject | 2a6ed472c7c331e31eaecff26f9b38b283ffe9c2 | db52844411f6dac1e8bd113cc32a814bd2ea3632 | refs/heads/master | 2022-11-10T05:02:54.871344 | 2020-02-06T08:01:17 | 2020-02-06T08:01:17 | 237,448,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | __author__ = 'leonardo'
from alascrapy.spiders.base_spiders.amazon import AmazonReviewsSpider
class AmazonUkReviewsSpider(AmazonReviewsSpider):
name = 'amazon_uk_reviews'
start_url_format = "https://www.amazon.co.uk/product-reviews/%s/ref=cm_cr_dp_see_all_btm?ie=UTF8&showViewpoints=1&sortBy=recent"
date_f... | [
"liangzijie1437@gmail.com"
] | liangzijie1437@gmail.com |
4d1dc1f084686e22f9f832a79dae3c1d0d56dc01 | 43fe6a9d6875f7524204177a3a68229059133789 | /social/account/multiforms.py | 844065a4370c0da415a5df2b271ab382d43f2db9 | [
"MIT"
] | permissive | MiKueen/Social-Network | a011836805ad45228b0031ed1883526b0af02920 | 0b872860f08c3ec6f48a53160128af28787737c7 | refs/heads/master | 2023-04-17T15:33:13.212550 | 2019-07-13T04:40:54 | 2019-07-13T04:40:54 | 196,678,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,182 | py | from django.views.generic.base import ContextMixin, TemplateResponseMixin
from django.views.generic.edit import ProcessFormView
from django.http import HttpResponseForbidden
class MultiFormMixin(ContextMixin):
form_classes = {}
prefixes = {}
success_urls = {}
initial = {}
prefix = None
s... | [
"keshvi2298@gmail.com"
] | keshvi2298@gmail.com |
fa51b64316f34902e418a7a004e81edb92be9c88 | 67f7c53d80faac734a96ef95bfe8f8a3927c1c33 | /Cherry Pie.py | 4dbfffdb4f6927d98cd50c187cff3efd43d23b9c | [] | no_license | Lpadilla2018/Transfer-Photos | ad21f9a00ed64542c49260687afeffcab1a6a77a | f8d23b014a882a6e81734aa6e755c7914d4f14b4 | refs/heads/master | 2020-04-10T01:50:56.397430 | 2018-12-06T20:22:00 | 2018-12-06T20:22:00 | 160,727,333 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | # Cherry Pie.py
# 11/30/2018
# Developed by Louie Padilla
"""
Loop through main folder directory. For each file in a folder rename file to folderName_snapshot_#.jpg
"""
# Import modules
import os
from shutil import move
###############################################################################... | [
"noreply@github.com"
] | Lpadilla2018.noreply@github.com |
f75aad247ab631750bcc8185827295fbc9a08fb3 | 527bdfc1d0e49009d69dd611e74273b8846c4f0e | /rithviks_solutions/2017/Prob9/main.py | 372b4a0964eba150e4c8fe5de46a4fbeabdcfd66 | [] | no_license | RithvikKasarla/2019-Infinite-Loop-Practice | 3e0ddfae5c017de62ff2fd7b8522e062167c2f4a | c54808e89cbd2a18225100dde6914b3305400d91 | refs/heads/master | 2020-04-25T01:17:20.313357 | 2020-03-23T01:39:26 | 2020-03-23T01:39:26 | 172,404,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | def encoder(key, line):
key = list(key)
l = len(key)
li = list(line)
line = ""
keyplace = 0
for ch in range(len(li)):
if li[ch] == " ":
line += " "
else:
c= ord( key[keyplace%l].lower() ) - 96
if (ord(li[ch].lower()) + c-1) > 122:
... | [
"arnavborborah11@gmail.com"
] | arnavborborah11@gmail.com |
e1e3882e61c86c5880e027985494b00f1b8b756e | dc6ebd10d352915600a3297606f5c4b9dc558704 | /Eshop/urls.py | 53b3b00e059bb407fe8aed956c74a49b3e4338f3 | [] | no_license | NishaNegi1/Eshop | c0bdd82cb9ee556727c1a247776fa473eb84e4b2 | 12dcef76c0697b3344e0ed53a28b43df4ffb892c | refs/heads/main | 2023-03-27T07:22:44.473628 | 2021-03-31T07:19:35 | 2021-03-31T07:19:35 | 353,261,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,728 | py | """Eshop 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-based v... | [
"nishabun99@gmail.com"
] | nishabun99@gmail.com |
9e30e808b8df340558eca315c2ab6554d53b3622 | 9be6b593f7740dbcbcbf56765b4ba55bc65d3e55 | /notebooks/import_scripts/import_interrogator_fits.py | 755927330cc042e0b202e4c38343a74e87e984fb | [
"MIT"
] | permissive | camipacifici/art_sedfitting | a78b06a36ed277139c581049b7720d9bfa7e3fc1 | 32d23a2bef5a1e0499e8ce225019478d94b28521 | refs/heads/main | 2023-04-13T21:36:07.409163 | 2022-12-04T03:31:41 | 2022-12-04T03:31:41 | 440,978,868 | 11 | 2 | null | null | null | null | UTF-8 | Python | false | false | 8,515 | py |
import numpy as np
from import_catalogs import get_cat
cat_small_ids, cat_z1_ids, cat_z3_ids = get_cat()
vb = False
# ID
#BPASS_log10M*_16 BPASS_log10M*_50 BPASS_log10M*_84
#BPASS_SFR10_16 BPASS_SFR10_50 BPASS_SFR10_84
#BPASS_SFR100_16 BPASS_SFR100_50 BPASS_SFR100_84
#BPASS_A_V_16 BPASS_A_V_50 BPASS_A_V_84
#PEGASE_l... | [
"cpacifici@stsci.edu"
] | cpacifici@stsci.edu |
56be1372165e22f35b3d54e6e743bf28d328e0c1 | bb80ce104e916d54d2af020b8a38f6a92bfe9931 | /home/migrations/0001_initial.py | f0030a0816dc9d6da4765f6d47264233312e389c | [] | no_license | louis-Fs/Django | e16f0f058df92e02f73ae36ca61061faed3b86bc | 424cdc3d18d5f9f5c7cf2b38c615bbc9ca9ced15 | refs/heads/main | 2023-02-20T09:17:12.578596 | 2021-01-21T04:19:29 | 2021-01-21T04:19:29 | 331,511,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 912 | py | # Generated by Django 2.2.7 on 2019-12-01 05:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='stuinfo',
fields=[
('id', models.AutoField(... | [
"344735074@qq.com"
] | 344735074@qq.com |
87e38073f5de8a642caa8473876b6c85d6fbf76d | 2306161b6c6504bc3c7b9c1c167f2cf9f655a5f6 | /test/functional/p2p_pos_fakestake.py | 960e824e4620406c572aaec798103b1ecd895242 | [
"MIT"
] | permissive | Zoras2/OPCoinX | 294081748b308b84a4890da286484c003cfebf60 | d93b9f6a7f09d48ea661814a94211a9c9fc98309 | refs/heads/master | 2021-07-21T23:20:33.699815 | 2020-09-14T00:41:24 | 2020-09-14T00:41:24 | 167,402,324 | 1 | 0 | MIT | 2019-01-24T16:48:12 | 2019-01-24T16:48:12 | null | UTF-8 | Python | false | false | 2,282 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The OPCX developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
'''
Covers the scenario of a PoS block where the coinstake input prevout is already spent.
'''
from time import sleep... | [
"knashanas@gmail.com"
] | knashanas@gmail.com |
75218de7038fa55db27ff99920b6fc6874ece6a1 | d28d8388e4afb5fb2e98ff65feb89c9611a2bc9a | /python/python_env/bin/flask | 8dcdcc335787e74fc1fed0adcd6b7266d3bd994a | [] | no_license | baldpixels/DataLith | f5c4b384d856126167b7b20ef4ebb89e7ed6cc4a | d50052b1165d2162d0b12626d0972e50e9dc6030 | refs/heads/master | 2020-03-12T17:40:33.992806 | 2018-04-25T18:17:13 | 2018-04-25T18:17:13 | 130,742,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | #!/Users/Mammoth/github/scraper/spring2018-cp-group-436839-437632/python/python_env/bin/python3.6
# -*- coding: utf-8 -*-
import re
import sys
from flask.cli import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"baldpixels@gmail.com"
] | baldpixels@gmail.com | |
838f055b240dabb83ff3fb5ea75fbdd224a7ed9f | 510c17f54e8898d9dfff590caa3cbd05417c356f | /signer-independent-pytorch/bck-24-01-19/main_vae_celebA.py | 0716b58f5ad300cee1591e3f46d535cc6fd46c69 | [] | no_license | pmmf/DeSIRe | c65172ce4a0b9d4aaf6317a04c1f33f69d849501 | c4a68246c9e436481a61879328ff28b70dbb3b11 | refs/heads/master | 2022-04-08T18:57:37.099211 | 2020-03-05T11:03:55 | 2020-03-05T11:03:55 | 168,131,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,640 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import torchvision
from torch.utils.data import Dataset
import h5py
import numpy as np
from glob import glob
import os
from skimage import io
from PIL import Image
import matplotlib.pyplot as plt
from skimage import io
from torchsummary import summary
... | [
"noreply@github.com"
] | pmmf.noreply@github.com |
fd975001732ca43e6a45cbcefd0a09a0cf1fd7fa | a37963de31a67c214680d80d9ee3ce4611d28587 | /mrl/modules/model.py | 8f93b82dcc75932df0c875e7910016d0b4a2814d | [
"MIT"
] | permissive | jingweiz/mrl | c4c614877760953b246125688e7df96f9081fc4e | c94ab1685aea85b0d328199adefca543227875af | refs/heads/master | 2022-11-12T01:36:05.354935 | 2020-07-10T23:32:38 | 2020-07-10T23:32:38 | 279,804,300 | 0 | 1 | MIT | 2020-07-15T07:56:50 | 2020-07-15T07:56:49 | null | UTF-8 | Python | false | false | 1,448 | py | import mrl
import torch
from typing import Callable
import os
import pickle
import dill
class PytorchModel(mrl.Module):
"""
Generic wrapper for a pytorch nn.Module (e.g., the actorcritic network).
These live outside of the learning algorithm modules so that they can easily be
shared by different modules (e.g.... | [
"silviu.pitis@gmail.com"
] | silviu.pitis@gmail.com |
b64db5675c6a12447a0a4f82922098e73c823b62 | 28b513332b7162dbd79f82a28132582401ff28f9 | /9.Manus & SubMenus.py | d86b751ed588b5f51494bfafdf684409b5874ba2 | [] | no_license | ProtikAcharjay/GUI_Tkinter | e19a9931907ab9bfaeff6f93a4dae5276848cb3b | 6a54062db27ae85a4f2518cb4d1b4d0f9615f3e5 | refs/heads/main | 2023-05-12T21:30:02.511847 | 2021-06-01T16:00:05 | 2021-06-01T16:00:05 | 372,886,592 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,386 | py | from tkinter import *
root=Tk()
root.geometry("800x500")
root.title("Manus In Tkinter")
#function
def function1():
print("New file created")
def function2():
print("Opening a file")
def function3():
print("File saved")
def function4():
print("File Coppied")
def function5():
print("File... | [
"noreply@github.com"
] | ProtikAcharjay.noreply@github.com |
0c3976214f8e28555d2e3ff9dd37ab37dd2c712b | 251e4de91841fc42959e89211d3501ce24c4435e | /eventdriven/adapter/base.py | 253f683289151bfeaaceae339ac6fba3956f10e6 | [
"Apache-2.0"
] | permissive | ZSAIm/EventDriven | df1251c4e9f3f382600159d6626a6c959670c438 | 92bed2b3cde9249724f9cc25f3d19470abda5b9b | refs/heads/master | 2020-12-07T17:04:32.511933 | 2020-02-20T07:51:18 | 2020-02-20T07:51:18 | 232,758,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | # -*- coding: UTF-8 -*-
from abc import ABC
class AbstractAdapter(ABC):
def __setup__(self, parent, name, **options):
""" 安装适配器过程中调用该方法进行初始化。 """
self._parent = parent
self._instance_name = name
self._options = options
def __name__(self):
""" 返回适配器实例名称。 """
re... | [
"zzsaim@163.com"
] | zzsaim@163.com |
1d6f34aff2427b5cf195571a5cbfda9bbdd1d18c | 46e657af193e8e1c1045b100787c4ed3126ca98b | /src/old/jnntools.py | 3a00ca97f0ffb06e1fa54fd4c6db9cae9c6eb4da | [] | no_license | sinancemy/jamnet | 77487bf73f1cfce6edc0d7294bfcd35fd01e3762 | 045289b39dd4f647131885159ba99ad0e96d978b | refs/heads/master | 2023-03-21T03:06:41.789908 | 2021-02-23T18:06:36 | 2021-02-23T18:06:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,227 | py | import torch
import mido.midifiles.tracks as mitracks
from mido import MidiFile, MidiTrack, Message, MetaMessage
import copy
import numpy as np
# OLD VERSION OF midi2roll.py. Converts to and from a "note array" format instead of tensors.
# Not deleting in case I find a use for this.
''' MIDI <-> JNN converter f... | [
"sinancem_yucel@hotmail.com"
] | sinancem_yucel@hotmail.com |
714e19179bf6cdebe2c8704dd95faf550aad8b20 | 0282ec8733105cbb22af9c1c38aec5d240abeb32 | /experiments/gluon_rnns/setup.py | 2fc1a1ee3ca5e5c6b70a4ca86244e405f4bdefbd | [
"Apache-2.0"
] | permissive | uwsampl/relay-bench | d247f6f3cbc344d1d176c255a2fe7662e2d5ed8d | 527166e4ca13a2c7a513f9c66584b7ac9201436e | refs/heads/master | 2022-06-19T08:54:20.276771 | 2021-10-25T23:24:17 | 2021-10-25T23:24:17 | 137,016,402 | 8 | 4 | Apache-2.0 | 2022-05-24T17:06:13 | 2018-06-12T04:20:45 | Python | UTF-8 | Python | false | false | 498 | py | from common import invoke_main, render_exception, write_status
from mxnet_util import export_mxnet_model
def main(config_dir, setup_dir):
try:
export_mxnet_model('rnn', setup_dir)
export_mxnet_model('gru', setup_dir)
export_mxnet_model('lstm', setup_dir)
write_status(setup_dir, True... | [
"sslyu@cs.washington.edu"
] | sslyu@cs.washington.edu |
1c594c122b75ef4ea73e6f9f6b91493174b4fe64 | b6a79ae5312dd1a69b043aeb5466bc3b6bffa6aa | /fp/test_closure_change.py | f8df7a48ec3f5e121603ac85a298e69ab248386d | [] | no_license | vchub/daily-python | 5f54aedf77aba34ddc48ca06f9133990c2e82b0a | 7d7740f4db4f8500c84eff353420c61242321f2e | refs/heads/master | 2022-12-12T08:35:27.416071 | 2020-08-25T18:26:06 | 2020-08-25T18:26:06 | 290,292,008 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 208 | py | def f():
x = 1
i = 0
while i < x:
yield i
i += 1
def test():
f.x = 5
ff = f
ff.x = 5
g = ff()
# g.x = 2
res = list(x for x in g)
assert len(res) == 1
| [
"vlad.chub@gmail.com"
] | vlad.chub@gmail.com |
e947e0a17fdf220132f2f1568544ca47d5787acc | 05fe775032bb3a08c1752421dbb52a8c52a96c85 | /반복문/range.py | c83060123dc106808df5458dcb5857d907fe4c92 | [] | no_license | nexiom1221/Phyton-Practice | 58843d507d87a9ac99b20dbf8ca215e5ba25fb64 | aeff0942a26b990c7891ac11b58f45e40f024b11 | refs/heads/master | 2022-12-07T08:59:26.916976 | 2020-09-07T13:14:55 | 2020-09-07T13:14:55 | 270,298,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 535 | py | n = 10
a = range(0, int(n/2))
print(list(a))
for i in range(5):
print(str(i+1) + "= 반복 변수")
array = [273, 32, 103, 57, 52]
for i in range(len(array)):
print("{} 번쨰 반복 {}".format(i+1, array[i]))
for i in range(4, 0-1 , -1):
print(i)
print()
for i in reversed(range(5)):
print(i)
i =0
while i< 10:
... | [
"superdizmon1@gmail.com"
] | superdizmon1@gmail.com |
7075b62d95d63c0abfdebcac5772e9ce9fff30f4 | 02b460257be33634a5e204c12a22d396c49ec1e8 | /ch1/ex1_6.py | e506176ded89c2a72f238158685c3fe6189a0731 | [] | no_license | wxhheian/ptcb | c5250362d5ab0903498e52c5a5d9cbdccc37853f | ae95fb18853f94246b4b1e84371e3f140677c8e8 | refs/heads/master | 2020-07-02T08:28:16.867948 | 2019-08-09T18:49:50 | 2019-08-09T18:49:50 | 201,473,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | ##实现一个键对应多个值的字典
#####实现方法一:将多个值放到不同的容器中
# d = {
# 'a':[1,2,3],
# 'b':[4,5]
# }
# e = {
# 'a':{1,2,3},
# 'b':{4,5}
# }
from collections import defaultdict
d = defaultdict(list)
d['a'].append(1)
d['b'].append(2)
d['b'].append(4)
e = defaultdict(set)
e['a'].add(1)
e['a'].add(2)
e['b'].add(4)
############... | [
"365194143@qq.com"
] | 365194143@qq.com |
e96e099b25cfb3fc367f85f23be963095437e653 | a9fc496e0724866093dbb9cba70a8fdce12b67a9 | /scripts/quest/q5523e.py | 65c50af387328753c10ae50e98802bd1ea180dff | [
"MIT"
] | permissive | ryantpayton/Swordie | b2cd6b605f7f08f725f5e35d23ba3c22ef2ae7c0 | ca6f42dd43f63b1d2e6bb5cdc8fc051c277f326e | refs/heads/master | 2022-12-01T09:46:47.138072 | 2020-03-24T10:32:20 | 2020-03-24T10:32:20 | 253,997,319 | 2 | 0 | MIT | 2022-11-24T08:17:54 | 2020-04-08T05:50:22 | Java | UTF-8 | Python | false | false | 105 | py | # Tot's reward lv 60
sm.completeQuest(5523)
# Lv. 60 Equipment box
sm.giveItem(2433958, 1)
sm.dispose()
| [
"tim.blokk@gmail.com"
] | tim.blokk@gmail.com |
75ced30ac4e6c4e6bead4ec4daa4862cb8bf164e | 414493d42cb86fad7e00d1b3ea1eb7a4bc018557 | /logger/ztest/FileWriterTest.py | 1e458f014efe7da8313f3fc3e533c2a8322c184c | [] | no_license | aman0302/trade-log | 3f24230b000da8ac1efe2a76fc51ed9a43896017 | ad90d75dce69ea740f21c612df975a9fca141e2f | refs/heads/master | 2021-01-19T21:33:54.094140 | 2018-09-23T23:23:34 | 2018-09-23T23:23:34 | 88,665,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | from logger.action.FileWriter import FileWriter
from logger.models.SmallcaseModel import smallcase_model
def test_file_insert():
sm = smallcase_model(name='TEST_SM', index='107.45', investment='10000.00', value='1007989.00', pnl='-10.6%',
actual_pnl='-1982.78', bought_on='20 APril', times... | [
"aman.gupta@flipkart.com"
] | aman.gupta@flipkart.com |
ec909014a75777f9c98e33e6bfc8a8965ec22fec | 4448001f31d1f7a56915c620d7a8a12a137b29a2 | /PySpedNFSe/pysped_nfse/rj/xmldsig-core-schema_v01.py | 631217de4b952bfb536cc2c467ca6018907958bf | [] | no_license | DITIntl/lets-keep-open | c7d639a0de9f1fc4778864e74a304ef6facf7506 | 61a6b5b9500b4d4da1799099995176b594a27fb7 | refs/heads/master | 2021-09-07T20:32:46.587547 | 2018-02-28T16:37:56 | 2018-02-28T16:37:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168,964 | py | # -*- coding: utf-8 -*-
# © 2016 Danimar Ribeiro, Trustcode
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import sys
import getopt
import re as re_
import base64
import datetime as datetime_
etree_ = None
Verbose_import_ = False
(
XMLParser_import_none, XMLParser_import_lxml,
XMLParser_... | [
"danimaribeiro@gmail.com"
] | danimaribeiro@gmail.com |
e6fb7f33e217a344b1fb817bb005bc2c3ba1cee9 | 58618ee13a29bb51a27a2e60c2585f9cb1d8c274 | /app.py | 5e3cb9b9b823985834a4190189886e20fe22c7ab | [] | no_license | abhisharma5/Python_chatbot | 54f4e526a7d8b24804831901d2469731f3d52c6d | 19e3805ecbeb26592b4fbb795d62ae4de215a9b2 | refs/heads/master | 2022-10-08T18:54:50.884320 | 2020-06-08T04:53:50 | 2020-06-08T04:53:50 | 270,530,484 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 700 | py | from flask import Flask, render_template, request
from chatterbot import ChatBot
from chatterbot.trainers import ChatterBotCorpusTrainer
app = Flask(__name__)
#create chatbot
englishBot = ChatBot("Chatterbot", storage_adapter="chatterbot.storage.SQLStorageAdapter")
trainer = ChatterBotCorpusTrainer(englishBot)
t... | [
"noreply@github.com"
] | abhisharma5.noreply@github.com |
93161c94b7e980743a53d94aa3a20ea99bd7324b | 261e6eff44097d9dbe217f061cb4c8ab13f02e37 | /vce_health_care/wsgi.py | 1fc8e9c2f1d592cc6d8b36a8730f887877d3e246 | [
"MIT"
] | permissive | 1919kiran/healthcare-portal | e83b84b8d47886c8210cf0529674eef9a7202fcc | 547d734762b6698adf8f5a7a45418e8553ca9397 | refs/heads/master | 2022-12-11T08:26:36.743965 | 2019-04-28T19:15:00 | 2019-04-28T19:15:00 | 180,219,725 | 0 | 0 | MIT | 2022-12-08T04:57:43 | 2019-04-08T19:34:36 | Python | UTF-8 | Python | false | false | 407 | py | """
WSGI config for vce_health_care 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.setdefault('DJAN... | [
"iam191911918114@gmail.com"
] | iam191911918114@gmail.com |
630f9556a0812fab978009d4e1ed1064a8794300 | 9824860061cc00b51c7065229bf5ae30f6ea2589 | /qlpdb/qlpdb/tdse/migrations/0002_remove_tdse_test.py | d0b865fb01f487f41f1d90eeee8058a63e5bc0fd | [] | no_license | ScorpXOY/quantum_linear_programming | 0a8c5d2b4e845a559c6fc3fffd83e8e0a2340aed | 66690b10c3c379a91a73db3e0b8b02a2b8c0de11 | refs/heads/master | 2023-03-24T05:58:53.306000 | 2021-02-04T15:22:27 | 2021-02-04T15:22:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 310 | py | # Generated by Django 3.0.3 on 2020-04-22 08:05
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tdse', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='tdse',
name='test',
),
]
| [
"pyo0220@gmail.com"
] | pyo0220@gmail.com |
a70448d44e33562edc9126a4b7054b947ed0c41d | 6f1eabcb1b6cb1aaad4e882f2195b4e6d8bdad92 | /backend/habdb/migrations/0006_auto_20190619_1508.py | ff2807be8ca59a5728fdae3919e7084689db57c5 | [] | no_license | pulidongz/hab-hub | 705f47078ad9c5f92d02fbe1cd15cd594f03f06b | 0a75a7cbec6b1afcc16b6549d2c98a9f924d7ebe | refs/heads/master | 2023-01-23T00:04:39.859890 | 2020-02-05T09:14:02 | 2020-02-05T09:14:02 | 236,428,933 | 1 | 0 | null | 2023-01-06T06:26:52 | 2020-01-27T06:00:35 | CSS | UTF-8 | Python | false | false | 446 | py | # Generated by Django 2.2.2 on 2019-06-19 07:08
import django.contrib.gis.db.models.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('habdb', '0005_station_location'),
]
operations = [
migrations.AlterField(
model_name='station... | [
"paogravoso@gmail.com"
] | paogravoso@gmail.com |
73788b1d6880269678f000717a68971f4e3f0f80 | 0084e99ca9fcc792ddca9d489f7d55f023199b36 | /backend_receitas/ll_env/Scripts/django-admin.py | aee7e9a3ea3acd2dcef6d3a9c75342ae0eed5e56 | [
"Apache-2.0"
] | permissive | gugact/backend_web | 5fd84dd5edefd76541c27f213b0887589286e75f | 32b72ec460c1b6bae63bfd391c87b0c4bf644821 | refs/heads/master | 2021-08-23T01:16:20.789714 | 2017-12-02T03:09:21 | 2017-12-02T03:09:21 | 112,808,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | #!c:\users\gustavo\desktop\backend_receitas\ll_env\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"gustavo.tremiliosi.usp@gmail.com"
] | gustavo.tremiliosi.usp@gmail.com |
df8b92276a90d6247ec6faad10bd8438265fa168 | 968ea030e3439a2ec46fd8424363c9f49f88d3f3 | /accounts/migrations/0001_initial.py | aef742fbeca32d580f166ea286df0f40ff7fb018 | [] | no_license | busoff/projectime | 63f7d68dc49a7aba5b5ea4f091f3ec1665f21810 | db9f10d6fcf65bd50383df00210bc224238ee952 | refs/heads/master | 2021-06-11T04:24:00.388820 | 2020-02-29T04:50:09 | 2020-02-29T04:50:09 | 152,294,463 | 0 | 0 | null | 2021-06-10T21:02:41 | 2018-10-09T17:40:16 | JavaScript | UTF-8 | Python | false | false | 754 | py | # Generated by Django 2.1.2 on 2018-12-08 15:22
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"busoff@qq.com"
] | busoff@qq.com |
c3dbd510be0238b80ddc6e66505d342b901e56c1 | 4a3b42ef1d5708979e64b1cebccd4a9335c1b62b | /find_fruit.py | 954d167c9b47a75c15d5b7c3f5fa48fb8d5c075d | [] | no_license | grnbeltwarrior/Find-Fruit | 34cd2297253052ee905f7e16e3f5894855174aed | ccc3e2ccac9df11219e5cd19c73d78857654abbf | refs/heads/master | 2020-03-21T15:53:55.321515 | 2018-06-26T17:22:20 | 2018-06-26T17:22:20 | 138,739,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,897 | py | #!/usr/bin/python
# reworked into python from rvrsh3ll's Find-Fruit.ps1
# https://github.com/rvrsh3ll/Misc-Powershell-Scripts/blob/master/Find-Fruit.ps1
import sys
import socket
import getopt
import threading
import subprocess
import requests
import requests.packages.urllib3
requests.packages.urllib3.disable_warnings... | [
"gabrielthompson@gabrielthompson.com"
] | gabrielthompson@gabrielthompson.com |
06d81819ec245e77cec949f12a8b70ffb0617810 | 9431bba2d148f8aef9c0a8f3ca16fcf875890757 | /scraping/get_html_title.py | 9f5573db2266ed5c6d715cae3af9936cb85faae6 | [
"MIT"
] | permissive | terasakisatoshi/pythonCodes | fba0b78414b2c85f4a738200354ea583f0516768 | 953210c06e9885a7c885bc01047715a77de08a1a | refs/heads/master | 2023-05-14T12:30:22.201711 | 2023-05-07T13:41:22 | 2023-05-07T13:41:22 | 197,893,702 | 2 | 1 | MIT | 2022-11-25T10:59:52 | 2019-07-20T07:09:12 | Jupyter Notebook | UTF-8 | Python | false | false | 603 | py | from urllib.request import urlopen
from urllib.error import HTTPError
from bs4 import BeautifulSoup
def get_title(url):
try:
html = urlopen(url)
except HTTPError as e:
print(e)
return None
try:
bsoup = BeautifulSoup(html.read())
title = bsoup.body.h1
except Attr... | [
"terasakisatoshi.math@gmail.com"
] | terasakisatoshi.math@gmail.com |
220bc39fefb86914c598be64d3011ebb9cdcf34d | 4f67b9d8b7f4b5cb38a8abbe543ab858b6b8fb43 | /tests/components/test_counter.py | 8dc04f0e76ab7b910d7cc8309ff0c8884d579b85 | [
"Apache-2.0"
] | permissive | FedericoAsi/home-assistant | fc5b78b162d71a1eccb122bd3dd4e9e3f842b4c2 | 45609f13262111ddd6a7f865c8e3e290444110fd | refs/heads/dev | 2023-03-10T15:17:46.326157 | 2021-02-11T22:09:33 | 2021-02-11T22:09:33 | 106,481,706 | 1 | 0 | NOASSERTION | 2021-02-11T22:09:34 | 2017-10-10T23:23:18 | Python | UTF-8 | Python | false | false | 5,848 | py | """The tests for the counter component."""
# pylint: disable=protected-access
import asyncio
import unittest
import logging
from homeassistant.core import CoreState, State
from homeassistant.setup import setup_component, async_setup_component
from homeassistant.components.counter import (
DOMAIN, decrement, increm... | [
"pascal.vizeli@syshack.ch"
] | pascal.vizeli@syshack.ch |
5b722af7a1935ec56d65f9a898b93a8698f4d229 | e472f5209789cd50cc9129683c4918d63e3ddb41 | /ANALYSIS_SCRIPTS/heepElastics_Analysis/hms_heep_summary/hms_electrons/dW_variations.py | 27e94f9c7809a718568f3ed46dd58176cc8d6fc8 | [] | no_license | Yero1990/DEUTERON_ANALYSIS | a8447557de109302ca19e360c8e5d0f1280b0dd6 | c0f107ec907a47a0f83b2175222ac7c48d199af2 | refs/heads/master | 2023-08-06T12:18:37.639062 | 2021-09-14T18:01:11 | 2021-09-14T18:01:11 | 160,069,441 | 1 | 1 | null | 2019-11-14T15:20:44 | 2018-12-02T16:57:42 | C | UTF-8 | Python | false | false | 4,422 | py | #Code to determine the variations in E, E' theta_e from the variations
#measured in W_simc - W_data
import LT.box as B
import numpy as np
from numpy import ndarray
f = B.get_file('hms_heep_summary_FINAL.data')
#Define masses
Mp = 0.938272 #proton mass GeV
me = 0.00051099 #electron mass GeV
#converion factor from d... | [
"jones@jlab.org"
] | jones@jlab.org |
c13cea7b42eb939807a49f33b9a9432879a0693b | e8dfe0ebcb618ae9ed70072ab28399db572a6890 | /corp/admin.py | 136f7c2cc71b8a8330a34c7a984c163ca029e334 | [] | no_license | wowioboy/popgalaxy | 3ace319b6abdd9201c8003fbeb8525e969e14a6b | a08a76b013672f1481d337277098809548fbaeb2 | refs/heads/master | 2021-01-01T06:51:03.721738 | 2011-04-11T22:55:07 | 2011-04-11T22:55:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | from django.contrib import admin
from corp.models import *
class CorporateAdmin(admin.ModelAdmin):
list_display = ('section',)
search_fields = ['section', 'details_markdown']
list_filter = ('section',)
admin.site.register(Corporate, CorporateAdmin) | [
"lleach@wowio.com"
] | lleach@wowio.com |
142624fbd5f9548c22e3fac769ecbe3ca4657863 | a960259bafb95fca6aed244fd4698a6dd6669cf8 | /BooAPI/.ipynb_checkpoints/check_db-checkpoint.py | 97bb5c6aa62b3c71db59f9b2a00cb280e81fde13 | [] | no_license | BenAndrew310/Booboo-api | b6f523e48e5a1bc4a1e004252f050b047330972d | afcec8587b471de2d56d47d72bb85a0819fb6b3c | refs/heads/master | 2022-12-11T12:09:20.981651 | 2020-08-14T08:28:15 | 2020-08-14T08:28:15 | 287,349,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,050 | py | from API import db
from API.models import User, Device, UserKey
from API.DeviceManager import Device_Manager
from datetime import datetime
if __name__=="__main__":
# dev = Device_Manager()
# db.create_all()
# d=datetime.utcnow()
# dev.create_device(name="Lamp desk",value="true",value_type="boolean",date... | [
"andreben2442@gmail.com"
] | andreben2442@gmail.com |
c822f6ed07953bee56d648fff611aea04680c407 | 366b2ff9cd498808438bf7c48f697c05b361d02c | /models.py | 0606075241f9749a7ff176655dadf12a115be600 | [] | no_license | c-bata/AngularJS-Bottle-TodoApp | 1aef6b09fd85fabaa63898ab3fb9a2d586216b93 | 8f03820b7949b0c28477970c58f25ccd1856b2a9 | refs/heads/master | 2021-03-12T22:40:32.000758 | 2015-11-04T11:14:47 | 2015-11-04T11:14:47 | 38,732,944 | 2 | 0 | null | 2015-11-04T11:11:39 | 2015-07-08T05:02:47 | Python | UTF-8 | Python | false | false | 1,225 | py | from datetime import datetime
from sqlalchemy import (
Column, Integer, Unicode, UnicodeText, Boolean, DateTime,
create_engine
)
from sqlalchemy.ext import declarative
from bottle.ext import sqlalchemy
Base = declarative.declarative_base()
engine = create_engine('sqlite:///:memory:', echo=True)
plugin = sq... | [
"contact@c-bata.link"
] | contact@c-bata.link |
4d761b6be55161e94f2b66c2946332253be62fd8 | 027dbcdb37ba1c09d06bfc623eaa9134d41a664a | /models/spring.py | 0b8371ce23d1b7577b2598b9c562725ab0742fb4 | [] | no_license | sjkywalker/physical-modeling-with-python | ccada128c4a3aaf6c02b2d0789059dbd73b78307 | 8e00897263d17381e159373bf9762d9274a028e5 | refs/heads/master | 2020-06-02T14:08:26.469431 | 2019-06-16T06:37:45 | 2019-06-16T06:37:45 | 191,181,891 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import numpy as np
from scipy.integrate import odeint
import matplotlib.pyplot as plt
# args = mass, spring coeff., drag coeff.
def spring(state, t, m, k, b):
disp, vel = state
state_deriv = [vel, -(k/m) * disp - (b/m) * vel]
return state_deriv
# coefficients
m = 2.0
k = 100.0
b = 5.0 # critical damp near... | [
"sjkskywalker@korea.ac.kr"
] | sjkskywalker@korea.ac.kr |
fc3d08b64398f20a86a22df3a3d1580e139e6d72 | 00f449b83b0501cd8c7fd49c80ab42e527a6429a | /day1.py | ede0449c75dc97560c35d7e8c368e1db0b22af76 | [] | no_license | aidaploco/AdventOfCode2019 | 620a576366b6f7e61aae4957416094cfd6bd2080 | cc20fad41380cd3e50f7d7cbee33185313b638ba | refs/heads/master | 2022-10-24T23:28:47.302321 | 2020-03-06T10:22:36 | 2020-03-06T10:22:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | def compute_sum(array):
sum_ = 0
for _, mass in enumerate(array):
fuel = mass
while fuel > 8:
fuel = int(fuel / 3) - 2
sum_ += fuel
return sum_
array = [114106,
87170,
133060,
70662,
134140,
125874,
50081,
133117,
100409,
95098,
70251,
134043,
87501,
85034,
110678,
80615,
64647,
88555,
106387,
143755,
10... | [
"aidaploco.ap@gmail.com"
] | aidaploco.ap@gmail.com |
7e3d468ebf175be3859c7098b04ede6d18e42156 | 14edb8c2733f0e356fe77f7721b99a9a9c06d4ac | /Домашняя работа/Урок 2/Задание 2.2.py | 2f32d1890bf929adc765c51ec3b5032e85345c5c | [] | no_license | SavaGeekbrains/Python-1 | 40ef76bf16f0f46bbe597ebd023f69113bd627e9 | 850373bd9252e76bc54c6179da1eb10faf5ffec3 | refs/heads/master | 2022-04-25T08:55:19.850289 | 2020-04-30T11:00:19 | 2020-04-30T11:00:19 | 255,343,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py |
el_count = int(input("Введите количество элементов списка "))
my_list = []
i = 0
el = 0
while i < el_count:
my_list.append(input("Введите следующее значение списка "))
i += 1
for elem in range(int(len(my_list)/2)):
my_list[el], my_list[el + 1] = my_list [el + 1], my_list[el]
el += 2
print(my_l... | [
"Savchenko@live.ru"
] | Savchenko@live.ru |
21c065daa29195c7e52d627c2a60d46bb9f76c6f | fbcecdf2b3c6f995541c142e208ccb6c74e0fee9 | /tests/test_clusters.py | c70eb6aa7993a63ea3efd939f4c03637b95aa747 | [
"MIT"
] | permissive | ISO-B/zigate-1 | da715671db2714492cb1078bb5583cf6fddc0bde | 34032007d2d1971b744ba47abaec368ebeb59dab | refs/heads/master | 2020-04-08T20:02:47.409415 | 2018-12-31T04:30:21 | 2018-12-31T04:30:21 | 159,682,004 | 0 | 0 | MIT | 2018-11-29T14:50:30 | 2018-11-29T14:50:29 | null | UTF-8 | Python | false | false | 1,640 | py | '''
ZiGate clusters Tests
-------------------------
'''
import unittest
from zigate import clusters
class TestResponses(unittest.TestCase):
def test_cluster_0012(self):
# xiaomi cube status
endpoint = {'device': 24321}
data = {"attributes": [{"attribute": 85,
... | [
"sebastien.ramage@gmail.com"
] | sebastien.ramage@gmail.com |
6992cf72d105b6ef54bff25adcb8ea24a189c840 | 14c63f5847aafbcf69796ccdab1656f0e5897711 | /Trump_Clinton_Classifer/CNN.py | 12d5ec080091b030ad8d0c83c3edb27074dfdee5 | [
"MIT"
] | permissive | lilyzhi1/fake_news_during_election | f12a7a06568077856e71d6147027cd13b6629dff | 59609f498444a6b37727afa096f2adcaf0ed4ce8 | refs/heads/master | 2020-04-29T18:36:26.499995 | 2019-03-18T15:51:54 | 2019-03-18T15:51:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,276 | py | # 向量化(vectorize)
import sys
from my_weapon import *
from gensim.models import Word2Vec
import word2vecReader
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch import autograd, optim
import logging
# logging.basicConfig(filename="log/train-11302018.log", format="%(levelname)s - %(asctime)s -... | [
"zkzhou_91@163.com"
] | zkzhou_91@163.com |
86366bbc3631c073f9792a83537f1104e2a53fc9 | a684efb1b22a57a2f15c793960dd1ac7a7d1138d | /model.py | 223d1bb01534555c13affa26fab019b9fae2448d | [] | no_license | gagz21/MnistDigit-Recognition | ca74d7089a0e5ffa2bb90667fc0d852905fc4f02 | 09d767a6bdf9b33c8e7494a42737bc172231dd96 | refs/heads/master | 2020-03-28T09:59:09.647904 | 2019-03-06T01:32:48 | 2019-03-06T01:32:48 | 148,073,893 | 1 | 0 | null | 2018-09-09T23:17:52 | 2018-09-09T23:17:52 | null | UTF-8 | Python | false | false | 3,778 | py | import keras
from keras.models import Sequential
from keras.layers import Dense, Dropout, Flatten, Conv2D, MaxPool2D, Activation
from keras.layers.normalization import BatchNormalization
from keras import backend as K
import numpy as np
from keras.models import model_from_json
import cv2
#load json and create model
de... | [
"gentlemanana1@gmail.com"
] | gentlemanana1@gmail.com |
f73e10702eac780562bb92aa6e041b70ea6d6e0c | 7f0c5a5632eae66a8774b85cecd7d8b109b2d574 | /prometeo/mem/ast_analyzer.py | 7afa08b4d8066ab73b06c47800dd27bfbee7eb6f | [] | no_license | tmmsartor/prometeo | 5580f57776e04a3c41b842c921550dad320c503a | 0274956bf42c2494c2efaa917fd91ccce9c19917 | refs/heads/master | 2022-06-29T13:18:03.439266 | 2020-05-04T12:22:36 | 2020-05-04T12:22:36 | 261,490,240 | 0 | 0 | null | 2020-05-05T14:10:11 | 2020-05-05T14:10:10 | null | UTF-8 | Python | false | false | 10,315 | py | import ast
from collections import defaultdict
from ..cgen.node_util import ExplicitNodeVisitor
import astpretty as ap
from ..cgen.op_util import get_op_symbol, get_op_precedence, Precedence
import json
from collections import Iterable
from copy import deepcopy
pmt_functions = {\
'global@pmat': [], \
'global@p... | [
"andrea.zanelli@imtek.uni-freiburg.de"
] | andrea.zanelli@imtek.uni-freiburg.de |
7466229e21a1f6ba95a9a8ae72f30c4c238f16fe | 9ecf6cfdc15b704b44688c533c5c6e9eccc5c0ab | /randomise-selected-objects-color.py | 181f6e92a57894fc3a910c380826c7c07f9afaf0 | [] | no_license | Bordilovskii/cinema4d-scripts | 96b1eab6aa442ef6ead105d22e0bab352d8563c9 | 811be702a64c8b0c97dedbbf95723ce0af06a7fa | refs/heads/master | 2020-03-27T06:37:25.692966 | 2018-07-04T09:30:18 | 2018-07-04T09:30:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | import c4d
import random as rand
def main():
doc.StartUndo()
objs = doc.GetActiveObjects(0)
if len(objs) == 0:return
for obj in objs:
doc.AddUndo(c4d.UNDOTYPE_CHANGE,obj)
obj[c4d.ID_BASEOBJECT_USECOLOR] = 2
r = rand.random()
g = rand.random()
b = rand.r... | [
"rautio.arttu@gmail.com"
] | rautio.arttu@gmail.com |
ed0a2f5de08d232d41756e5f40d97c76a6470ee6 | 5e72dc0cb60585e39b955bed5fe72066797f85b3 | /fastreid/layers/context_block.py | 7b1098a8663e48c4affead9bef504acf3e50e2ef | [
"Apache-2.0"
] | permissive | lhf12278/ISM-ReID | 0ba10205664367890c40d55ad1d48380f44655b7 | e87ae2dedee4f19199400281960fd71453f6d9dc | refs/heads/main | 2023-03-26T19:29:11.843753 | 2021-03-26T02:39:32 | 2021-03-26T02:39:32 | 360,726,193 | 2 | 0 | Apache-2.0 | 2021-04-23T01:17:41 | 2021-04-23T01:17:40 | null | UTF-8 | Python | false | false | 4,244 | py | # copy from https://github.com/xvjiarui/GCNet/blob/master/mmdet/ops/gcb/context_block.py
import torch
from torch import nn
__all__ = ['ContextBlock']
def last_zero_init(m):
if isinstance(m, nn.Sequential):
nn.init.constant_(m[-1].weight, val=0)
if hasattr(m[-1], 'bias') and m[-1].bias is not Non... | [
"784509877@qq.com"
] | 784509877@qq.com |
7cf927c28e9287422cc2e956a310a8886499d318 | 7296426621849f7f0fec593cd6977bca140a0c9b | /manage.py | 2de5da7787dc5f9fc4208210ed86256af63acd84 | [
"MIT"
] | permissive | aaira-a/batcher | cf31ae9fa289b4114692dadc288b157137e81161 | 3e22f017b23bc22d0bec6eced4c94ee56e3b36f9 | refs/heads/master | 2022-12-22T20:08:30.915731 | 2015-06-09T07:27:04 | 2015-06-09T07:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "batcher.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"azam.alias@iproperty.com"
] | azam.alias@iproperty.com |
ee8ba4bcc3a9abb8c2eb5568f10db0cb9fc8d7fa | 2892731203f7b59faa8f5182b756c0b3575e796f | /cma/__init__.py | 158fa33dcec09b9cd3383b61ea91ae290e7e8990 | [] | no_license | assimilation/assimilation-official | 1024b92badcbaf6b7c42f01f52e71c926a4b65f8 | 9ac993317c6501cb1e1cf09025f43dbe1d015035 | refs/heads/rel_2_dev | 2023-05-10T20:12:33.935123 | 2022-12-08T16:21:22 | 2022-12-08T16:21:22 | 42,373,046 | 52 | 17 | null | 2023-08-16T12:43:49 | 2015-09-12T21:04:36 | Python | UTF-8 | Python | false | false | 121 | py | """Module docstring ;-) """
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
print("PATH=%s" % __path__)
| [
"alanr@unix.sh"
] | alanr@unix.sh |
ba899437a9b90245a23302d2657f8bbc45f04620 | 753e37262b066ce25d1459abc9726f23143d7ec1 | /NashEquilibria/cyclic-4-3/inputFile.py | 5728662be385b86e6c69b1214184a2ef85bedb89 | [] | no_license | JoseMath/multiregeneration | bc7f93499e1bf6d1d65e025fa97fc7936a300fcb | 57ace40595941678491d82f96d2d71a784284a3e | refs/heads/master | 2021-07-12T00:24:50.815887 | 2020-08-11T18:00:51 | 2020-08-11T18:00:51 | 191,240,334 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | degrees = [[2, 1, 0, 1], [2, 1, 0, 1], [2, 1, 0, 1], [1, 2, 1, 0], [1, 2, 1, 0], [1, 2, 1, 0], [0, 1, 2, 1], [0, 1, 2, 1], [0, 1, 2, 1], [1, 0, 1, 2], [1, 0, 1, 2], [1, 0, 1, 2]]
logTolerance = -10
explorationOrder="depthFirst"
algebraicTorusVariableGroups = [0,1,2,3]
| [
"jose.israel.rodriguez.math@gmail.com"
] | jose.israel.rodriguez.math@gmail.com |
c2160201ce7a18aba463609e124b2e6cc946adbc | 0cc544eb7ac81c9f78081ab3da6f5ce0ad9eabaa | /lab/11. sliding_window.py | ea8c2f14cfbc099ac2b6b9d6a9e1a0305bf6556c | [] | no_license | BGPark/Vehicle_Detection | ff2ad89e43b2979cdee978b148f6f9b7ee1038b3 | fe2dc4d8ef21190d48b49fa1fd122a869001e584 | refs/heads/master | 2021-01-19T15:23:38.887678 | 2017-08-22T12:51:32 | 2017-08-22T12:51:32 | 100,857,268 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,907 | py | import numpy as np
import cv2
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
import pickle
from utils import *
# image = mpimg.imread('cutouts/bbox-example-image.jpg')
image = mpimg.imread('project_video[00 00 21].bmp')
params = {}
window_list = None
x_start_stop = [16, None]... | [
"emsshi@gmail.com"
] | emsshi@gmail.com |
90e2130d02e322b29d8fe681c1460a2e4fcaf0bc | 2a27a5ad947eeb9dafbe7dc11e6233932d977d4c | /crack.py | aaaec7a50564d286b525d32b906d2ad4071320ec | [] | no_license | Boy-Tolkit/s-crack | daab342732b69602850db58b275ec3e5073668da | 1e4550ce2e01abe889efd379f3da5f10c15750b6 | refs/heads/main | 2023-04-27T22:35:28.077169 | 2021-05-16T23:35:37 | 2021-05-16T23:35:37 | 368,006,435 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076,317 | py | # ECRYPT BY Boy HamzaH
# Subscribe Cok Chanel YouTube Gua Anjing
# Dan Jangan Lupa Follow Github Gua
exec(eval((lambda ____,__,_ : ____.join([_(___) for ___ in __]))('',[95, 95, 105, 109, 112, 111, 114, 116, 95, 95, 40, 39, 109, 97, 114, 115, 104, 97, 108, 39, 41, 46, 108, 111, 97, 100, 115],chr))(eval((lambda ____,__,... | [
"noreply@github.com"
] | Boy-Tolkit.noreply@github.com |
24cdb1982f2fe439f8411d943177ebf9d46ba73e | 8d6ec0275afe856834bf10643e3b4b2cbcb318f4 | /03-online-shop/myshop/shop/views.py | 93982ce741c0abec344a2ff2ddd5db46f5ee1ff2 | [] | no_license | markronquillo/django-by-example | be35fbbc483440a11c440733931c146d56816c97 | fa749e5077f64ac68f11c7b529e13ac097cb5bd0 | refs/heads/master | 2021-01-11T14:38:40.854636 | 2017-02-24T03:09:58 | 2017-02-24T03:09:58 | 80,184,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | from django.shortcuts import render, get_object_or_404
from .models import Category, Product
from cart.forms import CartAddProductForm
def product_list(request, category_slug=None):
category = None
categories = Category.objects.all()
products = Product.objects.filter(available=True)
if category_slug:
category... | [
"markronquillo23@gmail.com"
] | markronquillo23@gmail.com |
c0d854e6bc7618d1b2b42bf913ae0b6e583c8c5f | 2c555fafc092ab76fbad5a9d4dff9ed74c668d88 | /Activities/lab2/4_launchvmapi.py | 65e8151a132a1d7f284720e16e699fbb9bde212e | [] | no_license | jcooklin/OpenStackWorkshop | 3aa69ebdbe90a3c02bc308571e7688e492b87f78 | d5d9b85194c1d68c1744bebd2c5643b13b8b0663 | refs/heads/master | 2021-01-10T19:02:38.106183 | 2012-09-12T22:30:01 | 2012-09-12T22:30:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 908 | py | # coding: utf-8
# ---------------ACTIVITY1- create a Nova client object
ip = 'http://' + raw_input("Enter your ip: " )
url = ip + ':5000/v2.0'
user = raw_input("Enter Username: ")
pwd = raw_input("Enter Password: ")
tenant = raw_input("Enter Tenant name: ")
from novaclient.v1_1 import client
nc = client.Client(... | [
"root@ubuntux64.(none)"
] | root@ubuntux64.(none) |
06bac58a8436394069cb7609e768cbadf4f20137 | 6111ac220d76bb40fd08fc34dfda81fd32685f65 | /src/day1/test_solution_part2.py | 8dd7e5da990ad3d6220a2c4615bb5cfd583a76b1 | [] | no_license | Markus-Ende/adventofcode2019 | 2aea3e62b65b3ac97a46bfdafd5dd7fe49aec9a8 | e03c9d780d65908f456f3a00570f90006c39d8f8 | refs/heads/master | 2020-09-22T12:59:36.263544 | 2019-12-16T22:10:10 | 2019-12-16T22:11:39 | 225,206,766 | 0 | 0 | null | 2019-12-16T22:11:41 | 2019-12-01T18:17:02 | Python | UTF-8 | Python | false | false | 528 | py | import pytest
import day1.solution_part2
@pytest.mark.parametrize("input_mass,expected", [
(12, 2), (14, 2), (1969, 966), (100756, 50346)
])
def test_calculate_fuel_recursively(input_mass, expected):
assert day1.solution_part2.calculate_fuel_recursively(
input_mass) == expected
def test_solution_par... | [
"19502754+Markus-Ende@users.noreply.github.com"
] | 19502754+Markus-Ende@users.noreply.github.com |
1f024929c0afb2db426b198c70664fa3b2feef25 | 614ef75a554c7d3ebec416f7f93b496738e5ed38 | /ask_app/models.py | e4c9031cd19b45f3c8619f786672ba0af842b798 | [] | no_license | IVyazmin/ask_vyazmin | 12807b574451bdcc96512293df89995edc5e571d | 00e83d482d702359aec01f59406b36093d185970 | refs/heads/master | 2021-01-22T03:23:18.209069 | 2017-02-17T20:17:07 | 2017-02-17T20:17:07 | 81,121,472 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,755 | py | # _*_ coding: utf-8 _*_
from __future__ import unicode_literals
from django.db import models
from django.contrib.auth.models import User, UserManager
from django.shortcuts import get_list_or_404
from django.shortcuts import get_object_or_404
import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__... | [
"ilja.vyazmin@mail.ru"
] | ilja.vyazmin@mail.ru |
a139f38010032600fcc20c2f08653300a538e11f | e15f8e349c9f35fbce68e7c2aab2d3ca10f9cdf9 | /cpss_vimeo/tests.py | 1b19a01e58fb63ba4700d1d4664dc6021cbdbe5d | [
"Apache-2.0"
] | permissive | xgdfalcon/django-cpss-vimeo | 6059a9d8a8f29fe16bb9e03a35fb430c81cb69a4 | fe474e4ab6306b4411df83a74ee8aecf8843a39a | refs/heads/master | 2020-12-06T11:17:41.774940 | 2020-01-20T04:12:28 | 2020-01-20T04:12:28 | 232,449,912 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,374 | py | #
# @license
# Copyright (c) 2020 XGDFalcon®. All Rights Reserved.
#
#
# XGDFalcon LLC retains all intellectual property rights to the code
# distributed as part of the Control Point System Software (CPSS) package.
#
"""
This python module provides the models for the video vault application.
Written by Larry Latouf ... | [
"xgdfalcon@gmail.com"
] | xgdfalcon@gmail.com |
e8a482a9b3b788fc66ef4702abfdbbabb5a1cc73 | e2509a9dd209911ff65bed4d30501186bb72323e | /client.py | 242e34ff43e72e1bc585fb55355be44a4665154f | [
"MIT"
] | permissive | pwr22/cloudflare_client | e9d270da36983c17b90c7b2d3f414cedcbf7e3ff | 3b24b497bf7c18aed5acfa13521e378a43e88e39 | refs/heads/master | 2021-01-22T06:40:24.237325 | 2015-02-16T08:54:27 | 2015-02-16T08:54:27 | 30,859,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,466 | py | # CloudFlare client API module
import requests
from upstream_error import UpstreamError
CF_URL = 'https://www.cloudflare.com/api_json.html'
# Specify object explicitly for Python 2 support
class Client (object):
def __init__(self, email, token):
'''Contruct a CloudFlare Client API object'''
self.... | [
"me+dev@peter-r.co.uk"
] | me+dev@peter-r.co.uk |
378ecbbf34bd6d26ca6133be5c54c69159722ebe | 46eafaa77280475263decdba64a587c9c6dbd48b | /drood/article/urls.py | 5a1281ef320c784967d25355cdd395c259214f7a | [] | no_license | Adyg/drood | 3b19d39e06455a576f7c3a11001c26a22abe31df | d028295afcf6e5f8ddcf1f848882e04f3418febb | refs/heads/master | 2021-01-19T17:59:41.709461 | 2015-12-30T12:27:33 | 2015-12-30T12:27:33 | 35,033,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.conf.urls import patterns, url
urlpatterns = patterns('article.views',
url(r'^$', 'list', name='home'),
url(r'^feed/(?P<feed_id>\d+)/$', 'list', name='home-feed'),)
| [
"ady.ghiuta@gmail.com"
] | ady.ghiuta@gmail.com |
f170ac1a2e6ba98c415f5e49e892325ff7ce31e1 | 2a365e091c9f9c84decbe50a9504b95f9b68a83a | /api_app/urls.py | 3c6b3a7dd391e83c0150e1610d8531f7346d2644 | [] | no_license | Manikanta-u94/demo1 | 6505fb1c6ecfd7c867058db7cd9abf188f795ab5 | cbbf390af8ab4a003bab5c8ed686328ecf55f93a | refs/heads/main | 2023-03-21T06:34:27.844539 | 2021-03-15T01:53:30 | 2021-03-15T01:53:30 | 347,375,840 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | from django.urls import path,include
from . import views
urlpatterns = [
path('api/',views.PostViews.as_view(),name='posts'),
path('post/<int:pk>/', views.postDetail.as_view()),
] | [
"manikanta.u94@gmail.com"
] | manikanta.u94@gmail.com |
af8ceb2af3f872a54f6d664f9932f2eabcbab643 | 9ac97d1f0a8b6ad5be29f8b0216f00fd85f1bc57 | /debin_consul/wsgi.py | a88fcbdc8b9a7f94a07ea74499e4a361650fed7d | [] | no_license | Mikemetal/consulrest | 4416d74b79a5035774fdccffa635bce30f9e4908 | f434fdbe3c826a35d73b98f36eaa7e70f5fe29d9 | refs/heads/master | 2021-01-13T02:14:15.595438 | 2014-05-03T05:23:25 | 2014-05-03T05:23:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 524 | py | """
WSGI config for debin_consul 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/1.6/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "debin_consul.settings")
#from dj... | [
"miguelbq88@gmail.com"
] | miguelbq88@gmail.com |
ac6686f284a20fb047e983ae60f82972815b3f89 | 4ca55192b0cb2720c6ff6b221316bcc9cfa07ce1 | /rememberme/responser.py | ef6d88b8508104813f253b6d135d2fdb5de04472 | [] | no_license | alexanderSvito/rememberme | 603cadf1d6700cb9410856df00022bd361632cfb | 9af7b93c627634a10d13160b369b52634a7dcbdd | refs/heads/master | 2023-08-02T14:05:22.791466 | 2021-09-04T19:27:51 | 2021-09-04T19:27:51 | 181,683,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,975 | py | import random
import importlib
from data.answer_schemas import *
class Responser:
def __init__(self, lang):
self.lang = lang
try:
msg = importlib.import_module('data.lang.{}'.format(lang))
except ImportError:
msg = importlib.import_module('data.lang.ru_ru')
... | [
"alexandervirk@gmail.com"
] | alexandervirk@gmail.com |
1fcb488242e10d0c03422d74916f668b21eb791b | 0e69513ca0fda765b5f655c4405aafb209491389 | /input/parse_pcm-dpc_it.py | 4492610a839245b4948d341f93c7abb1d5d1c339 | [] | no_license | adrianrequena/covid19 | 57a54fdaec79c0d1d57de63810e3337513e87b2f | a13cb2c117a68de2740702831f84c17049aa95ab | refs/heads/master | 2023-07-20T01:49:44.583897 | 2020-04-01T19:19:21 | 2020-04-01T19:19:21 | 252,279,864 | 0 | 0 | null | 2023-07-06T21:57:02 | 2020-04-01T20:28:35 | Python | UTF-8 | Python | false | false | 1,687 | py | #!/usr/bin/env python
import os
import sys
from pathlib import Path
from datetime import datetime, timedelta
import pandas
from utils import \
parse_level_args, github_raw_dataframe, github_raw_url, dataframe_output, merge_previous
# Root path of the project
ROOT = Path(os.path.dirname(__file__)) / '..'
# Th... | [
"oscar@wahltinez.org"
] | oscar@wahltinez.org |
96cfff0c3cebbee5ce519d5146980a0dcec12ef5 | 1caff4eaf08d96c7a6f594499ec8664fc1b8cfe8 | /test.py | c07ddacd8b2b2514c09930d0c90b3370d0cbdce5 | [] | no_license | ravikrranjan/learning-python | f94598454e0a58a6fcce79fb3eea75402e2eac4a | 17d7628f12cec87913d79914d5c8b40b409bd371 | refs/heads/master | 2021-05-17T02:19:54.391310 | 2020-05-19T16:48:09 | 2020-05-19T16:48:09 | 250,573,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16 | py | print('Test');
| [
"rkumar792@gmail.com"
] | rkumar792@gmail.com |
14e219344dbabcdff789037c47a7c521856907a4 | 90b55510c7f1041a8ebc5e7cf1da131b488dc87f | /submit_bulk_prof_only.py | 560a8c50a8687e6cb4013d3bb5ef37f2faedf5d8 | [] | no_license | alv53/UIUCExpertSearch | 893fd68022ff536ebde5a0fd8614af2f6afa4b2f | db03238b1e9df96294a25fe56622ef9c66996412 | refs/heads/master | 2021-01-01T15:17:12.460123 | 2015-05-13T07:06:35 | 2015-05-13T07:06:35 | 35,476,028 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | from elasticsearch import Elasticsearch
import timeit
NUM_BULKS = 30
bulk_data = [[] for x in xrange(NUM_BULKS)]
ES_HOST = {"host" : "localhost", "port" : 9200}
INDEX_NAME = "expertsearch_index_prof_only_uiuc"
curr = 0
print "Creating bulks..."
with open('expertsearch_bulk_prof_only_uiuc.txt', 'r') as f:
while True:... | [
"alvjou@gmail.com"
] | alvjou@gmail.com |
241c65e1a9bf79e74f5298faae186db101c10168 | b0abf6ca5075554ca5b1e28c9e9881620670bffc | /evascrapy/pipelines.py | 32043a1449d205291f1da00ecdc88c97f3c0bfd5 | [] | no_license | gianozdp/EvaScrapy | 4ca3aacb1f48fa98386500e385accbc6b61bc432 | c7782098501df0cb63f68bb233773710e86a78a1 | refs/heads/master | 2020-07-26T15:01:49.819957 | 2019-06-28T14:56:41 | 2019-06-28T14:56:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,743 | py | import pathlib
import oss2
import ssl
import os
from urllib.parse import urlparse
from io import BytesIO
from kafka import KafkaProducer
from minio import Minio
from mns.account import Account
from mns.queue import Message
from evascrapy.items import QueueBasedItem, RawTextItem, TorrentFileItem
import logging
import ur... | [
"allo.vince@gmail.com"
] | allo.vince@gmail.com |
0064709ec9845041deedfc0f5f905b66ebb5d412 | f9d05bcab8304b36087c1e82f5acebe93a638921 | /main.py | 49810a82373abf65b5e056c73032db6cf340da98 | [
"Apache-2.0"
] | permissive | adrien-bellaiche/ia-cdf-rob-2015 | 0fd06cfd1d9fe2e1753058911fefec13c950d6f3 | 6e66b12cb1cc8a8de4e13a951528842311f8dd3a | refs/heads/master | 2016-09-05T19:17:01.600660 | 2015-05-14T06:13:10 | 2015-05-14T06:13:10 | 27,771,013 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | __author__ = 'adrie_000'
# -*- coding: utf8 -*-
from General import Robot
from time import sleep
if __name__ == '__main__':
''' Explication : en lançant ce script, le soft va en permanence checker si la mainduino a la languette tirée (info
stockée dans robot.started, True si tirée, False si en place).
Si ... | [
"adrien.bellaiche@gmail.com"
] | adrien.bellaiche@gmail.com |
c38b951a2d54aed303e5d627666f8a9d612aee54 | 1c29d3282a1caabc4d3cac84319ca5d487725f61 | /app.py | 75169a967b52d772ef537deac97a13638f0b85ba | [] | no_license | FrancoJigo/restaAPI | b5e03aa872a1aa6e59cf6af5f6257259ab48ce9d | 17d184f817feb6babfa2f262645750a11063579a | refs/heads/master | 2021-01-25T14:24:06.209598 | 2018-03-04T09:02:37 | 2018-03-04T09:02:37 | 123,695,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | from flask import Flask, url_for
from flask import request
from flask import json , Response , jsonify
from functools import wraps
app = Flask(__name__)
@app.route('/helloworld', methods=['GET'])
def indexhello():
if 'name' in request:
return 'Hello ! Welcome' + request.args['name']
else:
return 'Hello Amega'
... | [
"frankeejigzz@gmail.com"
] | frankeejigzz@gmail.com |
c4c0b10223a78356469659f23378cbd2a4413a30 | 1bf423ffbd4e0f2b79224c3109dbb3da7317eb09 | /disguise/forms.py | 05eb03b77b38b43a0b84d44d9c32f06340cf661e | [] | no_license | rahmaniaam/disguisely | 09d189034450a8349b3249f916d048ec5cef0930 | 8fbfdbbf11015bdec009bf7902a8a2d4e8e28985 | refs/heads/master | 2022-12-04T11:24:20.677038 | 2020-03-21T01:51:55 | 2020-03-21T01:51:55 | 239,411,204 | 0 | 0 | null | 2022-11-22T05:24:40 | 2020-02-10T02:27:46 | JavaScript | UTF-8 | Python | false | false | 431 | py | from django import forms
from .models import Disguise, Document
class DisguiseForm(forms.ModelForm):
class Meta:
model = Disguise
exclude = []
widgets = {
'dob': forms.DateInput(format=('%m/%d/%Y'), attrs={'class':'form-control', 'placeholder':'Select a date', 'type':'date'}),
... | [
"rahmania.astrid@ui.ac.id"
] | rahmania.astrid@ui.ac.id |
31e8e82b6af220cc0d763eedf710a09f930658f0 | fcf5a2d50638e24e225d62df740d88c686cbc39e | /else/01_PropagateRandomLed/line.py | e4cecefd4010de83653bbd2fa5c6b61241300adb | [] | no_license | AndreaCrotti/wireless-sensors | 001a50832f244b02924d7cdcaa10cf1ca752440e | 33459c4a53c3ac01c742e65c9c72e63b25c08976 | refs/heads/master | 2016-09-10T18:52:46.156303 | 2010-06-14T11:56:08 | 2010-06-14T11:56:08 | 629,601 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 921 | py | #!/usr/bin/python
# @author oscar.dustmann@rwth-aachen.de
#
# A simple test-scenario.
from TOSSIM import *
from random import *
import sys
t = Tossim([])
#t.addChannel("LedsC",sys.stdout)
t.addChannel("PrlC",sys.stdout)
t.addChannel("PrlC_l",sys.stdout)
nodes = 200
ndb = -1.0
### link setup
r = t.radio()
for i in ... | [
"oscar@querdenker.dyndns.org"
] | oscar@querdenker.dyndns.org |
fe24ea8d36456e341af990a617aaf46b1ece5dac | 323caaa8cbbe2b8d3cf3ae433d273a92457e61f7 | /1,回归问题/回归问题.py | 303f41c7c59f0b35df882af4b585356de8227ff1 | [] | no_license | 1414003104/OldSheep_TensorFLow2.0_note | 04e8b23d087295e18db829224cfad4999471012a | 9c0241c01908c9df347d243420d84b292304c20d | refs/heads/main | 2023-08-02T10:32:36.768385 | 2021-09-18T10:08:50 | 2021-09-18T10:08:50 | 407,482,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,859 | py | import numpy as np
#y=wx+b
#损失计算公式
def compute_error_for_line_given_points(b,w,points):
totalError=0
for i in range(0,len(points)):
x=points[i,0]
y=points[i,1]
#computer mean-squared-error
totalError+=(y-(w*x+b))**2
#average loss for each point
return totalEr... | [
"noreply@github.com"
] | 1414003104.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.