blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39ccfa1bfe82238f935dda6943bcfeabd47426bd | f200651e624d5e5cd2f2262359a5932216d2d443 | /demo-effects-html5-canvas/fire_controls/conv.py | 2431b8a237fa8e6630f04a1d1e18c70d1a4332e7 | [] | no_license | lwerdna/lwerdna.github.io | fbea38c62029884930ebfac70c9d455979c43fde | f80c7cb173359e13b2894d64fb735c0396278b7e | refs/heads/master | 2023-07-19T17:07:20.169897 | 2023-07-07T18:39:02 | 2023-07-07T18:39:02 | 38,472,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,112 | py | palette = [
[0,0,0], [0,1,1], [0,4,5], [0,7,9], [0,8,11], [0,9,12], [15,6,8], [25,4,4],
[33,3,3], [40,2,2], [48,2,2], [55,1,1], [63,0,0], [63,0,0], [63,3,0], [63,7,0],
[63,10,0], [63,13,0], [63,16,0], [63,20,0], [63,23,0], [63,26,0], [63,29,0],
[63,33,0], [63,36,0], [63,39,0], [63,39,0], [63,40,0], [63,40,0], [63,4... | [
"andrew@vector35.com"
] | andrew@vector35.com |
2d78ec6bc312d47fc94f57d817cd005695b414fe | 1b87d5f7cba7e068f7b2ea902bba494599d20a78 | /contrib/wydget/wydget/__init__.py | fe326d70a56e2ec6b127a655b859e95144cddc65 | [
"BSD-3-Clause"
] | permissive | jpaalasm/pyglet | 906d03fe53160885665beaed20314b5909903cc9 | bf1d1f209ca3e702fd4b6611377257f0e2767282 | refs/heads/master | 2021-01-25T03:27:08.941964 | 2014-01-25T17:50:57 | 2014-01-25T17:50:57 | 16,236,090 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,005 | py | '''wydget is a graphical user interface (GUI) toolkit for pyglet.
This module allows applications to create a user interface comprised of
widgets and attach event handling to those widgets.
GUIs are managed by the top-level GUI class::
from pyglet.window import Window
from wydget import GUI
window = Win... | [
"joonas.paalasmaa@gmail.com"
] | joonas.paalasmaa@gmail.com |
15733217b80855ba05d5934e7d07194f747db416 | fa62a10dc55e5af03f24d0e0c1fe46502b814e8c | /python基础/发布模块/message_package/receive_message.py | c254e1c1f8703a6f9d885bb93783119a5f3acbd9 | [] | no_license | jiangchuan617/PythonLearning | c5ede77f596c2282e819cc0270cef842e4147783 | a8b999e348a0f90b8febc6ded8f4ae14a5f0ebe5 | refs/heads/master | 2022-05-02T04:37:59.515143 | 2022-05-01T16:20:15 | 2022-05-01T16:20:15 | 129,497,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | def receive():
return '这是来自177***的消息' | [
"jiangfeng@jiangfengdeMacBook-Pro.local"
] | jiangfeng@jiangfengdeMacBook-Pro.local |
d80f1035fe26c828d8c7307112f4fa58542caa74 | 2192f4e3843c796c5208409337199946f7036079 | /Django_projects/User/Users/usersapp/migrations/0002_auto_20210520_1143.py | 361f9e55d0e344121ee345aa6fee1f04bb73179c | [] | no_license | GhaithAssaf9/Python | 370f84e1ca7d8076f066f6bd0fdae7007aac3dd3 | 84c84ee4463112b0a8ab08787f139fea3cbf5cf5 | refs/heads/main | 2023-06-25T10:16:14.022594 | 2021-08-03T08:41:31 | 2021-08-03T08:41:31 | 364,543,192 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 892 | py | # Generated by Django 2.2.4 on 2021-05-20 08:43
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('usersapp', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='users',
fields=[
('id', m... | [
"urnostalgic@gmail.com"
] | urnostalgic@gmail.com |
25e6e896033a557680d6a173703473897e0b1fdd | 000b86164340d118fc87f14d5d73265e308d50f4 | /ACGPN_inference/get_score.py | 6b6e1ddfb188c2c3063a109cf3d0c23a2de75c93 | [] | no_license | Gogo693/frank | 3ff21db9d41fff6a7c202fb130e9b5f73b2db135 | ef2ad6bb39df022defd7992d4510a23fe3eb5d39 | refs/heads/master | 2023-04-28T10:52:40.362367 | 2021-05-11T15:44:11 | 2021-05-11T15:44:11 | 332,807,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,701 | py | # calculate inception score for cifar-10 in Keras
from math import floor
from numpy import ones
from numpy import expand_dims
from numpy import log
from numpy import mean
from numpy import std
from numpy import exp
from numpy.random import shuffle
from keras.applications.inception_v3 import InceptionV3
from keras.appli... | [
"giorgio.crepaldi93@gmail.com"
] | giorgio.crepaldi93@gmail.com |
413aa420b985881d6b0be993051cd8740ed2b88e | 7c9789aa0ac1cb7d3e1839c3aeffe8b7f9362ad4 | /Tensorflow2/SaveModel.py | c8d7ce64c0245c86414302430690fd979b99dccc | [] | no_license | xjsaber/MyML | 5ca511e84da3248bfec76ce2b70f0c1f102c3926 | 4a1930d92d6edd2e2edf0b340b0b1a6b18844418 | refs/heads/main | 2023-07-23T07:20:05.257267 | 2021-09-02T15:23:50 | 2021-09-02T15:24:10 | 369,053,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 956 | py | # 使用 SavedModel 格式
import os
import tempfile
from matplotlib import pyplot as plt
import numpy as np
import tensorflow as tf
tmpdir = tempfile.mkdtemp()
physical_devices = tf.config.list_physical_devices('GPU')
for device in physical_devices:
tf.config.experimental.set_memory_growth(device, True)
# file = tf.kera... | [
"xjsaber@yeah.net"
] | xjsaber@yeah.net |
0d0a0b3617df919849491feea5ce2e7a9fac4f4b | 9508d6a89a7bd459ce62a9701795fcc3763dfdd6 | /raft_wrapper.py | 6019cb5fad48ac664f6c4310a7ad1a66417d89cc | [
"MIT"
] | permissive | zebrajack/layered-neural-atlases | 3be4afc644aebf5a124b56321c4d605c176b4e06 | 1cc6428e4a603457f6b663d77df5f15f75d0220f | refs/heads/main | 2023-08-24T13:56:22.687541 | 2021-10-23T18:43:57 | 2021-10-23T18:43:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,389 | py | import torch
import numpy as np
import argparse
import cv2
import sys
import os
from PIL import Image
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
sys.path.insert(0, './thirdparty/RAFT/core')
from utils.utils import InputPadder
from raft import RAFT
from utils import flow_viz
sys.path.remov... | [
"yonikasten@gmail.com"
] | yonikasten@gmail.com |
8e81c83eca27fafe4374430fd062b2cda78d9877 | ca045f22bc2660a24d44ecacdb41f7a646df3d19 | /src/exemplos/2_Operadores/9_exponenciacao.py | 4888c9e422a96a463e3625ae6a742f61a4d519ba | [] | no_license | gabriel1997castro/CIC-APC | db7e4114bfa0925e976b64638cac9e94845d8376 | 217f66ab04b0529886d2ef22ce1de15103440ba3 | refs/heads/master | 2020-12-25T11:32:06.276710 | 2016-01-27T02:57:24 | 2016-01-27T02:57:24 | 50,466,976 | 0 | 0 | null | 2016-01-26T23:32:49 | 2016-01-26T23:32:49 | null | UTF-8 | Python | false | false | 2,414 | py | # -*- coding: utf-8 -*-
# @file: 9_exponenciacao.py
# @author: Guilherme N. Ramos (gnramos@unb.br)
# @disciplina: Algoritmos e Programação de Computadores
#
# Exemplos de utilização do operador de exponenciação.
print 'Exponenciação:'
base = 0
expoente = 0
resultado = base ** expoente
print ' (%d)**(%d)... | [
"ramos@gnramos.com"
] | ramos@gnramos.com |
0eb2806e88e7b7ed43ae5003fc4771667bace830 | 09ae3fa519a48e81d4c0dd1ed54b1fb0ba06c804 | /LAB_1/task2.py | c64bf5efd313cf5ad20f21d27b8665b22ad1964a | [] | no_license | GavrichenkoKate/infa_2021_gavrichenko | 1e008141e78eecfa64deaa5ded8960164441c3f3 | aab80bd038a22f01a0e821f53ec597ecf763a286 | refs/heads/main | 2023-09-06T07:27:54.218910 | 2021-11-15T11:39:17 | 2021-11-15T11:39:17 | 408,338,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 207 | py | import numpy as np
import matplotlib.pyplot as plt
x = np.arange(-10, 10.01, 0.01)
plt.plot(x, x*x - x - 6)
plt.xlabel(r'$x$')
plt.ylabel(r'$f(x)$')
plt.title(r'$f(x)=x^2 - x - 6$')
plt.grid(True)
plt.show() | [
"noreply@github.com"
] | GavrichenkoKate.noreply@github.com |
6828773afe2c70b90d77d77c6f63e2884339c267 | ce20d0de4822644e2a553d33cfa5d1ba21d2ee5e | /codingame/fall-challenge-2022/ai.py | 8bf6250a90265d8ed4c706b37739908d4a1fa3f8 | [] | no_license | yana87gt/procon | 08bfc87756d43a7cac9d61fad271880c421e4aca | 3f420f0b242f3e9108c780ca37288696e09522eb | refs/heads/master | 2023-08-31T01:50:13.592343 | 2023-08-26T17:11:02 | 2023-08-26T17:11:02 | 92,819,190 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 28,085 | py | '''
# IDE
https://www.codingame.com/ide/challenge/fall-challenge-2022
# ルール
https://tsukammo.hatenablog.com/
# Leader Board
https://www.codingame.com/contests/fall-challenge-2022/leaderboard
# Replay
https://www.codingame.com/replay/684709569
https://www.codingame.com/replay/684770223
https://www.codingame.com/repla... | [
"syts175yana@gmail.com"
] | syts175yana@gmail.com |
ace2295d50585c48c7aa70f2db8b8c85f23a747c | 0991830fd90a37462ca5ef6db5cb7c2a8f59c44f | /stopWWTslideshow.py | 58a45a87bbeb0d7e82fb84ab87d76e92b9a240f0 | [
"MIT"
] | permissive | ageller/SVL_db_nav | 4e0d537c1a61e40a59f7d4ed7c5897c1c4a2c1e1 | 3b2a094dc01dcb731bec7c6f99f0c63ff750d9d6 | refs/heads/main | 2023-07-30T09:09:03.023072 | 2021-10-08T14:48:13 | 2021-10-08T14:48:13 | 223,447,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,793 | py | '''
This code will automatically turn off the slideshow in WorldWide Telescope that is initiated in the current "WWTBasic" starter.
This code will manipulate the mouse in order to access the menu and click on the checkbox. (This appears to be the easiest method.)
The .bat file can be used to run the code from startup ... | [
"a-geller@northwestern.edu"
] | a-geller@northwestern.edu |
2e51ecf568f7cc81565abd284680556690f6bd10 | 08f298aa9e6703554f5c2ef141a82cfbbfe9c664 | /feed/spiders/ksl.py | 8864f9c3a5864b1e7bc788fb6b80faff029c483c | [] | no_license | bysorry/scrape-ksl | 70c442c0b5907ea426fea44ff6551994306ebf2f | 9ecd473917c614524d41d6da01357a92b2897762 | refs/heads/master | 2021-10-11T01:06:14.975528 | 2019-01-20T16:27:32 | 2019-01-20T16:27:32 | 213,028,545 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | # -*- coding: utf-8 -*-
import scrapy
from ..contact import Contact
import csv
import json
class KSLSpider(scrapy.Spider):
name = "ksl"
category = [
# "Baby",#
# "Books and Media" #
# "Clothing and Apparel", #
# "Computers",#
# "Cycling",#
# "Elec... | [
"ceo@skylinesdigital.com"
] | ceo@skylinesdigital.com |
994e8779646749a4cf313d90030d6d16cddf276b | bc3faef4df41d04dd080a10de084d50962861b55 | /4. Sensitivity Analysis, Appendix A/DL_FP_EC_RB.py | 0b9ed080f0eea81171c8094723db9e4a8a865cbb | [
"MIT"
] | permissive | rioarya/IDN_LC_WoodyBiomass | 3f65ab79b759b8f9e3a11872dc83857a6b15acf1 | 0042fd4333212e65735f3643ecb59971d1bd9466 | refs/heads/main | 2023-07-28T04:23:39.737572 | 2021-09-14T05:23:14 | 2021-09-14T05:23:14 | 404,382,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112,493 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Dec 13 15:21:55 2019
@author: raryapratama
"""
#%%
#Step (1): Import Python libraries, set land conversion scenarios general parameters
import numpy as np
import matplotlib.pyplot as plt
from scipy.integrate import quad
import seaborn as sns
import pandas ... | [
"noreply@github.com"
] | rioarya.noreply@github.com |
919ec5668529c8b954200dd2623656a3d771a752 | 8039fd72bc4d7a7fc89ded9d63b47f020e9d95a5 | /app/recipe/tests/test_ingredients_api.py | 77c03c142401b118f4cc30bf4e11cb49be70de61 | [
"MIT"
] | permissive | vturbin/recipe-app-api | 543b5439f73299c3db12638c18df51adcc740108 | edec6371863ea7bd3aec95f6472fa66e0db5386b | refs/heads/main | 2023-01-16T06:55:29.750405 | 2020-11-22T17:06:21 | 2020-11-22T17:06:21 | 307,793,886 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,427 | py | from django.contrib.auth import get_user_model
from django.urls import reverse
from django.test import TestCase
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Ingredient, Recipe
from recipe.serializers import IngredientSerializer
INGREDIENTS_URL = reverse('recip... | [
"v.turbins@smart-iot.solutions"
] | v.turbins@smart-iot.solutions |
05e64eeb45294e4e372816d49ce3ba6960080540 | 615bbf1429b51458b4c7db3e63cf30fcf312b37d | /python/messages/command_data/__init__.py | 33ad7438162351c34ad3c1c37a0514145a213a8f | [] | no_license | shahar481/remote-mem-editor | 5d42d90718187c1d3d53d58c611c9d0f29587cd4 | e987f9a1f94879331652ed0f85c67707de015262 | refs/heads/master | 2022-12-28T19:46:11.449116 | 2020-10-08T15:27:58 | 2020-10-08T15:27:58 | 299,881,045 | 0 | 0 | null | 2020-10-08T15:28:00 | 2020-09-30T10:13:07 | Python | UTF-8 | Python | false | false | 67 | py | from messages.command_data.command_data import CommandDataMessage
| [
"sshaharse1@gmail.com"
] | sshaharse1@gmail.com |
142c92391f03f9036f5df23bd5d855af23e4e0ac | f0d713996eb095bcdc701f3fab0a8110b8541cbb | /YXjx9G5uQ4CdYPuB4_20.py | f0a10dccbee452d6af543673b232e8f6d5b7d4b0 | [] | 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,110 | py | """
**Mubashir** needs your help to compare two lists.
First list `lst1` contains some numbers and second list `lst2` contains
**squared values of numbers given in the first list**.
Create a function which takes these two lists and returns `True` if all square
values are available, `False` otherwise.
lst1 = ... | [
"daniel.reich@danielreichs-MacBook-Pro.local"
] | daniel.reich@danielreichs-MacBook-Pro.local |
bfbe23ea237a6fece6340961f1e41b21a9cd1481 | 16eac80ebb68689c31bdf13c7ac903532fba315b | /weather/helpers.py | a0a489d0ed6fd58d0ac0af15d5e0622a8997e60e | [] | no_license | sthapa123/NWS-Hourly-Forecast-Analysis | f58e600b8156e7c47345e59bd4bedab19bec9781 | 4cbd7372cee14f28123404edf417b55b946b0db2 | refs/heads/master | 2022-04-08T12:06:39.268374 | 2020-03-13T19:08:36 | 2020-03-13T19:08:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | __all__ = ["days_ago", "short_isotime", "isodate"]
from datetime import datetime, timedelta, date
def gen_analysis_key(start, end):
if not isinstance(start, date):
start = datetime.strptime(start, "%Y-%m-%d")
if not isinstance(end, date):
end = datetime.strptime(end, "%Y-%m-%d")
... | [
"ryanp54@yahoo.com"
] | ryanp54@yahoo.com |
640e9d4c72e6502ed5b447c2352db355ec85f291 | 10dca81be35594d01065f1c41b654a6ad8a711c3 | /mysite/ag53/migrations/0005_auto_20150620_0603.py | 1c501ddea341b4299d2eb76e323ca1700bd376ea | [] | no_license | kb0304/Login_signup_app | b4b9b67fc18aa8201d07cc6992b5820c91d8573b | 1d5ad299c490f14c247552ac56651aba48c0d62e | refs/heads/master | 2021-01-16T21:14:18.493988 | 2015-07-26T23:54:10 | 2015-07-26T23:54:10 | 35,742,050 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('ag53', '0004_profile_user'),
]
operations = [
migrations.RemoveField(
model_name='email',
name='prof... | [
"karan@Karans-MacBook-Air.local"
] | karan@Karans-MacBook-Air.local |
d2aaff5adf1ae65ce0bd9633a7c3a6ac774391e4 | f77ceeba8b499be7886dca264108688f2acbe11c | /lstm.py | 4db31ed38a2681666ed3f8f2af658fea0b2207c8 | [] | no_license | TATlong/Research-report-Classification-system | 066960be9b340537968866b83611e335898b3024 | 4bbe39964cc87898f7ef1b87b05bc02129d1a4b2 | refs/heads/master | 2021-12-21T11:34:33.765297 | 2021-12-10T08:55:13 | 2021-12-10T08:55:13 | 157,339,220 | 100 | 46 | null | null | null | null | UTF-8 | Python | false | false | 8,112 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Oct 30 22:28:41 2018
@author: lilong
"""
from interface import Interface_base
import numpy as np
import pandas as pd
import sys,os
import yaml
from sklearn.cross_validation import train_test_split
from gensim.models.word2vec import Word2Vec
from g... | [
"34054731+TATlong@users.noreply.github.com"
] | 34054731+TATlong@users.noreply.github.com |
f6969149986c94f6addf9e40a89a24a01d513ec8 | 84bcda4ff3a1c2c956c7814f3a308ba68d697563 | /python/GETDownload1.py | 3954d7b356b4b32c016bd413695f85aa213f5bf1 | [] | no_license | yijiyouyu/code | 7a9db849d3734169ba80f029ca74d6962ecd71b9 | f4bc6a4124243484c2d17fb3a574da5e7a31ca11 | refs/heads/master | 2021-09-17T22:54:13.967963 | 2018-07-06T08:26:17 | 2018-07-06T08:26:17 | 109,633,819 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | #coding:utf-8
from requests import get
from time import time
import sys
def Usage():
print '[Usage]:\nGETDownload1.py [URL]'
def getHTML(URL):
html = get(URL).text
return html
def getName():
name = str(time())
return name
def saveFile(Fname,Fdata):
f = open(Fname,'w')
f.write(Fdata)
f.close()
if __name... | [
"1147121947@qq.com"
] | 1147121947@qq.com |
37d5fa2a6f6b3325e6960b512dbb88914fa86b99 | b2ba670818623f8ab18162382f7394baed97b7cb | /test-data/AndroidSlicer/Mitzuli/DD/10.py | d2f993240a11bbf9562d22402b0c95323cee8d8d | [
"MIT"
] | permissive | hsumyatwin/ESDroid-artifact | 012c26c40537a79b255da033e7b36d78086b743a | bff082c4daeeed62ceda3d715c07643203a0b44b | refs/heads/main | 2023-04-11T19:17:33.711133 | 2022-09-30T13:40:23 | 2022-09-30T13:40:23 | 303,378,286 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | #start monkey test seedNo 0
import os;
from subprocess import Popen
from subprocess import PIPE
from com.android.monkeyrunner import MonkeyRunner, MonkeyDevice, MonkeyImage
from com.android.monkeyrunner.MonkeyDevice import takeSnapshot
from com.android.monkeyrunner.easy import EasyMonkeyDevice
from com.android.monkeyru... | [
"hsumyatwin@gmail.com"
] | hsumyatwin@gmail.com |
bb363c5ddd3739e93a04900c1353f55c9f17c3ab | 923f9270a12be35fdd297d8f27e522c601e94eab | /src/decay/test/test_dc_nose.py | 00a9741044a433b8333c1da2f59dfc64f2536274 | [] | no_license | t-bltg/INF5620 | a06b6e06b6aba3bc35e933abd19c58cd78584c1f | d3e000462302839b49693cfe06a2f2df924c5027 | refs/heads/master | 2021-05-31T00:41:41.624838 | 2016-03-22T09:29:00 | 2016-03-22T09:29:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,328 | py | import nose.tools as nt
import sys, os
sys.path.insert(0, os.pardir)
import dc_mod_unittest as dc_mod
import numpy as np
def exact_discrete_solution(n, I, a, theta, dt):
"""Return exact discrete solution of the theta scheme."""
dt = float(dt) # avoid integer division
factor = (1 - (1-theta)*a*dt)/(1 + the... | [
"hpl@simula.no"
] | hpl@simula.no |
af4bf8c4de3811ea5faf7ca96cca9df2fd75cb2c | c1ab0f3ccd1ae6f59a80bfcc3c2caaeed2868ba8 | /django_medcheck/django_medcheck/settings.py | ac4fdda695b1c79fd2e1d3ba6cbd6894cbb0a6ac | [] | no_license | antz22/MedCheck | 0a91945f63c850b429f829b1e12e242f885ffdb9 | b75d44b13492f3dcac641504544eea3ef2e3754f | refs/heads/master | 2023-05-31T00:00:01.905437 | 2021-06-14T12:21:12 | 2021-06-14T12:21:12 | 376,289,998 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,565 | py | """
Django settings for django_medcheck project.
Generated by 'django-admin startproject' using Django 3.2.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from... | [
"anthonyznj@gmail.com"
] | anthonyznj@gmail.com |
361bcd8554afe3ab13ba6067f3468a34e6a3fba4 | 15c86f80f0009118f8e1bd01d866cfdeeb00fbb4 | /assignment2/sgd.py | f2a753e685a8dad8799f774a1ba6127d4a616556 | [] | no_license | Baekyeongmin/2019_cs224n | 1680c67e399df69be3513b66f97d88b98a55831e | bed832a65dc3df0bb8b2f3cff41fe58ebdb12901 | refs/heads/master | 2020-05-05T03:30:44.290736 | 2019-06-09T05:24:13 | 2019-06-09T05:24:13 | 179,675,422 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,529 | py | #!/usr/bin/env python
# Save parameters every a few SGD iterations as fail-safe
SAVE_PARAMS_EVERY = 5000
import pickle
import glob
import random
import numpy as np
import os.path as op
def load_saved_params():
"""
A helper function that loads previously saved parameters and resets
iteration start.
""... | [
"bym0313@dgist.ac.kr"
] | bym0313@dgist.ac.kr |
566a439b70fad999ee6c115c070e521142d7015a | ba5d4704dd8be5a17890cce41e8ac5e7523472ed | /archives/tests/test_model_domains.py | 166be7ae9a1cee70ef246aa5215239deff9c71c6 | [] | no_license | carogiu/cell-migration | 0fb0fdf0bff6ac5cec6cebcb60ef868ac6436574 | 0c90e14e426dfc1faa08ebba22487711dc199cf7 | refs/heads/master | 2020-12-01T11:25:18.023077 | 2020-08-10T09:28:54 | 2020-08-10T09:28:54 | 230,616,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | import unittest
import dolfin
from model.main import mesh_from_dim
from model.model_domains import BD_right, BD_left, BD_top_bottom, dom_and_bound
class TestModelDomains(unittest.TestCase):
def test_class_BD(self):
class_1 = BD_right(dim_x=2)
self.assertIsInstance(class_1, BD_right)
sel... | [
"57912591+carogiu@users.noreply.github.com"
] | 57912591+carogiu@users.noreply.github.com |
9a33605fc91c2d1ce22db31b4e9669455ca00773 | 8235076c125e5f69188917da520669b89dfdd350 | /user/migrations/0006_anfiteatro_arlivre_atividadehasmaterial_authgroup_authgrouppermissions_authpermission_authuser_authu.py | b15d71b7e5c59cc370d9b70ca5c39c80eab89621 | [] | no_license | guilhascorreia24/componente-Utilizador | 37b319daeb9fd7174db24d2616f6ed833963aafd | 3aae759e7a0961b95d8502e8163efef91e0471d4 | refs/heads/master | 2021-08-10T08:47:39.092791 | 2020-07-03T12:11:36 | 2020-07-03T12:11:36 | 247,350,427 | 0 | 1 | null | 2021-03-31T19:59:17 | 2020-03-14T20:43:53 | CSS | UTF-8 | Python | false | false | 15,937 | py | # Generated by Django 3.0.4 on 2020-04-27 22:11
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('user', '0005_atividade_dia_escola_espaco_inscricao_inscricaocoletiva_inscricaoindividual_tarefa'),
]
operations = [... | [
"brunosusana99@hotmail.com"
] | brunosusana99@hotmail.com |
3cc4baa6ce409ef2fef25d43ae16372d88412de4 | 25692e58dceec1f5be4c7930d353bacafd3ff7b0 | /binary/랜선.py | 428c52c11757090ed3d5b84ea1660cc38c993943 | [] | no_license | ub1n/Algorithm | a8617fc56d934e99370c367af364f308431423d6 | c9761941082b678a2882d04db8887afb0d664737 | refs/heads/master | 2023-06-11T11:11:52.573748 | 2021-07-02T13:32:09 | 2021-07-02T13:32:09 | 375,415,927 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | import sys
n=list(map(int,sys.stdin.readline().split()))
arr=[]
for i in range(n[0]):
m=int(sys.stdin.readline())
arr.append(m)
start=1
end=max(arr)
ans=[]
while(start<=end):
mid=(start+end)//2
temp=sum([i//mid for i in arr])
if temp>=n[1]:
ans.append(mid)
start=mid+1
else:
... | [
"bin951024@naver.com"
] | bin951024@naver.com |
c33fb73c3f175c6bb75340690b33f4e382136492 | 97d51839b27ce11bd1302d593ffba330da3234d9 | /WeatherForecastApp/mysite/webapp/models.py | 9245aa65546550c6b4ed64172d5dc894a5a0e8ef | [] | no_license | adityagurram/CloudComputing | dd4015c71892062b470be9104eb9189b4c38ebf1 | 667e72cb53ddd721ecb69ca71d3804eb1a7ee94d | refs/heads/master | 2020-03-07T03:09:29.570179 | 2018-03-29T03:43:19 | 2018-03-29T03:43:19 | 127,227,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.db import models
class Climate(models.Model):
DATE= models.IntegerField(unique=True)
TMAX= models.FloatField(null=True, blank=True, default=None,)
TMIN=models.FloatField(null=True, blank=True, default=None) | [
"noreply@github.com"
] | adityagurram.noreply@github.com |
1fad6fbeeeb619735e591e2a715bef13c07b1e3b | bc9f66258575dd5c8f36f5ad3d9dfdcb3670897d | /lib/googlecloudsdk/generated_clients/apis/gkehub/v1alpha1/gkehub_v1alpha1_client.py | 45d59b19c56748c72896a2a2c8b5b7fce532c530 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | google-cloud-sdk-unofficial/google-cloud-sdk | 05fbb473d629195f25887fc5bfaa712f2cbc0a24 | 392abf004b16203030e6efd2f0af24db7c8d669e | refs/heads/master | 2023-08-31T05:40:41.317697 | 2023-08-23T18:23:16 | 2023-08-23T18:23:16 | 335,182,594 | 9 | 2 | NOASSERTION | 2022-10-29T20:49:13 | 2021-02-02T05:47:30 | Python | UTF-8 | Python | false | false | 20,475 | py | """Generated client library for gkehub version v1alpha1."""
# NOTE: This file is autogenerated and should not be edited by hand.
from __future__ import absolute_import
from apitools.base.py import base_api
from googlecloudsdk.generated_clients.apis.gkehub.v1alpha1 import gkehub_v1alpha1_messages as messages
class G... | [
"cloudsdk.mirror@gmail.com"
] | cloudsdk.mirror@gmail.com |
fff7ecd42a575a75bd8c70fd7c301b8cd7a6cf9c | 6b989e9ed854c9c8a04fdcf3e9df7ad8922cf856 | /chapter01/python3_str_types.py | d8d64e34ee572126a61d5e7817be131ea8f13b09 | [
"MIT"
] | permissive | PacktPublishing/Hands-On-Enterprise-Application-Development-with-Python | 6fea9321392328648a094bd10787a4cdb873a6b6 | a59c2ecb55ed43e5bad8c6ed9b687a3e6b610e9f | refs/heads/master | 2023-02-26T11:33:14.202552 | 2023-01-30T08:51:15 | 2023-01-30T08:51:15 | 140,812,464 | 38 | 30 | MIT | 2023-02-15T20:26:05 | 2018-07-13T07:24:55 | Python | UTF-8 | Python | false | false | 253 | py | #!/bin/python3
str1 = 'I am a unicode string'
print("Type of str1 is " + str(type(str1)))
str2 = b"And I can't be concatenated to a byte string"
print("Type of str2 is " + str(type(str2)))
print("Trying to concatenate str1 and str2")
str3 = str1 + str2
| [
"sbadhwar@redhat.com"
] | sbadhwar@redhat.com |
a199a85117918b1c8fe6769bfdcbff3be408262e | 5186cc912502f9f32948c3810b5adc2cd0f015d8 | /soybean/reactor.py | b9e91523fe64d36b907749d9656b9625adbdbb63 | [
"Apache-2.0"
] | permissive | lcgong/soybean | c0ef4f1a88191a653bfd1f70881a2f1e470943fd | 43fd891113b05c79419d7c0850145c8284e51206 | refs/heads/main | 2023-02-27T08:47:47.198713 | 2021-02-03T04:00:52 | 2021-02-03T04:00:52 | 334,369,214 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,575 | py | import inspect
import asyncio
import logging
from rocketmq.client import PushConsumer, ConsumeStatus
from .utils import make_group_id, json_loads
from .event import OccupiedEvent
from .typing import HandlerType
from .exceptions import UnkownArgumentError
logger = logging.getLogger("soybean.reactor")
class Reactor:
... | [
"lcgong@gmail.com"
] | lcgong@gmail.com |
c904e572df97233d9e65ac3224ef24e0694134a6 | 24faec36e3196fdc77837c45e5934a3f71426ff8 | /college system.py | 83c3c5843f1f04fb7ed197af94ae6ee69f3de32c | [] | no_license | MuhammadRasiMS/college-management | b1a147f2121c5d0733718171078b259e132f8400 | fc2187e567832c4af1d6a4ec4d83a23af8793b9d | refs/heads/master | 2023-08-08T04:49:07.517448 | 2021-09-11T04:39:26 | 2021-09-11T04:39:26 | 405,284,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,248 | py | import mysql.connector as mysql
db = mysql.connect(host="localhost", user="root", password="", database="college")
command_handler = db.cursor(buffered=True)
def teacher_session():
while 1:
print("")
print("Teacher's Menu")
print("1. Mark student register")
print("2. view register... | [
"muhammadrasi0@gmail.com"
] | muhammadrasi0@gmail.com |
34e0d339fa61eb2fba8a107ea109b6b0c56efc1e | 743d4545702532c967efee2c12015d91853b6b80 | /orders/migrations/0001_initial.py | 50adf5b21efe66d7cf544e46d52e15ce62c1faa2 | [] | no_license | SOAD-Group-36/server | 81a7ced2149174fe4d9c1644ee2afd78054d7d29 | 5a5a1e2cd4a361cff8fff008600d65d6dc8edaab | refs/heads/main | 2023-02-03T06:44:36.041311 | 2020-12-12T10:45:21 | 2020-12-12T10:45:21 | 305,055,627 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # Generated by Django 3.1.2 on 2020-11-11 15:24
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),
('prod... | [
"masterashu@live.in"
] | masterashu@live.in |
0072cc0115f29b67a47d46881396394aa26d284e | 2f1d04677be2bff8983e2521eb0beb94b694a7a5 | /setup.py | 418e061de985d028c2e3e9e462f2f8c90763342e | [] | no_license | adisuissa/rh_img_access_layer | d510c40537385eab4332aa7ef0cf17ea39afd902 | 42a48f8ed10ef7addd7b1ce5e47f8a0022f80642 | refs/heads/master | 2020-07-09T21:44:34.760714 | 2019-12-31T14:46:40 | 2019-12-31T14:46:40 | 204,090,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | import setuptools
setuptools.setup(
description="Image reading layer for the Rhoana pipeline",
# install_requires=[
# "pyaml>=15.8.2"
# ],
name="rh_img_access_layer",
packages=["rh_img_access_layer"],
dependency_links = ['http://github.com/adisuissa/gcsfs/tarball/master#egg=fs_gcsfs... | [
"adi.suissa@gmail.com"
] | adi.suissa@gmail.com |
0cc1a592e15de782740aa4548d5a1da9c94b242a | 21b7670ce56d6cb41f609a09f26f460150cbbb29 | /scripts/antennaset.py | 773119bd18e95b90ea6eb507dfb468615b349e51 | [] | no_license | transientskp/old-aartfaac-imaging-pipeline | fd82c739b9b2670e3b2f6cf05f97f2ea168800e6 | 64456796a56cf5e667170e6336dbdcf9cd07f9ba | refs/heads/master | 2022-07-07T08:48:36.192471 | 2016-06-16T08:47:06 | 2016-06-16T08:47:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,250 | py | #!/usr/bin/env python
# Generate position files for different antennasets.
#
# The imaging pipeline needs to know the position of the AARTFAAC antennae.
#
# The LOFAR repository contains a per-station AntennaFieldCSXXX.conf file in
# the directory MAC/Deployment/data/StaticMetaData/AntennaFields. These
# provide infor... | [
"swinbank@transientskp.org"
] | swinbank@transientskp.org |
8f0dd18ff0e2846a87a5f2ca82b2163c648938b6 | 2479345dafbf0ac1118f34fbd3471871a3ac5c11 | /demo/libdemo/list_countries.py | 9292611d6422dfbe06ee3e2c9b7058f6e10a215d | [] | no_license | srikanthpragada/PYTHON_06_MAY_2021 | e2fc4d32a38f085658f87d35f31df65ee837a440 | f30a3c4541e0fc15d157446721b514f791602919 | refs/heads/master | 2023-06-02T23:13:53.786444 | 2021-06-16T03:00:38 | 2021-06-16T03:00:38 | 365,402,518 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import requests
resp = requests.get("https://restcountries.eu/rest/v2/all")
if resp.status_code != 200:
print('Sorry! Could not get details!')
exit(1)
countries = resp.json()
for c in countries:
print(f"{c['name']:50} - {c['capital']}") | [
"srikanthpragada@gmail.com"
] | srikanthpragada@gmail.com |
d3f6ac276eb291409be7ee6ff5b98b09efd7223f | ea14dde57798cbf21446e98cb7d5f33587566f2b | /blog/migrations/0003_comment_approved_comment.py | b784d30deeb681420a713f0783f1847bacec8acb | [] | no_license | marceljorde/SE2 | fd3d821e5aa9662d863df2f12e3f6f846c198137 | b1cb85b0be2490c1ed498195aa0e943cc18d1736 | refs/heads/master | 2020-04-11T04:54:48.166034 | 2018-12-31T13:37:24 | 2018-12-31T13:37:24 | 161,531,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # Generated by Django 2.0.9 on 2018-12-20 13:51
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('blog', '0002_comment'),
]
operations = [
migrations.AddField(
model_name='comment',
name='approved_comment',
... | [
"marce@r119170.srs.swh.mhn.de"
] | marce@r119170.srs.swh.mhn.de |
e3ef029dcbb4f626217414ae65caf8a028b4de89 | 4a887a050564267fc26f9ccd318aa9acc1dd8bf9 | /WikigenderJsonParsing/CreateBootstrappedDatasets.py | c6dce349d732458e9bd06a06d6485aaa66bd7fc7 | [] | no_license | kp1302/Towards-Understanding-Gender-Bias-in-Neural-Relation-Extraction | e998ecab6a9aa233c7f63816546afca3af8d3993 | e3c243c2b50b21ae0b8dc12732dbf4448f545918 | refs/heads/master | 2022-12-19T06:53:14.521785 | 2020-07-06T06:05:14 | 2020-07-06T06:05:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,955 | py | from Utility import *
import argparse
import os
import random
#from sklearn.utils import resample
WORD_EMBEDDING_DIRECTORY = '../WordEmbeddings/'
BOOTSTRAP_FRACTION = 0.9
def createBootstrappedDataset(dataset_name, args):
'''
:param dataset_name: the name of the original dataset (the dataset without debiasi... | [
"ajg@umail.ucsb.edu"
] | ajg@umail.ucsb.edu |
403552e209068810af7e723ab196627c656e93e2 | 57d0789235d8ab014b584a285697b8db2763f1df | /day42.py | 50040391605109c6447c00500b14c0e0accf6259 | [] | no_license | Werefriend/CS112-Spring2012 | 8856ccde68c594f87932b96cc8bc41288095bfb5 | c79f1894876f97669f7628b446c6068b4bb5f4d0 | refs/heads/master | 2020-12-25T17:13:20.016669 | 2012-04-02T14:17:35 | 2012-04-02T14:17:35 | 3,266,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 856 | py | #!/usr/bin/env python
color = (255, 10, 30)
people = {'Jonah' : "stupid", 'Alec' : "smelly",'Jack' : "ugly", 'Paul' : "awesome"}
matrix = ["hello", 2.0, 5, [10, 20]]
eng2sp = {}
eng2sp['one'] = 'uno'
eng2sp['two'] = 'dos'
for k,v in eng2sp.items():
print k,v
print eng2sp['one']
#print matrix
#print matrix[0]
#pr... | [
"reeves.sam@gmail.com"
] | reeves.sam@gmail.com |
723900ac72e65ec5aa7c94b94924dc0e69cf8764 | c5effe7f4efe739df5f4567f64cfa7b76f843aee | /OCR++/myproject/myapp/urls.py | 38947087c61fc1a9fd0a2f57125ca42ef8a884f5 | [] | no_license | Kabongosalomon/ocrplusplus | 16180f8239fb2113dff4568c0c3b98930e050071 | 7dc3f225306a545b3768311eafea2fa56959d950 | refs/heads/master | 2021-09-07T15:34:33.738598 | 2018-02-25T04:47:37 | 2018-02-25T04:47:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 384 | py | # -*- coding: utf-8 -*-
from django.conf.urls import patterns, url
from . import views
urlpatterns = patterns('myproject.myapp.views',
url(r'^$', 'home', name = 'home')
url(r'^list/$', 'list', name='list'),
url(r'^list/runScript/$', 'runScript', name='runScript'),
# url(r'^list/vote/$', 'vote', name='v... | [
"ocrplusplus123@gmail.com"
] | ocrplusplus123@gmail.com |
26e2a1e09c016f6615d8caf36cb0155cbbab5dca | 262a761393d2f2de88a0ccaed96b2c4f06b56150 | /env/lib/python3.8/site-packages/isort/wrap.py | 872b096e7985b43f1ac53a7f482243b66c01bfdc | [
"MIT"
] | permissive | chaitraliv/mini-twitter | 58cac2bed3b645078422e069e7c305fd0d62e0cf | 99bbfca0b611744c829bca671300aa8dcc356ab1 | refs/heads/master | 2022-12-29T08:28:11.574173 | 2020-10-21T08:50:26 | 2020-10-21T08:50:26 | 292,632,756 | 0 | 0 | MIT | 2020-10-21T08:49:59 | 2020-09-03T17:12:40 | Python | UTF-8 | Python | false | false | 5,353 | py | import copy
import re
from typing import List, Optional, Sequence
from .settings import DEFAULT_CONFIG, Config
from .wrap_modes import WrapModes as Modes
from .wrap_modes import formatter_from_string
def import_statement(
import_start: str,
from_imports: List[str],
comments: Sequence[str] = (),
line_... | [
"chaitrali.vaidya@instazen.com"
] | chaitrali.vaidya@instazen.com |
00f52c6cf6c7645f0524b3ed9f86a1bf017a892b | c74db84433f8a5f9199678b52bc9770083c30f53 | /programing/dataStructure/heap/heap.py | ed6efe9f2567dc4135bc8f746c4d311c9f074718 | [] | no_license | wiseun/TIL | fd4708a4ec064d0d1b2f681caafdcea98e7fbf34 | f337a185a6911526263e2446519fa5d78de79dd3 | refs/heads/master | 2021-06-08T09:13:05.868110 | 2021-05-07T06:03:18 | 2021-05-07T06:03:18 | 94,679,460 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,999 | py | #!/usr/bin/python3
import random
import sys
class MinHeap:
def __init__(self):
self.data = []
def getSize(self):
return len(self.data)
def reBuildingWhenPush(self):
idx = self.getSize() - 1
while idx > 0:
parent = int((idx - 1) / 2)
left = parent ... | [
"dongheon.kim@lge.com"
] | dongheon.kim@lge.com |
6f916b447bc8946eb14222b33526f345a1cc0c4f | 21324be3146af56c524a332b7633d4bb20dfa594 | /rest/taskrouter/reservations/instance/get/example-1/example-1.py | 7912a4008771c3b02fa7515a95a8623362ce22c9 | [
"MIT"
] | permissive | mrphishxxx/api-snippets | c0a7967c6fced7413a1c4f695041cff2d85bcf6c | 34faf794971fadfab1d2666647d0322522f4a179 | refs/heads/master | 2021-01-22T15:00:40.502532 | 2016-05-13T23:11:33 | 2016-05-13T23:11:33 | 58,898,143 | 1 | 0 | null | 2016-05-16T02:37:58 | 2016-05-16T02:37:58 | null | UTF-8 | Python | false | false | 522 | py | # Download the Python helper library from twilio.com/docs/python/install
from twilio.rest import TwilioTaskRouterClient
# Your Account Sid and Auth Token from twilio.com/user/account
account_sid = "{{ account_sid }}"
auth_token = "{{ auth_token }}"
workspace_sid = "{{ workspace_sid }}"
task_sid = "{{ task_sid }}"
cl... | [
"eliecerhdz@gmail.com"
] | eliecerhdz@gmail.com |
8b57c9efa4983527dbd55908cbb5b5acbd4edbeb | 20e3ee6642d20578e48756963798acfe307ac6b5 | /Miscellaneous/Python XML Parser/Example.py | ef7e6dc6952d02a5cb41a0c433b4bb1594c14bce | [] | no_license | sirinenisaikiran/Python | 538f64276767435de3233b720f547aac0bf4d511 | bdfef0d1c04c7f3b9fc91a164b5fd1789828176c | refs/heads/master | 2023-01-31T00:53:01.650916 | 2021-06-06T10:39:20 | 2021-06-06T10:39:20 | 237,744,104 | 0 | 0 | null | 2023-01-26T03:38:47 | 2020-02-02T08:58:49 | Python | UTF-8 | Python | false | false | 455 | py | import xml.etree.ElementTree as ET
mytree = ET.parse('Sample.xml')
myroot = mytree.getroot()
# print(myroot)
# print(myroot.tag)
# print(myroot[0].tag)
# print(myroot[0].attrib)
#
# for x in myroot[0]:
# print(x.tag, x.attrib)
# for x in myroot[0]:
# print(x.text)
# for x in myroot[0]:
# print(x.tag, x.... | [
"saikiran.sirneni@gmail.com"
] | saikiran.sirneni@gmail.com |
c5ebdf4e4a222fa96d4d8a27ede2f428ab34f5f6 | 59f0ae12b81de3c9d5a29ce82425b9498fee2c1b | /tests/test_application.py | a89c2dcd0619356ab4b4fe39088ff5eea083d3e6 | [] | no_license | Cheongmin/VoiceReader-Rest | 9f99f14a60b97ccd8d97b74c6196a644a983684c | 599ffb8a552bab9433389eec671ea97cf4be67d1 | refs/heads/master | 2022-12-11T10:38:31.843698 | 2019-02-08T14:04:12 | 2019-02-08T14:04:12 | 155,198,951 | 0 | 0 | null | 2022-12-08T02:13:26 | 2018-10-29T11:16:16 | Python | UTF-8 | Python | false | false | 390 | py | from voicereader import application
def test_create(monkeypatch):
monkeypatch.setattr('voicereader.api_v1.middlewares.init_app', lambda app: None)
monkeypatch.setattr('voicereader.api_v1.middlewares.jwt.init_api', lambda api: None)
app = application.create()
res = app.test_client().get('api/ping')
... | [
"gyuhwan.a.kim@gmail.com"
] | gyuhwan.a.kim@gmail.com |
5a0dfba91d758caa2da4d972f8b603773eb86654 | 22fcb33a8d110630a4e090a9a3202618f52376d6 | /videos/migrations/0001_initial.py | 2f19862eba1dfa585ace0055705938d6b52090dd | [] | no_license | karandeepSJ/CVIT-UserStudyPortal | b5f08ef2833b23d26da5ab1ecfe2494ab26e4021 | a7ff3b81fea4a8333d83c1c89ebc56747ca541c8 | refs/heads/master | 2020-05-19T22:10:36.058553 | 2019-08-30T11:57:08 | 2019-08-30T11:57:08 | 185,241,744 | 0 | 1 | null | 2019-08-30T11:57:09 | 2019-05-06T17:28:15 | JavaScript | UTF-8 | Python | false | false | 545 | py | # Generated by Django 2.1.4 on 2019-04-26 18:29
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='BVH',
fields=[
('id', models.AutoField(auto... | [
"karan.jkps@gmail.com"
] | karan.jkps@gmail.com |
3a6f927241b180e157f7756d4833dee91440dfa9 | 7c8bd2e26fdabf1555e0150272ecf035f6c21bbd | /삼성기출/새로운 게임2.py | 3f7cacad987e8780f64a22bcecc01d30ec281fc1 | [] | no_license | hyeokjinson/algorithm | 44090c2895763a0c53d48ff4084a96bdfc77f953 | 46c04e0f583d4c6ec4f51a24f19a373b173b3d5c | refs/heads/master | 2021-07-21T10:18:43.918149 | 2021-03-27T12:27:56 | 2021-03-27T12:27:56 | 245,392,582 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,461 | py | from _collections import deque
#체스판 말 갯수:k(1번~k번)
#이동방향:위,아래,왼쪽,오른쪽
#흰색인 경우 그 칸으로 이동,이동하는 칸에 말이 있으면 그곳에 스택 쌓기
#빨간색인 경우 이동하고 순서 reverse
#파란색인 경우 말의 이동방향을 역방향 한칸 이동 ,이동칸이 파란색인 경우 이동x
dx=[0,0,-1,1]
dy=[1,-1,0,0]
rev_direction={0:1,1:0,2:3,3:2}
def check():
for i in range(n):
for j in range(n):
if ... | [
"hjson817@gmail.com"
] | hjson817@gmail.com |
d396b8340a6bf61e29cf5d053679b246a4c33040 | 689fe220a0f5b3adc40b19f7b63b571a6bf412bb | /present_absent_loci.py | 7f98cf35431124e36b99276326a6a2bb170683a2 | [] | no_license | NinhVu/filteringStacks | b97bb05fbf04f1490a5a6277e063063c2451732f | 19fb7f45ea78993e04afb1a55de743b5faa203cb | refs/heads/master | 2016-08-12T16:00:31.896619 | 2016-03-13T04:22:36 | 2016-03-13T04:22:36 | 53,767,142 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,788 | py | #!/usr/bin/python3.4
# present_absent.py 3/12/16 by Ninh Vu
# This program will filter loci/stacks found in only individuals ask by user
import glob, sys, os
os.getcwd()
input_list = input("\nEnter individuals in catalog (uStacks id) you want to filter e.g. 106,121,112,120 : ")
# convert input list into list of inte... | [
"ninh.vu@idfg.idaho.gov"
] | ninh.vu@idfg.idaho.gov |
a3fecf2b2639a499281789ccf1c9a980633503b5 | 8d91f8867fb5b72ca257d9e7152188914154ccd1 | /pune/service/deploy.py | 34f54c7777056940aca2674eb70c75a4be27b75b | [] | no_license | liwushuo/pune | c6420e9a3f65711cc7a6c578720122e5b7f53eb9 | 23eae59fc3d3515903700740fade1bce8b8d6e12 | refs/heads/master | 2021-01-10T08:10:41.056344 | 2016-04-18T08:45:01 | 2016-04-18T08:45:01 | 53,919,940 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,488 | py | # -*- coding: utf-8 -*-
from datetime import datetime
from flask import current_app
from pune.core import celery
from pune.core import db
from pune.models import Deploy
class DeployService(object):
@staticmethod
def get(deploy_id):
deploy = Deploy.query.get(deploy_id)
return deploy and depl... | [
"maplevalley8@gmail.com"
] | maplevalley8@gmail.com |
067a7abea5aa8ea89d7339cdb1ac2cad200418bb | 5fbf2adec8d7647b9aeefa51695aa3f13ee57810 | /server/load_backup_locally.py | 076c18cbae05647fcf9c789b079ff13e403dc7b7 | [] | no_license | angelacantfly/dancedeets-monorepo | 8bb6579f6f5d30e88c8d4c0e239c6c8fed678094 | 6b7a48d91d0737010acd9e08a89d99c2c982205a | refs/heads/master | 2021-01-20T09:14:22.613044 | 2017-08-26T21:48:14 | 2017-08-26T21:48:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,381 | py | #!/usr/bin/python
"""
# App Engine import data from Datastore Backup to localhost
You can use this script to import large(ish) App Engine Datastore backups to your localohst dev server.
## Getting backup files
Follow instructions from Greg Bayer's awesome article to fetch the App Engine backups:
http://gbayer.com/bi... | [
"mlambert@gmail.com"
] | mlambert@gmail.com |
05ffc138a8dfcb6c084d4ff20b53ae4b7261b8b4 | 26a97032622f10c47e1961ded98023f2daf539d2 | /src/customers/forms.py | b550242183c540ec43a371955878f58d0ce823dc | [] | no_license | mycota/laundry_MS | 7ada777bc4a6cd746152b44b7257064db8465beb | ab41a70202717957b694152590b72a52d0fb1bff | refs/heads/master | 2023-06-02T15:10:43.466619 | 2021-06-22T02:25:49 | 2021-06-22T02:25:49 | 379,100,888 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | from django import forms
from django.contrib.auth.models import User
from .models import Customers
class AddCustomerForm(forms.ModelForm):
gend = (('Male', 'Male'), ('Famale', 'Famale'),)
cust_name = forms.CharField(max_length=70)
cust_phone = forms.CharField(max_length=10)
cust_email = forms.CharField(max_lengt... | [
"universaltechsolutionsuts@gmail.com"
] | universaltechsolutionsuts@gmail.com |
6c3f8ad91c11294558986e5612928dcb59119e90 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/281/81893/submittedfiles/testes.py | 9d5ad8d30fc63ed816896c55f3d77b98a8e9722a | [] | 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 | 157 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
x=int(input('Digite um número:'))
while x>0 and x<=13:
print('Ok')
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
6668ad6d2a23a2b39e19b176c96af3cd8ff06f5b | 703926c99852ac67a4d4fa9009364ad26fe254d5 | /dices.py | a4c959a24f55476956d7d9000d6c3ea81927617c | [
"MIT"
] | permissive | mariamingallonMM/AI-ML-W4-normal-probability-distribution | e6196b3e6b752d8cb850a9b2d31d7ebf69c84752 | 95569929078b22555f870675f27aeca29f8ce487 | refs/heads/main | 2023-05-12T02:09:14.167027 | 2021-06-04T02:03:25 | 2021-06-04T02:03:25 | 336,903,772 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 917 | py | import numpy as np
def probability_of_sum(total:int, dice1, dice2):
"""
Brief:
Basic probability - Dice cast
Suppose a pair of fair 6-sided dice are thrown.
What is the probability that the sum of the rolls is 6? (Answer as a simple fraction of integers)
reference: https://statweb.stanford.... | [
"maria.mingallon@mottmac.com"
] | maria.mingallon@mottmac.com |
845db2f47f763ae4e09097e253320bf541736141 | 53eee7eb899cb518983008532257037fb89def13 | /343.integer-break.py | e226facec72a5754c30be689c04e5eec6a509a9c | [] | no_license | chenxu0602/LeetCode | 0deb3041a66cb15e12ed4585bbe0fefce5dc6b26 | 3dc5af2bc870fcc8f2142130fcd2b7cab8733151 | refs/heads/master | 2023-07-05T19:26:21.608123 | 2023-07-02T08:35:35 | 2023-07-02T08:35:35 | 233,351,978 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,425 | py | #
# @lc app=leetcode id=343 lang=python3
#
# [343] Integer Break
#
# https://leetcode.com/problems/integer-break/description/
#
# algorithms
# Medium (50.19%)
# Likes: 1086
# Dislikes: 227
# Total Accepted: 110.4K
# Total Submissions: 219.2K
# Testcase Example: '2'
#
# Given a positive integer n, break it into t... | [
"chenxu@Chens-iMac.local"
] | chenxu@Chens-iMac.local |
2578305f74225a3ce266d7e62e3ee9cd11303766 | 7ff9de453f53b658d13896bb0c376d67489145a7 | /python_basics/datatypes/strings.py | 67ce0ec20bd3b0a951eaa007570a45e52eb2a7a7 | [
"MIT"
] | permissive | danielkpodo/python-zero-to-mastery | aa4851fd0bfe1f0bfa4191fa141fa9551fd7c7a9 | d39468f48211bc82e4e2613745d9107d433e05af | refs/heads/master | 2022-11-21T10:55:54.776490 | 2020-07-19T15:07:35 | 2020-07-19T15:07:35 | 275,909,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38 | py | username = "narh"
last_name = "kpodo"
| [
"kpododanielnarh@gmail.com"
] | kpododanielnarh@gmail.com |
855c082aa1c28384a3ca3f6688c7cd52583b2287 | 47e93b916a6b55871997bfa95bb2f69676416b00 | /landerdb.py | 0486a4742f580c46200c8342d154cb857fb29434 | [] | no_license | Inqre/Melody | dcc88acb83b23a3c0786ab5b9529b1dcd71f6ece | 84f298e5446f53c5f3fededd9f2920552db74c87 | refs/heads/master | 2020-05-15T22:32:28.959905 | 2013-11-08T02:45:06 | 2013-11-08T02:45:06 | 14,127,017 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,807 | py | import json
import os
__version__ = "1.0.0"
class Connect:
def __init__(self, db_file):
self.db = db_file
self.json_data = {}
# allows find to be called multiple times, without
# re-reading from disk unless a change has occured
self.stale = True
if not os.path.exi... | [
"max00355@gmail.com"
] | max00355@gmail.com |
85c8b2f42aed216a99f935dec957f601a6e4c545 | b2521e5fa0b0e59bddbdafd5b3b96d8ad3198379 | /GameOfThrones_partI.py | edb89eb1ecc78e0b6bda083a19fce97f5b5ee8ef | [] | no_license | llpyyz/HackerRank_Warmup | aa0db25cdce4fe9b4899033dc9fda295e7bddbb2 | b9628306e684aaed1673305a5256433e317c5cc0 | refs/heads/master | 2021-01-19T13:53:07.155099 | 2015-01-16T23:37:28 | 2015-01-16T23:37:28 | 29,372,468 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 508 | py | """
David Schonberger
Hackerrank.com
Warmpup - Game of Thrones - I
1/4/2015
"""
#count occurence of c in s
def chr_count(c,s):
return len([ch for ch in s if ch == c])
string = raw_input()
found = False
l = [ch for ch in string]
l.sort()
chr_set = set(l)
if(len(l) % 2 == 0):
if(sum([chr_count(c,l) % 2 == 1 fo... | [
"llp_yyz@hotmail.com"
] | llp_yyz@hotmail.com |
a2a2275184e0dde13affe5fbe7484ad6d9b28750 | e3ecb87551f72c201fe6a9fbff772614cfb5ed4c | /mnist_qkeras2.py | ed5c2fb01e719d5efa76e2ecf5c08950db147fed | [
"MIT"
] | permissive | filipemlins/nas-hls4ml | 6cccdc7c061a2d1071e1328e5121aa4038b8fedd | b35afc4f684d803d352776c40f3a6cbbf47c4b1c | refs/heads/main | 2023-03-12T23:11:35.316667 | 2021-03-03T02:09:02 | 2021-03-03T02:09:02 | 343,616,339 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Jul 2 19:57:08 2020
@author: filipe
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 1 16:44:49 2020
@author: filipe
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Jul 1 15:05:57 2020
@author: fil... | [
"filipemlins@gmail.com"
] | filipemlins@gmail.com |
f8b8795f039a88f35ab0c597b1aa46c3a393ceb6 | 2557ba8bd6a8621fac5cee27cc7917d28f850ac8 | /tools/validation_rod2021.py | 51831606c7c0e3b1446bfea457fc10722cb0fe26 | [
"MIT"
] | permissive | WanxinT/Balanced-RODNet | 1993a4e5518cad074013a634fad06b1e108a8fd1 | f6c9c5b4696b697254698cce65a97ec2d92c7a3c | refs/heads/main | 2023-03-27T20:19:28.584615 | 2021-03-29T06:07:46 | 2021-03-29T06:07:46 | 352,520,680 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,400 | py | # -*- coding:utf-8 -*-
"""
@author:Zehui Yu
@file: validation_rod2021.py
@time: 2021/01/31
"""
import sys
import os
from cruw import CRUW
from cruw.eval import evaluate_rod2021, evaluate_rod2021_APAR
import argparse
"python tools/validation_rod2021.py --config configs/my_config_rodnet_hg1_win16_lovasz_bs16_lr1e5_2020... | [
"noreply@github.com"
] | WanxinT.noreply@github.com |
2c190be799017c52cc5a83639396080f5ef20ae9 | 82c54cab8e0c5b73e1fdb9615296613cc43929a0 | /authentication/forms.py | d3f7b622935250beef47f85ac1ec6f9ee9435405 | [] | no_license | creechcorbin/twitter_clone | e4146657bd13043544f846c48b34fe83e90e91da | bd075bd53fd9e5558cda85ade86ed9995f72118c | refs/heads/master | 2022-12-10T09:23:37.036180 | 2020-09-05T03:23:32 | 2020-09-05T03:23:32 | 292,993,852 | 0 | 0 | null | 2020-09-09T01:08:27 | 2020-09-05T03:22:43 | Python | UTF-8 | Python | false | false | 345 | py | from django import forms
class LoginForm(forms.Form):
username = forms.CharField(max_length=80)
password = forms.CharField(widget=forms.PasswordInput)
class SignupForm(forms.Form):
username = forms.CharField(max_length=80)
displayname = forms.CharField(max_length=80)
password = forms.CharField(wid... | [
"creechcorbin@gmail.com"
] | creechcorbin@gmail.com |
a435a2a71d4aaf93551b2f8952ededd0cb812d28 | 51ae004ddefa3e6c942e18348b4b14d95e8fdf0e | /src/__main__.py | 3d2b2baedc1de9302d48136b20547f5e2a8c2687 | [] | no_license | ewascent/python_file_sample | 10c6209b39f8c40605e7152b199f1cf6c5dcd0a1 | e0f1adc4be2e3b71aa583629cfa9b3748ca669c4 | refs/heads/master | 2020-03-30T22:49:18.364585 | 2018-10-08T07:08:50 | 2018-10-08T07:08:50 | 151,679,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,327 | py | """main is main"""
import sys
from error import InsufficientArguments
from error import ArgumentTypeException
import filer
from utilities import setup_logging
__author__ = "ewascent"
__copyright__ = "ewascent"
__license__ = "mit"
def main(_args=None):
"""enter the dragon, is what I imagine the main me... | [
"ewascent@gmail.com"
] | ewascent@gmail.com |
8074d9f48b99a19a25b95da45d02787fb65ed44d | 771247a4498d50745c5fbff09e7446ea9213ab19 | /Py8/export_openweather.py | a80a7c5c48213f7a13b051fcbfb593a6a75dd25e | [] | no_license | ostrowsky/Parcer | 42697f9a98f42c8220675d540e8dc2a95855783e | f953b7cbb6b948df894950ee7ed804fcd6b8e811 | refs/heads/master | 2021-01-21T06:39:46.184872 | 2017-06-23T16:07:15 | 2017-06-23T16:07:15 | 91,581,143 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,845 | py | """ OpenWeatherMap (экспорт)
Сделать скрипт, экспортирующий данные из базы данных погоды,
созданной скриптом openweather.py. Экспорт происходит в формате CSV или JSON.
Скрипт запускается из командной строки и получает на входе:
export_openweather.py --csv filename [<город>]
export_openweather.py --json filen... | [
"ostrowskyi@gmail.com"
] | ostrowskyi@gmail.com |
c1b3876aae1a898188d4da189bd9db75e5afc8c6 | 41249d7d4ca9950b9c6fee89bf7e2c1929629767 | /results/lz_optimizations_20200507/script_lz_crab4freq_powell_bound10_constantFreqAndInitAmps_tf0-1.py | d14345a8c9437a041da7e650381b2b1114829de0 | [
"MIT"
] | permissive | lucainnocenti/ultrafast-critical-ground-state-preparation-2007.07381 | f739b3baad1d2aadda576303bb0bbe9d48ec204a | 29f80dcf914096555cee9bc2e18249a2c95d6a50 | refs/heads/master | 2022-11-22T00:44:09.998199 | 2020-07-21T08:35:28 | 2020-07-21T08:35:28 | 281,237,037 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,458 | py | import os
import sys
import numpy as np
import pandas as pd
import logging
if '../../' not in sys.path:
sys.path.append('../../')
import src.optimization as optimization
import src.protocol_ansatz as protocol_ansatz
from src.utils import autonumber_filename, basic_logger_configuration
output_file_name = os.path.ba... | [
"lukeinnocenti@gmail.com"
] | lukeinnocenti@gmail.com |
09c2e1bc21335613f5e925b52bd82f0b8f9d9309 | 741c5c70bf4a0adb05db6b0777c8d07e28eb9cf6 | /lib/python3.4/site-packages/IPython/core/profileapp.py | 2a412589ca0dcc1cdc77a98a58967352a4566bca | [] | no_license | andybp85/hyLittleSchemer | e686d2dc0f9067562367ea1173f275e8e2d2cb85 | af5cb6adf6a196cc346aa7d14d7f9509e084c414 | refs/heads/master | 2021-01-19T07:48:31.309949 | 2015-01-04T00:57:30 | 2015-01-04T00:57:30 | 28,496,304 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,967 | py | # encoding: utf-8
"""
An application for managing IPython profiles.
To be invoked as the `ipython profile` subcommand.
Authors:
* Min RK
"""
from __future__ import print_function
#-----------------------------------------------------------------------------
# Copyright (C) 2008 The IPython Development Team
#
# ... | [
"andy@youshallthrive.com"
] | andy@youshallthrive.com |
ebc0f24740813770b38a7fd3c48bc48a8611dd75 | 55b132bd206ddd4e84fa9de2f6c06ccf50385d2d | /flearn/models/Fmnist/mclr.py | 15d83ee2608d9d7fa88edd105ea44aad625afe53 | [] | no_license | XinJiang1994/HFmaml | 9b58fab7a1a1f3d153103ceb0cd964d5d49a1ed4 | 15e70293c896b78d054dd20901a1941d1a91d40d | refs/heads/master | 2023-02-01T15:37:38.882104 | 2020-12-17T06:51:42 | 2020-12-17T06:51:42 | 288,163,757 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | import numpy as np
import tensorflow as tf
from flearn.models.FedmamlBaseModel import BaseModel
from flearn.utils.model_utils import active_func
### This is an implenmentation of Hessian Free maml meta learning algirithm propoesed by Sheng Yue####
class Model(BaseModel):
def __init__(self,params):
self.nu... | [
"xinjiang@csu.edu.cn"
] | xinjiang@csu.edu.cn |
ced0baa0e9192cab080e7e0c0c749c9c7e56e9a1 | 1da91735d1a4d19e62b2d19826d9a1e85d88d690 | /dxpy/dxpy/task/model/tests/test_task.py | 32e1f9139b28e9e0836aef2a1a5c31a6253ebbf0 | [] | no_license | Hong-Xiang/dxl | 94229e4c20f0c97dfe21f8563889c991330df9c3 | 29aed778d1c699cc57d09666a20b4ca60196392f | refs/heads/master | 2021-01-02T22:49:20.298893 | 2018-05-22T13:42:20 | 2018-05-22T13:42:20 | 99,401,725 | 1 | 1 | null | 2018-05-22T13:42:21 | 2017-08-05T05:34:35 | Python | UTF-8 | Python | false | false | 3,063 | py | import json
import unittest
from dxpy.task.model import task
from dxpy.time.timestamps import TaskStamp
from dxpy.time.utils import strp
class TestTask(unittest.TestCase):
def test_to_json(self):
t = task.Task(tid=10, desc='test', workdir='/tmp/test',
worker=task.Worker.MultiThreadi... | [
"hx.hongxiang@gmail.com"
] | hx.hongxiang@gmail.com |
aa6af7048c44cea9653dd669212be652afc07c82 | 960b3a17a4011264a001304e64bfb76d669b8ac5 | /mstrio/api/authentication.py | ee18f3ec2d1622d62b49c9697d82696d49d54468 | [
"Apache-2.0"
] | permissive | MicroStrategy/mstrio-py | 012d55df782a56dab3a32e0217b9cbfd0b59b8dd | c6cea33b15bcd876ded4de25138b3f5e5165cd6d | refs/heads/master | 2023-08-08T17:12:07.714614 | 2023-08-03T12:30:11 | 2023-08-03T12:30:11 | 138,627,591 | 84 | 60 | Apache-2.0 | 2023-07-31T06:43:33 | 2018-06-25T17:23:55 | Python | UTF-8 | Python | false | false | 5,218 | py | from mstrio.utils.error_handlers import ErrorHandler
@ErrorHandler(
err_msg='Authentication error. Check user credentials or REST API URL and try again'
)
def login(connection):
"""Authenticate a user and create an HTTP session on the web server where
the user's MicroStrategy sessions are stored.
Thi... | [
"noreply@github.com"
] | MicroStrategy.noreply@github.com |
31b1631b1523aadad273e28fadb8ad1c54978cc0 | 951400a855a6f4af8d9dedfd533e4a19f243f1c7 | /tree.py | 66022eeec58704396df2b56fba968f6e0af905ff | [] | no_license | twangad/test | b698939f4a0033505c1fd1e1a5c2e8757683cf0b | d73bdf1554a520a6892f873777e2226fa09ed151 | refs/heads/master | 2020-07-02T10:17:13.132626 | 2016-09-11T09:17:37 | 2016-09-11T09:17:37 | 67,919,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 76 | py | ###
class test():
def __init__():
pass
def saysth():
print "here" | [
"twangad@connect.ust.hk"
] | twangad@connect.ust.hk |
06b23e46c8862a2a3ab779c2dfd4b094a8b55540 | 041b8daad5f4c72ae81a9706a2a3e5f56a36995f | /Python OOP/innerclass.py | 82fe749eec290ecd675c705d600c1f4ba2bab67b | [] | no_license | hashansl/dash-plotly-training | 7100e1fa55fb489d2713b68bc0ff9e8f0ecef18b | 987d845f476a6501c1c8673e2423d1c258fb4dbe | refs/heads/main | 2023-06-03T09:38:33.363588 | 2021-06-02T03:38:42 | 2021-06-02T03:38:42 | 371,782,924 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 729 | py | #6
# you can create object of inner class inside the outer class
#OR
# you can create object of inner class outside the outer class provided you use outer class name to call it
class Student:
#Outer class
def __init__(self,name,rollno):
self.name=name
self.rollno=rollno
self.lap = s... | [
"hashan.dan@gmail.com"
] | hashan.dan@gmail.com |
7f12cf4f8c2a9dbbd0be88734b98d0c8b28eca87 | e9bc070d1d9257c4a213bc1f33ca6269bbc37b43 | /tests/roots/test-ext-autosummary/conf.py | f4d696cc912bb3108db71ca0fb841c3d904f7427 | [
"BSD-3-Clause",
"Python-2.0",
"LicenseRef-scancode-secret-labs-2011",
"MIT",
"BSD-2-Clause"
] | permissive | GoodRx/sphinx | 99b33454afa06cf6a66d080c3c4019cc7ddde2f0 | c310c73baffa4892cf35fd74918193824c86309a | refs/heads/1.6.x-py-type-xref | 2021-01-01T06:02:33.415993 | 2017-07-16T03:12:58 | 2017-07-16T03:12:58 | 97,339,105 | 1 | 1 | null | 2017-07-16T03:12:58 | 2017-07-15T19:57:45 | Python | UTF-8 | Python | false | false | 184 | py | import sys, os
sys.path.insert(0, os.path.abspath('.'))
extensions = ['sphinx.ext.autosummary']
autosummary_generate = True
# The suffix of source filenames.
source_suffix = '.rst'
| [
"i.tkomiya@gmail.com"
] | i.tkomiya@gmail.com |
9547a9fc3daa754897d982f560d79f01d3208f12 | 51fc1cdba445ff736911e21e0c8a7fecb252dd67 | /generate_training_data.py | b59fed61337e20b0724a6bebc25975eac5c98df8 | [] | no_license | ZhengPeng0115/MTGNN | bda54d946581fb0c400e94d0a67045e70d37fb75 | b5558528e9840c50d177d6175ca1214d1bc9886e | refs/heads/master | 2022-12-31T18:35:41.981755 | 2020-10-15T15:50:54 | 2020-10-15T15:50:54 | 304,375,049 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,911 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import argparse
import numpy as np
import os
import pandas as pd
def generate_graph_seq2seq_io_data(
df, x_offsets, y_offsets, add_time_in_day=True, add_day_in_... | [
"zpengsdu@gmail.com"
] | zpengsdu@gmail.com |
8d416110ae94969cba5ebcae29b1d1e4b9bf6b17 | a0d06a661fd760b57e671582189f1fb1cbee87f0 | /src/chat_take/web/handlers.py | 5f21c90045824bb3d64b2d7b5a245d9832c8d143 | [] | no_license | Tsvetov/chat | 6def42a334a044806b9a483d07edc05662a44438 | 8f1b064c29acdc3f17ad8d0a228a40552cdf4130 | refs/heads/master | 2021-08-26T07:25:38.898642 | 2017-11-22T06:30:59 | 2017-11-22T06:30:59 | 111,576,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | import logging
from redis import StrictRedis
from tornado import web, websocket, escape
r = StrictRedis(db=1)
logger = logging.getLogger('handlers')
class PingHandler(web.RequestHandler):
def get(self):
self.write('ok') # pylint: disable=no-member
class LogoutHandler(web.RequestHandler):
@web.aut... | [
"ptsvetov@MacBook-Pro-Admin-33.local"
] | ptsvetov@MacBook-Pro-Admin-33.local |
6770119ff8804eda04aeeb3fd19760c08c6849a5 | 2a37885d0b4cd6e5938e6d564f189a9ae7ade21f | /day8.py | 862379ce3c86b437a52f5d727431add939afce58 | [] | no_license | wilsonconley/advent-of-code-2020 | 189df901ba14212bd2f27c055be3feb99d17d4bb | 74e7903d8c6e8abc91f1ce72b5984d93cf828ff1 | refs/heads/master | 2023-02-05T23:06:50.935046 | 2020-12-29T01:32:22 | 2020-12-29T01:32:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,547 | py | #!/usr/local/bin/python3
import os
import re
import string
import numpy as np
import copy
def read_file():
filename = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Inputs", os.path.basename(__file__).replace("py","txt"))
print("Loading File:")
print(filename)
data = list()
f = open(filename)
for x... | [
"wilsonconley@Wilsons-MacBook-Pro.local"
] | wilsonconley@Wilsons-MacBook-Pro.local |
973be0558ece5d4ee643158fbb3ac967a41dac12 | a87294fad6d80d0cdae0d2871626acce67442115 | /TenderPost/apps.py | 9872dd730bd48f2a5d384ff116d6682574cbdb42 | [] | no_license | Sadat-Shahriyar/Amphitetris | a9f41b2880770f074348c49ff29ce444c4f0b10f | f3cb1cc370bce6f1a61ac9f6e70deb3710967da2 | refs/heads/master | 2022-12-23T23:37:52.837438 | 2020-09-27T16:40:00 | 2020-09-27T16:40:00 | 471,795,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 95 | py | from django.apps import AppConfig
class TenderpostConfig(AppConfig):
name = 'TenderPost'
| [
"jayantasadhu4557@gmail.com"
] | jayantasadhu4557@gmail.com |
322904d370ccd9b2b0310c2f06e700406ee35483 | 3e201c6c7ac24b425c8e2f73b4f23e5681b0b6a7 | /My Phrases/new-tab.py | 00f3ef6e9823e426f26955afee51a8e72bf64922 | [
"MIT"
] | permissive | yasapurnama/autokey-osx-ify | 5e332b6110928710f3230d2df1816d5ea59e65a1 | a690c5892ff8124905cbf11399ab183d7804bc13 | refs/heads/master | 2020-12-20T14:19:34.697588 | 2020-02-28T13:44:37 | 2020-02-28T13:44:37 | 236,105,369 | 0 | 0 | MIT | 2020-01-25T00:15:27 | 2020-01-25T00:15:26 | null | UTF-8 | Python | false | false | 190 | py | import re
keys = "<ctrl>+t"
window = window.get_active_class()
is_terminal = re.search('term', window, re.IGNORECASE)
if is_terminal:
keys = "<shift>+" + keys
keyboard.send_keys(keys)
| [
"me@glenn-roberts.com"
] | me@glenn-roberts.com |
862349a3c1000ce89313a3022db4edc1e1f3cf78 | b9d6de31eeaf92f77ed8cb48039b7d82963f249f | /student_companion/comments/migrations/0003_auto_20170129_2333.py | cc053db6657814674415909260fcf4a8a2de111f | [
"BSD-2-Clause"
] | permissive | tm-kn/student-companion-backend | 7c1364033a6edaf2f0d57fd4e9305abf679c698b | 5c0b12aee357b7b2dbaf6a5bb8710b9ecb501019 | refs/heads/master | 2021-03-30T15:53:58.542072 | 2017-03-13T19:45:46 | 2017-03-13T19:45:46 | 71,128,845 | 0 | 0 | null | 2016-10-25T14:36:14 | 2016-10-17T10:58:49 | Python | UTF-8 | Python | false | false | 629 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2017-01-29 23:33
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('comments', '0002_auto_20161206_1501'),
]
operation... | [
"u1562595@unimail.hud.ac.uk"
] | u1562595@unimail.hud.ac.uk |
c58f0a9f11b329810abbf4a905261ab209363ccb | efdab571b6273bbbcaddc49e1ca4978aa0625fa9 | /Fundamentals/Session1/Homework/converts.py | f8f1a8db4d349adddafe11fcc6a1610cac46df64 | [] | no_license | duongnt52/ngotungduong-fundamentals-c4e25 | 2f238b6a1bc7eeaf96617aca9e32cef28c1fbeb7 | 2f412cd370bbca4f826466e09d8f30de60b9c648 | refs/heads/master | 2020-04-13T07:49:04.366197 | 2019-02-27T12:50:28 | 2019-02-27T12:50:28 | 163,063,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 103 | py | c = int(input("Enter the temperature in Celsirus? "))
f = (c * 1.8) + 32
print(c, "(C)", "=", f, "(F)") | [
"duongnt52"
] | duongnt52 |
024133573c36b462e604a560f436aea52c5c3ff9 | 9de7a7a7474c655a12917927ab3a97be4383850f | /abricate.py | 1147fda84424234e85d39af4a058c545464c4f73 | [] | no_license | gopel/clonalpop | ca5fc1d03c8dfc575f5bc18404595c28f645c92b | 13b55d85858d783b3a04cbdcb41bfc5aa9b2a512 | refs/heads/master | 2020-05-04T19:04:55.302064 | 2019-04-04T15:33:39 | 2019-04-04T15:33:39 | 179,378,638 | 0 | 0 | null | null | null | null | WINDOWS-1252 | Python | false | false | 26,763 | py | # -*-coding:Latin-1 -*
import os
def abricate(output_path, element) :
'''os.makedirs(output_path + "/" + element + "/Abricate", exist_ok=True)'''
os.system("docker run replikation/abricate --db card " + output_path + "/" + element + "/Prokka/" + element + ".fna > " + output_path + "/" + element + "/Abricate/... | [
"noreply@github.com"
] | gopel.noreply@github.com |
2f62066c180ecaec7d3c36b4eb514313cea1f73a | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03605/s666410011.py | ee1b3b217136d88dfc453fa50b5f4c38f78ab5b2 | [] | 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 | 60 | py | N=input()
if N.count("9"):
print("Yes")
else:
print("No") | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
3317acbb6b1c8517bfce38ae6b51df5e4c04a897 | ed8126f7a19e4ed71a2a0c3b28f59e9a2787cf47 | /tests/lagrange.py | 4e4620af1e0eff87ca331dea9c6f8cde2753fb09 | [
"Apache-2.0"
] | permissive | acrovato/dg-flo | ccdb5dba706bfbfae76af98fb8aeb96d6a110061 | 759263f80c92984b2c1dada11a09e17235b529ce | refs/heads/main | 2023-02-22T09:29:57.677025 | 2021-01-17T19:02:01 | 2021-01-17T19:02:01 | 313,250,255 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | # -*- coding: utf8 -*-
# test encoding: à-é-è-ô-ï-€
# Copyright 2021 Adrien Crovato
#
# 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
#
# Unl... | [
"39187559+acrovato@users.noreply.github.com"
] | 39187559+acrovato@users.noreply.github.com |
bbac7a89c8fce26e9c0cc1f44ccffe97946ed723 | 9a4babfb4abca418f3985387742613305bbd1975 | /ouds/article/views.py | 5fb06a392bf3241578121ffe1d18e3e2f843b430 | [] | no_license | joskid/ChunCu | 37f324669146bc134e4719fb73471268d9f900eb | dbbdf00848962efb65306b3baaac4b7ecba42f15 | refs/heads/master | 2021-01-15T21:39:03.680848 | 2012-03-16T11:48:13 | 2012-03-16T11:48:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,726 | py | # -*- coding: UTF-8 -*-
#===============================================================================
# Author: 骛之
# File Name: gd/member/admin.py
# Revision: 0.1
# Date: 2007-2-5 19:15
# Description:
#===============================================================================
import datetime
fro... | [
"ouds.cg@gmail.com"
] | ouds.cg@gmail.com |
d59708d18019db8809fb41912e4fc24664b28503 | 13548d8c85e3f4b32181f1b54fb20bc81002491d | /lr_model.py | abe3e0ca3aecd0f13fdef9b45bb06135776e4efa | [] | no_license | sjtuprog/classification-models | ed9e5c32538566da3bf031dc4b4319821772b8e0 | 83b61569a26e232d0dec7db74035d1719412597b | refs/heads/master | 2021-07-11T13:56:37.064339 | 2017-10-15T05:09:45 | 2017-10-15T05:09:45 | 106,985,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,031 | py | from preprocessor.loader import *
import numpy as np
from preprocessor.utils import metrics
from sklearn.linear_model import LogisticRegression, LinearRegression
import os
def data_to_vector(data):
x_word, y = data
x = np.zeros(len(word_to_id))
for w in x_word:
x[w]+=1
return x, y
train, dev, test = load_fi... | [
"sjtuprog@gmail.com"
] | sjtuprog@gmail.com |
eee180705f38d0e11b8a5778069d77230bafec5f | 481452cd3b904af7a42bbeb71190a59c29e4775b | /python_batch_4/class2/typecasting2.py | deb323944f44ee751f0fd3988dc54191fb1697f1 | [] | no_license | rahusriv/python_tutorial | b09b54044f9df86ac603634ac1dd8d4ea6705e4a | 7de9b62a8e1e8ca1df5f2679ebf17d655f6b1b8e | refs/heads/master | 2020-03-28T11:24:16.468977 | 2019-05-12T06:51:32 | 2019-05-12T06:51:32 | 148,209,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | a = "20.99"
b = "30.89"
c = int(float(a)) +int(float(b))
print(type(c))
print(c) | [
"rahusr@gmail.com"
] | rahusr@gmail.com |
f698177fc305cd817e720633840d5cc143725037 | d86aef9f61d2cce156f67ac2da76d7f18b4b881e | /Logic Gates/logic_gates_nn2.py | a30507ca574476c9724550015c31e1c87bddc5b7 | [] | no_license | dhan0779/ai-neural-networks | 353b95ab0bebad132ecc428bcb9dae37d54dd810 | 64fee9aa3346e0fe23d55a4a8007e3a43fd6ed42 | refs/heads/master | 2020-12-01T23:42:32.657842 | 2019-12-29T23:54:10 | 2019-12-29T23:54:10 | 230,816,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,406 | py | import sys,math,time,random
def main():
x = time.time()
real = []
inpfile = open(sys.argv[1],"r")
for line in inpfile:
fakelist = []
line = line.split(" ")
for ch in line:
if ch != "=>":
fakelist.append(int(ch))
real.append(fakelist)... | [
"noreply@github.com"
] | dhan0779.noreply@github.com |
9479f066756090388c2092129ef0059b3ebf32ea | cf14b6ee602bff94d3fc2d7e712b06458540eed7 | /gs105/gs105/settings.py | 422043aee64a923a3033927c1f8cb6ac0230c445 | [] | no_license | ManishShah120/Learning-Django | 8b0d7bfe7e7c13dcb71bb3d0dcdf3ebe7c36db27 | 8fe70723d18884e103359c745fb0de5498b8d594 | refs/heads/master | 2023-03-29T09:49:47.694123 | 2021-03-28T16:04:34 | 2021-03-28T16:04:34 | 328,925,596 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,073 | py | """
Django settings for gs105 project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib i... | [
"mkshah141@gmail.com"
] | mkshah141@gmail.com |
17f6cbf71b9e2f8f1a98abc1469ee319dbad1d40 | 3e1339020e63327db55716344a7e02c0d503d260 | /applications/Imaging/L1MIGRATIONwVP/results/segsalt/precooked/SConstruct | 18d42de777c5409c14338e19fe8c83b1f660e31f | [
"MIT"
] | permissive | 13299118606/SLIM-release-apps | 975287c6555fc4c6fe76dcea9f5feb9225a30449 | c286f07312289c7d50057ac9379d2da30eea760f | refs/heads/master | 2022-03-09T20:42:23.490954 | 2019-08-22T23:12:44 | 2019-08-22T23:12:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 814 | import os
from rsf.proj import *
########################################################################
# RETRIEVE DATA
########################################################################
# define SLIM FTP server information
FTPserver = {
'server': 'ftp.slim.gatech.edu',
'login': 'ftp',
... | [
"henryk_modzelewski@mac.com"
] | henryk_modzelewski@mac.com | |
c241b675292580697fde86a8fafecba8ace59410 | 244856c712aaf0675aab546519a8f0552137f257 | /plantManagement/sensors/urls.py | aa124fb0603d9c1c3a05cdca68bae35eccfc8340 | [] | no_license | Sreepragnav16/Plant_Monitoring_System | 250199db9661cf000ef24c286a310262b9f6e056 | ac3990e1ff222c4f29aac0c7a4c2b1e9fb7300d7 | refs/heads/master | 2020-05-15T06:52:30.504201 | 2019-04-18T17:48:57 | 2019-04-18T17:48:57 | 182,131,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from django.conf.urls import url
from . import views
app_name = 'sensors'
urlpatterns = [
# homepage
url(r'^$', views.index, name='index'),
#temperature
url(r'^temperature/$',views.temperature, name='temperature'),
#humidity
url(r'^humidity/$',views.humidity, name='humidity'),
#... | [
"noreply@github.com"
] | Sreepragnav16.noreply@github.com |
eca1d0906ca94f9f81f2da44e42483721dc46ee6 | f45295baf6a46bf09669c382270ad1b3213781dc | /Code/check_resources.py | eb4320d69106446508ddad6c1c036012f13128ec | [] | no_license | arjun1886/Ethnicity_detection_DL | 8d2ab1e776f0dda8f8162e8dc334c861cd92145d | c8868089fe13d3eced4bd65d72b93362167e77d1 | refs/heads/master | 2020-12-21T03:24:49.617975 | 2020-01-26T09:50:00 | 2020-01-26T09:50:00 | 236,289,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,692 | py | __author__ = 'Douglas'
import urllib.request, os, bz2
dlib_facial_landmark_model_url = "http://ufpr.dl.sourceforge.net/project/dclib/dlib/v18.10/shape_predictor_68_face_landmarks.dat.bz2"
def download_file(url, dest):
file_name = url.split('/')[-1]
u = urllib.request.urlopen(url)
f = open(dest+"/"+file_na... | [
"arjun.rajesh1886@gmail.com"
] | arjun.rajesh1886@gmail.com |
b12c14f2d187174e8f714e4790ec36839780011f | ac5d55e43eb2f1fb8c47d5d2a68336eda181d222 | /Reservoir Sampling/382. Linked List Random Node.py | 535508fa3eecbcc13bfe833e95712b6200c347d5 | [] | no_license | tinkle1129/Leetcode_Solution | 7a68b86faa37a3a8019626e947d86582549374b3 | 1520e1e9bb0c428797a3e5234e5b328110472c20 | refs/heads/master | 2021-01-11T22:06:45.260616 | 2018-05-28T03:10:50 | 2018-05-28T03:10:50 | 78,925,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,831 | py | # - * - coding:utf8 - * - -
###########################################
# Author: Tinkle
# E-mail: shutingnjupt@gmail.com
# Name: Linked List Random Node.py
# Creation Time: 2017/9/24
###########################################
'''
Given a singly linked list, return a random node's value from the linked list. Each node... | [
"496047829@qq.com"
] | 496047829@qq.com |
9123cc72f71833fb8b4612137af9c487f54ecee8 | 3b63a9e4b00d69deb44a3e575f385217f936eedc | /prac_06/box_layout_demo.py | e208e4200afb0fa5c576746517b7bb9883327deb | [] | no_license | AbelLim/cp1404Practicals | 1e87ba6a76ea749fc54d51ec8fcc8435842190df | 0ebfa41176050ac8ef7f2ea5e2e33169ada15197 | refs/heads/master | 2020-03-06T22:40:18.154275 | 2018-05-31T10:03:40 | 2018-05-31T10:03:40 | 127,109,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | from kivy.app import App
from kivy.lang import Builder
class BoxLayoutDemo(App):
def build(self):
self.title = "Box Layout Demo"
self.root = Builder.load_file('box_layout.kv')
return self.root
def handle_greet(self):
self.root.ids.output_label.text = "Hello {}".format(self.roo... | [
"abel.lim@my.jcu.edu.au"
] | abel.lim@my.jcu.edu.au |
01094b667d366115bc4a518070a10f4ac74ffa80 | 3423eb1ee4654222fc5b3e83489d4ef571f69308 | /sparkit_me_data_checking/models/vrf_verification_wizard.py | 21f552a9d91e47fcbffc4d4083a198516dfc12da | [] | no_license | janvierb/Sparkit | bd1f8fbd27228d6f0fcab19bddcc060fec40baba | 5db9f11be93bbd5fd379a3c07263f377114f5b2f | refs/heads/master | 2020-09-26T00:16:40.018403 | 2019-12-05T15:39:00 | 2019-12-05T15:39:00 | 226,121,616 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
from openerp import exceptions
class sparkit_me_data_checking(models.TransientModel):
_name = 'sparkit.vrf_verification_wizard'
vrf_ids = fields.Many2many('sparkit.vrf', string="Visit Report Forms")
verified = fields.Boolean(string="Visit R... | [
"janvierb@sparkmicrogrants.org"
] | janvierb@sparkmicrogrants.org |
ec9c0cd180f50fb23acae69744788f81a9bfa036 | 8ccf7e6a93256fd83fed2bb7bd4f8bbe13dc1f40 | /Assignment 3. Paxos/Simulation/Agents/Proposer.py | c35f8b2ea5e2ba44032b554a298ca176490310d9 | [
"MIT"
] | permissive | WailAbou/Distributed-Processing | 5e2b84edc86b6d709c2599d82434731c6fd64dd6 | 46a36f1fd51d6f8b35cc639eb8002d81d7e09f2b | refs/heads/main | 2023-05-28T05:52:39.790190 | 2021-06-14T00:57:08 | 2021-06-14T00:57:08 | 367,988,336 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,059 | py | from Simulation.Agents import Agent
from Simulation.Message import Message, MessageTypes
class Proposer(Agent):
max_id = 0
def __init__(self, name, agent_id, value=None):
super().__init__(name, agent_id, value)
self.votes = 0
self.majority = False
self.suggested_value = N... | [
"abou.w@hotmail.com"
] | abou.w@hotmail.com |
68e09501a51d712d45387f738b12c0239a752984 | b4777bf27a6d10d0e5b1c51351f9ad14a049b5e7 | /results_discrete_paradigm_acc.py | 1f08f50c522ed31784d9ff4e831821666ace9b7e | [] | no_license | bioelectric-interfaces/cfir | 1216ba1b62935f99f8821ccce2577be9cf71c6b8 | 6034b5216352e5d933405bccbe9a67b9e89c4735 | refs/heads/master | 2022-07-12T10:45:17.758669 | 2020-03-10T13:34:10 | 2020-03-10T13:34:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,356 | py | """
Figure 5: Discrete paradigm accuracy for one subject with median SNR
"""
import pandas as pd
import pylab as plt
import numpy as np
import seaborn as sns
from filters import CFIRBandEnvelopeDetector, RectEnvDetector
from utils import magnitude_spectrum
from constants import FS, DELAY_RANGE
from sklearn.metrics i... | [
"n.m.smetanin@gmail.com"
] | n.m.smetanin@gmail.com |
2ac2a7e1feba3b14b0453aeba17abc1736994421 | 337065b21aead25e5b69b3932d63e667799d2b7d | /liga09/src/liga.py | 5d52fae7ed46d3a7df7597d1e22c1eeeedee6d92 | [] | no_license | jels/ple-ieslosenlaces | 998e982290e56500652e17ec12d353679530dcbe | 92ba27e34ab10dc2018be411829856ad2912adb9 | refs/heads/master | 2021-01-10T21:18:24.635244 | 2010-05-11T09:05:23 | 2010-05-11T09:05:23 | 37,066,827 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # -*- encoding: utf-8 -*-
'''
Created on 19/11/2009
@author: dai
'''
from auxliga import *
from auxgrafico import *
# leer datos y preparar matriz
# datos_liga --> matriz con datos del fichero
datos_liga = crea_tabla(r'datos\liga09.csv')
# ej1. imprimir datos_liga: equipo y puntos
# por orden alf... | [
"morillas@02d82bf8-8a0b-11dd-8a42-c3ad82d480ce"
] | morillas@02d82bf8-8a0b-11dd-8a42-c3ad82d480ce |
dde20ff95398266eb94923d9536dbe91b7e82d0c | 0b385cb36c601e483b77ba06f397c7dd66be9e70 | /day07/part1.py | ddb701bb43adc324b437e34a070ada479cb4cd7a | [] | no_license | Sebastian-/advent-of-code-2019 | 3cdddc8442a58c77e48d6e35e79ab5b7b38ec1d7 | 8adce696553f4c00c09de066ae67eed5e35fa4c0 | refs/heads/master | 2020-09-27T07:57:53.477125 | 2019-12-10T22:17:17 | 2019-12-10T22:17:17 | 226,469,518 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,232 | py | import itertools
def getOpCode(i):
return int(str(i)[-2:])
def getParaModes(i):
modes = list(map(lambda x: int(x), str(i)[:-2]))
while len(modes) < 2:
modes.insert(0,0)
return modes
def getOperand(program, addr, mode):
operand = None
try:
operand = program[addr] if mode == 1 else program[... | [
"hmurgu@hotmail.com"
] | hmurgu@hotmail.com |
8e32eb64c0a7d5268003465a2906f21431987605 | c7713ed30e6edd751ccb811ad3fd48de30f94e33 | /WprimeToMuNu_M_2800_TuneCUETP8M1_13TeV_pythia8_cfi.py | e4a5272bebf0fe233280b78d8cc078d67e927a6c | [] | no_license | bdelacruz/usercode | 3be9fa8d3c761754c95a5c891c691dfd4baaa38d | 76cb706731cde5a4cfb0dec68c628ef39dc1408f | refs/heads/master | 2016-09-05T23:59:26.566827 | 2015-03-17T12:22:14 | 2015-03-17T12:22:14 | 32,382,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,375 | py | import FWCore.ParameterSet.Config as cms
from Configuration.Generator.Pythia8CommonSettings_cfi import *
from Configuration.Generator.Pythia8CUEP8M1Settings_cfi import *
generator = cms.EDFilter("Pythia8GeneratorFilter",
comEnergy = cms.double(13000.0),
crossSection... | [
"begona.delacruz@ciemat.es"
] | begona.delacruz@ciemat.es |
76c78b98b9dca510bcb2a7cf815e747ee72e0281 | 6c5f20372604ade5153f54f55b29926e53f51ede | /CodiciSorgentiMButtu/cap6/myenum/06/test_myenum.py | acd32e2750030161dea599871164eab548d8d073 | [] | no_license | Johnny1809/Esercizi-Python | d38dd102c18134230ed9260f1a0739677b533ccc | f4a4d79d0518f0630a8631ba51591baa0b3ce552 | refs/heads/main | 2023-08-14T10:22:57.487917 | 2021-09-30T16:10:37 | 2021-09-30T16:10:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,390 | py | import unittest
from myenum import *
class TestPasta(unittest.TestCase):
def setUp(self):
class Pasta(MyEnum):
spaghetti = 1
lasagne = 2
tagliatelle = 3
self.Pasta = Pasta
class PastaAlias(MyEnum):
spaghetti = 1
lasagne = 2... | [
"89039573+Johnny1809@users.noreply.github.com"
] | 89039573+Johnny1809@users.noreply.github.com |
74599c94d3dcaa1bce72b0d69b9593c7f982f3b9 | c3b058773f4ee1ab5e8010284c40e8af1d19e5e8 | /trexRun.py | 9ae0b520317d7297e4fee168435d5614d084ca46 | [] | no_license | cmtzco/steem_mm | 5485e5bf5827571c80934c0661c90ce327f5a46e | fcd791d703ce5b20d3bd609316742b638da767a4 | refs/heads/master | 2021-06-17T08:19:03.160676 | 2017-06-11T21:50:59 | 2017-06-11T21:50:59 | 93,909,995 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,735 | py | from gekko import Trex
import config as c
import urllib2
import logging
import random
import time
import sys
#0.47405412 BTC
logging.basicConfig(filename='gekko.log',level=logging.INFO)
RUNNING = True
while RUNNING:
try:
c.lotSize = random.uniform(0.75, 1.25)
b = Trex(c.TrexKey, c.TrexS... | [
"chris@cmtz.co"
] | chris@cmtz.co |
5ada83d5248851904d6558b3dd0fd921087c75a9 | e194614b5dea1a31e32059eaa2f0db2f8c553c63 | /worker.py | 190324061bb13228b03cfd533434d5bc7967509d | [] | no_license | DanielCatz/JobPostReader | 88782dfca05639fbd0ed6d8726877d0228fbcb5f | 3b2bf3d9e90d30916b00a364c0f822fa7364fe07 | refs/heads/master | 2022-12-21T08:52:56.911602 | 2017-08-30T22:54:24 | 2017-08-30T22:54:24 | 101,807,062 | 1 | 0 | null | 2022-12-08T00:35:43 | 2017-08-29T21:09:03 | CSS | UTF-8 | Python | false | false | 313 | py | import os
import redis
from rq import Worker, Queue, Connection
listen = ['default']
redis_url = os.getenv('REDISTOGO_URL', 'redis://localhost:6379')
conn = redis.from_url(redis_url)
if __name__ == '__main__':
with Connection(conn):
worker = Worker(list(map(Queue, listen)))
worker.work()
| [
"daniel.caterson@gmail.com"
] | daniel.caterson@gmail.com |
b9003cef7f46933dcddd21d28e39822b4d63acb2 | e3a61e3353b8f20f56fc3adbb3d84ea500f798da | /Code/dummyReduce.py | 38d553d56f27261cbf068d64fbe3004b53d13ec7 | [] | no_license | JamieThomson97/Cloud-Computing | 11522966f26b48a0b4c903c6a7b733fd480e440e | 5fd988e0f8f8e02524cc605943ddb52806e1bac0 | refs/heads/master | 2020-04-03T21:53:50.985201 | 2018-11-21T21:09:51 | 2018-11-21T21:09:51 | 155,585,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,438 | py | #!/usr/bin/env python
# Takes system input, where each line a Key Value pair of a lexicographically sorted word as the Key, and the actual word as the Value
# Outputs a list of every occurrence of every anagram in the input
import sys
# Dictionary that the Key Value pairs will be added to
anagram_pairs = {}
for li... | [
"j.thomson-15@student.lboro.ac.uk"
] | j.thomson-15@student.lboro.ac.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.