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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14e34fc8a7237c6e0e7bbb1d39f8c59edbe12d95 | 1b89bab135d08da8a4f9458c3be7cb4443a24307 | /learn.py | a416bdf9d96efdc55e276e520acd339c4670a053 | [] | no_license | hbirler/datalovr | 2ddfa9356a4611c01377ea4d20fffe3de9ca694d | f530c92a1b453b7ba8ecb2421b0d53acf372c405 | refs/heads/master | 2020-09-16T21:08:19.121875 | 2016-11-13T11:18:54 | 2016-11-13T11:18:54 | 73,515,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,554 | py | import numpy, random
from numpy import array, random, exp, seterr, dot, copy, log, vectorize, tanh
from numpy.linalg import norm
from itertools import combinations,combinations_with_replacement, chain
from operator import mul
from sklearn.neural_network import MLPRegressor
from sklearn import svm
def log_reg(X, y)... | [
"Hasan Altan Birler"
] | Hasan Altan Birler |
c01e2bd21370ace182254cb8629b9b197c1c00b2 | f1c8091b30ebbb49bca7f60fe1aa078613331a65 | /Set08/clustercheck.py | bfaa21dadb11ef9f7e1f8b113d20ff3369bee84b | [] | no_license | nikhil-kathuria/information_retrieval_cs6200 | 4c92d16e6ba963996d2e7948753cfe19851875b8 | 6e683675fe3974df1c1a04bf10eddc5ad2bff53b | refs/heads/master | 2021-06-12T08:19:25.013279 | 2016-12-27T06:52:11 | 2016-12-27T06:52:11 | 69,931,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,373 | py | from collections import defaultdict
class ClusterCheck:
def __init__(self):
self._path ="../Set01/qrels.adhoc.51-100.AP89.txt"
self._dqmap = defaultdict(set)
self._pairlist = list()
self._reldoc = set()
self._qset = set()
self.querygen()
self.popdata()
... | [
"nikhil.kathuria@gmail.com"
] | nikhil.kathuria@gmail.com |
d40223e572f7fdd907e876aca26d04b979294f0c | 1de21eb8a0f60c3b6c80ff5c38d635dfcc3659ea | /person.py | e7f3edb718ec05eed63af909efb48dacfba55e8d | [] | no_license | ravisankar712/SIR-Simulation | 406c51139b95794253de59a454ff383c66ba8948 | 18a2405b1e76cca38d52288d92526220c669efdb | refs/heads/master | 2022-07-25T07:12:31.195672 | 2020-05-22T09:13:52 | 2020-05-22T09:13:52 | 261,978,066 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,792 | py | import numpy as np
import pygame as pg
pg.init()
width = 600
height = 600
canvas = pg.display.set_mode((width, height))
class Person:
def __init__(self, x, y, compartments = 1):
self.pos = np.array([x, y])
self.vel = np.random.random(2) * 2 - 1
self.acc = np.zeros(2)
self.maxSpeed = 5.0
sel... | [
"noreply@github.com"
] | ravisankar712.noreply@github.com |
9a2b83dbf7175667edfd1bdbdcc39fdc38de182f | 0dfcc5e04592062c0a3e80120d3bfc32dd166b76 | /gen_bac_tfrecord.py | 042c81f937144193708b15a9c1c9c96cd7661959 | [] | no_license | nightinwhite/attention_night | b12266a2da81033dbfddbf1328063e7fc9dadaa5 | 245237282e2859b03049ae649ca4cf9aebc426ce | refs/heads/master | 2021-01-19T13:39:12.854013 | 2017-08-23T02:16:20 | 2017-08-23T02:16:20 | 100,852,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,684 | py | #coding:utf-8
import os
import tensorflow as tf
from PIL import Image
import numpy as np
import cv2
import sys
reload(sys)
sys.setdefaultencoding('utf8')
def tst_img(img):
cv2.imshow("tst",img)
cv2.waitKey(0)
cv2.destroyAllWindows()
char_to_label_bac = {
u'君':0,u'不':1,u'见':2,u'黄':3,u'河':4,u'之':5,u'水':6,u'天... | [
"noreply@github.com"
] | nightinwhite.noreply@github.com |
7cc48ee85f34495441b6766c72da1e16011dc1c8 | a30fd3fbb3cc20eec07cd4878214b29ebe89af33 | /Chapter7/task7-5.py | 1a8443e20745c4d682ad20eb67f2625ce675112b | [] | no_license | cmdtvt/R421-python-course | 310cbffe727ea39dc184b4e34d1c73c2a1fde01a | bdf23396bbce31ce97e6d1e74c4e2e48b1ba42b4 | refs/heads/master | 2023-08-16T13:22:02.170134 | 2021-10-10T09:21:06 | 2021-10-10T09:21:06 | 404,047,329 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,241 | py | '''
The last exercise in this chapter continues with the exercise from the last chapter, the calculator. In this exercise, expand the existing code by implementing the following new features: (A) Calculator does not automatically quit when the result is given, allowing user to do new calculations. The user has to selec... | [
"tvtuusa@gmail.com"
] | tvtuusa@gmail.com |
bacf596e1202013a98cc40f7d2940d69b8a2e216 | afa0d5a97925273f7fb0befef697d36020df5787 | /packages/google-cloud-alloydb/samples/generated_samples/alloydb_v1_generated_alloy_db_admin_get_cluster_sync.py | eb296f332c1d78fa23a91559a1674b1100657a4a | [
"Apache-2.0"
] | permissive | scooter4j/google-cloud-python | dc7ae1ba6a33a62a40b617b806ec8ed723046b8b | 36b1cf08092d5c07c5971bb46edda7a9928166b1 | refs/heads/master | 2023-04-14T18:36:48.643436 | 2023-04-06T13:19:26 | 2023-04-06T13:19:26 | 188,338,673 | 0 | 0 | null | 2019-05-24T02:27:15 | 2019-05-24T02:27:14 | null | UTF-8 | Python | false | false | 1,805 | py | # -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | scooter4j.noreply@github.com |
ba83ffc60ad253aed46ec0172ef01d949a01742e | 57ddab24ba7860f8878c689f9fa22b0779d60157 | /categorias/iniciante/uri1051.py | cb688fa9eb809d54eefeb058ecb54ada5c421f65 | [] | no_license | matheusfelipeog/uri-judge | ba1d32e50ad7239b331ad0e1181a1bffc6e61b41 | 0232be52da78fd67261c6d6a74eff3267d423afd | refs/heads/master | 2021-07-03T02:32:13.395829 | 2021-01-29T18:32:35 | 2021-01-29T18:32:35 | 215,845,427 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
salario = float(input())
if 0.0 <= salario <= 2000.00:
print('Isento')
elif 2000.01 <= salario <= 3000.00:
imposto = ((salario - 2000) * 0.08)
print('R$ {:.2f}'.format(imposto))
elif 3000.01 <= salario <= 4500.00:
imposto = (1000 * 0.08) + ((salario - 3000) * 0.18)
pri... | [
"50463866+matheusfelipeog@users.noreply.github.com"
] | 50463866+matheusfelipeog@users.noreply.github.com |
2111e682f882f3aafc271380c846680da7829ba8 | b444692bd50243b75ca6a777dc696950df71e242 | /Anchors/RemoveAllAnchors.py | 521fce0536a33a8a5ac5dc2bf8977eb3bead550f | [
"MIT"
] | permissive | davelab6/robofont-scripts | 7a358a577b891b5e2685806f1eebfc1fb24c47d8 | 2a6d6b2d365d00cb1f2dc7b2afe50ff6a5f6047d | refs/heads/master | 2021-01-18T15:14:53.558768 | 2013-11-23T19:52:02 | 2013-11-23T19:52:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,774 | py | __copyright__ = __license__ = """
Copyright (c) 2013 Adobe Systems Incorporated. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limi... | [
"msousa@adobe.com"
] | msousa@adobe.com |
dcd3654361b5e5399abbe0ea2e240e961a2e7f97 | 628c5ce89ae7d212cd118171cb6ee0787cb01857 | /color_maps.py | 54d2c1693614de9d6ed6033798d9f1aea8badcab | [] | no_license | sbs87/qpcr | c961881fd07c79fff441d2eecbabb67ecc79c9ce | 7c8da4fd5e54d012eddb5c18a043787058be4426 | refs/heads/master | 2016-09-07T18:38:23.147402 | 2013-06-25T20:58:20 | 2013-06-25T20:58:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,313 | py | """Python colormaps demo
includes:
examples for registering own color maps
utility for showing all or selected named colormaps including self-defined ones"""
import matplotlib
import matplotlib.colors as col
import matplotlib.cm as cm
import matplotlib.pyplot as plt
import numpy as np
def register_own_cmaps():
... | [
"steve@stevenbsmith.net"
] | steve@stevenbsmith.net |
9afdfa1a9b972bbdca3bfd354b2ca459f4a04cbf | 9b6bc3f768ec86caf2074141be90262c9662762a | /tests/catalyst/metrics/functional/test_cmc_metric.py | 9c63fa38b2ce05c4c58d594b1c1a73fc454b599b | [
"Apache-2.0"
] | permissive | Podidiving/catalyst | 298dca23e5cf51dda6bbc0a744874ae2c8787bc5 | ac8567dc389fb7a265e3104e8a743497aa903165 | refs/heads/master | 2021-12-03T21:48:48.232619 | 2021-11-03T05:29:19 | 2021-11-03T05:29:19 | 225,822,776 | 2 | 0 | Apache-2.0 | 2019-12-04T08:59:03 | 2019-12-04T08:59:03 | null | UTF-8 | Python | false | false | 8,443 | py | # flake8: noqa
from typing import List, Tuple
from itertools import chain
import numpy as np
import pytest
import torch
from catalyst.metrics.functional._cmc_score import cmc_score, cmc_score_count, masked_cmc_score
EPS = 1e-4
TEST_DATA_SIMPLE = (
# (distance_matrix, conformity_matrix, topk, expected_value)
... | [
"noreply@github.com"
] | Podidiving.noreply@github.com |
d58a8bc255946527fe87ccd38e24f8190773a730 | 86432b51b07eae85712668a8576d4b172220105a | /packages/chrome-ice/tmp/usr/lib/chrome-ice/pyproto/device_management_pb/device_management_backend_pb2.py | cac1ce374ca7567377e9044a072648ee2b4dbb32 | [] | no_license | hfuerst/Reelvdr-vdr2.2-Ubuntu16.04 | e6ddcd50c9f5cf8fe39e63406b08f1e3d6bdd181 | a87c2bf4f4f201d29d06202651a0d0b12f77ae26 | refs/heads/master | 2020-04-07T00:29:04.782748 | 2017-07-11T17:40:06 | 2017-07-11T17:40:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 29,095 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
from google.protobuf import descriptor
from google.protobuf import message
from google.protobuf import reflection
from google.protobuf import descriptor_pb2
# @@protoc_insertion_point(imports)
DESCRIPTOR = descriptor.FileDescriptor(
name='device_managemen... | [
"frank.musbach@web.de"
] | frank.musbach@web.de |
beeba182233a55afed473db2a9ac951a1fb5db8c | 94a8b97049df146e3777aa7244b7bf2037716e8c | /mysite/util_script_import_ibge_Ufs_municipios_populacao_projetada.py | 5f9ecf7c2c5934d8356b01efbba2538180ee7627 | [] | no_license | Mardik/covid19-devopspbs | 8b9987816e58993fd7c8eab4030ab88722020377 | 282ffa2efc5e674014d9062e14e8ed165236d5be | refs/heads/master | 2021-04-11T11:35:26.046693 | 2020-04-14T23:07:51 | 2020-04-14T23:07:51 | 249,016,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 807 | py | import locale
import csv
from covid19.models import UF,Municipio
from datetime import datetime
from django.db.models import Q
#exec(open('util_script_import_ibge_Ufs_municipios_populacao_projetada.py').read())
BASE_PATH = 'dados-externos/Populacao_projetada_2019.csv'
def import_ibge_uf_municipios_dado_populacao_proj... | [
"thiagolsa@gmail.com"
] | thiagolsa@gmail.com |
1a2b36b339ecff0883a453b19da7a5f284bfcb33 | 9de1565e41bc7f7b649d39c78730ac1fafe47738 | /bounder/region/metaheuristics/abstracts.py | 17abf17bbe0b90de5ae72bfd9902679576101d86 | [
"MIT"
] | permissive | terratenney/bounder | 3392a3ed93b67974084fbcfacf390285ccc19f92 | 0c3b69a71145ce3aff6ead0af4c02916972b0465 | refs/heads/master | 2020-06-04T16:11:15.650293 | 2017-07-26T18:21:37 | 2017-07-26T18:21:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | class MetaHeuristic(object):
def __init__(self):
pass | [
"levi.john.wolf@gmail.com"
] | levi.john.wolf@gmail.com |
6372b8149189745fdc654366cf80c4ac81e6f43a | a59ba03b6194dceb81d7e4fa1290c003bc249142 | /20-SEPT-19/Semaphore.py | 6377a1eebb136bc461bf7274b94dc22206ef205f | [] | no_license | reachvedprakash/OS_LAB | 072845043677604d8a292695ff74a5c81845219e | 124bb74706c82a7db0329e7603edde8b5a645c38 | refs/heads/master | 2020-07-05T17:34:10.412069 | 2019-11-15T08:11:29 | 2019-11-15T08:11:29 | 202,714,660 | 0 | 0 | null | 2019-10-25T07:00:59 | 2019-08-16T11:18:43 | C++ | UTF-8 | Python | false | false | 809 | py | #!/usr/bin/env python
# coding: utf-8
# In[7]:
import threading
x = 0
# In[8]:
def increment():
global x
x += 5
# In[9]:
def thread_task(lock,sem):
for _ in range(100):
sem.acquire()
lock.acquire()
increment()
lock.release()
sem.release()
# In[10]:... | [
"reachvedpraksh@gmail.com"
] | reachvedpraksh@gmail.com |
89c15d22026b3b212352abb9c8bcef7689cf72ea | aa494e8bc6bddbe43ad8a04004b69f8f7cf2854c | /get_audio_index.py | e71fc3dd0fa8e6d31f8864aa928e529eaf9a43c9 | [] | no_license | junyamorita1030/speechtotextstream | 16a6d80089ef4e3cade4357967217fbf2567a9c6 | e43518cb84bc5142c34b28c149e72cc44b6c250c | refs/heads/master | 2020-03-31T04:46:02.344065 | 2018-10-07T09:45:49 | 2018-10-07T09:45:49 | 151,918,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 303 | py | # -*- coding: utf-8 -*
import pyaudio
import wave
def main():
audio = pyaudio.PyAudio()
# 音声デバイス毎のインデックス番号を一覧表示
for x in range(0, audio.get_device_count()):
print(audio.get_device_info_by_index(x))
if __name__ == '__main__':
main()
| [
"junyam1030@gmail.com"
] | junyam1030@gmail.com |
0e8add5503c0f19cc83c852cd3de5c7470b2e2ec | 3bfee37d0780ab3663e1424c6fb9833d25901ca1 | /django/week3/portfolio/resume/migrations/0005_auto_20180210_0226.py | 4f285127b7b12d1a36a58e57471c4db2f739bbf9 | [] | no_license | ArjunPadaliya/COMP-805 | 39a304d08c75f8c5746e7ad0b950192d8df29778 | af66da9ce5b3df549d11c6ec5268bb9fc347cbb0 | refs/heads/master | 2021-05-08T22:58:42.507726 | 2018-03-20T14:41:01 | 2018-03-20T14:41:01 | 119,552,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # Generated by Django 2.0.1 on 2018-02-10 02:26
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('resume', '0004_auto_20180210_0202'),
]
operations = [
migrations.CreateModel(
name='Education',
fields=[
... | [
"ap1170@wildcats.unh.edu"
] | ap1170@wildcats.unh.edu |
a5135677f76d08f555511a523ec4ca974fa4de18 | 6c75302f2ab1165fb1bd9707612b9d337512c969 | /Algoritma/wsgi.py | 17a961a11a4b3ab49577f9919a99e8782d476768 | [] | no_license | enghamzasalem/innosoft-django | 59d42d0a9a904d52e096cff59ddd5f17cc4a19b1 | 08b8e81023fcc7450e054807696ae2702aef3611 | refs/heads/master | 2022-09-17T06:39:23.108742 | 2019-08-19T21:22:25 | 2019-08-19T21:22:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for Algoritma 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SET... | [
"softilnyr16@gmail.com"
] | softilnyr16@gmail.com |
1c5bdf7b6fb22522e79be46afc518f7472a7a7a6 | ffd0ff0492c4190097283dcfa1d51de70c84c1d1 | /Misc/python/test.py | 470db1309946306e8e6ea2490ca59ab1f2bd1a94 | [] | no_license | keithbrown/Miscellaneous | c8b6b6db97fb0b077e77d46017f75dfedd14514b | 6d2d44f67fe33fb24674cc8b016df0814cdda753 | refs/heads/master | 2021-01-11T01:30:31.928471 | 2014-06-05T15:37:40 | 2014-06-05T15:37:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28 | py | y = 'hello world'
print y
| [
"levi@roxsoftware.com"
] | levi@roxsoftware.com |
c6b2f7f233ae749bd30af6352d77ddab044b9439 | 70477889f721da253a4ab49a47d5a504458d5818 | /source/Lidar_curb_scan/Single_lidar_curb_scan/vscan_removal_tracking/utils/hot_key.py | 919c945aa30d830126d0eab8ef95bf7d0830cf38 | [] | no_license | iljoobaek/Lidar_curb_detection | af2d359627b2228e7678563a7d05137ef0c52a04 | a410b77eecadfc1fe7584de64c7b7a010999ed75 | refs/heads/master | 2022-08-06T01:34:19.848581 | 2020-05-26T16:29:21 | 2020-05-26T16:29:21 | 191,998,099 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | import cv2
import numpy as np
key_map = {
'interrupt_key': ord('i'),
'continue_key': ord('c'),
'next_step_key':ord('n'),
'save_key':ord('s')
}
class VidHotKey():
def __init__(self, saver = None, img = None):
self.state = 'idle'
self.saver = saver
self.img = img
def vid_h... | [
"manojbhat09@gmail.com"
] | manojbhat09@gmail.com |
1faf17cd1781a8b68701e4f734214ded75ebb7f0 | aef8d3773931ea9931f9db2cc8a24bb3fc05855f | /problem16.py | 820f592ac1a07cb58e561ebb5f8ce55a3b1908ed | [] | no_license | t3chboy/python_workshop | 77389d8eb2dc2ad687e405fdabd666e5bd40e38a | 75334bbb846de6f224d03aa447d7b9294f438dc7 | refs/heads/master | 2020-06-23T03:09:36.337736 | 2019-08-18T10:12:06 | 2019-08-18T10:12:06 | 198,489,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | import os
import time
import sys
import aiohttp
import asyncio
POP20_CC = ('CN IN US ID BR PK NG BD RU JP '
'MX PH VN ET EG DE IR TR CD FR').split()
BASE_URL = 'http://52.14.205.215/flags/'
DEST_DIR = 'downloads/'
def save_flag(img, filename):
path = os.path.join(DEST_DIR, filename)
with open(... | [
"kaushilrambhia@gofynd.com"
] | kaushilrambhia@gofynd.com |
b4f5ffe00fcc9421686197928264fbda0ae6cf14 | d64db60c2cffd9732d2f923d22cf16ee62fb33f7 | /Analetics_py_sql/lexiconMaker/nipostalcodemaker.py | f129184596d5cdd3081e792b0f712bcde3a9892f | [] | no_license | TristanHermant4pm/analyticsPY | 5f47146570e1ebc910fce4bddb5c6f2116a7b58a | 2cd67c2c8e55d870816c411af18508120982ea20 | refs/heads/master | 2020-03-26T05:24:25.762428 | 2018-08-13T09:07:32 | 2018-08-13T09:07:32 | 144,555,497 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,134 | py | import os
import sys
import pyodbc
import string
import re
from collections import OrderedDict
ctListIn = []
ctListOut = []
'''
import codecs
types_of_encoding = ["utf8", "cp1252"]
for encoding_type in types_of_encoding:
with codecs.open(".\\lexicons\\censusTownList.txt", encoding = encoding_type, errors ='repla... | [
"tristan.hermant@u-psud.fr"
] | tristan.hermant@u-psud.fr |
0802931f1b6be864b751e6bba2dcc363d8933f5c | 3aefa0e4106d36a3dfc4a56e686c7a3acc1aabcd | /src/ui.py | d3db21c21b8558e73ae9e5b97c2d1e40b8feb86f | [] | no_license | miguelfAndrade/mancala_game_iart | be1f45acf74773a4819f9fb1f036d45e378966c5 | e203e0b0a1535af225e2ed631ddf2eea9cc73962 | refs/heads/master | 2020-05-22T15:18:34.674135 | 2020-01-22T22:36:40 | 2020-01-22T22:36:40 | 186,405,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | import sys
import time
import math
import tkinter
import mancala
import ai
def main_gui():
root = tkinter.Tk()
root.title("Mancala")
size = w_width, w_height = 800, 600
speed = [2, 2]
white = '#FFFFFF'
board = mancala.init_board(mancala.BOARD_SIZE)
canvas = tkinter.Canvas(root, heigh... | [
"miguelandrade.96.18@gmail.com"
] | miguelandrade.96.18@gmail.com |
9aaa5c64aad7c4b8086e9c0f5c5b5cf18c161a9d | 06a7dc7cc93d019e4a9cbcf672b23a0bbacf8e8b | /2016_schizConnect/supervised_analysis/NMorphCH/VBM/30yo_scripts/03_svm_NMorphCH.py | ddf0b8d658716ee3e6a5800a6a9e9825811f7e0e | [] | no_license | neurospin/scripts | 6c06cd218a5f32de9c3c2b7d1d8bda3f3d107458 | f14a2c9cf2cd7f5fbea767b017c3faf36d170bdb | refs/heads/master | 2021-07-11T22:55:46.567791 | 2021-07-02T13:08:02 | 2021-07-02T13:08:02 | 10,549,286 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,690 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Feb 22 09:44:24 2017
@author: ad247405
"""
import os
import json
import numpy as np
from sklearn.cross_validation import StratifiedKFold
from sklearn.metrics import precision_recall_fscore_support
from scipy.stats import binom_test
from collections im... | [
"ad247405@is222241.intra.cea.fr"
] | ad247405@is222241.intra.cea.fr |
62e1dee7330ac50ccf9663dd18a2701306b66fa2 | 31b5bd2fc8306ff670a34ecebeb1689db13fa11f | /0x0F-python-object_relational_mapping/5-filter_cities.py | da9c1e56f747ad5e795b5dc6fac0ba11687c51c0 | [] | no_license | fortune-07/alx-higher_level_programming | 88bbf7d9948afd04f740292c44da16919954bd31 | 0be342723c6f702ea6cc4a7140091484f132b378 | refs/heads/main | 2023-08-31T12:35:44.289545 | 2021-10-20T09:28:15 | 2021-10-20T09:28:15 | 361,701,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | #!/usr/bin/python3
# Displays all cities of a given state from the
# states table of the database hbtn_0e_4_usa.
# Safe from SQL injections.
"""# Usage: ./5-filter_cities.py <mysql username> \
# <mysql password> \
# <database name> \
# ... | [
"fortuneniguel@gmail.com"
] | fortuneniguel@gmail.com |
c9d19954f5d9de2c97e3ed2d8f73a4a166ae8792 | dd02c3961cd2fb801345c9f3bf212bc07beb2d81 | /tic_tac_toe.py | 0c58c5e80d544b23f10254fb6d20a3f270679408 | [] | no_license | benryan03/Tic-Tac-Toe | b6e7fb511a2ff2fe192118ad3818167f19564229 | f2cf783f3d1bb3f3dae9437f60530653b29725f9 | refs/heads/master | 2022-01-09T21:39:31.578527 | 2019-05-21T15:03:43 | 2019-05-21T15:03:43 | 187,274,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,245 | py | #Imports tkinter module (Used for drawing GUI).
import tkinter
#Sets Root variable (base window) to tkinter.Tk class.
root = tkinter.Tk()
#Sets title of window
root.title("Tic-Tac-Toe")
#Variables for image imports - must be inside Root.
x = tkinter.PhotoImage(file="x.png")
o = tkinter.PhotoIma... | [
"noreply@github.com"
] | benryan03.noreply@github.com |
ae2a4491e45e20f804e4e6339f271af09b072786 | 931a3304ea280d0a160acb87e770d353368d7d7d | /vendor/swagger_client/models/get_characters_character_id_attributes_ok.py | b7705fa3e23be56e5043bffcb69cf65b385f96b8 | [] | no_license | LukeS5310/Broadsword | c44786054e1911a96b02bf46fe4bdd0f5ad02f19 | 3ba53d446b382c79253dd3f92c397cca17623155 | refs/heads/master | 2021-09-08T00:05:26.296092 | 2017-10-24T07:01:48 | 2017-10-24T07:01:48 | 105,143,152 | 0 | 1 | null | 2017-11-03T14:29:38 | 2017-09-28T12:03:19 | Python | UTF-8 | Python | false | false | 9,633 | py | # coding: utf-8
"""
EVE Swagger Interface
An OpenAPI for EVE Online
OpenAPI spec version: 0.6.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from pprint import pformat
from six import iteritems
import re
class GetCharactersCharacterIdAttributesOk(object):
"""
... | [
"cyberlibertyx@gmail.com"
] | cyberlibertyx@gmail.com |
a96cbe274cfcf2f325cbf2fdaecbdbd0a2d78752 | 0dbb5d8cbba0e7b8876721b28f2ac9adbc2d4ae3 | /TechEdison/wsgi.py | 9e8cc6f988ef6c585d5db0a879571b33a243a58d | [] | no_license | vaibhavmathur91/TechEdison | 6c75d7a79911dcec2a546891c3f0e3ee58a15a02 | f1e415dd42c8ca864acba25720ccebd1e5d26a7f | refs/heads/master | 2021-06-12T11:44:50.843187 | 2017-03-06T23:40:43 | 2017-03-06T23:40:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | """
WSGI config for TechEdison 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.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_S... | [
"vaibhav01921991@gmail.com"
] | vaibhav01921991@gmail.com |
181e7b74badb94f84f21f9c5dc0567adfd905621 | 46bef14fee21048a621e55d5b407aeb67f29c2bf | /bot/plugins/location/constant.py | 92673eb6934d39e93d91b16ad7e301bb72cd6c4f | [] | no_license | TheKevJames/jarvis | 2e9357988cb2a2d4994a4b089ea21a07dbb0b2e1 | 145b0185a5b326ea4404fbde44d4b34c6d5604c2 | refs/heads/master | 2020-03-26T15:03:39.690128 | 2018-05-08T06:16:54 | 2018-05-08T06:16:54 | 43,014,879 | 7 | 8 | null | 2018-05-08T06:18:16 | 2015-09-23T17:02:53 | Python | UTF-8 | Python | false | false | 787 | py | import random
def ACQUIESE():
return random.choice(('Check.', 'Very good, sir.', 'Yes, sir.'))
def ERROR_NOT_ENABLED():
return random.choice((
'Sir, this instance is not weather-ready.',
'Sorry sir, this instance is not configured for weather.'))
ERROR_RETRIEVING_WEATHER = 'I was unable to... | [
"noreply@github.com"
] | TheKevJames.noreply@github.com |
7a4edb37df14a576b2126dca28052dce00cc7b7d | b26c1999e8642d710439ba0ce503ed94ed228ac8 | /Python/slicer/release/midasdata.py | f459b7fe8efc6a769fd95538a9737cd52179061f | [] | no_license | JD-TamayoQuintero/3D-Dental | c31070f4897cee93999e0f162bd8884326223a8e | 9e766d6fd7ae5e9b553adbe7c3c1d50d743d25ef | refs/heads/master | 2022-03-15T21:31:14.138745 | 2019-12-04T10:36:01 | 2019-12-04T10:36:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,435 | py | #!/usr/bin/env python
""" Midas NA-MIC data tree release versioning script.
This script can be used to duplicate all the Nightly data on Midas to a new folder named by the release version.
The script does not accept any input arguments. All arguments are to be provided using the option flags. For a list of t... | [
"noreply@github.com"
] | JD-TamayoQuintero.noreply@github.com |
dba98931ab1055fbc8aa7f09f7f007a014124723 | 687928e5bc8d5cf68d543005bb24c862460edcfc | /nssrc/com/citrix/netscaler/nitro/resource/config/lb/lbvserver_dospolicy_binding.py | 465c32d9a481652819921910b414eaf9319e4bd3 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"Python-2.0"
] | permissive | mbs91/nitro | c6c81665d6abd04de8b9f09554e5e8e541f4a2b8 | be74e1e177f5c205c16126bc9b023f2348788409 | refs/heads/master | 2021-05-29T19:24:04.520762 | 2015-06-26T02:03:09 | 2015-06-26T02:03:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,123 | py | #
# Copyright (c) 2008-2015 Citrix Systems, 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
#
# Unless required by applicable l... | [
"bensassimaha@gmail.com"
] | bensassimaha@gmail.com |
15f6bc9256fda61d77493197a7a52077e0e5d151 | 778f2369c6c2fe2093994e0eedbf77df9a2b20d1 | /test/categoryFeature.py | 3261714123ecb019601ff4ee53aac71d281ae387 | [] | no_license | madhumitha27/ResidentMaintenanceTracker | d65e4f3a67764b9f42a6e04021e64c52344e029e | 5bf43819ec60479426dbccdfb3c4d771d832017b | refs/heads/master | 2021-07-12T19:26:31.080227 | 2020-11-16T21:54:33 | 2020-11-16T21:54:33 | 248,668,371 | 0 | 0 | null | 2021-06-10T22:40:25 | 2020-03-20T04:32:24 | JavaScript | UTF-8 | Python | false | false | 1,610 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.support.ui import Select
from selenium.webdriver.common.keys import Keys
class categoryFeature(unittest.TestCase):
def setUp(self):
self.driver = webdriver.Chrome()
def test_blog(self):
user = "instructor"
... | [
"aparabm@gmail.com"
] | aparabm@gmail.com |
568adf917a33a914cba15a49c8c76eec78d9e70c | 8fa8ded3772dd7a124c1bbb91fc109ed2b63574b | /mycelium/apps/data_import/ajax_backends.py | 1db6a810c321f46ba03880b7a3f42cb1ee69194c | [] | no_license | skoczen/mycelium | 3642b0f5e5ea03d609a3e499c7ad68092101dce0 | da0f169163f4dc93e2dc2b0d934abf4f18c18af0 | refs/heads/master | 2020-04-10T09:21:46.893254 | 2014-05-20T02:27:06 | 2014-05-20T02:27:06 | 2,114,887 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,301 | py | from ajaxuploader.backends.s3 import S3UploadBackend
from django.core.files.storage import default_storage
from spreadsheets.spreadsheet import SpreadsheetAbstraction
import time
class DataImportUploadBackend(S3UploadBackend):
def update_filename(self, request, filename):
return "import/%s/%s.%s" % (reques... | [
"steven@quantumimagery.com"
] | steven@quantumimagery.com |
a45fb008d1fd51283765ef6b0e553d81306c6097 | 790edb2db1bc2fdf676a6de080684c2c4f18f013 | /myapp/views/views_spazio_aziende.py | af1e42ff5af1e839445f92a6772707167340169e | [] | no_license | TajinderSingh-1/richiestaTesi | 99c3aa25bfdb7ead59013bdd280dfbcc9c15b9f9 | d58071037edd4b9defedaa3e4a57b93a34b9e338 | refs/heads/master | 2021-08-08T05:06:57.127591 | 2017-11-09T15:43:31 | 2017-11-09T15:43:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,544 | py | from django.shortcuts import redirect, render
from myapp.forms import OffertaForm
from myapp.models import *
def spazioAziende(request):
offerte = Offerta
if request.method == 'POST':
form = OffertaForm(request.POST)
if form.is_valid():
offerta = Offerta()
offerta.desc... | [
"tajisingh07@gmail.com"
] | tajisingh07@gmail.com |
a4687c23319ff1656225fc5c0d8aa5d029be9256 | f9ad08b66c0e87920b55f95eacd465c510272efe | /part_reid/lib/python_layer/reid_layer/data_layer_dfcd_neg20.py | 493bcfbf9f21778512425c968c0b38e8206fae2c | [] | no_license | xianghan228/Clothes_Retrieval | fa09435162eb855ca0fc0d3d74b52ee1dea445b5 | 7c24eed189917625e375f64d8a9bfacc22dd67ba | refs/heads/master | 2020-03-17T17:28:05.266931 | 2018-03-09T12:07:14 | 2018-03-09T12:07:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,346 | py | # imports
import sys
sys.path.insert(0,'/data1/qtang/samsung/part_reid/caffe/python')
import caffe
import numpy as np
import os
from PIL import Image
import random
import time
import pdb
import pickle
#pdb.set_trace()
class DataLayer(caffe.Layer):
"""g
This is a simple syncronous datalayer for training a Dete... | [
"qtang@localhost.localdomain"
] | qtang@localhost.localdomain |
42bdc6a491fc5b9e2281a2f167e8e94f08cee782 | 3da168ce3709b2b9c003c1070f2182b922d63d92 | /sqlitePython.py | 8c3063da34cf8fe5618961059a044d9b3be1c88d | [] | no_license | amjulius1008/general_code | b0af22bdeaf4230eeb4a22a0a48250a6807781e6 | 149dd99928ea0e4f1ac4d6b648153e167a6ba763 | refs/heads/master | 2020-06-23T16:17:47.154708 | 2019-09-20T19:21:44 | 2019-09-20T19:21:44 | 198,676,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,144 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 31 10:41:17 2019
@author: amjuli
"""
def df2sqlite(dataframe, db_name = "import.sqlite", tbl_name = "import"):
import sqlite3
conn=sqlite3.connect(db_name)
cur = conn.cursor()
wildcards = ','.join(['?'] * len(data... | [
"noreply@github.com"
] | amjulius1008.noreply@github.com |
d96f1eff4adca51a25a2bd3e0372c97298959132 | 3cd6c578fcc0444646aa0f6589c82c27afc3955c | /gamifi/migrations/0003_auto_20210404_2230.py | 3be10b5c3353dddf864dc07800cb2e9b2cd38847 | [] | no_license | ArashMAzizi/FitnessFriendsApp | 0715fe41993ee6053b22395f4b1683088b114104 | e6cd51cc407c667830fc7cc40414c36d6118ca6d | refs/heads/main | 2023-05-01T21:04:07.292670 | 2021-05-06T18:44:26 | 2021-05-06T18:44:26 | 368,673,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 671 | py | # Generated by Django 3.1.7 on 2021-04-05 02:30
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('gamifi', '0002_goal'),
... | [
"bvndinh@gmail.com"
] | bvndinh@gmail.com |
da172ccf28fb4b4755f2503a7d12b244ec2007b7 | cbc0ac1c8035a5061cadf5ca68220f53d49f7d8b | /BirdSongToolbox/chunk_analysis_tools.py | baa28b553afc8f0f5781d42520f1487f1e37c6b2 | [
"Apache-2.0"
] | permissive | Darilbii/BirdSongToolbox | b5a9efeaf845e6558a6cc8ea8c517a11f9daac2c | f4853a7f6cb5c4ef0f57e9f346be08f6e153ca65 | refs/heads/master | 2023-06-29T13:57:47.621072 | 2021-08-02T22:15:31 | 2021-08-02T22:15:31 | 80,884,333 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,336 | py | """ Functions for Running Classification and Prediction analysis labeled Chunks of Free Behavior"""
import numpy as np
import scipy
import random
from sklearn.metrics import confusion_matrix
from sklearn.model_selection import StratifiedShuffleSplit
def make_templates(event_data):
"""
Parameters
--------... | [
"darilbii@gmail.com"
] | darilbii@gmail.com |
08495aac6e8e2c709665b0603e0eb999adca7450 | fabe9948b3821e1edf378e167c13c6a6fc351180 | /reminderbot.py | e5cc8adafb5424e24f426c94ae85dd3b3135b534 | [] | no_license | pixelistik/twitter-reminderbot | 90bdac4570c54fcc6564a434d499740999aa55ac | b5bbc79c86005d3d5811c9ce7ab064645fbaace0 | refs/heads/master | 2016-09-06T06:44:39.912399 | 2015-09-20T21:25:23 | 2015-09-20T21:25:23 | 42,602,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,766 | py | import random
import tweepy
import click
def _get_random_quote():
return random.choice(_quotes)
@click.command()
@click.argument("consumer_key")
@click.argument("consumer_secret")
def authenticate(consumer_key, consumer_secret):
auth = tweepy.OAuthHandler(consumer_key, consumer_secret)
try:
url =... | [
"code@pixelistik.de"
] | code@pixelistik.de |
53d7a1c756ba1e532f3b3fc6092768370b3a8b40 | 8eac548c15cdabeb662c9af2ca67994f92c255ee | /词性标注&词性提取/Word_Marking_test.py | 75c73dfd2590d58fbea3ac14a141dd71b9fe05c0 | [] | no_license | yaolinxia/Chinese-word-segmentation | f7de7317509dc7ed53bb40e5a1367206bd36abc1 | 42d619ec838fe2f8c98822b15c69c640972b984e | refs/heads/master | 2021-07-06T19:52:58.916128 | 2019-04-15T14:08:54 | 2019-04-15T14:08:54 | 117,522,537 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,607 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
#1.先分好词,存在一个字符数组里面
#2.遍历字符数组,进行词性标注
import sys
import glob
import os
import xml.dom.minidom
import jieba
import jieba.posseg as pseg
#遍历某个文件夹下所有xml文件,path为存放xml的文件夹路径
#词性标注
def WorkMark(path):
#textCut=jieba.cut(text,cut_all=False)
#词性标注
with open(path, encodin... | [
"18860976931@163.com"
] | 18860976931@163.com |
e306fd798e8a21cad730210f203b60e62fb2c784 | 37e1bedac2fdcc9e6f84d0ed459b7a4154fd385b | /Python 3.8+/Problem 357/main.py | 149457735e7b40a1a47542141a12826b03283dc2 | [] | no_license | RBaner/Project_Euler | e266239371aa0ff7c46c4be8cba2a145cfb87598 | fb2fe0fec3cfd324f9867abf3f1d72fbff4de011 | refs/heads/master | 2022-09-03T17:20:29.535940 | 2022-09-03T00:34:28 | 2022-09-03T00:34:28 | 180,717,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,517 | py | #This code is written by Rohit Banerjee (2020)
#In reference to Project Euler problem 357
import sympy
import time
def pgen(n,show=False):
divisor_list = sympy.divisors(n)
for i in divisor_list[:int(len(divisor_list)/2)+1]:
if show:
print("%d+%d=%d"%(i,int(n/i),i+int(n/i)))
... | [
"rohitbanerje@gmail.com"
] | rohitbanerje@gmail.com |
044c874a51c20972e607717d9b6c841e7fcf315f | 8ffabc789e8083c3d2a793378b03e9473a12d0ab | /lotogame.py | 2289ecd87def6ecb16a08b2438bdfb54ea9f79b3 | [
"MIT"
] | permissive | vv31415926/lesson_11_Lite | 8c2065712bf00a9ce91c153e52b92a61b4bf8fa5 | d58a0d6325dec3fdcc7052bc407f8a6743a7a3ec | refs/heads/main | 2023-08-15T16:01:55.283401 | 2021-10-08T16:41:36 | 2021-10-08T16:41:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,036 | py | '''
0. В проекте ""Игра Лото"" перейти на новую ветку для добавления нового функционала;
1. Написать тесты для проекта с помощью pytest или unittest
2. Определить процент покрытия тестами с помощью pytest-cov:
Пример использования можно найти тут (Coverage.py: Определение объема тестируемого кода): https://sohabr.net/h... | [
"valery31415926@mail.ru"
] | valery31415926@mail.ru |
697aa1456f23bec2ddb47539e96eb929f3db9d54 | bbf475f0648bd8e49c56e8efc9b2f44e1d5a436a | /models/hyperseg_v1_0_unify.py | 6cf82a5ba7d34c94b738f05f081310a23728ef6e | [
"CC0-1.0"
] | permissive | leo-hao/hyperseg | cf212ef7b38723264d92edadfab14f0a7cf636ad | ad2c0582363347c56726a751d2a467e2d895fc7d | refs/heads/main | 2023-08-11T19:46:09.344232 | 2021-09-29T01:53:57 | 2021-09-29T01:53:57 | 410,199,646 | 0 | 0 | CC0-1.0 | 2021-09-25T06:53:31 | 2021-09-25T06:53:30 | null | UTF-8 | Python | false | false | 31,622 | py | import numbers
import numpy as np
from itertools import groupby
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair
from hyperseg.models.layers.meta_conv import MetaConv2d
from hyperseg.models.layers.meta_sequential import MetaSequential
class HyperGen(nn.Module... | [
"ynirkin@gmail.com"
] | ynirkin@gmail.com |
5163fdf45578423513a81f0f7f1f50a3f0e5c675 | dfac1f9def9030c3a87ea800688f52b0e73a7778 | /lab4/bot/tg-bot-main.py | e419be7a93185ddfc06c54e1eb28d13dff498b4c | [] | no_license | 4kix/ml-labs-2nd-term | 8729b3c71afc5bbcb63ec7a06c5c017db1e1a4f4 | f0e71242a1f75934997a0ff071bebfb108eb3184 | refs/heads/master | 2022-04-28T18:00:45.191714 | 2020-04-23T08:50:53 | 2020-04-23T08:50:53 | 253,876,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | import telebot
import constant
import number_recognizer
import keras.backend.tensorflow_backend as tb
tb._SYMBOLIC_SCOPE.value = True
bot = telebot.TeleBot(constant.token)
def process_photo_message(message):
print('message.photo =', message.photo)
fileID = message.photo[-1].file_id
print('fileID =', fi... | [
"falko.ilya@gmail.com"
] | falko.ilya@gmail.com |
f919c9e9ce31b4f2ba4ee925104693ef602a991d | f2b860cd107681925cf58c004001c71a8ec5b2bd | /antspynet/architectures/create_convolutional_autoencoder_model.py | 2bd714ea3d3389ae2bd5ba767fca6522f6261b7c | [] | no_license | zwmJohn/ANTsPyNet | dfb7f5a841bb8506d6c5f809af38937bbc2725f5 | 3bd658a8d8fc6467612a3419f38dfc65895fc679 | refs/heads/master | 2022-04-28T04:37:24.995937 | 2020-05-01T00:27:41 | 2020-05-01T00:27:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,274 | py |
from keras.models import Model
from keras.layers import Input, Conv2D, Conv2DTranspose, Dense, Flatten, Reshape
import numpy as np
import math
def create_convolutional_autoencoder_model_2d(input_image_size,
number_of_filters_per_layer=(32, 64, 128, 10),
... | [
"ntustison@gmail.com"
] | ntustison@gmail.com |
5cbb8adb279ab49cd622f32461c26fcb84275639 | 6d9cfcce19d17da118bc2a882f64b75373a1021f | /projekat/sacuvati/predmet.py | 133f0af909a265a52bd0a437457da5b76def93bc | [] | no_license | ctecdev/OISiURS-2014 | 3e1fc4528b63cd08345d99ad2af6cddc7ae8ef88 | 04c1603d287e216c74cbff60580d5fc2e8b3dd20 | refs/heads/master | 2021-01-17T14:33:08.462342 | 2017-12-28T18:54:47 | 2017-12-28T18:54:47 | 84,091,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 816 | py | '''
Created on 26.06.2014.
@author: Srky
'''
def sacuvatiPredmet(kompanije):
file=open("predmeti.txt", "w")
for kompanija in kompanije:
for objekat in kompanija.children:
for prostorija in objekat.children:
for predmet in prostorija.children:
file.... | [
"ctecdev@gmail.com"
] | ctecdev@gmail.com |
ec4b8692af164801341e212f0d592fea4649da3d | ecc3806d0a417bfcc6d37f9bb5107bf9fa72275f | /osmanager/bin/pyweb/luoyuninfo.py | 8adf30c3e275d224fdaf0f08a10bfa6ad0335ba6 | [] | no_license | luoyun/LuoYunCloud | ef6fa76e8b3a0880392b71d7569b304009041bf1 | ee8fedd988cc39375dda69588c2f7bba1223fbe1 | refs/heads/master | 2021-12-03T05:26:47.656130 | 2021-11-30T13:16:34 | 2021-11-30T13:16:34 | 3,886,020 | 6 | 10 | null | 2013-06-25T14:04:23 | 2012-03-31T14:33:55 | JavaScript | UTF-8 | Python | false | false | 1,407 | py | import sys
import os
import datetime
def get_sysinfo(hostname = None):
"""Get system info, including
$hostname $application $version1 $version2 $curtime"""
if hostname == None or hostname == "":
f = os.popen("/sbin/ifconfig eth0")
s = f.read()
if f.close() == None:
f... | [
"zengdongwu@hotmail.com"
] | zengdongwu@hotmail.com |
c6382167adf6ceb481f50967853db6be6262c66f | 444dc060ba378de939d10e6deacd1eb1a85c57f8 | /004conditionals and booleans.py | 853cfd6c4c83edc8064a242c2d1b12226eb4a954 | [] | no_license | Jaspreetkumar1999/python-series | e238f0679e809548c5c289896ac20f6d28c6346b | fab75c224826aeb25a5001709cb9d3bd3803f82f | refs/heads/master | 2021-05-21T08:28:36.874605 | 2020-04-09T16:49:52 | 2020-04-09T16:49:52 | 252,619,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,722 | py | # language ='java'
# # language='python'
# if language == 'python':
# print('language is python')
# elif language=='java':
# print('language is java')
# elif language == 'javascript':
# print('language is javascript')
# else :
# print('not match')
# python does not have case statements el... | [
"noreply@github.com"
] | Jaspreetkumar1999.noreply@github.com |
deed215af87156414cd9715b12228487362c1a23 | 43d2a73d979ca74bc1dcbcc8b38a86d5e4ebff66 | /static_word_vec.py | 80cb99d0d90ceb9e7b8fb86a2eeea172e24b1e25 | [] | no_license | 786440445/text_match | b0f1db5468f7068605e9ad109e090576b2d5baad | f3408d84b0e3c20e19ed7cf0944ff4ccb1d3a794 | refs/heads/master | 2023-03-27T08:56:16.501874 | 2021-03-25T08:28:28 | 2021-03-25T08:28:28 | 344,845,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,396 | py | #!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''=================================================
@Project -> File :nlp_tools -> static_word_vec
@IDE :PyCharm
@Author :chengli
@Date :2020/11/18 8:36 PM
@Desc :
=================================================='''
import os, sys
import numpy as np
from tqdm im... | [
"matrix@ubuntu.com"
] | matrix@ubuntu.com |
5f31052d82e192faebf57ef775fa436e2b703bba | 43d10f09e999bbcb065d0328a5dd15964f534bb1 | /setup.py | 105d620b86a3f3416c34878da71277947cc191cc | [] | no_license | SERVIR/aqx-india | 6148a43c63e3d92d2c9d14286baa8abfd93e6b0d | 6347e5c426d2a618a0522cf8dee8565be22f494d | refs/heads/master | 2023-01-07T18:50:41.142404 | 2020-11-03T20:32:11 | 2020-11-03T20:32:11 | 296,125,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | import os
import sys
from setuptools import setup, find_namespace_packages
from tethys_apps.app_installation import find_resource_files
# -- Apps Definition -- #
app_package = 'aqx_india'
release_package = 'tethysapp-' + app_package
# -- Get Resource File -- #
resource_files = find_resource_files('tethysapp/' + app_p... | [
"38189387+jsrikishen@users.noreply.github.com"
] | 38189387+jsrikishen@users.noreply.github.com |
aa8b7d91aabaaf25a60c166a664d74ba941f4436 | 24a3a8c46b7c78d6c57aec7badf9b394e3727112 | /guiEinheitAnlegen.py | d57d0e5474bc6ebf7b9988c728f188d0c8624ad2 | [] | no_license | marcelfeige/TrainingPython | 0020f2c106fed01fb77537d3e0c2dd903315d1b5 | d8c1f74dea610776ba765bb9379e2dc48ead2fc8 | refs/heads/master | 2023-06-07T09:16:34.906765 | 2021-07-06T12:10:53 | 2021-07-06T12:10:53 | 383,455,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,278 | py | from tkinter import *
from tkinter import ttk
from datenbankTrainingseinheiten import *
from datenbankUebung import *
from tkcalendar import *
class guiEinheitAnlegen:
def __init__(self, master, tNameDatenbank=None):
self.master = master
self.master.wm_title("Trainingseinheit anlegen")
... | [
"marcel_feige@hotmail.de"
] | marcel_feige@hotmail.de |
3df51616641206faf5ab0d3a8dbc5faafddb1c1b | 2a6fde51d8459ea3b82c6ddcd199b94ee586d416 | /src/writer.py | 3a7be97d1315779446de69a36d4b43d08eed8959 | [
"MIT"
] | permissive | AdamZink/excitation-source-subtraction | c9e91b16f9d2e27bf1dd668ab9ef044abca79730 | efe60f4e479b074732835d6777a257184b8ec5e1 | refs/heads/master | 2021-09-15T00:37:44.973209 | 2018-05-05T15:21:42 | 2018-05-05T15:21:42 | 112,039,299 | 1 | 0 | MIT | 2018-04-10T02:48:16 | 2017-11-25T22:40:23 | Python | UTF-8 | Python | false | false | 1,385 | py | import pandas as pd
import os
import io
import csv
class RowWriter:
def __init__(self):
# self.csv_data = io.StringIO()
# self.csv_writer = csv.writer(self.csv_data, delimiter=',')
self.data_string = ''
self.excel_out_path = None
self.sheet_name = None
self.dataframe = None
def save_row(self, row_stri... | [
"adamzink55@gmail.com"
] | adamzink55@gmail.com |
f8927cbdf465ddbc6764f1d6a2eaf85c885e1f4a | fc9f1521b412e8347674a680ef2fcae22faa8c7c | /tests/supply_E3631A.py | 444322f10b91e018e4a69d114b6a451fdf842aa0 | [
"MIT"
] | permissive | BlancaCC/granaSat_batteries | 625a0b9987c994996c46a338ce45e4d2c1352e48 | 9302feddddc62c1d26ca4faa7684edd0eeb95aa1 | refs/heads/master | 2020-03-22T07:12:41.826162 | 2018-07-24T08:43:26 | 2018-07-24T08:43:26 | 139,685,798 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,427 | py | class SupplyE3631A:
def __init__(self, instr):
if 'HEWLETT-PACKARD,E3631A' not in instr.query("*IDN?"):
raise NameError('Device is not HEWLETT-PACKARD E3631A')
else:
self.instr = instr
def output_on(self):
self.instr.write('OUTP ON')
def output_of... | [
"javier.luzonh@gmail.com"
] | javier.luzonh@gmail.com |
9c12bac03eea6ed28261ea89f8c3810743a52f26 | 2ca88d41f1bb5042338faec50b2af11931db0bdd | /src/gluonts/nursery/tsbench/src/cli/analysis/__init__.py | b939423a365224aa385b570ac9ecec6deacdf291 | [
"Apache-2.0"
] | permissive | canerturkmen/gluon-ts | 2f2d46f9b01f5ee07a51a11e822b1c72c2475caa | 57ae07f571ff123eac04af077870c1f216f99d5c | refs/heads/master | 2022-09-10T23:30:26.162245 | 2022-04-20T12:44:01 | 2022-04-20T12:44:01 | 192,873,578 | 1 | 2 | Apache-2.0 | 2020-08-04T16:58:48 | 2019-06-20T07:43:07 | Python | UTF-8 | Python | false | false | 848 | py | # Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License").
# You may not use this file except in compliance with the License.
# A copy of the License is located at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# or in the "license... | [
"noreply@github.com"
] | canerturkmen.noreply@github.com |
f8e68d69e6ac998232cd090e49d23e78371a7605 | 591609ce57682f83dce867686068bc3cd0f7ed88 | /OJ_Python/OJ_Python_2.7/password_strength.py | 4342bc59fee036c1074b26c91eed9fa2ca973fd6 | [] | no_license | MozhiJiawei/Huawei_OJ | cc5c0f0dc6572762834db9101aec0e4c4c27e9cb | b7c4557778b8b4e804e797d4e6891e0bb4c85e8a | refs/heads/master | 2021-01-12T03:22:03.369992 | 2017-03-17T09:01:13 | 2017-03-17T09:01:13 | 78,201,831 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,873 | py | def get_password_strength(password):
element = {'len': len(password), 'letter_lower': 0, 'letter_upper': 0, 'num': 0, 'symbol': 0}
for c in password:
if str.isdigit(c):
element['num'] += 1
elif str.islower(c):
element['letter_lower'] += 1
elif str.isupper(c):
... | [
"372745456@qq.com"
] | 372745456@qq.com |
7e0f6034cc8f7b8e07658fe390c52352d05802f8 | a8c7653633d9792def25c79e5f76ee411dbe5df4 | /codedigger-env/bin/pyrsa-keygen | fa4cb57f0a50e10213958f5036ee45fa0ad2c49c | [] | no_license | aaradhyaberi07/codedigger | 396a98a9602ee2107e61caf95d114ce6f2449600 | 7637e469e91f4d214cb11959b70000c116e80e26 | refs/heads/master | 2023-02-01T23:03:23.846400 | 2020-12-18T09:48:55 | 2020-12-18T09:48:55 | 322,553,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/aaradhya/Desktop/codedigger/Auth/codedigger-env/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from rsa.cli import keygen
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(keygen())
| [
"aaradhyaberi@gmail.com"
] | aaradhyaberi@gmail.com | |
9d22a0a64c1e33a0c6e89db8524cf7e1ad8c864c | afe00cfd4f01be872b8fecbecc74b59edbd95bd5 | /craigslist/__init__.py | 4da61ec92f3e2777962006a3960690de11a9fdf6 | [] | no_license | SamVarney/craigslist-scraper | c6e760f9267c498059aff40fef32677fa66c09cd | a721639d4db6ed46bda905ed1d0f2b3c4a586a15 | refs/heads/master | 2021-07-08T00:43:58.714903 | 2017-10-05T20:14:54 | 2017-10-05T20:14:54 | 103,089,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,480 | py | import logging
try:
from Queue import Queue # PY2
except ImportError:
from queue import Queue # PY3
from threading import Thread
try:
from urlparse import urljoin # PY2
except ImportError:
from urllib.parse import urljoin # PY3
from bs4 import BeautifulSoup
import requests
from requests.exception... | [
"31087664+SamVarney@users.noreply.github.com"
] | 31087664+SamVarney@users.noreply.github.com |
f569953a3484171990dbe8280d7ddac1f7740dff | 8ca5d6daf0df67ec038be55680d93fc3ba03d5e0 | /Functions/squaring.py | 09f9661afcfa2eb1d279f69c75121c71752dd6b3 | [
"MIT"
] | permissive | Parikshit-njit/Calculator-IS601 | 83071ca63d4f9e0c81c6d6f8e6e5603f4655c839 | 929317871afec437fa9a903d9fe46dcb66da5d60 | refs/heads/main | 2023-06-16T23:16:01.495099 | 2021-07-12T12:53:06 | 2021-07-12T12:53:06 | 383,937,499 | 1 | 0 | MIT | 2021-07-10T18:40:23 | 2021-07-07T22:21:26 | Python | UTF-8 | Python | false | false | 89 | py | class Squaring:
@staticmethod
def squaring(a):
c = a * a
return c | [
"pn24@njit.edu"
] | pn24@njit.edu |
aaf1fe559120d1df56eeea0850d7137de429aede | 130243453c861ff506fdcb5db9067c5a8e170107 | /products/migrations/0011_productmodel_quantity.py | 730a9c9e44b15dcb86d7e803d32c8ac4180ed43b | [] | no_license | DaclynsDesign/Ecommerce_finale | 1c024394f79c2a9f2262e2e2010b61ff05570053 | 6b4707bacc109d62a75f82fd73f0a0ac52b95f91 | refs/heads/main | 2023-01-30T08:00:44.985710 | 2020-12-16T18:11:03 | 2020-12-16T18:11:03 | 319,884,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 500 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.29 on 2020-11-25 14:53
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('products', '0010_auto_20201026_1731'),
]
operations = [
migrations.AddFiel... | [
"daclynsdesigns@gmail.com"
] | daclynsdesigns@gmail.com |
8574fec6568f400b3cb635f5d8caf629219c87ca | 11c211dc48b6b33c2ad2cf0e6e7116ace526594b | /Applications/Voice Controlled Car/import_test.py | 845f3d7de7640abaa763bbc4b5002d4665ff42b4 | [] | no_license | thecloudist/awareness | 1f481187a1e563069338aa68631f3829b0e4ce8f | 5d55adb5921b72a54c30ca8fc235d6f6c09156a7 | refs/heads/master | 2020-09-27T03:03:16.651252 | 2016-10-18T04:38:00 | 2016-10-18T04:38:00 | 67,518,765 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | from gopigo import *
from GpgMovement import *
import sys
from subprocess import call
from time import sleep
# from tts import *
from positioning import Dist_Enc_Tics as d2tics
from transcribe_streaming_thread import *
| [
"salvideoguy@gmail.com"
] | salvideoguy@gmail.com |
29608a73b01cd1662418e4d8be0d8b19444f9bf8 | 45cc3045763d94a2760f3eea713d1760b6c47976 | /models/mlp_classification_layer.py | 159746fd18094fefa60e6cead623980c2be2a492 | [
"MIT"
] | permissive | kiminh/prerequisite-prediction | 464f2d419df71a7b477103cd5e2a535157b30e87 | d45c2f13d5fec62e9177e63296da55aa70b1eb54 | refs/heads/master | 2022-10-02T22:05:56.089267 | 2020-06-04T07:13:05 | 2020-06-04T07:13:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 773 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
class MLPClassification(nn.Module):
def __init__(self, in_features, out_features):
super().__init__()
self.in_features = in_features
mid_features = in_features // 2
self.out_features = out_features... | [
"luogan_62625686@126.com"
] | luogan_62625686@126.com |
6a6d2a6c735e1f1055037d69168ec88e8636d9e5 | c077f907cf703209bc3437f62ac7a64179e98863 | /bxfel/model/prior.py | eeae3b1b2367c74b9322062ef7aed5ae9b789382 | [
"MIT"
] | permissive | mmechelke/bayesian_xfel | 02d370f6a4a706491fa0edd6d594e68c4e74f766 | 9726b08494ef04daa52d95a246cac7e879f26f49 | refs/heads/master | 2021-01-11T16:30:29.923620 | 2017-04-25T09:31:32 | 2017-04-25T09:31:32 | 80,094,097 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,151 | py | import numpy as np
from abc import ABCMeta, abstractmethod
class Prior(object):
__metaclass__ = ABCMeta
@abstractmethod
def energy(self, x):
raise NotImplementedError("Not implemented in Base class")
@abstractmethod
def gradient(self, x):
raise NotImplementedError("Not implement... | [
"martin.mechelke@gmail.com"
] | martin.mechelke@gmail.com |
62afc4696e1e1a0e69a3757d17af7e7131d8fcfb | 4cf97704bf1a3365039e1d87812527eb8080f3b1 | /util.py | de83454a602734bc6b6e3b9271ad1a32590ff017 | [
"MIT"
] | permissive | arun-94/PITM | d92bf4834570fcd089139215433fc07e7ec44500 | 47ac9fcfab89e888a5d021880b5ea81b59ed1d24 | refs/heads/master | 2022-05-14T21:43:31.006798 | 2018-11-13T05:26:07 | 2018-11-13T05:26:07 | 156,999,984 | 1 | 0 | MIT | 2022-03-22T20:44:34 | 2018-11-10T16:35:54 | JavaScript | UTF-8 | Python | false | false | 1,993 | py | from urllib.parse import urlparse
from forms import WordListForm
import re
url_regex = re.compile(
r'^(?:http|ftp)s?://' # http:// or https://
r'(?:(?:[A-Z0-9](?:[A-Z0-9-]{0,61}[A-Z0-9])?\.)+(?:[A-Z]{2,6}\.?|[A-Z0-9-]{2,}\.?)|' # domain...
r'localhost|' # localhost...
r'\d{1,3}\.\d{1... | [
"arunswaminathan94@gmail.com"
] | arunswaminathan94@gmail.com |
d254869df57ee22c857fd1b15c9a63b281581ddb | 5d1121478254bbc6d6778c07281af7920d00c6f8 | /microdrop_utility/dict_as_attr_proxy.py | 7cafc839448e8908a4205977429c39a53f7e6563 | [] | no_license | wheeler-microfluidics/microdrop_utility | cc48bf1e659c52565a09be9891d1ce6b9523c69b | fdc7777404964d660a659dd8819df2480d42a9aa | refs/heads/master | 2021-05-16T02:41:59.863105 | 2017-07-20T14:33:21 | 2017-07-20T14:33:21 | 16,616,067 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,020 | py | class DictAsAttrProxy(object):
'''
>>> d = dict(A=1, B=2)
>>> dp = DictAsAttrProxy(d)
>>> dp.A
1
>>> dp.B
2
>>> dp.C
Traceback (most recent call last):
...
KeyError: 'C'
>>> dp.A = 10
>>> dp.B = 20
>>> dp.C = 100
>>> d
{'A': 10, 'C': 100, 'B': 20}
... | [
"ryan@fobel.net"
] | ryan@fobel.net |
41c74a36d37594b12e4e223ddad17e093507dc9b | 45eb71388fd28ea37fdaab7b29043e81464c222a | /python/hamming/hamming.py | 1f48021f2fa7fbec2879d1a06ae47928b0e9c39d | [] | no_license | jpleyvat/excercism | b08460134975e40e60bd16de66c25c54d4e0d542 | d3dc93013007af68a096792686b538c1962641c1 | refs/heads/main | 2023-05-04T22:15:06.796636 | 2021-05-25T16:37:54 | 2021-05-25T16:37:54 | 370,416,744 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | def distance(strand_a, strand_b):
if len(strand_a) != len(strand_b):
raise ValueError("Strangs must have the same length")
diffs = [strand_a[i] == strand_b[i] for i in range(len(strand_a))]
return diffs.count(False)
| [
"jpleyvat@gmail.com"
] | jpleyvat@gmail.com |
1bb73f9bd1418f1ac34f1152812d381812cc1c38 | 8db20e784e8a35cf24eec1a615627b693ed4ae21 | /DZ_WebBooking/DZ_WebBooking/settings.py | 1c8ee02039aa376bdf5eb6f46d92db5e43694b6f | [] | no_license | alvexs/iu5-web-5sem | 01cbb9d8f0807f6e0aadf17da2cf7097f1f143e3 | 44e9dac05e6391d3c3e1e6de15fb8caac6da029c | refs/heads/master | 2020-09-20T02:10:05.529046 | 2016-12-26T16:58:35 | 2016-12-26T16:58:40 | 67,216,723 | 0 | 0 | null | 2016-09-02T11:31:11 | 2016-09-02T11:21:22 | null | UTF-8 | Python | false | false | 3,317 | py | """
Django settings for Lab6 project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
#... | [
"a.v.ivannikov@ya.ru"
] | a.v.ivannikov@ya.ru |
2c54bc1449c5a2fe6700cc5e6ddd823548ad38f2 | 9d1fbc09b99c979deb9177997e60db7c4ff62c14 | /tools.py | 87759961dfbcf4919793a01ae7521defd18321b1 | [] | no_license | V-Sirivatanapa/Sequence-Classification-with-Conv1D | 2ae4ab8c5d13b1ddf8909de1284156421ef0bd35 | b42c7df03baf87a554900ceb046b6f6356f79396 | refs/heads/master | 2022-11-20T19:05:07.056213 | 2020-07-26T09:28:34 | 2020-07-26T09:28:34 | 282,617,190 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,371 | py | import numpy as np
import pandas as pd
import copy
import matplotlib.pyplot as plt
import seaborn as sns
from sklearn.model_selection import train_test_split
from sklearn.utils import class_weight
from sklearn.metrics import accuracy_score, confusion_matrix
from scipy.interpolate import CubicSpline
import tensorflow... | [
"noreply@github.com"
] | V-Sirivatanapa.noreply@github.com |
d0dcdb18c7dac7250976b62a5d3e226b82d457e3 | 973a5e6995ef4cc6b5457b3aac97756ed3314925 | /single_file_projects/8_PresentParticipleForm.py | cd89775844165abb41b43e9534d45f366d0b80aa | [] | no_license | paulinaJaworska/mini-python-projects | 5d006839ef509b1d5106b118be12cf131810322c | 01745a56e4f6f0e4d4eea4f72a97169d379836f1 | refs/heads/master | 2020-09-07T15:16:44.063093 | 2019-11-10T20:29:43 | 2019-11-10T20:29:43 | 220,824,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,545 | py | import sys
def present_participle():
# creates present participle form from the verb
if len(sys.argv) > 1:
for item in sys.argv[1:]:
try:
word = str(item)
consonants = ['B', 'b', 'C', 'c', 'D', 'd', 'F', 'f', 'G', 'g', 'H', 'h', 'J', "j", 'K', 'k', 'L', 'l', ... | [
"paulinajaworska9@gmail.com"
] | paulinajaworska9@gmail.com |
92d349d1183ad8d98d35f92dfe3999a7489d12fb | 8b1c25efcf88db14f8d545b770e9f745932fef03 | /2D_heat_transfer_FDM/python_validation/src/fdm_heat_validation_utility/__init__.py | 74fdfeab26154f799982e6f2567254726081dccb | [] | no_license | class4kayaker/GPGPU_self_study | d8b11695d89169c11ef8f2c03e4ad9b870a12bb4 | 23b6db522a4f98e6f01a172bb2f8709d6dadc573 | refs/heads/master | 2023-03-20T20:53:54.406684 | 2021-03-23T03:24:38 | 2021-03-23T03:24:38 | 251,442,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 312 | py | """Utilities to validate a FDM implementation based on providing
and checking the error using HDF5 files generated"""
__version__ = "0.0.1"
from .initial_conditions import init_by_name
from .model_utils import FDM_State
from .calculate_diff import FDM_Diff
__all__ = ["init_by_name", "FDM_State", "FDM_Diff"]
| [
"class4kayaker@gmail.com"
] | class4kayaker@gmail.com |
e69bdbc314fdffa129309e8dfa440b4d6dfdaef4 | 7942f22ff5b5b3ff1882492cc4d558f0d3640c5d | /main.py | 08f064901d7ac92ae2840c0e78c337179c95703f | [] | no_license | naka345/car_number | f886691155c17440051c2200003232accdd8c940 | c82af3fa878558e2420904a20d057778836b586f | refs/heads/master | 2022-10-26T14:45:58.590219 | 2019-09-23T13:11:03 | 2019-09-23T13:11:03 | 271,181,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,048 | py | import numpy as np
import pandas as pd
import re
import glob
import os
import sys
path = os.path.join(os.path.dirname(os.path.abspath("__file__")), 'keras_yolo3/')
sys.path.append(path)
from PIL import Image
from my_yolo import MyYOLO
from utils import PlateUtils
myYolo= MyYOLO()
pu = PlateUtils()
columns = ["lu_x","... | [
"naka345@naka345noMacBook-Air.local"
] | naka345@naka345noMacBook-Air.local |
491429f9b6b4c991742a818ea2264a44a4ce7e04 | 5506eeee48ed37c23693621c34815f7c1116760d | /node_modules/mongodb/node_modules/mongodb-core/node_modules/kerberos/build/config.gypi | 10f73ae526e8063fee0ca98b38f72410f444e94e | [
"Apache-2.0"
] | permissive | BereniceFang/thrush | 24f74b115c9be66ac4eab5054bf604d67fc0b4df | 26ec38a113fb6907f19f9aa737aefa2816a10efc | refs/heads/master | 2021-01-21T01:02:40.854111 | 2015-06-06T06:27:34 | 2015-06-06T06:27:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,779 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 1,
"host_arch": "x64",
"icu_data_file": "icudt54l.dat",
"icu_d... | [
"wangdong5@xiaomi.com"
] | wangdong5@xiaomi.com |
afa31021cdfa59468182052566b74556a996eae1 | fa0ad49b2f2b1dbd61b056f1d48e5feab0117889 | /accounts/migrations/0029_remove_asset_name.py | 312d03bc5c2a57e9999a50e37f32bf1d2e9b8567 | [] | no_license | jimmyzhoujcc/salmon | dd88ab19af3282aa228fd9293f7d9c251f5ae591 | 4201d20342a29dc056593f04459f349f85db3d16 | refs/heads/master | 2022-12-16T10:02:02.068677 | 2018-04-21T07:00:23 | 2018-04-21T07:00:23 | 130,444,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 391 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2018-03-05 04:18
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('accounts', '0028_auto_20180305_1215'),
]
operations = [
migrations.RemoveField(
... | [
"jimmyzhoujcc@gmail.com"
] | jimmyzhoujcc@gmail.com |
177888ef3e7a8b71ade2f3f2e6cb44e9e5367037 | 6977cb5feedcdd818852d5fd4c674dc822420230 | /fxapom/pages/fxa_test_user.py | 447c5858f2dff2814e1d011cf0eb3ea7927d1fdf | [] | no_license | AndreiH/fxapom | b5e2594ab86a0837922dca3ce1888f9e1162db43 | 60ff612d5ed9cfd6104a9101b6e9f46aa79456b7 | refs/heads/master | 2016-09-05T17:48:39.423399 | 2014-11-20T17:21:44 | 2014-11-20T17:21:44 | 26,481,076 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | #!/usr/bin/env python
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
import os
import subprocess
from user import MockUser
class FxaTestUser:
"""A base test cl... | [
"andrei.hutusoru@softvision.ro"
] | andrei.hutusoru@softvision.ro |
201a03340d5c71b5268d436ea84dedac5c148f9c | 3d8318d79f1efcfe75fd0e91be45f00f0380163a | /Packs/TruSTAR/Integrations/TruSTAR_V2/TruSTAR_V2_test.py | 8ef5830123f3f71781f81528fca26b84303d61c3 | [
"MIT"
] | permissive | nicoloereni/content | 1b75efb50531c3aeb2319b4fe2235ca6d23e8580 | ddb88044c5b39a17894dd13e7ae260d9854afc30 | refs/heads/master | 2023-08-15T11:05:03.321368 | 2020-07-07T11:06:40 | 2020-07-07T11:06:40 | 277,815,390 | 1 | 0 | MIT | 2020-07-07T12:51:13 | 2020-07-07T12:51:12 | null | UTF-8 | Python | false | false | 16,003 | py | import pytest
from TruSTAR_V2 import TrustarClient, Utils
import trustar
from trustar.models.indicator import Indicator
from trustar.models.enclave import EnclavePermissions
from trustar.models.report import Report
from trustar.models.intelligence_source import IntelligenceSource
from trustar.models.phishing_submissio... | [
"noreply@github.com"
] | nicoloereni.noreply@github.com |
4ec91989eed11e9fe7f3579a66130f297be08e11 | 2d4ca6dc3a87453bc8a5dadb45402c34ae02b441 | /pylights/device/switch.py | 26ae4a504e96536895d79be2e6ec1673ad739e6e | [] | no_license | sthomen/pylights | 85c86d5681f55e0a285cb0de56194c53997fc6c3 | ea60f061e03724b6440e7c2e6de8aacce434db6d | refs/heads/master | 2021-01-12T16:28:15.407420 | 2020-11-12T15:05:30 | 2020-11-12T15:05:30 | 69,154,321 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # vim:ts=4:sw=4:
from tkinter import *
from .device import Device
class Switch(Device):
def __init__(self, parent, title="Switch"):
super().__init__(parent)
self.label=Label(self, text=title)
self.label.pack()
self.on=Button(self, text="On", command=self.on)
self.on.pack(side=LEFT)
self.off=Button(self,... | [
"duck@shangtai.net"
] | duck@shangtai.net |
54e4fa82e7cacc8e802c9e7e3a89c7c75f98bce2 | 8fe831010ca1e463d33c53a57e985cec67db2e7a | /config/settings/local.py | b2ec1d341b1a8de3779a3e53fa778d874d859c9c | [
"MIT"
] | permissive | andresbv0620/carros | 7df0f53ed194fc32adadb9586fb618f5d228bb5d | 206ba1812fb2c98c1e652276e39cdce2b82860a6 | refs/heads/master | 2020-04-15T01:33:52.501887 | 2016-09-06T04:29:57 | 2016-09-06T04:29:57 | 61,994,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,344 | py | # -*- coding: utf-8 -*-
"""
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bool('DJANGO_DEBUG', default... | [
"andresbv0620@hotmail.com"
] | andresbv0620@hotmail.com |
f560c25459fe8731edd4ca170e93db28fb5e8adf | 096c38cc967a164a31d5f18a2c12b391b382754e | /Analysis/Analysis_Act_vs_t0.py | 5b1a83b46d36b3a4b24546a269f9b4b55d9ef8b6 | [] | no_license | SmoothCB/pyUrns | ff0b3398101ea60e9303e3ed21d9aeeab9bab7d7 | 171ffaa76b0b9f2ab81456a601921691cc97182e | refs/heads/master | 2023-03-18T14:26:48.683658 | 2019-11-02T10:11:02 | 2019-11-02T10:11:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,125 | py | import os, sys,gzip
import matplotlib
matplotlib.use("Agg")
import matplotlib.pyplot as plt
import numpy as np
IDir = sys.argv[1]
ODir = sys.argv[2]
if True: #gzipped files...
Apri = gzip.open
else:
Apri = open
Files = sorted(os.listdir(IDir))
nFiles = len(Files)
Dat = {}
eve_time = np.zeros(nFiles)
NEve... | [
"enricoubaldi@gmail.com"
] | enricoubaldi@gmail.com |
74839d9264baf7b7925f1bee6d71589799100930 | a05d2cff839815635b474220d066f6881094492c | /the_last_figure.py | 6b36edb98e7cb905fdb6fd462ded5ced5c308b6d | [] | no_license | Assessor/Phytnon-Coursera | d629387f475e3c0d24247c5a10a29f6c4fb31b17 | 68223cc5892e5050a2023414d5df0db071913714 | refs/heads/master | 2021-01-25T01:21:31.788820 | 2018-03-28T18:48:14 | 2018-03-28T18:48:14 | 123,308,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | '''
Дано натуральное число. Выведите его последнюю цифру.
'''
num = int(input())
print(num % 10)
| [
"ivan.maltsev78@gmail.com"
] | ivan.maltsev78@gmail.com |
f6ed94fa98589044a6343a7ce1fd473f8b4814d2 | 8786cfb45c92aaa7af27b7140797d790e1b1f8ec | /dymos/transcriptions/runge_kutta/components/test/test_rk_continuity_comp.py | 949ed6f041a4fb7e3b898aac1d590ed3ff055e4a | [
"Apache-2.0"
] | permissive | daoos/dymos | 32881f8ff6ec9407c87d2f1e3cc6e169a79bcf9f | 584cc6afe77585b73e48c23754099b603e13ff0f | refs/heads/master | 2023-02-25T20:38:35.684174 | 2021-02-05T21:06:18 | 2021-02-05T21:06:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,217 | py | import unittest
import numpy as np
import openmdao.api as om
from openmdao.utils.assert_utils import assert_near_equal
from openmdao.utils.testing_utils import use_tempdirs
import dymos as dm
from dymos.transcriptions.runge_kutta.components.runge_kutta_state_continuity_comp import \
RungeKuttaStateContinuityComp... | [
"noreply@github.com"
] | daoos.noreply@github.com |
73873c98659273917bae3e7d6262e347825dd1ea | 05ed5efbed8e2f68053e1f2bfb934145ff9c7a65 | /speech_recognition.py | 3a19ea930dd924f05419782ba75efecbad79c36f | [] | no_license | AljonViray/RobotDog | 20a7b508ccf1eb148b1dc4432a810a9bedae09e6 | cfcc2b19cddc0c944f7e5b071b4e2d5e3327fc25 | refs/heads/main | 2023-04-21T03:30:23.840899 | 2021-05-12T21:51:10 | 2021-05-12T21:51:10 | 329,702,901 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,192 | py | # Written by: Alexandra Zhang Jiang
# Guide: pypi.org/project/SpeechRecognition/
# Source Code: Anthony Zhang (Uberu) in github
import speech_recognition as sr
from led_lights import *
# obtain audio from the microphone
r = sr.Recognizer()
while(True):
with sr.Microphone() as source:
... | [
"noreply@github.com"
] | AljonViray.noreply@github.com |
7b1bae4103e32687a123aeebfa23414fa32490d3 | 749de43379dced8ad1c542fecf95bb09ae37da5a | /item/migrations/0002_auto_20160214_1428.py | 095be8e0aedc37eedf9a85a63e7c13cea8c57d4a | [] | no_license | GregoryBuligin/example_django_rest | c03ac3ac8b254f3f2357cf523eba6c9a84d000fa | 1de26df733531bd61c84bffed2abf1f3a7eb2935 | refs/heads/master | 2021-01-10T17:41:33.542394 | 2016-03-06T16:00:24 | 2016-03-06T16:00:24 | 53,249,271 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.2 on 2016-02-14 14:28
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('item', '0001_initial'),
]
operations = [
mi... | [
"gri9996@yandex.ru"
] | gri9996@yandex.ru |
d1778b0fca2c668342e5496525f847e39c73da8a | 65b25c8b9613893721735b392f566c02c6b4a526 | /old docs/oehfu.py | fdcf37e5650133a3182e88fe13d4a90bb1aecc0f | [] | no_license | micahsmith1/ETL-Project | a712f2478dead07e3b8f3654044cd7ede3101c9c | 94b1e10fd1cc36ec2d9ad2e071bfcedb7fcd3fb9 | refs/heads/main | 2023-02-04T19:28:18.521358 | 2020-12-10T03:01:55 | 2020-12-10T03:01:55 | 317,714,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from flask import Flask, render_template, redirect, jsonify
from flask_pymongo import PyMongo
import scrape
from sqlalchemy import create_engine
import sqlalchemy
| [
"miyshmiysh@Miyshaels-MBP.attlocal.net"
] | miyshmiysh@Miyshaels-MBP.attlocal.net |
94ef7ad99668a3d0c890a8be2fd256bf28ab9194 | 1b8530ef1c108e098edfa3755e96824b31d4a2ad | /scripts/fixup_recommender_v1beta1_keywords.py | c0fe44525fc4175047ea2372ca698f42c4445c7e | [
"Apache-2.0"
] | permissive | renovate-bot/python-recommender | 4b3d0b9e0332eab0f71bd044a6832b67fe6827fa | d0ff05f566d2a7bfe6c9f403252a833fe4bb776b | refs/heads/master | 2023-06-08T00:27:33.316110 | 2021-08-18T13:40:32 | 2021-08-18T13:40:32 | 239,139,952 | 0 | 0 | Apache-2.0 | 2020-02-08T13:52:09 | 2020-02-08T13:52:08 | null | UTF-8 | Python | false | false | 6,468 | py | #! /usr/bin/env python3
# -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | [
"noreply@github.com"
] | renovate-bot.noreply@github.com |
ebbfa4ce3921743a2cac5d388e06a808086b00de | 71cc62fe3fec8441794a725b7ce3037dc2723107 | /ifreewallpapers/apps/profile/views/profileviews.py | 71d4bc4644c89e4257d2ab7d6120ca761ceb5375 | [] | no_license | tooxie/django-ifreewallpapers | bda676dc5a6c45329ad6763862fe696b3e0c354b | 75d8f41a4c6aec5c1091203823c824c4223674a6 | refs/heads/master | 2020-05-21T12:50:36.907948 | 2011-01-19T04:28:33 | 2011-01-19T04:28:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | # coding=UTF-8
from profile.models import Profile
# from profile import settings as _settings
from utils.decorators import render_response
to_response = render_response('profile/')
# from django.contrib.auth.decorators import login_required
from django.contrib.auth.models import User
# from django.core.urlresolvers i... | [
"alvaro@mourino.net"
] | alvaro@mourino.net |
742c4ddf5eaa9d24d8ab85cf042455635e024227 | ff692d927c95f7337339599d523f986f720449f5 | /plugins/init.py | 692fec3901386220bb48bf4cea4ae5a20c1c2897 | [] | no_license | mwesterhof/pyjeeves | de567966636954aed7d88a5d51e74df85feeaba3 | 46b35f56056603330f7636a745e13fa045c884f1 | refs/heads/master | 2022-12-16T11:11:06.276555 | 2019-08-09T09:10:21 | 2019-08-09T09:10:21 | 296,265,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 268 | py | import os
from plugin import BasePlugin
class Plugin(BasePlugin):
'''
Initialize an HQ in the current directory
'''
def run_command(self, args):
print('creating jeeves headquarters in {0}'.format(os.getcwd()))
os.makedirs('.jeeves')
| [
"m.westerhof@lukkien.com"
] | m.westerhof@lukkien.com |
8e021335ee2eff39517bd3888f2a9effb212d25e | cc95732b845a31ea51dc58fb00f0a7c8d7c083dc | /Trabalho 5 - Leitura de arquivo PLY/Main.py | 0ee57835dc48e4c3a86207281de11d5b269296b2 | [] | no_license | BernardoPLPSO/Computacao-Grafica | 2cffc291e2c265651279b1ed5385b5c039e2148a | e69f6ac3bcc09e9f705a68e9d41cc360fcd8f2c4 | refs/heads/master | 2020-05-02T10:37:37.481995 | 2019-07-09T02:00:43 | 2019-07-09T02:00:43 | 177,902,226 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | from OpenGL.GLUT import *
from OpenGL.GLU import *
from OpenGL.GL import *
from PLYFileLoader import *
def display():
global obj
glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
glRotatef(2,1,3,0)
glCallList(obj.gl_list)
glutSwapBuffers()
def timer(i):
glutPostRedisplay()
glutTimerFunc(5... | [
"36808813+BernardoPLPSO@users.noreply.github.com"
] | 36808813+BernardoPLPSO@users.noreply.github.com |
eeb6eb58ee42c5bc5f72743af750f3d566f3361e | aaa204ad7f134b526593c785eaa739bff9fc4d2a | /tests/providers/amazon/aws/hooks/test_glacier.py | 4ed3f6aaa2e24f18b4e5a28d34007275140c31de | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | cfei18/incubator-airflow | 913b40efa3d9f1fdfc5e299ce2693492c9a92dd4 | ffb2078eb5546420864229cdc6ee361f89cab7bd | refs/heads/master | 2022-09-28T14:44:04.250367 | 2022-09-19T16:50:23 | 2022-09-19T16:50:23 | 88,665,367 | 0 | 1 | Apache-2.0 | 2021-02-05T16:29:42 | 2017-04-18T20:00:03 | Python | UTF-8 | Python | false | false | 5,075 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"noreply@github.com"
] | cfei18.noreply@github.com |
3d3e8fcf087d8de0e65fbdcaf9fe9d927cb76013 | 177de5863feb6d48d8cc686fe788f5f4c803d9dc | /Functions.py | 3fedef9bfd85a045a3142a454a27ff0bc0100462 | [] | no_license | elena23sarov/I_want_to_be_an_Artezio_employee | 1798750388386f2ace40a01f2809d40c5b2bc540 | c4d3c1915cbba2d24ba06bef2876761f876e0c86 | refs/heads/master | 2020-06-15T18:54:23.163814 | 2016-12-26T08:14:01 | 2016-12-26T08:14:01 | 75,269,668 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,934 | py | """Functions - zip(), list comprehensions."""
def zip_list(*args):
"""Do the same as function zip() does."""
zipped_lists = []
min_len = min(len(arg) for arg in args)
for j in range(min_len):
elem = []
for arg in args:
elem.append(arg[j])
zipped_lists.app... | [
"noreply@github.com"
] | elena23sarov.noreply@github.com |
8992bd4abb48df9497bbf3ae5f4afe99f571a053 | e4545ace83d22cb9e49a5325a7847eaff94bb801 | /0409/0409/jimmy/apps.py | 25e2352046b08e0949fb5d09537330cad6ed6eb7 | [] | no_license | MingHuangZheng/JerryHW | 60f566323b8dd2a94b7b7069b1d8d6b43ef13b82 | 2c2f838bcb03a5147e75aa6cb6fae99d48acdc67 | refs/heads/master | 2022-11-23T20:20:54.116273 | 2018-05-25T14:29:49 | 2018-05-25T14:29:49 | 124,842,079 | 0 | 1 | null | 2022-11-03T19:51:43 | 2018-03-12T06:14:06 | Python | UTF-8 | Python | false | false | 90 | py | from django.apps import AppConfig
class JimmyConfig(AppConfig):
name = 'jimmy'
| [
"noreply@github.com"
] | MingHuangZheng.noreply@github.com |
0a6bf67bbb3f6363667bff9f7ddbf631bd5bb554 | 40d9992e4f516ecd9914a3b3f998b0563f4fcc53 | /ansys/mapdl/core/mapdl_console.py | eeafff6a9b7223afa8e795cf6d7fa660f5c39c66 | [
"MIT"
] | permissive | AdrlVMA/pymapdl | 4f8d38626e49ef2f8d091901e916ed6c98eee503 | 43325cfcdfb8f7fa3e0fd59bf8a02afed72e6988 | refs/heads/master | 2023-03-31T15:57:25.477257 | 2021-03-27T20:12:16 | 2021-03-27T20:12:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,026 | py | """Module to control interaction with an ANSYS shell instance.
Used when launching Mapdl via pexpect on Linux when <= 17.0
"""
import os
import time
import re
# from ansys.mapdl.core.misc import kill_process
from ansys.mapdl.core.mapdl import _MapdlCore
from ansys.mapdl.core.errors import MapdlExitedError
ready_item... | [
"noreply@github.com"
] | AdrlVMA.noreply@github.com |
e28c324b92c57e76fe118f4191f692caec54dda4 | 11fcc56eaefbc994a585bcbdac3ab11b5158f3d8 | /Programming a Robotic Car/hw3-6.py | d4a3b92218cc958129fd9472003d6906457a8b99 | [] | no_license | mstamboroski/Udacity_Projects | 1c6a81e84cc1fbf1a4fbc3e4e46f6b84b9d38e5c | 9c9340ad1938188e901ff17680b2c97e95c839c6 | refs/heads/master | 2021-01-19T05:59:33.059047 | 2016-08-03T00:09:21 | 2016-08-03T00:09:21 | 64,800,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,903 | py | #-------------------------------------------------------------------------------
# Name: module1
# Purpose:
#
# Author: Maycon
#
# Created: 11/03/2012
# Copyright: (c) Maycon 2012
# Licence: <your licence>
#-------------------------------------------------------------------------------
#!/usr/bin/... | [
"mstamboroski@gmail.com"
] | mstamboroski@gmail.com |
59655e6a2e6c1bf1df975866337b053b89e1ae57 | 111866dd2150170e90e3717df008aa703d7ef30c | /filemanager/domain/__init__.py | 7f428c6590b0064d5266fb7018c0cdcc07f789b4 | [] | no_license | arXiv/arxiv-filemanager | 106c572a6551445a2109c279ce086b7c96a0bcd5 | dfb71a40125324b1c1f4eb865c84cd9d2e512e6c | refs/heads/develop | 2023-04-18T09:45:35.338067 | 2020-03-09T14:59:19 | 2020-03-09T14:59:19 | 113,456,994 | 5 | 6 | null | 2022-12-08T05:50:07 | 2017-12-07T13:55:34 | PostScript | UTF-8 | Python | false | false | 388 | py | """Core concepts and constraints of the file manager service."""
from .uploads import UserFile, Workspace, IChecker, SourceLog, SourceType, \
IStorageAdapter, SourcePackage, ICheckableWorkspace, Readiness, \
Status, LockState
from .file_type import FileType
from .uploads import ICheckingStrategy
from .error im... | [
"brp53@cornell.edu"
] | brp53@cornell.edu |
7adeb154143a4cfd6b5b6ee2b93edaf9c86afaa2 | b526aecc3aeb35c0931339ede80397f8f1561fbc | /src/dascasi/__init__.py | b262c04aa7f3b2df6609d02475bf132c1456c87d | [
"Apache-2.0"
] | permissive | space-physics/dascasi | 30e021976529dfc4072ea96181db8d9d1921a07c | 4d72aa91e471a495566044c3fc387344dd12461f | refs/heads/main | 2023-04-17T09:24:22.325605 | 2023-03-21T02:18:44 | 2023-03-21T02:30:15 | 51,016,067 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | # Copyright 2023 SciVision, 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
# Unless required by applicable law or agree... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
e726984d4019bc6974ee4b2702b243d18c0669f7 | 73758dde83d1a1823c103e1a4ba71e7c95168f71 | /nsd2006/devops/day02/local_mail.py | 3533d97f07484696810b548f9f0931ac688dde15 | [] | no_license | tonggh220/md_5_nsd_notes | 07ffdee7c23963a7a461f2a2340143b0e97bd9e1 | a58a021ad4c7fbdf7df327424dc518f4044c5116 | refs/heads/master | 2023-07-02T01:34:38.798929 | 2021-05-12T08:48:40 | 2021-05-12T08:48:40 | 393,885,415 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | from email.mime.text import MIMEText
from email.header import Header
import smtplib
# 准备邮件, plain表示纯文本
message = MIMEText("python local email test.\n", 'plain', 'utf8') # 正文
message['From'] = Header('root', 'utf8')
message['To'] = Header('zhangsan', 'utf8')
message['Subject'] = Header('py test', 'utf8')
# 发送邮件
smtp ... | [
"zhangzg@tedu.cn"
] | zhangzg@tedu.cn |
a08a315424fe3ec0a52037d139af8281fff9e7c5 | aa6d030ca75983b097f9eac3acc98023f040dc1b | /ex2_1.py | cc72045b45194a756c618c0cb94ec35294200e90 | [] | no_license | twr14152/Bottle_stuff | 868771754b445cd7256572133f17041d0d6fc806 | 8a594dda6b0f92b9aed74201da525d0bce30dc47 | refs/heads/master | 2022-09-22T12:33:09.220737 | 2020-06-05T01:15:13 | 2020-06-05T01:15:13 | 269,496,084 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 250 | py | from bottle import redirect, run, route
@route('/')
def index():
return 'Please login'
@route('/restricted')
def restricted():
#authenticate func
#if it fails rediect
redirect('/')
run(host = '0.0.0.0', port = 8080, debug = True)
| [
"twr14152@gmail.com"
] | twr14152@gmail.com |
169519835ac47d886105ad315fc37451bd6ff3d2 | c226af28b382c8b37ea2f00ce87fa3ed467fb5d9 | /022 hackerrank - .discard, .remove, ,pop/main.py | 33d337df25c14133788c45deb0de20000fcc5909 | [] | no_license | JoeSeff/hackerrank-python | 07a3ed8be65069eb323dd15c2e605f9ac7a68f37 | f304804cad95828898bd48db5e582ba8a21e0530 | refs/heads/master | 2022-07-19T06:21:48.743411 | 2020-05-23T00:44:00 | 2020-05-23T00:44:00 | 266,234,702 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 585 | py | set_size = int(input()) #useless
main_set = set(list(map(int, input().split(" "))))
op_count = int(input())
for x in range(op_count):
try:
# do something
op_string = input()
if 'pop' in op_string:
main_set.pop()
elif 'discard' in op_string:
index = int(op_str... | [
"maxwellandlynx@gmail.com"
] | maxwellandlynx@gmail.com |
d00743937cab44b9afa3346ef34b5568ac1d46f9 | cc37219d1f9f30ba67bbaee3f394a308c5698f51 | /brewery/ds/elasticsearch_streams.py | e7182300a32a0603489c4008baf4d3ae98a024ad | [
"LicenseRef-scancode-saas-mit",
"MIT"
] | permissive | smoothdeveloper/brewery | 5afecb8bd97780255b51d96432bd7f085db2c9a7 | 2f602fc7db22f53ff7ac1a8143981aac46d2c254 | refs/heads/master | 2021-01-18T07:53:47.091013 | 2012-04-14T22:01:11 | 2012-04-14T22:01:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,242 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import base
from brewery import dq
import time
from brewery.metadata import expand_record
try:
from pyes.es import ES
except ImportError:
from brewery.utils import MissingPackage
pyes = MissingPackage("pyes", "ElasticSearch streams", "http://www.elasticsearch.... | [
"alberto@ingparo.it"
] | alberto@ingparo.it |
aacc2ade3e3b635267e0895250241964852a07f3 | 51b20543e5ed606636bcde9fba329e5fa948de2e | /communityprofiles/census/remote_file.py | 2bab92682c5bab5ea49d416570d119d3a9aaa99d | [
"MIT"
] | permissive | 216software/Profiles | b821112225e8522b7b558cab87ae1c12c68c653b | 651da880a3d4295243205bdae4de88504edc91de | refs/heads/dev | 2023-03-16T04:49:01.389186 | 2023-03-09T17:04:04 | 2023-03-09T17:04:04 | 59,139,518 | 3 | 0 | null | 2016-05-18T18:02:53 | 2016-05-18T18:02:53 | null | UTF-8 | Python | false | false | 3,612 | py | # for RemoteFileObject
from os import SEEK_SET, SEEK_CUR, SEEK_END
from time import time
from datetime import timedelta
from urlparse import urlparse, urljoin
from cStringIO import StringIO
from httplib import HTTPConnection
from urllib import urlopen
from zipfile import ZipFile
from itertools import izip
class Remot... | [
"asmedrano@gmail.com"
] | asmedrano@gmail.com |
667c8b4b904d7c226e66d67f7273f4a22805337a | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_27051.py | 21e1599a8f2a20678ec565a2b8443285bc4a4d16 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | # Matplotlib legend relative to figure in multiplot
matplotlib
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
7058f2f37989ff337436d6ecf89c51ed574d82ee | 7f33c02743fbfd18726ffef08924f528354372dd | /Python_Projects/python3_selfstudy/priklady_z_knihy/k04/digit_names.py | 1167be7a4ec6d9440194cb8be9928866a345010e | [] | no_license | zabojnikp/study | a524eb9c2265a73e1db0b5f0e76b359c123a397b | 43424bfc6641cd8fa13ab119ce283fb460b4ffc1 | refs/heads/master | 2020-04-06T14:21:55.786353 | 2018-11-27T22:10:48 | 2018-11-27T22:10:48 | 157,538,244 | 0 | 0 | null | 2018-11-27T22:10:49 | 2018-11-14T11:24:20 | Python | UTF-8 | Python | false | false | 1,390 | py | #!/usr/bin/env python3
# Copyright (c) 2008-9 Qtrac Ltd. All rights reserved.
# This program or module is free software: you can redistribute it and/or
# modify it under the terms of the GNU General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) an... | [
"zabojnikova.petra@gmail.com"
] | zabojnikova.petra@gmail.com |
267e6ab9cbcd602600329dc5b581c85af97604e9 | 0043ff2759ea31711c80483ed2ed87f2bef013b0 | /magic/migrations/0014_auto_20190512_2007.py | 7d5cae395b49e3054cad476b1906586950573462 | [] | no_license | ialame/djangoEbay7 | 65ca49bffe2abc9c7731e1420ea822c81baf758c | 303d9d627fb1a75ef659d4fa4f7e1103b58632a0 | refs/heads/master | 2020-05-22T13:59:07.836151 | 2019-05-13T07:57:54 | 2019-05-13T07:57:54 | 186,371,897 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,379 | py | # Generated by Django 2.2.1 on 2019-05-12 20:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('magic', '0013_auto_20190512_2006'),
]
operations = [
migrations.AddField(
model_name='extension',
name='baseSetSize'... | [
"ibrahimalame@iMac-de-Ibrahim.local"
] | ibrahimalame@iMac-de-Ibrahim.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.