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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8a13069478ea5cffd0237a926fcfbac9d1099903 | 5de9668c5b01efb4a218589686fc0861d9e3e94c | /Business_Cards/migrations/0005_auto_20210224_1319.py | 3db1d8e2cb654c314420d7d39742f25172c32f91 | [] | no_license | panda1909/beedeeprinting | cd3a9828577b9dbda7ebe7ddb3a64b6ad9c668dc | c3f696d6cbe3990014a8ff53036e69ec62f67f19 | refs/heads/main | 2023-03-24T15:19:45.333594 | 2021-03-03T16:42:46 | 2021-03-03T16:42:46 | 322,282,438 | 0 | 0 | null | 2021-03-18T23:08:44 | 2020-12-17T12:04:06 | Python | UTF-8 | Python | false | false | 2,146 | py | # Generated by Django 3.1 on 2021-02-24 13:19
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('Business_Cards', '0004_auto_20210224_1315'),
]
operations = [
migrations.RemoveField(
model_name='edge_painted_business_cards_pric... | [
"umerfarooqb97@gmail.com"
] | umerfarooqb97@gmail.com |
82b3a0104576ede4ec3257767503b467a431d6ae | c4cd066de1f47c4b1f056aca87dee4c259ec3d5f | /stars.py | 0ecce4474f3a6544988f49fef1fc4e61b1a74fc9 | [] | no_license | reece-carrisosa/Python18 | 719863ab5f01d75f6d3c7a8a70c081cd81169f5c | a65e6239101d01d1444d2409763ac453cd80f416 | refs/heads/master | 2021-05-05T15:31:22.663212 | 2018-01-23T21:17:43 | 2018-01-23T21:17:43 | 117,284,738 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | ######## Stars
b = ['Reece', 2, 'Sam', 7, 9]
def draw_stars(arr):
for x in arr:
if type(x) == int:
print "*"*x
else:
print x[0].lower()*len(x)
draw_stars(b) | [
"noreply@github.com"
] | reece-carrisosa.noreply@github.com |
5473c9ef6e54ff41b2dff4bc909d4d31209b4761 | 799e7ad7a71fe9c7f8707d60160fa2d84f2fa719 | /core/migrations/0001_initial.py | 55430b5fb0b04da04727fe01d8a8c946f57d21d7 | [] | no_license | TERESIA012/Netflix_Clone | 517cf1d9cc11979d52e39b27ea7147b1a911d3b4 | 4785130ad52ca816bbdcc455cf27e1f6245b14fd | refs/heads/master | 2023-08-19T10:04:28.850838 | 2021-10-13T23:25:47 | 2021-10-13T23:25:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,681 | py | # Generated by Django 3.2.7 on 2021-10-13 21:42
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.utils.timezone
import uuid
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0012_alter_user_... | [
"kingoriteresia@gmail.com"
] | kingoriteresia@gmail.com |
43137b2a59d80228815f1d64b9c6ec0c1b27ddb6 | 112882b8d6c5071e7d2610c595bfca9210c79a0a | /tools/leetcode.055.Jump Game/leetcode.055.Jump Game.submission8.py | 4c234877c34cd25cb43dda9cbd6c32b54c52d785 | [
"MIT"
] | permissive | tedye/leetcode | 193b1900d98e35d5c402013cbe3bc993d0235da2 | 975d7e3b8cb9b6be9e80e07febf4bcf6414acd46 | refs/heads/master | 2021-01-01T19:06:06.408135 | 2015-10-24T06:44:40 | 2015-10-24T06:44:40 | 41,804,923 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 482 | py | class Solution:
# @param A, a list of integers
# @return a boolean
def canJump(self, A):
if not A: return False
if len(A) == 1: return True
pos = 0
l = len(A) - 2
maxCover = A[0]
pos = 0
while pos <= maxCover:
cover = pos + A[pos]
... | [
"tedye@bu.edu"
] | tedye@bu.edu |
32329b04f4258b316e9d349705aad4bc6c362edc | d9115e216eadb68d9d8dae102a7d80390f54a609 | /xuesheng_web/page/main.py | 88818ae8f4cf1276c3ed79ace3b494665e5eca3c | [] | no_license | Chengyuxiang12/chengyu | 9e5760e767d48b1fe6e1c59d18545656dcb209fa | b6c8d976af56c9ec25a84013744ec42d886a1799 | refs/heads/master | 2022-11-24T19:21:57.607653 | 2020-08-06T00:06:54 | 2020-08-06T00:06:54 | 267,125,798 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 373 | py | from selenium.webdriver.common.by import By
from xuesheng_web.page.base_page import BasePage
class Main(BasePage):
_base_url = 'http://localhost:8090/'
def login(self, a, b):
self._params["a"] = a
self._params["b"] = b
self.steps("../page/login.yaml")
from xuesheng_web.page.i... | [
"1561933707@qq.com"
] | 1561933707@qq.com |
8240eca8d3e73725e8d897c9f953dfc5f1ad8b63 | b9c4633be31a8cd15b8fa3b8cf44256678c2bfc5 | /lesereggs/wsgi.py | b46fb9fa92df339adc795fecb0862c31101c8243 | [] | no_license | tahirawan4/laseregg | a53d1508febbf736f924c2af179d3065b559d590 | f39a10056d54769df974da7577f1f69668a9daac | refs/heads/master | 2021-01-23T00:39:54.707114 | 2017-06-12T00:16:47 | 2017-06-12T00:16:47 | 92,830,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
WSGI config for lesereggs 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.7/howto/deployment/wsgi/
"""
import os
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "lesereggs.settings")
from django.co... | [
"tahir.fazal@arbisoft.com"
] | tahir.fazal@arbisoft.com |
038ede28994b5f958eb3156da9cfc4af849fc0b4 | 9f66c839f1c3f11dc9a56922d6f313d911a861c1 | /python-client/cloudera/director/d6_1/users_api.py | 74f2e732134e87a7c8e0a6e33f2e42436f6c1566 | [
"EPL-1.0",
"Classpath-exception-2.0",
"LGPL-2.0-or-later",
"W3C",
"GPL-1.0-or-later",
"LicenseRef-scancode-proprietary-license",
"BSD-3-Clause",
"MPL-2.0",
"LicenseRef-scancode-json-pd",
"LicenseRef-scancode-protobuf",
"MPL-2.0-no-copyleft-exception",
"CC0-1.0",
"LicenseRef-scancode-other-co... | permissive | daanknoope/director-sdk | 11996aa0ccff4cb709d63fc195e5619f2ee218f5 | a099fedd5afe365aedbb50daa75de048ef6f7ab4 | refs/heads/master | 2022-11-27T02:00:20.943586 | 2019-07-29T11:17:24 | 2019-07-29T11:17:24 | 285,579,086 | 0 | 0 | Apache-2.0 | 2020-08-06T13:29:32 | 2020-08-06T13:29:31 | null | UTF-8 | Python | false | false | 29,608 | py | # coding: utf-8
"""
Licensed to Cloudera, Inc. under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. Cloudera, Inc. licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use thi... | [
"jadair@cloudera.com"
] | jadair@cloudera.com |
e0e9a4ca7bed230fe0aa3b3d2feca8572337be8d | 4d49d4d59c9517fe99884cd69ad88644265c6755 | /week3/Group2/boj10829_ayoung0430.py | f0d65bb6189fca0cdf0ca82f8c73f601248b0652 | [] | no_license | all1m-algorithm-study/2021-1-Algorithm-Study | 3f34655dc0a3d8765143f4230adaa96055d13626 | 73c7cac1824827cb6ed352d49c0ead7003532a35 | refs/heads/main | 2023-06-03T18:45:28.852381 | 2021-06-11T06:28:44 | 2021-06-11T06:28:44 | 348,433,854 | 8 | 16 | null | 2021-06-11T06:28:45 | 2021-03-16T17:23:37 | Python | UTF-8 | Python | false | false | 424 | py | N=int(input())
answer=[]
def change(N):
if N==1:
print('1')
elif N%2==0:
return change(N//2)
answer.append('0')
else:
return change(N//2)
answer.append('1')
answer.reverse()
print(' '.join(answer))
#미완성 코드입니다ㅠㅠ 기한 내 제대로 된 코드를 제출하지 못해 죄송합니다. 다시 완성된 코드로 업로드하도록 하겠습니다.ㅠㅠ | [
"happycatcindy@gmail.com"
] | happycatcindy@gmail.com |
0a79292c6e8e11f6d2538dd7ce59fb62a36bd5ad | 37a456d9e16d11fabe8dc854b84181478b196a66 | /tests/test_s3.py | ccaf8ce6faa19da61163cde0321a86fb9af0e95b | [
"MIT"
] | permissive | reuf/storagelayer | e1f44f71158d759f1cb1e291ab92c7c2c44de8b2 | 5fde8602332f811703955ae18e2426474baed89b | refs/heads/master | 2021-06-22T17:59:05.112584 | 2017-08-30T15:39:27 | 2017-08-30T15:39:27 | 104,938,709 | 1 | 0 | null | 2017-09-26T21:18:19 | 2017-09-26T21:18:19 | null | UTF-8 | Python | false | false | 1,532 | py | import os
from unittest import TestCase
from moto import mock_s3
import storagelayer
class FileArchiveTest(TestCase):
def setUp(self):
self.mock = mock_s3()
self.mock.start()
self.archive = storagelayer.init('s3', bucket='foo')
self.file = os.path.abspath(__file__)
def tear... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
97b7ab6c4c3416b70062d954b3752cfaa7b7661c | 17711096359106c13da5875153eccc308b765003 | /attrdict/dictionary.py | 874e4a4ede8b39867c7fb9a05531a56a6a37db66 | [
"Python-2.0",
"MIT"
] | permissive | FISCO-BCOS/python-sdk | 625ae9e6d601237c5a4684e0fe94629dfa6fd9c1 | 5fa6cc416b604de4bbd0d2407f36ed286d67a792 | refs/heads/master | 2023-07-25T22:35:37.472322 | 2023-07-13T10:04:56 | 2023-07-13T10:04:56 | 194,997,013 | 68 | 71 | MIT | 2023-03-08T07:53:04 | 2019-07-03T06:55:05 | Python | UTF-8 | Python | false | false | 1,462 | py | """
A dict that implements MutableAttr.
"""
from attrdict.mixins import MutableAttr
import six
__all__ = ['AttrDict']
class AttrDict(dict, MutableAttr):
"""
A dict that implements MutableAttr.
"""
def __init__(self, *args, **kwargs):
super(AttrDict, self).__init__(*args, **kwargs)
... | [
"20529321+coderkentzhang@users.noreply.github.com"
] | 20529321+coderkentzhang@users.noreply.github.com |
c31b82ebed4ecfc6905cefbefe7f86a780fbd7cb | adc8ce0452f38501c400b6336a2d7634f85d8f30 | /python 1.py | 8786f2490a72f43eddf35af7bbdecaf899f8c486 | [] | no_license | naresh123506/fy | 654f4f06e422f6b0c2417fe7c8d39a6ce4243443 | 9f78ff308d7d3187dbe2f3669e9ee909ec251c3d | refs/heads/master | 2020-07-08T20:32:48.085848 | 2019-08-22T10:44:00 | 2019-08-22T10:44:00 | 203,768,384 | 0 | 1 | null | 2019-08-22T11:09:02 | 2019-08-22T10:10:48 | Python | UTF-8 | Python | false | false | 30 | py | mydict=["27"]
print(mydict)
| [
"noreply@github.com"
] | naresh123506.noreply@github.com |
44aa8f64312a6be8b6373e1a65891323834ded3a | 68af41aa65acda1a1da4a7096379b2d56ab5b99c | /startup.py | 0df618a57ab5c4b37f942c4df8f87f925a28239c | [] | no_license | lavabyrd/slackedoverflow | 6deccced527a22a9c7a53ce5f8d6179b32dc9fbf | 3aee3cdb5d29fdbc38e0878ffafa52460af14d99 | refs/heads/master | 2022-11-30T03:02:35.237469 | 2020-08-10T20:14:03 | 2020-08-10T20:14:03 | 137,400,336 | 0 | 0 | null | 2020-08-10T20:14:04 | 2018-06-14T19:29:32 | Python | UTF-8 | Python | false | false | 558 | py | from application import (
app,
db,
models
)
import os
@app.shell_context_processor
def make_shell_context():
return {'db': db, 'User': models.User, 'Post': models.Post}
# this may not be required as I'm using a top level entry point
# App startup
# if __name__ == '__main__':
# port = int(os.env... | [
"mpreston@slack-corp.com"
] | mpreston@slack-corp.com |
b82d4974caad00ca47fd74b3dcc08953ab3fde4b | d0e38a3631ac8350a2467e3834967c548425c94e | /artificial intelligence/Assignment 1/Matin_Noohnezhad_Assignment1/searchAgents.py | b0d5edac24cd443a720fbf5f5e06c250f095286d | [] | no_license | Matin-Noohnezhad/university_codes | 6137dd19aa3dc6afe45f6416898fb5470b93e0e5 | fd00e35f3983d614ab433d7650ad2a3c7dd5d19b | refs/heads/master | 2023-08-28T20:02:49.161808 | 2021-09-17T13:27:24 | 2021-09-17T13:27:24 | 407,548,987 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,494 | py | # searchAgents.py
# ---------------
# Licensing Information: You are free to use or extend these projects for
# educational purposes provided that (1) you do not distribute or publish
# solutions, (2) you retain this notice, and (3) you provide clear
# attribution to UC Berkeley, including a link to http://ai.berkeley... | [
"matinnouhnejad@gmail.com"
] | matinnouhnejad@gmail.com |
8041cf4b80ab3c8ae6003c2ac36e5b582ed26c97 | b235424d69530fc78805b89e6d64e3cfea3bffad | /employee_app/views.py | 5f80c433b88785de2fe4237cbab9b8e9d177c2b2 | [] | no_license | bhargava-kush/employees | 4201ed0047e14ab053c80456047753302cdd39a6 | 2dcc53b7896ebf6a69ee6c92f5245dcc069b27f6 | refs/heads/master | 2021-06-22T10:31:38.204679 | 2019-09-13T13:01:18 | 2019-09-13T13:01:18 | 208,237,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | from rest_framework.permissions import IsAuthenticatedOrReadOnly
from rest_framework.authentication import TokenAuthentication
from rest_framework.filters import SearchFilter
from rest_framework import viewsets
from django_filters import rest_framework as filters
from employee_app.models import Employee
from employe... | [
"bhargavakush93@gmail.com"
] | bhargavakush93@gmail.com |
258040687eef069d88eaf6602b3b6a908d15621c | c268dcf432f3b7171be6eb307aafbe1bd173285a | /reddit2telegram/channels/~inactive/cheerleadersbackup/app.py | 15ba4c64f46e15230f624ab0f68ec761e311cb53 | [
"MIT"
] | permissive | Fillll/reddit2telegram | a7162da2cc08c81bcc8078ea4160d4ee07461fee | 5d8ee3097e716734d55a72f5a16ce3d7467e2ed7 | refs/heads/master | 2023-08-09T10:34:16.163262 | 2023-07-30T18:36:19 | 2023-07-30T18:36:19 | 67,726,018 | 258 | 205 | MIT | 2023-09-07T02:36:36 | 2016-09-08T17:39:46 | Python | UTF-8 | Python | false | false | 151 | py | #encoding:utf-8
subreddit = 'cheerleaders'
t_channel = '@cheerleadersbackup'
def send_post(submission, r2t):
return r2t.send_simple(submission)
| [
"git@fillll.ru"
] | git@fillll.ru |
1a6417f7d4b4ce956970176e7ab8ff3c830b13ea | 94d1af1009485e1ae6ffa04ce24034184225a4d1 | /patter/server/__init__.py | ba846d35aba4052b9c09377222256b5079d51c15 | [
"MIT"
] | permissive | songtaoshi/patter | 489dc5abb846f74da5a878cd92f7dff75222ae1b | 92e8fb0d5d98571bd76a0ff90fae1fc1853ba0da | refs/heads/master | 2021-10-23T03:16:29.976872 | 2018-12-19T00:52:00 | 2018-12-19T01:26:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from .server import SpeechServicer
from .speech_pb2_grpc import add_SpeechServicer_to_server, SpeechStub
from .speech_pb2 import (RecognitionConfig, RecognitionAudio, RecognizeRequest, RecognizeResponse,
SpeechRecognitionResult, SpeechRecognitionAlternative, WordInfo, StreamingRecognizeRequest,... | [
"ryanleary@gmail.com"
] | ryanleary@gmail.com |
19a2ae7c5cc347c4bf684be6108aafae16a5951a | f5e0baa9d5ad8e01ce048cfa81e2a696a7441b3c | /analysis_scripts/M287480_170518.py | 774636cff636e5ed99c1929586de1c44c0d4ca09 | [] | no_license | mtv2101/cats_mapping | d8dcba4f435cec20f04ff5e52a60dd36a2ec81f8 | b9605abec839b525eea86b1b58da338100ff3d45 | refs/heads/master | 2022-01-11T10:00:32.045546 | 2019-02-26T21:19:27 | 2019-02-26T21:19:27 | 104,128,134 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,091 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 25 12:21:57 2017
@author: mattv
"""
from cats_mapping.hemodynamics.hemo_2cam import hemo_2cam
# 170524_M291236
hemo = hemo_2cam(r"Y:\CorticalMapping\IntrinsicImageData\170531-M287480\M287480_170531_cam1_crosstalkJCamF101.dcimg_4_4_1.h5",
r"Y:\CorticalM... | [
"valley@gmail.com"
] | valley@gmail.com |
bf460c74e5aed162bee3001c663f972f0073d3e8 | e06e2c8080002d9397fab2d186328c372daa4f19 | /coronavirus-2020/exp/knn_dist_diff.py | 5cda65d659709ba802ee939378bfd2e92f8c877c | [
"MIT"
] | permissive | HRaeder42/CS349_Final | 3ea2dfc1bbb8470c3633caa7fbedd2379fada269 | 83d8cc70f6ac5f960138525190e25ad7dad13277 | refs/heads/master | 2023-09-03T22:49:31.709536 | 2021-09-26T21:34:09 | 2021-09-26T21:34:09 | 270,836,969 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | """
Experiment summary
------------------
Treat each province/state in a country cases over time
as a vector, do a simple K-Nearest Neighbor between
countries. Take the difference between cases. Get
the distribution of this data (to make it time-invariant).
Use the distribution as the feature vector.
"""
im... | [
"noreply@github.com"
] | HRaeder42.noreply@github.com |
06dbf8e4e2546909ea1b7b63fb8bd169c4531429 | 193bb37a5e878a5918ce1e181f033770a015f49a | /Approach Toward Service/TxService/TxService.py | 7482c656a1021954db7c9f7df1b48707991d5a80 | [] | no_license | eKaiCHEN/basebandinCloud | 15c1d3a94fed8eeb32663887d69196d7951e1a38 | 974690aea2ba095b15de9d35a70a51c084f91f6a | refs/heads/master | 2016-08-11T09:12:52.024363 | 2016-01-15T04:40:50 | 2016-01-15T04:40:50 | 49,696,809 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 551 | py | #!/usr/bin/env python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters(
host='192.168.56.101'))
channel = connection.channel()
channel.queue_declare(queue='Txjobs')
print ' [*] Waiting for messages. To exit press CTRL+C'
def callback(ch, method, properties, body):
print " [x] R... | [
"sendtochenkai@gmail.com"
] | sendtochenkai@gmail.com |
6083ad9ee42d5fc183d6a6f29f55f678986445dd | d2c4934325f5ddd567963e7bd2bdc0673f92bc40 | /tests/model_control/detailed/transf_Quantization/model_control_one_enabled_Quantization_MovingAverage_Seasonal_DayOfMonth_MLP.py | df214c11738b68732f0ec02c5441c9a6023ff1b2 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | jmabry/pyaf | 797acdd585842474ff4ae1d9db5606877252d9b8 | afbc15a851a2445a7824bf255af612dc429265af | refs/heads/master | 2020-03-20T02:14:12.597970 | 2018-12-17T22:08:11 | 2018-12-17T22:08:11 | 137,104,552 | 0 | 0 | BSD-3-Clause | 2018-12-17T22:08:12 | 2018-06-12T17:15:43 | Python | UTF-8 | Python | false | false | 174 | py | import pyaf.tests.model_control.test_ozone_custom_models_enabled as testmod
testmod.build_model( ['Quantization'] , ['MovingAverage'] , ['Seasonal_DayOfMonth'] , ['MLP'] ); | [
"antoine.carme@laposte.net"
] | antoine.carme@laposte.net |
497c4102c8fd48665cc9efd8cd714a7eb6ee4f99 | 2fced350d1368476db8eb7a1577a8d737f716af3 | /src/chat/migrations/0004_replace_newline_with_br.py | de648b470ba9bffab5b31bdd1bcfcdcaadaf178c | [] | no_license | demidov91/game-for-you | 48ac9c242fb9752f3c20cf43ea87fbaf943b9a08 | d9226244dd6bf8100f0aaa391ff0cf9a7343c7ef | refs/heads/master | 2021-01-19T09:02:03.807777 | 2016-09-19T14:18:45 | 2016-09-19T14:18:45 | 17,358,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,607 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
for message in orm.Message.objects.filter(text__contains='\n'):
message.te... | [
"demidov91@mail.ru"
] | demidov91@mail.ru |
d82a1ed6f7cac59d851481158ea80444fbfcc75b | edfb435ee89eec4875d6405e2de7afac3b2bc648 | /tags/selenium-2.0-alpha-6/chrome/src/py/driver.py | c41017930d641e4f4bfcc750d9af99f8941723d0 | [
"Apache-2.0"
] | permissive | Escobita/selenium | 6c1c78fcf0fb71604e7b07a3259517048e584037 | f4173df37a79ab6dd6ae3f1489ae0cd6cc7db6f1 | refs/heads/master | 2021-01-23T21:01:17.948880 | 2012-12-06T22:47:50 | 2012-12-06T22:47:50 | 8,271,631 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,016 | py | # Copyright 2008-2009 WebDriver committers
# Copyright 2008-2009 Google 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 requ... | [
"simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9"
] | simon.m.stewart@07704840-8298-11de-bf8c-fd130f914ac9 |
f481700072405a9cff065f964a97d883a37dc1c3 | de1ba6c5f6b3f1af02433d38b2572cc5c11f3855 | /menu.py | 8ee31b682246d871455cc634d2ecdee4799353ec | [] | no_license | jcoates2/Independ_RBPi_UMW_2017 | d0bfd15a0ae3e6922b50e01a10d58c22ecaa727c | 973c5158d9b6131311b157841eab57b1536a4a33 | refs/heads/master | 2021-01-19T21:12:12.363170 | 2017-05-05T13:45:45 | 2017-05-05T13:45:45 | 88,623,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,218 | py | import subprocess
import os
from termios import tcflush, TCIFLUSH
import sys
def main():
readfile = open("games.txt", "r")
options = []
for line in readfile:
options.append(line.split(":"))
for option in options:
option[1] = option[1].rstrip("\n")
while(True):
tcflush(... | [
"noreply@github.com"
] | jcoates2.noreply@github.com |
4abbb819cd6010f59370221e27f232bf4deca730 | 78c2b8d2e4f51c5221a01fd5c37ed57f016f3edc | /alfunduqapi/configure/urls.py | 6fbcd95a255a3ad1e65499f7f1bf42a82b1c6cfc | [] | no_license | Aamier/alfunduq | 300f962cd504a13f91d62194815a259d8a6a888b | 8f92465bae02a08548951f83023af71e93966ebb | refs/heads/master | 2020-04-07T17:57:54.698437 | 2018-11-20T19:38:02 | 2018-11-20T19:38:02 | 158,591,268 | 0 | 0 | null | 2018-11-21T18:36:10 | 2018-11-21T18:36:09 | null | UTF-8 | Python | false | false | 445 | py | # rooms/urls.py
from django.urls import path
from django.conf.urls import url
from . import views
from . import create_hotel_base
urlpatterns = [
path('rooms', create_hotel_base.RoomsList.as_view()),
path('floors', create_hotel_base.Floor.as_view()),
path('roomtype', create_hotel_base.RoomType.as_view()),
... | [
"shakeel.rymec@gmail.com"
] | shakeel.rymec@gmail.com |
bc04bfb96825ff3d5a218f6ba8044413b20402df | c99c36f40bc1dbca96000ee5525f65aa4537f93b | /Python for Beginner/1123 실습1.py | 02731bea5d6e552f879a1d5380308f9a0f366339 | [] | no_license | SeungsuHa95/Python | 73c278ccca349428402cc2328f79718bc1d8d0d2 | 925729fac37279708037def7e9d70309d921267f | refs/heads/main | 2023-01-30T02:24:24.215324 | 2020-12-07T13:10:49 | 2020-12-07T13:10:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | inStr,outStr='',''
count=0
inStr = input("문자열을 입력하세요: ")
count = len(inStr)
for i in range(0,count):
outStr = outStr + inStr[count-(i+1)]
print('내용을 거꾸로 출력한 결과는? %s' %outStr)
| [
"ht106@naver.com"
] | ht106@naver.com |
2699f3562f5f5d601fb2cfc9a82c5b14f346a7c3 | 91d1a6968b90d9d461e9a2ece12b465486e3ccc2 | /connect_write_2/approved-origin_disassociate.py | da8d023fda61a2b27b63fd0dd83a57bc665bed95 | [] | no_license | lxtxl/aws_cli | c31fc994c9a4296d6bac851e680d5adbf7e93481 | aaf35df1b7509abf5601d3f09ff1fece482facda | refs/heads/master | 2023-02-06T09:00:33.088379 | 2020-12-27T13:38:45 | 2020-12-27T13:38:45 | 318,686,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | #!/usr/bin/python
# -*- codding: utf-8 -*-
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(os.path.dirname(__file__))))
from common.execute_command import write_two_parameter
# url : https://awscli.amazonaws.com/v2/documentation/api/latest/reference/connect/disassociate-approved-origin.html
if __n... | [
"hcseo77@gmail.com"
] | hcseo77@gmail.com |
235f88c9405dd635273f6f7bca82689c42eb1d5b | 09417c9467e02ee622e423343528e456558f77fd | /tensorflow/layers.py | 6ba4375e0d7f8ed1e3f0646e47d407fbb9775fcd | [] | no_license | RizhaoCai/riz_utils | d387f37d006fef19881d954259bdb43dfb4d6049 | 9b78bb554f92745bc31893b60f78d52766e3a43c | refs/heads/master | 2020-04-16T07:20:32.481267 | 2019-01-19T02:24:19 | 2019-01-19T02:24:19 | 165,382,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,720 | py | import numpy as np
import tensorflow as tf
import os
np.set_printoptions(formatter={'float_kind': lambda x: '%.2f' % x})
def print_vars(sess):
print('print vars')
for _var in tf.global_variables():
assert _var.dtype.name == 'float32_ref', _var.name
var = sess.run(_var)
if _var in tf.tr... | [
"rizhao.cai@gmail.com"
] | rizhao.cai@gmail.com |
a22e2d7fccf45e3cd3031acd1b409a1def790206 | ac514cf43f276c054ddc0b1f99086fd0110e4ea8 | /microblog/bin/sqlformat | 07506c3e2e355b57f9082405c46783ad26a86278 | [] | no_license | matheus-manoel/microblog | c1b853b3602e179c19ef64cf95d3bf905ead0653 | 68de75e7a0f32738ac91f656c96a0495dbf03a4e | refs/heads/master | 2020-12-02T19:35:09.291815 | 2017-07-11T19:31:04 | 2017-07-11T19:31:04 | 96,361,561 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | #!/home/matheus/Documents/microblog/microblog/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"matheuscmanoel@gmail.com"
] | matheuscmanoel@gmail.com | |
44cec4dae69b612b97cdc84eb0f9081d818c006e | cb848d0c80abb04c080155d1502d22391423c4e8 | /build_isolated/libphidget21/catkin_generated/pkg.develspace.context.pc.py | ec4ce7bbe5813fe0e0ea355c1374827189a79773 | [] | no_license | MTU-Autobot/catkin_ws | d8bc9b0de46befc53282b9b7e6d338a7ff7e3a0c | cf104fe048c6101f50be1b87e181d80a4be3e770 | refs/heads/master | 2020-03-13T23:14:56.276075 | 2018-04-27T18:28:01 | 2018-04-27T18:28:01 | 131,331,599 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "libphidget21"
PROJECT_SPACE_DIR = "/h... | [
"spartanhaden@gmail.com"
] | spartanhaden@gmail.com |
ae1006ba2a803ee00b821b8948b24441b00e9591 | 037c7a8bc39146c31449e248f8a9c025ec1c01d0 | /02.device/RaspberryPi/03_OPENCV-EX/cv_ex03.py | 592e2ce01d6d4ae2108dfa63526b8e3b11da40b7 | [] | no_license | cooluks2/iot | e62874624bc06acbe5647fed35f6ec62bd582e7f | e452b29f0c6967dad9b11207c3b5189cec385497 | refs/heads/master | 2023-01-22T17:19:58.456577 | 2020-11-20T11:36:34 | 2020-11-20T11:36:34 | 292,755,019 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 265 | py | import cv2
import matplotlib.pyplot as plt
imageFile = './data/lena.jpg'
img_bgr = cv2.imread(imageFile)
plt.axis('off')
plt.imshow(img_bgr)
plt.show()
plt.axis('off')
img_rgb = cv2.cvtColor(img_bgr, cv2.COLOR_BGR2RGB)
plt.imshow(img_rgb)
plt.show() | [
"cooluks2@gmail.com"
] | cooluks2@gmail.com |
ea6c78b1047f6fccc5d9da937d8f1b6a02df1d2a | 82d0e47a1ac3b54e3c8f1ea076cbb133cc44d689 | /proxy.py | 8db7eb5dc1d07d512ff1a9b457755b724ab8d7e9 | [] | no_license | godjealous/get_book_score | 938c456fc717e83c67f2db6094d1bd0a78b3e29e | e8cb8880caf5ed9d2385aa61db6ad83ddc54e12f | refs/heads/master | 2020-04-02T21:28:09.688774 | 2018-11-18T02:18:25 | 2018-11-18T02:18:25 | 154,800,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,149 | py | import urllib.request
import urllib.parse
from bs4 import BeautifulSoup
import os
from fake_useragent import UserAgent
ua = UserAgent()
def visitDirectly(url):
response = urllib.request.urlopen(url)
page=response.read().decode('utf-8')
soup=BeautifulSoup(page,'html.parser')
return soup
def visitUsingH... | [
"hanyang@RLKF-001.chinabond.com.cn"
] | hanyang@RLKF-001.chinabond.com.cn |
c77b06fa1cdfc4e7d338b30310efcc34bcb1d600 | 5c0c129a61843ca38c6afbe09eb58e46191abfba | /test/ComparatorTest.py | 4962b1b1409c9f289b68f04077a439a0226ae15f | [] | no_license | fractalbass/titanic | 298378f6ad8220171a7795dc4b5146955954bb9d | 582a6c28e9d7095c02f610da1f33dc8a8231197b | refs/heads/master | 2021-01-01T16:01:18.013345 | 2017-07-21T19:33:02 | 2017-07-21T19:33:02 | 97,755,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,316 | py | import unittest
from Comparator import Comparator
from FileUtils import FileUtils
class ComparatorTest(unittest.TestCase):
def test_compute_error(self):
c = Comparator([[]],1)
err = c.compute_error([1, 2, 3, 4], [1, 2, 3, 4])
print("ERROR: {0}".format(err))
self.assertTrue(err == ... | [
"mporter@paintedharmony.com"
] | mporter@paintedharmony.com |
0be4a5c978da4c4e0c4e962e37c135f6cf942e73 | 546de28044c4e83a7f5eccabdebf755af61bf7cd | /utils/__init__.py | 9873687c31aee46cd4fde9e32cb4d8570fcad01c | [] | no_license | 80000v/tpro | f83de7a10586eb5c28dbfc6ea8fa05ff2106914a | c8506f7a47175fcc256f3467b76ccb6f94a7c7c0 | refs/heads/master | 2021-04-20T10:15:37.520322 | 2019-09-14T14:54:26 | 2019-09-14T14:54:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,966 | py | #!/usr/bin/python3
# -*- coding: utf-8 -*-
'''
@Author: freemoses
@Since: 2019-08-23 14:07:36
@LastEditTime: 2019-09-10 06:45:40
@Description: the folder for general functions
'''
import json
import os
import traceback
from PyQt5.QtGui import QFont, QIcon
BASIC_FONT = QFont(u'微软雅黑', 11)
# 图标及JSON配置路径字典(全局变量)
Icon_... | [
"freemoses@hotmail.com"
] | freemoses@hotmail.com |
94ddc2e7336e19160a3e969f15cd752239324c2e | 9fbaec3ae4927562c1feab89c2c228d7d193a935 | /Dean Church Github/inventory.py | 230dcca4da5f28f24c65afc1a1c0146961cd81bc | [] | no_license | DeanChurch1/tic-tac-toe | efcab9abc9c770ee8f3bd70a46b2f6ee89685d22 | 8baf3bec17ee444c2fd6b3d93b426a1d030fa2bd | refs/heads/master | 2020-04-12T15:53:39.304308 | 2019-01-08T16:07:44 | 2019-01-08T16:07:44 | 162,595,527 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,535 | py | #Hero's inventory
import random
player_health = 100
player_armor = 1250
player_attack = 250
player_money = 0
inventory = ["rusty sword","leather armor","wood shield","small healing potion"]
player_stats = ["health",player_health,"armor",player_armor,
"attack",player_attack,"money",player_money]
print("... | [
"deanchurch@gmail.com"
] | deanchurch@gmail.com |
55f20846bd2edf5cc32b88b4a6c2ff27dca58467 | f7f66d1327238f34d0b3b85c1e221616a95aae8c | /memex_dossier/fc/tests/__init__.py | 6d15c998ef4c46df029b62b3bf7790956a2b02f4 | [
"MIT"
] | permissive | biyanisuraj/memex-dossier-open | 820d5afc8a5cf93afc1364fb2a960ac5ab245217 | 43bab4e42d46ab2cf1890c3c2935658ae9b10a3a | refs/heads/master | 2020-06-07T01:34:51.467907 | 2018-10-09T15:44:58 | 2018-10-09T15:44:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 749 | py | '''memex_dossier.fc Feature Collections
.. This software is released under an MIT/X11 open source license.
Copyright 2012-2014 Diffeo, Inc.
'''
from __future__ import absolute_import, division, print_function
import pytest
from memex_dossier.fc.feature_collection import registry, FeatureTypeRegistry
def is_te... | [
"jrf@diffeo.com"
] | jrf@diffeo.com |
b662cbd056aeae8d02807bbbbce7025ea31e6451 | 71b139516c013ca14d2416ffe74f31d1948e9168 | /Mininet/tree5.py | 551259ab25ea0c0b8fac3fac08cc48e5a37ec67b | [] | no_license | cavallo5/Nemo-Mininet | 0a807b80df026d1b3359914086b59093fb7e12b1 | 8de003541e4f7c7c088f38205d59b632652e015b | refs/heads/master | 2022-12-02T19:01:41.173776 | 2020-08-12T08:05:25 | 2020-08-12T08:05:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 965 | py | #!/usr/bin/python
#Librerie API importate:
from mininet.net import Mininet
from mininet.node import Controller, RemoteController
from mininet.cli import CLI
from mininet.link import Intf
from mininet.log import setLogLevel, info
from mininet.link import Link, TCLink
#from mininet.util import irange, dumpNodeConnection... | [
"vincenzocavallo.ing@gmail.com"
] | vincenzocavallo.ing@gmail.com |
a2693b767a4f8ed189bcb93c51a1c83b980348a3 | 40186c0efae793c12983a1b22d0241ac615c28fd | /student.py | 8bd9d76eccaa14ec2332bdf213da94428af8a4db | [] | no_license | mohitsharma8229/CORRELATION | 16a76a1a562a7f39a7895073330d906e96d4b35b | 8715a0cb00d6e661c4a7d3d24135145b82475542 | refs/heads/main | 2023-06-26T22:06:48.201831 | 2021-07-25T04:03:39 | 2021-07-25T04:03:39 | 389,255,820 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 662 | py | import plotly.express as px
import csv
import numpy as np
def getDataSource(data_path):
marks=[]
days_present=[]
with open (data_path)as f:
csv_reader=csv.DictReader(f)
for row in csv_reader:
marks.append(float(row["Marks In Percentage"]))
days_present.appen... | [
"noreply@github.com"
] | mohitsharma8229.noreply@github.com |
d963210bd58eb6b67b4838b8f16896818c215858 | 1a4885f4851f9b2c65fc5fbbe04c29f2126edb7d | /TravelingSalemanProblem/tsp-solver-master/build/lib/tsp_solver/greedy.py | c2ec9bcd75b38294d74ecdf11a7316429625ced6 | [] | no_license | OWLxx/DiscreteOptimization | f271caae31bb3461d0d9e5805a3584a9682551f8 | 0f5a60c9eee6f8e3e1d6479c7f700011b0965099 | refs/heads/master | 2021-05-01T06:24:13.377728 | 2018-03-05T23:17:50 | 2018-03-05T23:17:50 | 121,142,562 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,587 | py | from __future__ import print_function, division
from itertools import islice
from array import array as pyarray
################################################################################
# A simple algorithm for solving the Travelling Salesman Problem
# Finds a suboptimal solution
################################... | [
"a472975692@gmail.com"
] | a472975692@gmail.com |
dd8121be90f1ecbe5f9bfc3f7df5c31058787d2e | 9e53cf81f82379e5a7cde0ec88513f0e5ee43537 | /homestud/findtutors/models.py | cdcb5a1129413020d8343b1bf8bc50b5d5136903 | [] | no_license | stephappiah/hometutors | ef14f2ab29948402a8f0373f7b4edf0a7c638ab7 | e550d14ae105a17ce5a49365ff0d3d14cbb88f53 | refs/heads/master | 2023-07-30T22:49:21.335578 | 2021-09-09T16:22:21 | 2021-09-09T16:22:21 | 285,824,012 | 0 | 0 | null | 2021-09-09T16:23:26 | 2020-08-07T12:29:29 | HTML | UTF-8 | Python | false | false | 9,560 | py | # from django.db import models
from django.conf import settings
from django.contrib.auth.models import AbstractUser
from django.contrib.gis.db import models
from django_q.tasks import async_task, schedule
from multiselectfield import MultiSelectField
from .courses import courses_choices, programmes_choices
from .multi... | [
"appstephen8@gmail.com"
] | appstephen8@gmail.com |
11ade20ef6f9afb1f9205f05d1ba5b6fb7d70395 | 202eb065f4b62429a304e18f648360726846ad26 | /posenet/model.py | cac82f63e0935182ea3092ece1934a7c9a970da7 | [
"Apache-2.0"
] | permissive | apollojain/PoseNet-Controller | 21166c550e427aef21847bf23289bf3e827f4522 | 35a06b6406c84fa3de71f6c799469b343ad587f9 | refs/heads/main | 2023-01-31T00:50:08.664312 | 2020-12-18T03:19:22 | 2020-12-18T03:19:22 | 322,159,658 | 0 | 0 | null | 2020-12-18T03:19:23 | 2020-12-17T02:40:50 | null | UTF-8 | Python | false | false | 2,020 | py | import tensorflow.compat.v1 as tf
tf.disable_v2_behavior()
import os
import posenet.converter.config
MODEL_DIR = "./_models"
DEBUG_OUTPUT = False
def model_id_to_ord(model_id):
if 0 <= model_id < 4:
return model_id # id is already ordinal
elif model_id == 50:
return 0
elif model_id == 7... | [
"apollojain@gmail.com"
] | apollojain@gmail.com |
b68fc3d35b008cd438892eb9802aa1086d3217e6 | f2ac32ab5b959cd96611cee08c7dabd1d1e3dc76 | /asyncio_redis/replies.py | a8222c0104a3470925841d9fe450c2850beb24a2 | [
"BSD-2-Clause-Views"
] | permissive | uservidya/asyncio-redis | 478a572083788f546ff7b75b1c1c1cfa6b494560 | 057cc5ea883769609418ee79b548e3a911d52951 | refs/heads/master | 2020-12-26T21:49:38.017669 | 2013-12-06T09:01:17 | 2013-12-06T09:01:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,048 | py | import asyncio
from asyncio.queues import Queue
from asyncio.tasks import gather
__all__ = (
'BlockingPopReply',
'DictReply',
'ListReply',
'PubSubReply',
'SetReply',
'StatusReply',
'SubscribeReply',
'ZRangeReply',
)
class StatusReply:
"""
Wrapper for Redis status replies.
... | [
"jonathan@slenders.be"
] | jonathan@slenders.be |
6f2fd8f7c21f375b0b9dcb142e212817dc597933 | 7505dbb99764fc6e0a73bc98884ecac06f096952 | /setup.py | 69d33e5c085a145332ce94981ce316740230ab75 | [
"BSD-2-Clause"
] | permissive | zeanzhou/django-coconuts | a979771c52fee94587b2c17a6d374a43befaaeb6 | 96d70eb672ff6d7500a6a28d3e28cd2e7c0ad25f | refs/heads/master | 2021-05-03T21:46:06.731963 | 2016-03-28T19:09:38 | 2016-03-28T19:09:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 502 | py | #!/usr/bin/env python
from distutils.core import setup
import coconuts
setup(
name = "coconuts",
version = str(coconuts.__version__),
license = coconuts.__license__,
url = coconuts.__url__,
packages = ['coconuts'],
package_data = {
'coconuts': [
'static/coconuts/css/*.css'... | [
"jeremy.laine@m4x.org"
] | jeremy.laine@m4x.org |
782e20b8f3a6e8d1a411c2bd7e7609053d62672d | c7fc52a0818c6dedfb3d983d04142a4efe89a917 | /cogs/TypeKeyboard.py | 0ac986d2bd311ab47ec13c127b1df53b8fd3f272 | [] | no_license | Mo2024/Automation-for-devices | 257500b876d99943d509c8205d5a16310b71cee9 | 2f85dfde267ec7fd17b3adfa1ee066da442d64cb | refs/heads/main | 2023-01-02T05:57:34.488128 | 2020-10-29T03:17:06 | 2020-10-29T03:17:06 | 308,185,720 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,611 | py | import discord
from discord.ext import commands
import os
import sys
import time
from pynput.keyboard import Key, Controller
import pyautogui as pg
from discord.utils import get
from discord.ext import commands, tasks
import asyncio
keyboard = Controller()
a = "a"
class TypeKeyboard(commands.Cog):
def __init__(... | [
"mrkvsbusiness@gmail.com"
] | mrkvsbusiness@gmail.com |
e1f2d66d71922425a2e94616dfa2b3a0d4eca426 | a4d1bd83f013ec19169ff91d46d68dde432625d2 | /webinar/migrations/0001_initial.py | 82100c28a4cae6ab2cac8eee801ca12258f6e3c8 | [] | no_license | ravichandra99/forwebinar | 2412843ceb88f1403a47ce3993e320dbc9587a08 | c893e79a07b41d2187db427dbd229d5d3985cd40 | refs/heads/master | 2023-08-23T14:36:39.514371 | 2020-05-03T14:31:22 | 2020-05-03T14:31:22 | 260,046,654 | 0 | 0 | null | 2021-09-22T18:56:57 | 2020-04-29T21:10:09 | JavaScript | UTF-8 | Python | false | false | 1,385 | py | # Generated by Django 3.0.5 on 2020-05-01 14:10
from django.db import migrations, models
import phonenumber_field.modelfields
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='JustEdit',
fields=[
... | [
"root@vps.server.local"
] | root@vps.server.local |
5d501cd10ac5d5df3387d51d427dac9f46c66dba | b4b2cb10ecfbe0f62615e750aad140b2e57c727d | /rc_board/recipes/serializers.py | c83bc90121be942ba6ff99a24c606f266a02a07b | [] | no_license | apustovitin/rb | 8694a7d5167a1c9180c175d3442222c1bda7691e | 2150ab15e03f63e321f5acd3f98e3605e8e554bf | refs/heads/main | 2023-08-28T20:03:13.603134 | 2021-11-01T00:23:32 | 2021-11-01T00:23:32 | 417,274,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 586 | py | from .models import Recipe, Category
from rest_framework_nested.serializers import NestedHyperlinkedModelSerializer
from rest_framework import serializers
class RecipeSerializer(serializers.ModelSerializer):
category = serializers.StringRelatedField(many=False)
class Meta:
model = Recipe
field... | [
"apustovitin@gmail.com"
] | apustovitin@gmail.com |
b73cb2379dd9934ca68bad7b6138c5b5bcdc7349 | f7ab5a345003e737f5f9b9dde01f373f1fd7a022 | /testprintcosts.py | b2a77e93cdd28ece47ec564f5f9c466dfdc7d5d0 | [] | no_license | mthezeng/euler-solutions | 697dcd2549a5c20da32ebac7fbd08a1a53a4acd4 | 70acad8f0a3e9c5427f88f470b794b3b44948744 | refs/heads/master | 2021-10-08T20:01:31.049403 | 2018-12-17T06:19:05 | 2018-12-17T06:19:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 624 | py | from copy import deepcopy
costsfile = open('triangle.txt')
costs = []
for r in range(15):
current_row = []
for c in range(0,r+1):
seek_position = c * 3
for r_temp in range(0,r+1):
seek_position += 3 * r_temp
costsfile.seek(seek_position)
current_row.append(int(costsf... | [
"mzeng7@berkeley.edu"
] | mzeng7@berkeley.edu |
ff37c83bac67778f48ffc0df86e82157c3640b9d | 9abc3182a7d1ea910ee0df2e7c3730bb0a20f271 | /level_1/PYTHON/2016년.py | ddc0813f4544874b195ad4b7a9666a98a367da96 | [] | no_license | sw1203/Programmers | 5449a9400972b07d1e8ca4aba4c10965138dc1eb | 1e31876091256030a704d98d47e682f1f6139ea4 | refs/heads/master | 2021-05-21T14:34:39.984469 | 2020-05-18T07:48:00 | 2020-05-18T07:48:00 | 252,682,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | def solution(a, b):
answer = ''
day= ['SUN','MON','TUE','WED','THU','FRI','SAT']
total=0
month={1:31,2:29,3:31,4:30,5:31,6:30,7:31,8:31,9:30,10:31,11:30,12:31}
for i in range(1,a):
total+=month[i]
sum=(5+total%7+b%7)%7-1
answer=day[sum]
return answer
| [
"tkddnjs1203@gmail.com"
] | tkddnjs1203@gmail.com |
900dc6da444d2558dc9604aace9f61a9bb6f7df4 | 8359d0ade9f5338259e473a53f5482307d14d12f | /src/core/jupiter/core/use_cases/projects/archive.py | c19a1db4c9e80eaee81174c36e5a65429f9db646 | [
"MIT"
] | permissive | horia141/jupiter | 0cba46b1aee24bf73e037335709fa0fce120b097 | 5be2f692e851ce18ad65df40a6c00afc00ae86ae | refs/heads/master | 2023-08-15T16:09:10.631254 | 2023-06-27T05:36:02 | 2023-06-27T05:36:02 | 240,745,415 | 16 | 2 | MIT | 2023-09-06T20:44:17 | 2020-02-15T16:12:06 | Python | UTF-8 | Python | false | false | 4,326 | py | """Use case for archiving a project."""
from dataclasses import dataclass
from typing import Optional
from jupiter.core.domain.projects.service.archive_service import ProjectArchiveService
from jupiter.core.framework.base.entity_id import EntityId
from jupiter.core.framework.event import EventSource
from jupiter.core.... | [
"horia141@gmail.com"
] | horia141@gmail.com |
b59e8590fc08aaf7a0610e13b50274819fde9257 | 02b1b3543211ebb94938b7816f370b8bd5bf6717 | /social_handler.py | df405026cadf7c2a75f5ec9ae5b553b162deecb9 | [] | no_license | Jasperrr91/MQTT-PGOMAP | aec0233aba3c7cf3c13e8f2a6ee869e2941c5207 | 71554fb876d26fe828ca056e37e38a2d27991aca | refs/heads/master | 2020-09-25T06:12:46.396790 | 2016-08-23T20:58:10 | 2016-08-23T20:58:10 | 66,389,479 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,202 | py | import paho.mqtt.client as mqtt
import pokemon_list
import mysql.connector
from mysql.connector import IntegrityError
from datetime import datetime, timedelta
import config
cnx = mysql.connector.connect(user=config.db['user'], password=config.db['password'],
host=config.db['host'],
... | [
"jasper@vanderstoop.nl"
] | jasper@vanderstoop.nl |
66c416586d76d19c4316bbce007159a8d3fe8132 | 6c3cb408402f271ed9b02f19c45f3eee18a639e1 | /alpheus/specifiedfields (copy).py | e8e8a045d31a3034f929bbb166acdc2ea729563a | [] | no_license | dabhanddevelopments/Alpheus | 9fd01bdda153f2609b6b1013c05cd2ab364e2b8f | 87b7bf3400a4d3982d5a07cf2e8a5b15d141e7f7 | refs/heads/master | 2016-09-06T19:32:28.640060 | 2014-08-04T07:00:32 | 2014-08-04T07:00:32 | 22,905,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,153 | py | from tastypie.resources import ModelResource
class SpecifiedFields(ModelResource):
def build_filters(self, filters=None):
self.filters = filters
return super(SpecifiedFields, self).build_filters(filters)
def get_object_list(self, request):
self.specified_fields = []
... | [
"dan@dan.(none)"
] | dan@dan.(none) |
3da880d650ed11d210e00953cd7fdd86eb2f5f95 | fd487f0396c3d56913a67b3e0cc8e716b36b22f3 | /localized_fields/fields/__init__.py | c8f8f18b753d7656b6876b24fa2ae5dea0d09f15 | [
"MIT"
] | permissive | si14/django-localized-fields | 01764f345153fc8ce897a6a95b110fb64d1a95cd | d507cbfe7551fedcff6e090cac2e36861dec08ba | refs/heads/master | 2021-01-11T17:43:24.307852 | 2017-01-12T14:56:34 | 2017-01-12T14:56:34 | 79,824,497 | 0 | 0 | null | 2017-01-23T16:43:33 | 2017-01-23T16:43:33 | null | UTF-8 | Python | false | false | 323 | py | from .localized_field import LocalizedField
from .localized_value import LocalizedValue
from .localized_autoslug_field import LocalizedAutoSlugField
from .localized_bleach_field import LocalizedBleachField
__all__ = [
'LocalizedField',
'LocalizedValue',
'LocalizedAutoSlugField',
'LocalizedBleachField'... | [
"swen@sectorlabs.ro"
] | swen@sectorlabs.ro |
ef1217e108b7cc9d0f8e8462cddecfe08abff2f2 | d134b0503d05955e52c62762f67f0e7add792213 | /server.py | a8c5ef762e78163046fdb8b0aec2defbdc95e593 | [] | no_license | TinTran710/trie | 22cd148d938bc3a83f474ff0841abddec87136d7 | d03e2125f4d8444dba7662718239321cdef3bf26 | refs/heads/master | 2020-03-22T20:20:01.900579 | 2018-07-11T18:12:43 | 2018-07-11T18:12:43 | 140,589,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,572 | py | from flask import Flask, render_template, request
from src.NameCrawler import NameCrawler
from src.TrieSuggester import TrieSuggester
import time
app = Flask(__name__)
nameCrawler = NameCrawler()
names = getattr(nameCrawler, 'names')
namesLower = getattr(nameCrawler, 'namesLower')
root = TrieSuggester()
root.insert(n... | [
"tranquangtin710@gmail.com"
] | tranquangtin710@gmail.com |
a6bb80935308a3756e5b00c5bfb9bea54e12ff4f | d2be9079efb05b664cc0ee99f926684d5cb1994b | /core/migrations/0006_auto_20200907_1653.py | d6f77c35a818852ec7f21d7dc29291acf95d242b | [] | no_license | ssamiran472/forumsite | 01cc05d8644df9f496f1f41869c1dee89508f9dc | f16aa3f671a8a060ca36fe3e84bbb54c05435704 | refs/heads/master | 2022-12-13T01:48:00.073604 | 2020-09-14T17:10:46 | 2020-09-14T17:10:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,079 | py | # Generated by Django 3.0.9 on 2020-09-07 13:53
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('core', '0005_article_origin_content'),
]
operations = [
migrations.RemoveField(
model_name='art... | [
"solomin12q@gmail.com"
] | solomin12q@gmail.com |
2299e59e4bcf97ec1a169b467c901784973a81a5 | fbbe424559f64e9a94116a07eaaa555a01b0a7bb | /Sklearn_scipy_numpy/source/scipy/integrate/tests/test_banded_ode_solvers.py | 01e2fd7abbc3124e2398546cd351b7818ffbfe2c | [
"MIT"
] | permissive | ryfeus/lambda-packs | 6544adb4dec19b8e71d75c24d8ed789b785b0369 | cabf6e4f1970dc14302f87414f170de19944bac2 | refs/heads/master | 2022-12-07T16:18:52.475504 | 2022-11-29T13:35:35 | 2022-11-29T13:35:35 | 71,386,735 | 1,283 | 263 | MIT | 2022-11-26T05:02:14 | 2016-10-19T18:22:39 | Python | UTF-8 | Python | false | false | 6,863 | py |
from __future__ import division, print_function, absolute_import
import itertools
import numpy as np
from numpy.testing import run_module_suite, assert_allclose
from scipy.integrate import ode
def _band_count(a):
"""Returns ml and mu, the lower and upper band sizes of a."""
nrows, ncols = a.shape
ml = 0... | [
"master@MacBook-Pro-admin.local"
] | master@MacBook-Pro-admin.local |
92de662edb25f1b512a0338ae8d0fa44e437a5c0 | 425ce80b456b0563ae4c2da3033ec72a5b86be50 | /game/gamewithGUI.py | 9b8b9335ec654bd24d2dab272907c2f40f47f34c | [] | no_license | bolt41/gitBolt | c95aab1ee2e6493274355c11f4a12cb86f5c26bd | afd5afe8fc1d4b2b5081faee3bec9edc99b3ea56 | refs/heads/master | 2021-07-25T20:07:32.872681 | 2021-01-25T20:05:56 | 2021-01-25T20:05:56 | 242,374,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,350 | py | '''ДОБАВИТЬ:
ПРОВЕРКУ НА ПУСТОЕ ПОЛЕ ВВОДА'''
import random
from tkinter import *
from tkinter import scrolledtext
from tkinter import messagebox
def gen(): # функция генерации случайного числа
global gen_number # глобальное значение загадонного числа
gen_number = random.randint(0,1000) # рандомим
btn['st... | [
"bolt1986@bk.ru"
] | bolt1986@bk.ru |
dd83d96cef6fd32fd984cd573aa08a5303e786a7 | 4061fb23140589c74ef67b0345426a9231bc1c81 | /api/v1/views/places_reviews.py | effa5ba8a11b312464f81a74521b44c06c94e390 | [
"LicenseRef-scancode-public-domain"
] | permissive | bmuha1/AirBnB_clone_v3 | 940ebe5b70be8cd680366dfe8cad1ddffb7e604d | 05b0cdd0d626b58e70527a60f5ad7ee0531f49b2 | refs/heads/master | 2023-03-16T04:39:11.951006 | 2020-01-31T07:13:53 | 2020-01-31T07:13:53 | 236,544,851 | 1 | 0 | null | 2020-01-29T23:47:32 | 2020-01-27T17:08:12 | Python | UTF-8 | Python | false | false | 2,537 | py | #!/usr/bin/python3
"""
New view for Review objects that handles default Restful API actions
"""
from flask import Flask, jsonify, abort, request
from api.v1.views import app_views
from models import storage
from models.review import Review
@app_views.route('/api/v1/places/<place_id>/reviews', strict_slashes=False)
de... | [
"800@holbertonschool.com"
] | 800@holbertonschool.com |
93ea9150587b48b5870e355d79a91891172ccd7b | e90f9eaadcd099f1d4b30504702df59ef0ff63db | /build/algorithms/localization/catkin_generated/pkg.installspace.context.pc.py | 586c5f37eb42b20c59c6d3d9fc67b395bbb24732 | [] | no_license | SiChiTong/f110_ws | ce1e7b8408af645a9d09d8298933253e9810745f | a44b77f58527fabd4b2b2905132c6651e102134f | refs/heads/master | 2020-04-02T12:00:55.998831 | 2018-07-24T18:41:31 | 2018-07-24T18:41:31 | 154,416,188 | 1 | 0 | null | 2018-10-24T00:49:29 | 2018-10-24T00:49:29 | null | UTF-8 | Python | false | false | 382 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "localization"
PROJECT_SPACE_DIR = "/h... | [
"chriskao@seas.upenn.edu"
] | chriskao@seas.upenn.edu |
29f5560d44f15ef8cc4279933e0fcf158485d5ca | 663dacd96b6d7d126cdde5c3114b8a15d8b305b5 | /back_up_wiki_db.py | 7e1ae3035a604dabacdc88b73c18db12381b4895 | [] | no_license | HugoJBello/python-scripts | 8ffed08eb04459e9cbd6310eeee1e770ba4ed0c1 | ee4cf934f670dec33aa03ce5be115576865646eb | refs/heads/master | 2021-01-22T10:46:08.882064 | 2018-09-29T18:23:17 | 2018-09-29T18:23:17 | 92,653,790 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,247 | py | # you need the mysql python adapter:
# pip install mysqlclient-1.3.12-cp36-cp36m-win32.whl
# https://pypi.python.org/pypi/MySQL-python/
import MySQLdb
import base64
def connect_db():
return MySQLdb.connect(host="localhost", # your host, usually localhost
user="root", # your username
... | [
"noreply@github.com"
] | HugoJBello.noreply@github.com |
352fcb7c9f58a521bb5d26570b6dcfd4ba20d69b | d7b68e008c51d92d0e2b955167a8bc8198a36f56 | /Python/CalculoIDFT.py | 810f18fa308b739b775e96059f4a151b3e5426e6 | [] | no_license | BouCode/-PDS-Transformada-Discreta-de-Fourier | 1f707fce63a57646f146142edbc09f0a706c0409 | e9b723e2a00b0aa43127109956553ef77ab71b5c | refs/heads/master | 2022-12-09T14:15:06.938178 | 2020-09-16T21:08:49 | 2020-09-16T21:08:49 | 296,142,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 727 | py | import idft_01
import dft_01
import numpy as np
import matplotlib.pyplot as plt
if __name__ == "__main__":
x = np.array ([7, 4, 3, 9, 0, 1, 5, 2])
X = dft_01.dft (x)
XReal = np.real (X)
XImag = np.imag (X)
print (f'X: \n{X}')
x_2 = idft_01.idft (X)
x_2Real = np.real (x_2)
x_2Imag = np.im... | [
"joan.boulangger@gmail.com"
] | joan.boulangger@gmail.com |
72ffe935ac5c6d6ec8939aee95d84dc64d6e398e | bcd495a7b05233435e6c3e2aa6e8c50321feaa72 | /RNN/TFRecordMaker.py | 3cfdb8241c5fc3400798e84f1a51a9bc9dcee38a | [
"Apache-2.0"
] | permissive | MProtoss/Model4TF2 | abda4671e0c3461bd4600bdd5f5fad24fa1bc943 | 02b0fd2bf7fc346a347cdf5e04dbe8abd61be743 | refs/heads/master | 2020-12-10T11:42:08.537511 | 2020-03-30T09:55:54 | 2020-03-30T09:55:54 | 233,584,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | import os
import tensorflow as tf
import sys
import numpy as np
def generate_tfrecords(data_fileneme, tfrecod_filename):
fin = open(data_fileneme, "r")
line = fin.readline()
with tf.io.TFRecordWriter(tfrecod_filename) as f:
while line:
tokens = line.strip().split(' ')
label... | [
"mprotoss@outlook.com"
] | mprotoss@outlook.com |
f8b306141123347a6c62aa14dd2293dbf65787ef | 6dfb7fe44b6c5bfb7feb5a101656e3d3402a621f | /simulator/simp_py/comic24.py | 2e637423a88beedde004443a919170cec7bf5ef8 | [
"MIT"
] | permissive | kcfkwok2003/Simp_py | 11d6813fac83ab6309eb8efc22fcd8edde5b19b8 | f75e66da01b45dc8688dda602f8b33d4258f0c31 | refs/heads/master | 2021-05-11T00:36:36.872754 | 2018-12-19T01:41:15 | 2018-12-19T01:41:15 | 118,306,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,577 | py | # This comes with no warranty, implied or otherwise
# This data structure was designed to support Proportional fonts
# on Arduinos. It can however handle any ttf font that has been converted
# using the conversion program. These could be fixed width or proportional
# fonts. Individual characters do not have to b... | [
"kcfkwok@gmail.com"
] | kcfkwok@gmail.com |
b4b6d03a8c962d75d30e5e9116ebaae19c7b2e62 | 24badcc01e77651123b88592dba0c764c61c821d | /v1.2.py | 6b7c578f167bfb21df101040178ddc4086b92e9d | [] | no_license | PythonCalismaGrubu/Quizlet | b5cb155309b69d5cbc7a6064277dcb0129fcd752 | 72434010ed507e23737e86625aecea23056d3bc1 | refs/heads/main | 2023-01-12T15:51:10.401816 | 2020-11-15T22:12:31 | 2020-11-15T22:12:31 | 311,963,118 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 832 | py | ## ortancabijon sunar:)
print('Quize hoş geldiniz!')
sorular = ['1) Cumhuriyet ne zaman ilan edildi ?',
'2) TBMM ne zaman açıldı ?',
'3) Zafer Bayramı ne zamandır ?',
'4) Öğretmenler günü ne zamandır ?',
'5) Gençlik ve Spor Bayramı ne zamandır ?']
soru_numarası = 0
... | [
"noreply@github.com"
] | PythonCalismaGrubu.noreply@github.com |
ba82736ee41740e994253cf27c45278555f34f16 | eaa2b268142a4c382a768300c004f57e214e74ff | /Inheritance/Chef.py | 4b5462acf724bc127122add206fc2884fdf47510 | [] | no_license | rmdimran/Mastering_Python | 08292e944f6d1f35a46f360f0ead7f7373896892 | 67435d0bd14e775f0fec23ded9ad2b80fcdac54c | refs/heads/master | 2020-03-30T21:27:28.865610 | 2018-10-12T12:20:15 | 2018-10-12T12:20:15 | 151,629,250 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | class Chef:
def make_chicken ( self ):
print ( " The Chef makes chicken." )
def make_salad ( self ):
print ( " The Chef makes Salad." )
def make_special_dish ( self ):
print ( " The Chef makes BBQ Kababs." )
| [
"rmd92imran@gmail.com"
] | rmd92imran@gmail.com |
3b0446384c14791a627fc1e2531ab30ff7889cb2 | 3730763f757e1fc2267dfc1a10341715c7ba9bfe | /custom_components/sensor/strava.py | 5202b12b20155533ea8b93409f60226f1ecbbb6e | [] | no_license | tylerwal/HASS | 017dfeac50416915e4afc68fe4cd990dd9aa8aa6 | f336f8126b52ca8aa2bd9f45da4156c28a6b331b | refs/heads/master | 2021-05-11T13:59:38.329890 | 2018-12-09T03:43:41 | 2018-12-09T03:43:41 | 117,691,166 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,055 | py | """
Support for the Strava API.
For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/sensor.fitbit/
"""
import os
import logging
import datetime
import time
import voluptuous as vol
from homeassistant.core import callback
from homeassistant.components.http i... | [
"tylerwal@gmail.com"
] | tylerwal@gmail.com |
88b8fac854159c39322313a56f3037ae435235d7 | 0dcf63aa75145f95ad3fba5e5b1c3dfed9e02241 | /Proyecto1/views.py | 963a02589043542208a6f7c5d3dcb6d1b4c96cde | [] | no_license | erooster/python_p1 | 3c8385e050bd43b59e160d473bcf6fe074e0c224 | 103197c761e953b16d63c9e2fc08c3906d9c3b8a | refs/heads/master | 2022-12-07T11:55:36.164092 | 2020-09-01T13:47:48 | 2020-09-01T13:47:48 | 271,944,145 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,130 | py | from django.http import HttpResponse
import datetime
from django.template import Template, Context
from django.template.loader import get_template
from django.shortcuts import render
class Persona(object):
def __init__(self, nombre, apellido):
self.nombre=nombre
self.apellido=apellido
def medio... | [
"emilio@sherpab2b.com"
] | emilio@sherpab2b.com |
de581644bd80cc093a03bd65e532d8ba67b9ead8 | aa89ee068c9b337a2255eec24c113eb8c7ae1be9 | /client/cryptosocket.py | 27a628452be7ff5cd5ab01639d614b131eb8e414 | [
"MIT"
] | permissive | iwalton3/urpc | fd18393502808e15eb18fcacd9dd41cbfed363d5 | b8554b15b34b1109744db9b471243809b794e99f | refs/heads/master | 2023-09-01T12:03:41.839948 | 2021-10-26T23:58:13 | 2021-10-26T23:58:13 | 420,561,252 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,592 | py | import os
import hashlib
from Crypto.Cipher import AES
def hash(*args):
h = hashlib.sha256()
for arg in args:
h.update(arg)
return h.digest()[0:16]
class CryptoMsgSocket:
def __init__(self, sock, key, recv_first=False):
self.secret_key = key
self.session_key = os.urandom(16)
... | [
"ian@iwalton.com"
] | ian@iwalton.com |
c79c02516117cbbc551762c62dfc3a6760b6b536 | 6ba2a005c682a5bbd5980ad3bd0645efed337d95 | /setup.py | 0a073acc367bef22bd7299b800abce4c6e223f3b | [
"MIT"
] | permissive | n1te/drf_orjson | f75d4e7607953633c12012ee9e9db7408dfbee31 | d5a955609ee52eed7d7efb6300f1ef9333592bf7 | refs/heads/master | 2020-06-24T04:34:06.344562 | 2019-07-29T11:49:19 | 2019-07-29T11:49:19 | 198,850,532 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 441 | py | #!/usr/bin/env python
from setuptools import setup
setup(
name='drf_orjson',
version='0.3',
description='DRF ORJSON Renderer',
license='MIT',
author='Stanislav Shershnev',
author_email='shershnev.stas@gmail.com',
url='https://github.com/n1te/drf_orjson',
packages=['drf_orjson'],
in... | [
"shershnev.stas@gmail.com"
] | shershnev.stas@gmail.com |
1ff0ef24c1649cfd0c9c0958cf7fa0df46f8ed99 | b506a28ec3c9a5c5c38b2fe1c76d023fe292062f | /PH_LIGHTING/PH_MANAGERLIGHTS/OLD/PH_MANAGERLIGHTS_V004.py | 9beadae62cef4176425f737227bd5475bc1272b6 | [] | no_license | lefan2016/PipelineTool | 4fe7f631cce7017e4a81d2c3b08488e4a0e98968 | 8e9b6463222df468878958aa8eb0ed763ef5c52a | refs/heads/master | 2020-12-02T07:14:39.701840 | 2017-09-12T15:27:50 | 2017-09-12T15:27:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,138 | py | import maya.cmds as cmds
import maya.mel as mel
from functools import partial
lights = []
swatches = []
main_layout = ''
light_layout = ''
opt = 0
WIDTH = 800
HEIGHT = 600
#contadores para nombre de luz
contSpot=0
contDir=0
contPoint=0
contArea=0
contAmb=0
def UI(*args):
"""creates window for UI"""
# check to ... | [
"pabloemmanueldeleo@gmail.com"
] | pabloemmanueldeleo@gmail.com |
e42a51b692893c7356c406e9ed9c6a69317687b6 | 01a55f4e4d79c8f3541632dd8754ab7010ccf4d4 | /vanilla_net_code/__init__.py | c5efb8e5f1b051cd9e9d538b6f174114e14e164f | [] | no_license | zhao1701/supervised-vae | 30fe379776af3916b92c8b505a597777818a674b | 8b30e7a9288a1eada4bafd27a86758872083f040 | refs/heads/master | 2023-02-08T21:12:04.229815 | 2018-12-12T22:17:45 | 2018-12-12T22:17:45 | 154,344,195 | 3 | 1 | null | 2023-02-02T04:31:59 | 2018-10-23T14:38:10 | Python | UTF-8 | Python | false | false | 11,070 | py | import os
import numpy as np
import tensorflow as tf
class ClassicNeuralNetwork:
def __init__(
self, checkpoint_dir, log_dir, img_shape=(128, 128, 3), num_final_hidden_layer=32,
num_classes=2):
self.checkpoint_dir = checkpoint_dir
self.img_shape = img_shape
self.num_final_hidden_layer = num_final_hidd... | [
"ramy.fahim.t@gmail.com"
] | ramy.fahim.t@gmail.com |
71bb4c2e8b74c2309967e368b6b2f58a594a391a | d2e09ff4faf7c9330ac5970b92b1cc8ab918d586 | /controls.py | 4b727940196c06e050fd4d424d102af978790df6 | [] | no_license | zzggbb/waves | cc06e6ff48e1e577531dcfb9000a53599f56ef67 | 6f059118812e63d1b3e1bc08666c2e11afe84979 | refs/heads/master | 2018-12-04T11:00:53.995135 | 2018-09-06T05:07:26 | 2018-09-06T05:07:26 | 117,961,700 | 5 | 3 | null | 2018-03-12T23:15:48 | 2018-01-18T09:31:18 | Python | UTF-8 | Python | false | false | 1,456 | py | import pygame
import util
FONT_SIZE = 18
FONT_PATH = './resources/terminus.ttf'
FONT_COLOR = (255,255,255)
FONT_ANTIALIAS = True
CARD_WIDTH = 200
class Controls(object):
def __init__(self, surface):
pygame.font.init()
self.surface = surface
self.font = pygame.font.Font(FONT_PATH, FONT_SI... | [
"zanegbradley@gmail.com"
] | zanegbradley@gmail.com |
c4c053b4e5fb7caef4a06a5ca2ef9c6651462719 | aa8ff303018658501b2c03c7f3beaf444c466335 | /bin/utmlabel.py | 5c124c2dfbd8406d26ac21b0698bdffdbaa41678 | [
"MIT"
] | permissive | bitangler/usgs-maptools | d5fe6e9c6ad7eb9112a1f400b1f49c2ac95e10e7 | 5a391e7d27b5296d98e029661e1326b2122baa00 | refs/heads/master | 2020-03-30T08:13:37.676974 | 2018-09-30T19:32:45 | 2018-09-30T19:32:45 | 150,999,087 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 599 | py | """Format UTM grid points."""
from qgis.core import *
from qgis.gui import *
from math import floor
superscript = [u"\u2070", u"\u00B9", u"\u00B2", u"\u00B3", u"\u2074",
u"\u2075", u"\u2076", u"\u2077", u"\u2078", u"\u2079"]
@qgsfunction(args="auto", group="Custom")
def utmlabel(grid_number, feature, ... | [
"kris@bitangler.com"
] | kris@bitangler.com |
8fa1a366dbce5bdbffd627c0e4d92da526c386e8 | 8095901fb1499464d13ac0c203b787d8260220a3 | /solution.py | ef9c962b022387ab679c3942bb0e10b79027feb7 | [] | no_license | ks5750/prbml1 | 0bb9b5c32cbcd8729287a7a70001f1f45419016e | 975edbdf1b9cc58f14ef8ccf0b24e25ea70c8198 | refs/heads/master | 2023-08-10T18:09:23.398905 | 2021-09-18T04:55:55 | 2021-09-18T04:55:55 | 407,752,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,679 | py | # ! /usr/bin/env python3
from nacl.secret import SecretBox
from nacl.exceptions import CryptoError
import sys
import json
## with open(sys.argv[1]) as json_data:
## inputs = json.load(json_data)
##
inputs = json.load(sys.stdin)
outputs = {}
# Problem 1
ints_sum = 0
ints_product = 1
for x in inputs["problem1"]:
... | [
"kumar.saswat@gmail.com"
] | kumar.saswat@gmail.com |
adf4885d393bf0099e401b25aaa6873e9d870213 | 05eb33ed7741542ba59b925c6a294722d17373ff | /PythonCrashCourse/ch_7/deli.py | 6a9e438fee661c9b6d916b769726015e06ae102c | [] | no_license | alliejee/100DaysOfCode | 87bf3c524aef379731b793d4a921fbcec360fae0 | 532f6b39bfc13c19ee200e5a1af71dd8eb59d369 | refs/heads/master | 2021-05-18T22:24:35.703504 | 2020-04-30T02:44:40 | 2020-04-30T02:44:40 | 251,451,450 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | py | sandwich_order = ['grilled cheese', 'ham and cheese', 'sausage', 'pastrami', 'pastrami', 'pastrami']
finished_sandwiches = []
# no pastrami loop ex7.9
print("We are out of pastrami.. Sorry!")
while 'pastrami' in sandwich_order:
sandwich_order.remove('pastrami')
while sandwich_order:
sandwich = sandwich_order... | [
"grayskyze@protonmail.com"
] | grayskyze@protonmail.com |
f67418f9306eb02a5a68894a2fe661d4c07deceb | 061c7d6b96dd7b2c688a058011c0439072c24c99 | /home/migrations/0002_load_initial_data.py | f0df0b50225f3bd23b8b86f64e0dcdd3941b70d6 | [] | no_license | crowdbotics-apps/elden-web-app-18198 | 68a842f9d6fdffb94350ced0e9e8642c09ff0b88 | 9df018b854ae17d1424d5f99e26321e17b3e4626 | refs/heads/master | 2022-10-25T03:20:35.014126 | 2020-06-18T17:54:57 | 2020-06-18T17:54:57 | 273,304,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,306 | py | from django.db import migrations
def create_customtext(apps, schema_editor):
CustomText = apps.get_model("home", "CustomText")
customtext_title = "Elden Web App"
CustomText.objects.create(title=customtext_title)
def create_homepage(apps, schema_editor):
HomePage = apps.get_model("home", "HomePage")... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
bcf69b0576e77df73e23bfbeb74faec8ed5d12d2 | ad9ebfb9812ae23186e6de1e2191b95a1faec230 | /main.py | 67c825e55ac7fe2168d98d9ac5c3d45977c58965 | [] | no_license | saritazavala/Proyecto-3-Raycaster | 75346d1736b3a1b82c633bff7ee7477580c5f8d9 | 03b999f4f4b37add746502f0bad3ea8761b85be6 | refs/heads/main | 2023-01-18T23:19:27.072994 | 2020-11-29T16:42:25 | 2020-11-29T16:42:25 | 312,156,451 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,041 | py | # Universidad del Valle de Guatemala
# Sara Nohemi Zavala Gutierrez
# Graficas por computador
# 18893 - Proyecto 3
import pygame
import sys
from math import pi, cos, sin, atan2
import time
# ---------------------------------------------------------
SPRITE_BACKGROUND = (152, 0, 136, 255)
buttonsColor = (209, 101, 44)... | [
"saritazg2010@gmail.om"
] | saritazg2010@gmail.om |
4a29bd38d35dea84f88a9400a37163e7576ef7ac | 0f52b2e16a4918a6aeb72f8c6ff9ae6cf7d3323a | /base/pytorch_AF.py | 4e7744fa4de267b81582390946be06e57eae4ac6 | [] | no_license | wellstone-cheng/pytorch | f7ec5bba4b8b8829382166ec2ba3201286198bde | 8094f0c7a9a076df64658f4eb5d000ecfafd1e01 | refs/heads/master | 2021-04-17T15:23:22.040913 | 2020-04-10T22:20:14 | 2020-04-10T22:20:14 | 249,454,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,579 | py | import torch
import torch.nn.functional as F
import matplotlib.pyplot as plt
x=torch.linspace(-5,5,200) #
x_np=x.numpy()
#print(
# '\n x',x,
# '\n x_np',x_np
#)
y_relu=F.relu(x).numpy()
y_sigmoid =torch.sigmoid(x).numpy() # F.sigmoid(x).numpy()
y_tanh =torch.tanh(x).numpy() #F.tanh(x).numpy(... | [
"wellstone_cheng@qq.com"
] | wellstone_cheng@qq.com |
42d9a4c190582ed883701c786643f56d0a13f971 | 2c49383d1d6427ef51d25b92a3bb700f5f6e697f | /s3tup/cli.py | 87b18fb290c46940d949e7fe3fa340feb7e59781 | [] | no_license | viglesiasce/s3tup | d1bc3fec270e8861c99268e6eeaf313ac8c10278 | 97070d78b873d51439a15b6b8dc5ac514c6df0f0 | refs/heads/master | 2020-12-31T03:26:03.767224 | 2014-01-21T07:01:57 | 2014-01-21T07:01:57 | 16,094,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | import argparse
import logging
import textwrap
import sys
import os
from s3tup.parse import load_config, parse_config
log = logging.getLogger('s3tup')
title = (
"\n"
" _____ __ \n"
" ____|__ // /___ ______ \n"
" / ___//_ </ __/ / / / __ \ \n"
" /__ /__/ / /_/ /_/ / /_/ / ... | [
"alex@heyimalex.com"
] | alex@heyimalex.com |
3d9582feae2c0fedf4ccf9382eb49e0b37af4796 | cf1b129434ae2525e5f9518afa49ed572a13854b | /Easy/20. 有效的括号.py | 7f984a77123a7c28e65c4011f0dc2ece8162da60 | [] | no_license | 1042113343/LeetCode | b338ac94af4ca94e9b453d86d6aec43408cd7a22 | 3830e354b6231b3a06c1d4a2fa6eb5b0dae9382c | refs/heads/master | 2020-04-28T23:37:35.672259 | 2019-06-11T10:08:55 | 2019-06-11T10:08:55 | 175,662,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 382 | py | class Solution:
def isValid(self, s: str) -> bool:
stack = []
mapping = {")":"(","}":"{","]":"["}
for c in s:
if c in mapping:
top = stack.pop() if stack else "#"
if mapping[c] != top:
return False
else:
... | [
"noreply@github.com"
] | 1042113343.noreply@github.com |
260edbe4c99daa2a80cd61822d51dd85ecb9006c | 065216339a23f8d22229cb417f20f55f6c53c194 | /rsna_dataset.py | 15f2b8ef19860db9d11d3a9373355529c4ed19f7 | [] | no_license | yishayahu/transfer_avg | 340eb362f2f642ac684c70a1be6a43647def965c | 4412fe03bc6db64846e2bc994d28e7ecd0463e70 | refs/heads/master | 2023-08-28T20:29:40.466371 | 2021-10-24T16:57:44 | 2021-10-24T16:57:44 | 418,930,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,370 | py | from torch.utils.data import Dataset
import torch
import numpy as np
import os
from torchvision import transforms
import random
import matplotlib
import matplotlib.pyplot as plt
import glob
import cv2
import PIL
from PIL import Image
import pandas as pd
import pydicom
import tqdm
matplotlib.use('Agg')
class RSNAData... | [
"ishayahu156@gmail.com"
] | ishayahu156@gmail.com |
8160a3dfc6157110e0f27732509eac6fd6a48b62 | b62a0d978f1d3bfbec7af6b3e766ecf70e6a363b | /lib/read_hosei.py | 4b8331c8d66063ebaafa5811b34c1eb88aadfca6 | [] | no_license | nanten2/necst-ros | 8b9f515435bb21b91c2716e41d7eeca83dd3259c | 26342e813506f428ac8d97ebe1e30309357eddad | refs/heads/master | 2022-10-14T23:33:56.881073 | 2022-06-10T05:52:21 | 2022-06-10T05:52:21 | 63,134,661 | 1 | 4 | null | 2022-06-10T05:52:22 | 2016-07-12T07:03:07 | Python | UTF-8 | Python | false | false | 101 | py | import pandas
def read(path):
d = pandas.read_csv(path, index_col=0, header=0)
return d.T
| [
"shiotani@a.phys.nagoya-u.ac.jp"
] | shiotani@a.phys.nagoya-u.ac.jp |
8e3b665661854e7b4234d58cdd8c902e6d475e2b | f9cabf7aa1130dd28aff661497fcadddb4c0ae98 | /scripts/pre_process.py | 43c30e4bb1951cab697e968da191bcb0bcfb9f7b | [
"MIT"
] | permissive | NCBI-Hackathons/DiabetesDataViewer | 5b2ab956d9c209b2b7412ee13b1983dcf8a67458 | d7aad7f768818191505cdd8b9ffe333c9a7c0fc9 | refs/heads/master | 2020-04-02T07:36:35.550408 | 2018-11-10T22:49:32 | 2018-11-10T22:49:32 | 154,205,230 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,661 | py | import xlrd
import xlwt
from xlutils.copy import copy
import argparse
import sys
from numpy import array,concatenate, savetxt
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
from sklearn import datasets, linear_model
from sklearn.metrics import mean_squared_error, r2_score... | [
"noreply@github.com"
] | NCBI-Hackathons.noreply@github.com |
499923f92142809ac271284cc63aec01501f3c95 | c99c037ce146bc77d43ec3fe96f619b08b65b05e | /volunteers/migrations/0003_auto_20190326_1306.py | 24eff425800fe11433f225f020aa568404f895a4 | [] | no_license | julianl092/cs91r_volunteer_dashboard | 58309690d89aafdaf71f1180938884356c7b0632 | 0d05bb54b301576a4ac3997bf9cfd0d5bfa1c75c | refs/heads/master | 2020-05-20T09:03:14.258429 | 2020-03-11T15:25:06 | 2020-03-11T15:25:06 | 177,918,198 | 1 | 0 | null | 2019-03-27T04:31:19 | 2019-03-27T04:31:19 | null | UTF-8 | Python | false | false | 721 | py | # Generated by Django 2.1.7 on 2019-03-26 17:06
import datetime
from django.db import migrations, models
import django.utils.timezone
from django.utils.timezone import utc
class Migration(migrations.Migration):
dependencies = [
('volunteers', '0002_auto_20190326_1306'),
]
operations = [
... | [
"eric_lin@college.harvard.edu"
] | eric_lin@college.harvard.edu |
2c3c77674b4df94e548985e61649a7caa7b3d400 | c4d529c211bfd31b3b55772808d790fdcd90316a | /train_bert_on_questions.py | 301c975e7d76e528b14d28b57e945a4562d8af09 | [] | no_license | ostamand/google-quest-qa | 76a2e061027b23087da22d807f9e0f48d44db112 | a22fefcf7d93dafda9c90804cdcd5f41c24452ed | refs/heads/master | 2022-03-27T02:36:45.960955 | 2020-01-08T02:31:16 | 2020-01-08T02:31:16 | 226,440,162 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,677 | py | import argparse
import os
import gc
from typing import List
from functools import partial
from multiprocessing import Process
import pickle
import torch
import torch.nn as nn
import torch.optim as optim
import transformers
import numpy as np
import pandas as pd
from sklearn.model_selection import train_test_split
try... | [
"olivier.st.amand.1@gmail.com"
] | olivier.st.amand.1@gmail.com |
da598a0e46a26492e6954cc6ae54e451d95f1bfc | c2ec27eee039c372ca327ffb7e10e848902ffe77 | /2.The-Network-Basics/simple-tcp-server.py | 4b3a9d1f038673669507de6f46f6d1a07840c7c8 | [] | no_license | JaewoongMoon/black-hat-python | 3a8b74fbe353d5bf69231c079aa98d291662f85b | 5e922dbf3a452518707618e7d6a358c2c7610fea | refs/heads/master | 2021-01-12T12:48:36.764581 | 2018-09-27T02:42:54 | 2018-09-27T02:42:54 | 68,992,588 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 811 | py | import socket
import threading
bind_ip = "0.0.0.0"
bind_port = 9999
server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
server.bind((bind_ip, bind_port))
server.listen(5)
print "[*] Listening on %s:%d" % (bind_ip, bind_port)
# this is our client-handling thread
def handle_client(client_socket):
# pr... | [
"mjw8585@gmail.com"
] | mjw8585@gmail.com |
eacd581ec81cac1ea696592dcce5be2e8ad2632c | af5b78621cce14edd6b3d4fd2668cafecb84ea25 | /mail/migrations/0001_initial.py | 1ad261da8e95d86f687bb6874b1aa0d1b7d78522 | [] | no_license | supah0t/mail | e76e7a26428deae8edd8d54463af29b26ff2362c | 9afee09ac69d6c534ea0280f483e3eccf7c0bcee | refs/heads/main | 2023-01-13T04:06:57.480924 | 2020-11-20T11:59:10 | 2020-11-20T11:59:10 | 313,339,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,883 | py | # Generated by Django 3.1.2 on 2020-11-16 11:04
from django.conf import settings
import django.contrib.auth.models
import django.contrib.auth.validators
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
... | [
"supah0t@users.noreply.github.com"
] | supah0t@users.noreply.github.com |
dc7b17db74f253bcf0493dbde80f8e4c084a676e | 89694213813612e2ac859a25f4a69f4f9b348c4a | /phylogeny_prepare_partitionfinder_exons.py | c09054eec13752fba063e0cc079c29d6939df01b | [] | no_license | singhal/AWT_delimit | b953a87f021b96d7c06550c05b9a40faa9d8699b | 91bc830704a9fcf38e098c9bc0e9488a4c88bd4d | refs/heads/master | 2020-11-29T15:08:30.392916 | 2018-05-22T18:23:12 | 2018-05-22T18:23:12 | 87,488,218 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,551 | py | import argparse
import glob
import os
import pandas as pd
import re
import subprocess
import random
"""
Sonal Singhal
created on 23 June 2016
Written assuming nothing!
"""
def get_args():
parser = argparse.ArgumentParser(
description="This creates the files that then get "
... | [
"sonal.singhal1@gmail.com"
] | sonal.singhal1@gmail.com |
4fe454a1f0a7ff87244442e3bb8745be2de594e7 | 77a6d698bd38257d19e2be58395d666970fb1abc | /MISC/opt_omega_ip.py | 1f30e7564e6c5decd42ff9ef937b6271af7e25ce | [
"MIT"
] | permissive | chrinide/photoxrepo | 89775bf95067f5fe78f0bcd75524bf46ae1be09b | 83ad3813e9c52926e6387afc76813e99d430a5f3 | refs/heads/master | 2023-08-16T12:50:06.391936 | 2021-10-11T12:37:22 | 2021-10-11T12:37:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,797 | py | #!/usr/bin/env python
import os
import sys
sys.path.append(os.getcwd())
import abinitio_driver as driver
from abinitio_driver import AUtoEV
import scipy.optimize as opt
from scipy.interpolate import interp1d
try:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
except:
pass
# This i... | [
"hollasd@vscht.cz"
] | hollasd@vscht.cz |
374f8bf39cfeedb5f14513ada5f0d41be8a8a13d | eda0e84113b1e7fe2676af7dc8e7e52b12a57f8e | /ChatSite/chatsiteapp/models.py | 7ce0aa5b51b0f777427a9a14cad4f8551f3d152f | [] | no_license | Alton1998/finalWatermodule | d6e2487d23b0ba842efa026fe66704222b2b9451 | 405fd0427e1529cce5ddc16ed50a0dbcdab75a1f | refs/heads/master | 2020-03-19T03:31:58.131464 | 2018-06-01T15:53:18 | 2018-06-01T15:53:18 | 135,736,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,277 | py | from django.db import models
# Create your models here.
class Access_Log(models.Model):
User=models.CharField(max_length=255)
time=models.CharField(max_length=25)
def __str__(self):
return self.User,self.time
class Data_LogA(models.Model):
Sump=models.FloatField()
Tank=models.... | [
"noreply@github.com"
] | Alton1998.noreply@github.com |
87f191441b5b12c8a70b3307b557694e990fad3c | 99c780837f329c246b0e973c8cd0b05b1e4dd904 | /main.py | 899809b3ae630186cf742e57990bcb993f47b2b8 | [] | no_license | srishti49/snakeGame | cdc8a264b2cbc938df8fe9870e28ee25b5fd565a | b2988772ce64a09ff5131afb165d8da03e926ada | refs/heads/master | 2023-04-22T06:03:08.317312 | 2021-05-14T10:58:25 | 2021-05-14T10:58:25 | 367,333,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | from turtle import *
import time
import random
score=0
execution_delay=0.1
root=Screen()
root.title('Snake Game')
root.setup(width=600,height=600)
root.bgcolor('grey')
root.bgpic('border.gif')
root.tracer(False)
root.addshape('upmouth.gif')
root.addshape('downmouth.gif')
root.addshape('rightmouth.gif')
root.addshape(... | [
"srishtigupta191@gmail.com"
] | srishtigupta191@gmail.com |
50e8682696ae42585406f3bfc3c0c86d4e89c605 | bb88cc84557dd00ac1a10ba9912d4c81a38ca724 | /repo_aga.py | 11cc98b645063debbc198493724879d2096ea866 | [] | no_license | aguszcz/ZaliczeniePython | fb4eeccf6a68c733e1d8d1d82336094aa613cf32 | cbf41186f006067b6f186b02a9e61f0d43e0d642 | refs/heads/master | 2016-08-12T07:31:39.272756 | 2016-01-25T23:05:14 | 2016-01-25T23:05:14 | 50,363,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,115 | py | # coding=utf-8
# -*- coding: utf-8 -*-
import sqlite3
import math
from datetime import datetime
#
# Scieżka połączenia z bazą danych
#
db_path = 'aga_baza.db'
#
# Wyjątek używany w repozytorium
#
class RepositoryException(Exception):
def __init__(self, message, *errors):
Exception.__init__(self, messa... | [
"aguszcz@gmail.com"
] | aguszcz@gmail.com |
514a8f5bf7947643d5efe1a4b19b02143b7ccf70 | b095173b2dbc77c8ad61c42403258c76169b7a63 | /tests/unit/sagemaker/cli/compatibility/v2/modifiers/test_matching.py | 9886eba0f512979d69baf935e96cfe87301464d7 | [
"Apache-2.0"
] | permissive | aws/sagemaker-python-sdk | 666665e717cfb76698ba3ea7563b45344634264d | 8d5d7fd8ae1a917ed3e2b988d5e533bce244fd85 | refs/heads/master | 2023-09-04T01:00:20.663626 | 2023-08-31T15:29:19 | 2023-08-31T15:29:19 | 110,621,895 | 2,050 | 1,255 | Apache-2.0 | 2023-09-14T17:37:15 | 2017-11-14T01:03:33 | Python | UTF-8 | Python | false | false | 2,807 | py | # Copyright 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://aws.amazon.com/apache2.0/
#
# or in the "license" file accompan... | [
"noreply@github.com"
] | aws.noreply@github.com |
011a24fe82e89f3224deaf69c1273d7b84c8cc9e | cecf366befe2c349d98d153b6ea9af4a2f750de7 | /forum/migrations/0001_initial.py | d692650c6541db3d219d9eb48486740101583f70 | [] | no_license | VinceKlaus/django-forum | acfe603a1f549c96bc42be66ab1e43f8e51af5e6 | 913a8e504fbdd0068288fa0fb7f7be2a3e4bb485 | refs/heads/master | 2021-06-14T14:21:34.283813 | 2016-10-21T16:46:05 | 2016-10-21T16:46:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 669 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-10-09 14:18
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Post',... | [
"benemeritosam@gmail.com"
] | benemeritosam@gmail.com |
f5b5dde599fd732b3dcd51c460406ac5ddd39a3e | 70bb44a349b8019a1288f634a8489741b3c9390c | /show_best_per_level.py | b6666f6a46dd37c474da5fb237dd9e51fcce25a4 | [] | no_license | TopSteely/GenericObjectCounting | d6c5d27e0ef1c576cb252f80b6e110029df4680c | 3807ca0d4fe6fa5ee203cd17216263da29f30e1d | refs/heads/master | 2023-03-05T03:06:55.000702 | 2017-12-05T04:57:32 | 2017-12-05T04:57:32 | 75,942,435 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 28,753 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Oct 30 12:20:18 2015
@author: root
"""
from sklearn import linear_model, preprocessing
import matplotlib
matplotlib.use('agg')
import os
import numpy as np
import matplotlib.pyplot as plt
import pickle
import numpy
import math
import sys
import random
import pylab as pl
impo... | [
"tstahl@node429.cm.cluster"
] | tstahl@node429.cm.cluster |
5bdb451f4eafff11c3931838f36a071598586ff1 | df23ee09fffae3ea6a32925f80996f474aefabb9 | /src/myclips/TemplatesManager.py | 4b84efa7e9d07d49ae0de0d6c54d21e6f5505cd1 | [] | no_license | stefano-bragaglia/myclips | 9e5e985d4b67250723012da4b2ed720e2bfeac72 | bb7b8dc6c1446235777c0e4ebf23e641d99ebc03 | refs/heads/master | 2022-08-01T10:09:45.019686 | 2020-05-27T19:59:47 | 2020-05-27T19:59:47 | 267,410,326 | 0 | 0 | null | 2020-05-27T19:38:28 | 2020-05-27T19:38:28 | null | UTF-8 | Python | false | false | 12,149 | py | '''
Created on 17/lug/2012
@author: Francesco Capozzo
'''
from myclips.Observable import Observable
from myclips.RestrictedManager import RestrictedManager, RestrictedDefinition
from myclips.facts.Fact import FactInvalidSlotName
class TemplatesManager(RestrictedManager, Observable):
'''
Stores the list of al... | [
"ximarx@gmail.com"
] | ximarx@gmail.com |
1114c90bad42e3a38380605f91f476588a622ef2 | 4e792017bbcc286c9b9002a50406f64e5edebe1a | /VAE.py | 091ff98130ea5097f83debf1ca1b2fbcf715c657 | [] | no_license | thefirstthing/testnew | a34daf44b0c0739f05ee65f0a17975445b1ca4e7 | 85db8816359834147d066645f7787c0729fccfa1 | refs/heads/master | 2022-05-30T07:02:23.854190 | 2020-05-05T10:15:19 | 2020-05-05T10:15:19 | 260,722,902 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,637 | py | # -*- coding: utf-8 -*-
"""
Created on Thu May 31 15:34:08 2018
@author: zy
"""
'''
变分自编码
'''
import tensorflow as tf
import numpy as np
import matplotlib.pyplot as plt
from tensorflow.examples.tutorials.mnist import input_data
from scipy.stats import norm
#https://github.com/tensorflow/models/tree/master/tutorials/... | [
"noreply@github.com"
] | thefirstthing.noreply@github.com |
851f82dcfa058916c1efeb84f69d6a2d9bbed524 | 4f81302e314a8ec89e2d142178d21a766bdb2bd1 | /snake.py | aea8d223986e9e59416e2ce0d657ea7ac73b222e | [] | no_license | AlirezaKhadem/snake_game | 200f7cf73066fbfd7866c32b381148411b9d565c | b51bc047273000f926e86b4179fa417db3c92707 | refs/heads/master | 2022-12-15T12:01:32.850070 | 2020-08-26T06:54:13 | 2020-08-26T06:54:13 | 290,420,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,179 | py | import consts
class Snake:
dx = {'UP': 0, 'DOWN': 0, 'LEFT': -1, 'RIGHT': 1}
dy = {'UP': -1, 'DOWN': 1, 'LEFT': 0, 'RIGHT': 0}
def __init__(self, keys, game, pos, color, direction):
self.keys = keys
self.cells = [pos]
self.game = game
self.game.add_snake(self)
self... | [
"sar.khadem2000@gmail.com"
] | sar.khadem2000@gmail.com |
59bad89b567bce131e1cad571a2d11e9acdf72e4 | 1f34a9acb248bbe585cc3c976f58e2c7733990c8 | /to_inference_engine.py | f3472ae6e7469e6006927b99da9a346a540d019d | [] | no_license | minikai/FireHose | 822edab71448819f5a07c8cf3bbd85e657a64ec3 | ff0f85f2433ac62b1ffba438e1e20d3c22d7712d | refs/heads/master | 2020-03-11T02:20:00.853226 | 2018-04-20T02:36:53 | 2018-04-20T02:36:53 | 129,716,519 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,887 | py | import requests
import json
import pandas as pd
import configparser
import csv
import datetime
import numpy as np
import time
config = configparser.ConfigParser()
config.read('ex_config.ini')
duration_API = config['push_data']['duration_API']
url = config['api']['url']
df1 = pd.read_csv('testing_data.txt', header=N... | [
"noreply@github.com"
] | minikai.noreply@github.com |
91454149cf929925c7fb858725a3e439460d1deb | d3444cc316b1ac38af84fff0478602c017f5223b | /src/models/audio_model.py | b4ec6b44b42d340a5b6e297ced353595830e20f8 | [] | no_license | andricmitrovic/multimodal-emotion-classification | 57b100ef71eca011bb39cb395950f9602ce654a4 | 098970a568b2544519d41525beed969b93e5cb74 | refs/heads/main | 2023-07-04T09:03:15.401933 | 2021-08-11T07:33:15 | 2021-08-11T07:33:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,866 | py | import torch
from torch import nn
import torch.nn.functional as F
class BaselineAudioModel_1(nn.Module):
def __init__(self, input_size):
super(BaselineAudioModel_1, self).__init__()
self.input_size = input_size
self.fc1 = nn.Linear(6280, 2000)
self.bc1 = nn.BatchNorm1d(200... | [
"bkoch4142@users.noreply.github.com"
] | bkoch4142@users.noreply.github.com |
0a926fa0ce8a2eecd37752dd43344ad283fc7811 | 0fccee4c738449f5e0a8f52ea5acabf51db0e910 | /genfragments/ThirteenTeV/MSSM_HiggsToMuMu/fragment_mhmodp_MA225_tb10_bbA.py | 757549654d6e789d0e2ed800678ef40325916912 | [] | no_license | cms-sw/genproductions | f308ffaf3586c19b29853db40e6d662e937940ff | dd3d3a3826343d4f75ec36b4662b6e9ff1f270f4 | refs/heads/master | 2023-08-30T17:26:02.581596 | 2023-08-29T14:53:43 | 2023-08-29T14:53:43 | 11,424,867 | 69 | 987 | null | 2023-09-14T12:41:28 | 2013-07-15T14:18:33 | Python | UTF-8 | Python | false | false | 16,607 | py | COM_ENERGY = 13000.0 # GeV
CROSS_SECTION = 1 # pb
PROCESS = 'HiggsBSM:gg2A3bbbar = on'
SLHA_TABLE = """BLOCK SPINFO
1 FeynHiggs
2 2.12.0
2 built on ott 13, 2016
BLOCK MODSEL
1 0 # Model
2 1 # GridPts
3 0 # Content
... | [
"pietro.vischia@gmail.com"
] | pietro.vischia@gmail.com |
86b995a13a8b8c7b9d9178f53df1180e499b924e | cfcf2a2002bf6099ed5bbfcfa215f3c83efb14a2 | /113bN_proper_event_summary.py | 758cc58fe6bdf8521e41d21e1a1435b883ed7256 | [] | no_license | griffada/AQUACAT_UKCEH | c07dcbf1ac277cd4759929e3cc2fe121cdc68fb5 | cee49f0fa5a8b3d1fc7dab7f02da4f64648ffc5a | refs/heads/master | 2023-08-16T08:02:51.831710 | 2021-10-22T13:50:48 | 2021-10-22T13:50:48 | 281,631,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,416 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 2 11:17:32 2021
Author: Adam Griffin, UKCEH
Project: AQUACAT
Script to summarise EC events.
"""
import os
import netCDF4 as nc
import pandas as pd
import numpy as np
import re
import sys
import yaml
import time
import gc
# def season(x):
# return ["DJ... | [
"adagri@ceh.ac.uk"
] | adagri@ceh.ac.uk |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.