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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
81353cc3889ed290f47df18bd617a984e547a18c | c3358a9a9914fdba9a4a276b68f7c3c921571a14 | /bin/wheel | b2a57ed3a505f0c031772736af677e9172331846 | [] | no_license | mohithg/django_learn | ee411da9402ff8a73ce8120f25e1ce558d2936d7 | cb917cbcf53be1ec9d8ac30b5d45d0e723995df9 | refs/heads/master | 2021-08-07T05:00:24.800568 | 2017-11-07T15:35:43 | 2017-11-07T15:35:43 | 109,852,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 241 | #!/Users/mohithg/learning/django/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from wheel.tool import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"mohithgm@gmail.com"
] | mohithgm@gmail.com | |
26448faf3cba7c0c50f9b20ffe7ffba940ed1a4b | 0ceb04ce763cf8b73f9b71a211990070abc1f5bb | /src/helpers/plotterHelper.py | 3685e691e8b957c5a86229632115e90d10ddc46d | [
"MIT"
] | permissive | fangzhimeng/MachineLearningRegressionBenchmark | e04412581ca21d82f4bbff64ba29ec9795337cac | 42a83a1261dbf6b30624e9950db5b2d297622d76 | refs/heads/main | 2023-03-21T04:57:51.633945 | 2021-01-10T20:20:24 | 2021-01-10T20:20:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | from matplotlib import pyplot
from pandas.plotting import register_matplotlib_converters
from matplotlib import style
from numpy import arange, linspace, ndarray, array, unique
from scipy.interpolate import make_interp_spline, BSpline
from src.store import Store
style.use('ggplot')
register_matplotlib_converters()
... | [
"iulian.octavian.preda@gmail.com"
] | iulian.octavian.preda@gmail.com |
42f478e01f3ca3ec68d1abb1a1fbf7bba99fdb5e | 9647e44409b261f823ceccce79b4ec34ea3a9bd6 | /timeapp/__init__.py | e2d04bb17d4cbbe39ae8da13fd276aa0441176e2 | [
"MIT"
] | permissive | iskenderunlu/jogging-time-management | a7cbaf37fd6678571608b7d9277655f7fcc3e136 | 1cf88bee2abe1f237a2e6f194264064ec89d6e4a | refs/heads/master | 2022-11-28T22:12:12.948328 | 2020-08-19T11:31:25 | 2020-08-19T11:31:25 | 288,540,160 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | ## write according to your app name here
default_app_config = 'Timeapp.apps.TimeappConfig' | [
"iskenderunlu804@gmail.com"
] | iskenderunlu804@gmail.com |
c57d4e1cdaa74d2a4820707c049cc11363c0b70c | 2597c0487ce5b7a388df2e5c377721c139a1acd8 | /bin/python/comparison.py | 1fc37db8d81e9b0967940e802c66faaf4f806885 | [] | no_license | cilesiz/fluffy-octo-system | 8ca5b46fb2bad0ad9599be24eaeb8b01c3cb06f0 | 8d6e7d32d7a07c4e68dfb154d3460a9ca55726c3 | refs/heads/master | 2020-03-20T02:58:02.157506 | 2015-12-27T06:02:32 | 2015-12-27T06:02:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | #!/usr/bin/env python
message = "new string"
message2 = "new string"
if message == message2:
print "they match"
| [
"rossof@icloud.com"
] | rossof@icloud.com |
f38e52cda7f5a3f771a65f7eeb92d6375981bb4a | f25440c9f9fd470ba44394a36d5659dd47ee8800 | /tests/conftest.py | 6ee0b688b6b226162706d75c8e1acd7eadcb3541 | [] | no_license | kqf/hubmap | 75010d9109f8b8656e244179de5de226be584d5b | 37b3d839f0ad3f47dc39c1b9b036cb1acc27ca2c | refs/heads/master | 2023-02-20T04:06:00.145932 | 2021-01-23T07:56:13 | 2021-01-23T07:56:13 | 317,635,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | import pytest
import tempfile
from pathlib import Path
from models.preprocess import write
from models.mc import make_blob, blob2image
@pytest.fixture
def size():
return 256
@pytest.fixture
def fake_dataset(size=256, nfiles=5):
with tempfile.TemporaryDirectory() as dirname:
path = Path(dirname)
... | [
"noreply@github.com"
] | kqf.noreply@github.com |
46fb30be2965828aa50fce9cd0eb5a1588be3c08 | 6b556d8096c14e7ee3b408a066808baf6de138b3 | /main.py | df363c2c8228f28add5cad03c0f1b7a4f81480ba | [] | no_license | hieumdd/gavin_stripe | a717be8c3c92331533394ea8f7fda72abf1699dd | e0a9d8004dedcf82291fbed31e3edf720c137690 | refs/heads/master | 2023-06-06T00:05:26.062564 | 2021-06-22T13:34:33 | 2021-06-22T13:34:33 | 379,280,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | from models import BalanceTransactions
def main(request):
request_json = request.get_json()
job = BalanceTransactions(start=request_json.get('start'), end=request_json.get('end'))
responses = {
"pipelines": "Stripe",
"results": [job.run()]
}
print(responses)
return responses
| [
"hieumdd@gmail.com"
] | hieumdd@gmail.com |
e1dcd2a11d7423ba518efc1697c3a148293ffa2a | 5456502f97627278cbd6e16d002d50f1de3da7bb | /components/google/core/browser/DEPS | 26e9743a04d2db628f4a7357a7d73e4ad5cf843a | [
"BSD-3-Clause"
] | permissive | TrellixVulnTeam/Chromium_7C66 | 72d108a413909eb3bd36c73a6c2f98de1573b6e5 | c8649ab2a0f5a747369ed50351209a42f59672ee | refs/heads/master | 2023-03-16T12:51:40.231959 | 2017-12-20T10:38:26 | 2017-12-20T10:38:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 135 | include_rules = [
"+components/data_use_measurement/core",
"+components/keyed_service/core",
"+components/pref_registry",
]
| [
"lixiaodonglove7@aliyun.com"
] | lixiaodonglove7@aliyun.com | |
da48be8998dbc65a10f28b1a195faa144e03a79c | 88c3f6dd1e62da124a9718f745ced22e28491d62 | /FWHM.py | de3fdf5d7a4bae1eb711aefd34c5a67f10beeb45 | [] | no_license | zhazhajust/THzScript | df79edfb72665074ec79684be17d8f63fdabaa49 | 005c4206c870aca430ffa794bfe3a485fff2b9c6 | refs/heads/main | 2023-07-15T18:43:43.169484 | 2021-08-20T13:11:29 | 2021-08-20T13:11:29 | 398,280,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 975 | py | import numpy as np
import constant as const
import scipy.signal
from scipy.signal import chirp, find_peaks, peak_widths
from scipy.interpolate import UnivariateSpline
import matplotlib.pyplot as plt
load_dir = const.txtdir+"xt.npy"
xt = np.load(load_dir)
xt = xt.real
xtProfile = [] #* (0+0*1j)
#xt = xt.astype('complex... | [
"251338258@qq.com"
] | 251338258@qq.com |
b37c7369aca8f5f50c6d95de5bc3431d254cf30f | d0fc402348cc87cf378336a2e4173cd9eede3c9b | /std_generator/data_helper.py | 761bad756f0aad0b95b0ebd660b46c603fd4468c | [] | no_license | dominthomas/gpu_farm | 154ef37003a6692b3f6a8157975f222b8560b2b3 | 67f5e1326e7d5579004f4acc1d31c66b19615f6b | refs/heads/master | 2021-02-09T04:51:11.028799 | 2020-04-19T14:44:10 | 2020-04-19T14:44:10 | 244,241,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,079 | py | import nibabel
import numpy as np
from tensorflow import keras as K
class DataGenerator(K.utils.Sequence):
def __init__(self, list_IDs, labels, batch_size=5, dim=(176, 256, 256), n_channels=1,
n_classes=10, shuffle=True):
"""Initialization"""
self.dim = dim
self.batch_siz... | [
"dthomas@donbibi.localdomain"
] | dthomas@donbibi.localdomain |
5fd5f69280f7e2c8dfa60b2c1d5a770471cc61ab | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2520/60790/274856.py | 18e4e0a2884251d28a2c4c3bc79d6f4d2f5ba4c8 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | R=int(input())
C=int(input())
r0=int(input())
c0=int(input())
print(sorted([[i, j] for i in range(R) for j in range(C)], key=lambda x: abs(x[0] - r0) + abs(x[1] - c0))) | [
"1069583789@qq.com"
] | 1069583789@qq.com |
974a2ad112f38e2fe813b9a8d77b4b96920d50d6 | c46cb6ffb259124d38c7babcf1cadb6b3be5d594 | /test.py | 1fe28ca510a1cfc26ee15c91d9fa822f0e030447 | [] | no_license | sundshinerj/WWW | f04ee6719d07ee07fd2a8017bf0333e4670154fe | b83980d38eb94ffedfa193be6e2d264aabce7c9f | refs/heads/master | 2021-08-22T03:55:29.131487 | 2017-11-29T06:44:10 | 2017-11-29T06:44:10 | 112,165,146 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,005 | py | #!/usr/bin/env python
#-*- coding:utf-8 -*-
#@author: sundsinerj
#@date: 2017/10/25
import MySQLdb
import time
import json
db = MySQLdb.connect("127.0.0.1","root","root","xedaojia_ams")
cursor = db.cursor()
# last_time = int(time.time())
# begien_time = int(last_time - 21600)
last_time = 1506412800
begien_time = 15... | [
"sundshinerj@gmail.com"
] | sundshinerj@gmail.com |
5c53a777153b9ad4cece20454b6b93bfa892ab0d | 171baddb78f2f7bfdf32490112cff4bd2f32389f | /scripts/corridor_load_histograms.py | c266fe83c611e81fd87d34c25a2224b4ec8be1b9 | [] | no_license | sergimolina/stefmap_ros | 6795f0c988ece1ef56e888b8a295b40a28cdce93 | c55fa3497a162f4a8163b914df023a95379d7ef6 | refs/heads/master | 2022-12-06T23:42:46.335325 | 2022-11-30T15:40:20 | 2022-11-30T15:40:20 | 168,020,781 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 358 | py | #!/usr/bin/python2
import os
if __name__ == '__main__':
#python ~/workspace/cpp_ws/src/mod_ros/stefmap_ros/scripts/tools/load_histograms.py ../histograms.txt
output_file_name = "./../data/corridor_2017_05_31_histograms.txt"
print("Loading histograms to FreMEn...")
os.system("./tools/load_histograms.py ... | [
"sergimolina91@gmail.com"
] | sergimolina91@gmail.com |
df199d45bbed5b2eb57ed382acd03991cfdeaff4 | 1ce4c43907ec04f1e797c317871a23bcec46c3c8 | /scripts/utilities/toggle_spout_leds.py | 85bc4fc4c907348d12eef83f0aa5ecb56a414877 | [] | no_license | m-col/reach | d9709593e1f0ec25786a4c4e601b14b26419ce96 | 8fabb4ce30ddb39260039ebea2d46a919dfbba14 | refs/heads/master | 2022-05-31T08:51:31.270970 | 2022-05-21T19:46:12 | 2022-05-21T19:46:12 | 169,552,311 | 1 | 2 | null | 2021-06-25T14:18:21 | 2019-02-07T10:12:30 | Python | UTF-8 | Python | false | false | 155 | py | #!/usr/bin/env python3
"""
Toggle the LEDs.
"""
from reach.backends.raspberrypi import Utilities
rpi = Utilities()
rpi.toggle_spout_leds()
rpi.cleanup()
| [
"mcol@posteo.net"
] | mcol@posteo.net |
f160ae11bb28516c727156fdb31f749a0e3e40e9 | 9b903480e4153e31f1065b59af670968ba55902f | /weather.py | 5b9a35bbbdaf52d61b2be2ccc6e48e46e2d268f7 | [] | no_license | nickdebCompApps/snips-assistant | d7e1fac0fa5cce342550de599df01538feca2137 | a4f22f5298729514b990db21b8daa4fb40411d45 | refs/heads/master | 2020-03-09T03:09:35.982017 | 2018-04-07T18:59:04 | 2018-04-07T18:59:04 | 128,558,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,330 | py | import forecastio
import datetime
from time import sleep
import requests
import json
from json import dumps
from key import keys
def timeConvert(miliTime):
hours, minutes = miliTime.split(":")
hours, minutes = int(hours), int(minutes)
setting = " AM"
if hours >= 12:
if hours == 12:
... | [
"noreply@github.com"
] | nickdebCompApps.noreply@github.com |
0b5d3655b298036c53309389fcfc2864b3c16b97 | aa535ed791407504aa24eac32da2e7b15f1b19b6 | /iconsBked/settings.py | 81da8c1f077645ad7b51f182cddb9a01a4fd98f7 | [
"MIT"
] | permissive | Epath-Pro/icons-bked | 404698e6401a7d16b947d7494ca627f777f8e260 | edc8cf57d4c6ee31369ef8d3751f3d89cc6d375a | refs/heads/main | 2023-07-14T17:30:07.932842 | 2021-08-29T08:20:38 | 2021-08-29T08:20:38 | 390,057,494 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,285 | py | import os
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/
# SECURITY WARNING: keep the se... | [
"elearningpath0620@gmail.com"
] | elearningpath0620@gmail.com |
03cc688115e56b3caacc8b1bcb0a2acf97cca126 | 89eec81430daea547822c26cf637bcd9db5e57ad | /pols/migrations/0005_question_number.py | 4d1e7c4c89dfaeeeb276ec140daf28cdb8c5dd7a | [] | no_license | sanlem/teston | 5bd2f01ef4dc4f3cfef8189d6ea259af78fe4388 | 89c21ea745b1b517c589caf5688c7a856548d904 | refs/heads/master | 2020-12-11T22:17:23.943699 | 2015-06-18T15:44:08 | 2015-06-18T15:44:08 | 36,315,768 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('pols', '0004_auto_20150525_1549'),
]
operations = [
migrations.AddField(
model_name='question',
name... | [
"vfranchook@gmail.com"
] | vfranchook@gmail.com |
d0fae8b7c4d33afb588c1fd017fe389b750b6135 | 547ac7b09add2e24146f59fa4377188cd59419fb | /reprozip/pack/vt_workflow/workflow_utils.py | 316ba09a4b52958588d151e1ded15d6b8c4f1937 | [
"BSD-3-Clause"
] | permissive | fchirigati/reprozip | 44b274fec6d9558a97c85e7eb0678730702ccfe0 | fb7b4e18a6938fdb10b6fe8e0fcd042ce4547375 | refs/heads/master | 2020-05-18T05:47:17.156691 | 2018-06-19T22:39:27 | 2018-06-19T22:39:27 | 10,867,693 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,245 | py | ###############################################################################
##
## Copyright (C) 2012-2013, NYU-Poly.
## All rights reserved.
## Contact: fchirigati@nyu.edu
##
## This file is part of ReproZip.
##
## "Redistribution and use in source and binary forms, with or without
## modification, are permitted ... | [
"fernando.chirigati@gmail.com"
] | fernando.chirigati@gmail.com |
c9d87460c9daf44323f8c8e853dd25cd21cb8670 | 35b96d09ff3b74e7f05cc0085dde129456d70ad9 | /tornado/Day5/tornado_sqlalchemy.py | 10d41141ef829b75b22f49e22e4892636e6990f9 | [] | no_license | yanghongfei/Python | ef0e54f98bc390ffd908d27f2ed306952b3bba46 | f1103754e2752d38bcfd4357aa4b1a2318b33e31 | refs/heads/master | 2020-07-01T20:06:52.870910 | 2018-11-01T09:15:34 | 2018-11-01T09:15:34 | 74,260,335 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2018/9/30 10:49
# @Author : Fred Yang
# @File : tornado_sqlalchemy.py
# @Role : Sqlalchemy 增删改查
# 导入
from sqlalchemy import Column, String, create_engine
from sqlalchemy.orm import sessionmaker
from sqlalchemy.ext.declarative import declar... | [
"yanghongfei@shinezone.com"
] | yanghongfei@shinezone.com |
cafe602ff007a80036f57b301bc84dd23e3e5581 | eabe529cbf8a6ae6b0ae476961d69182a1827842 | /parlai/tasks/tasks.py | 421987f23ab2036c478bf84fb049b4e23a1fb35f | [] | no_license | JiaQiSJTU/ResponseSelection | b3ce8a15129e23830ba3a7311d0b2eb831217163 | 660732f7cc9c0c419a3cf26c85430eb258e5f1f0 | refs/heads/master | 2023-07-04T18:59:47.498626 | 2021-09-01T08:04:54 | 2021-09-01T08:04:54 | 297,997,764 | 28 | 2 | null | null | null | null | UTF-8 | Python | false | false | 1,619 | py | #!/usr/bin/env python3
"""
Helper functions for defining the set of tasks in ParlAI.
The actual task list and definitions are in the file task_list.py
"""
from .task_list import task_list
from collections import defaultdict
def _preprocess(name):
return name.lower().replace('-', '')
def _build(task_list):
... | [
"Jia_qi_0217@163.com"
] | Jia_qi_0217@163.com |
35227700b56937c04f644617981a3abdf9158a9c | 11c096d0ce9d9145dddf857d513b7539c65962bf | /MarchingSquares_lights.py | 6a27bc94010b595e7f8a968acc82f53f27d71ead | [] | no_license | JessieThomson/CodeSamples | a93322d3a68de602ae5f612cfad67939969ec077 | ecd131a318b3f063f2eb34acd22c213fe4fc7952 | refs/heads/master | 2022-03-27T07:47:06.033354 | 2019-12-20T10:09:10 | 2019-12-20T10:09:10 | 109,897,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | import pygame, sys, time, random
from pygame.locals import *
import numpy as np
class Particle:
"""
@summary: Data class to store particle details i.e. Position, Direction and speed of movement, radius, etc
"""
def __init__(self):
self.__version = 0
"""@type: int"""
self.__pos... | [
"JessieThomson@me.com"
] | JessieThomson@me.com |
e79dca9531ee613ea930b7be4c7871b1eac88c18 | d608c2b9fbfcd142fa82875f01f70e1db95cecef | /FlaskAppVenv/Lib/site-packages/pymysql/tests/test_connection.py | c626a0d39468fc0249dbdd719881a28872564b48 | [
"MIT"
] | permissive | nidheekamble/SponsCentral | 9b30918006b98f242de86920a550f8e072ba093f | b8189993cb87cc2d83e36c9d72df7a3b7d620bd7 | refs/heads/master | 2022-12-21T11:14:36.565494 | 2021-01-31T16:15:33 | 2021-01-31T16:15:33 | 135,418,522 | 1 | 2 | MIT | 2022-12-08T07:57:59 | 2018-05-30T09:16:30 | Python | UTF-8 | Python | false | false | 24,709 | py | import datetime
import sys
import time
import unittest2
import pymysql
from pymysql.tests import base
from pymysql._compat import text_type
from pymysql.constants import CLIENT
class TempUser:
def __init__(self, c, user, db, auth=None, authdata=None, password=None):
self._c = c
self._user = user
... | [
"shreyansh.chheda@gmail.com"
] | shreyansh.chheda@gmail.com |
c0d41c468fe46eae60304a6e4170b7feb432e5cd | 973eed0d6173ab95b3cea9508bd20516ef84a56d | /services/gmaps.py | 3a4b1b96e5fbcc5a7452e5331952955d404e7893 | [
"Apache-2.0"
] | permissive | FenrirUnbound/kessel-run | 213a71d94b74a518a6a92b3fb5929e1ae0e71997 | 0b39ec4aead0ee1397f46a0893166c433fe4f85b | refs/heads/master | 2020-12-07T15:24:13.924077 | 2017-07-02T02:56:58 | 2017-07-02T02:56:58 | 95,517,943 | 0 | 0 | null | 2017-07-02T02:56:59 | 2017-06-27T04:36:54 | Python | UTF-8 | Python | false | false | 774 | py | import googlemaps
import time
from map_formatter import MapFormatter
from models.route import Route
from models.secret import Secret
class Gmaps(object):
def __init__(self):
self.gmaps = googlemaps.Client(key=Secret.token())
self.route_data = Route()
self.formatter = MapFormatter()
de... | [
"aeneascorrupt@gmail.com"
] | aeneascorrupt@gmail.com |
1f778b04e332c6fb1e5a8be955cd628bea529f50 | 36c546160a70228e28f216e841453a55a4b665bb | /cli_common.py | 32a2ebcb79b2c99a1bb4fc6b64bbe49c2839a7ee | [] | no_license | tpietruszka/ulmfit_experiments | b4718df389478a12d920f72cdca476797d4397fc | 9385cd7d4285f93a2f220bc9fd5095051879a49a | refs/heads/master | 2020-04-21T18:18:01.633887 | 2020-04-07T17:56:19 | 2020-04-07T17:56:19 | 169,764,201 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | import pathlib
import os
import sys
os.environ['QT_QPA_PLATFORM'] = 'offscreen' # prevents some fastai imports from causing a crash
try:
from ulmfit_experiments import experiments
except ModuleNotFoundError:
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from ulmfit_experiments... | [
"tomek.pietruszka@gmail.com"
] | tomek.pietruszka@gmail.com |
5d5b6258a717833464801f98683c23cb6435e4f2 | 25ec545186596ea20ade231e1fa2a83faac0aa33 | /penncycle/app/models.py | f5690000a90aa27fd65ef1dfff8d9f99576c6dfa | [] | no_license | rattrayalex/PennCycle | a0f43ef7a1390fea3016ed5ac96cca5ab431e8e1 | dbcfa68c7bf9c928c559ba310e23be12e01ad998 | refs/heads/master | 2020-04-28T22:40:43.747751 | 2013-05-14T22:01:18 | 2013-05-14T22:01:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,559 | py | import datetime
from django.core.mail import send_mail
from django_localflavor_us.models import PhoneNumberField
from django.template.defaultfilters import slugify
from django.db import models
from django.core.validators import RegexValidator
from south.modelsinspector import add_introspection_rules
# Necessary beca... | [
"razzi53@gmail.com"
] | razzi53@gmail.com |
461f9252ada4badc3896e5dda3754393969d3ce1 | 42e9810116a4c726f2fb60a0133fc3b81670c0e1 | /setup.py | 41ff4cdca9f78be739cc42a2b42a8886a90aca79 | [
"BSD-3-Clause"
] | permissive | pinjasec/binarypinja | 247e6a13f3b4f58fb16aab00a3649f575b428db6 | 106bb2c68ea530cbf99079749f1a7184cf21d480 | refs/heads/master | 2020-07-24T19:57:50.921387 | 2019-09-12T11:15:21 | 2019-09-12T11:15:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 324 | py | from setuptools import find_packages, setup
setup(
name='pinja',
packages=find_packages(),
version='0.1.0',
entry_points={
'console_scripts':
'pinja = pinja.main:main'
},
description='A short description of the project.',
author='*pinja_sec',
license='BSD-3',... | [
"poo_eix@protonmail.com"
] | poo_eix@protonmail.com |
58530dd0f15e00fa4623a19b9378cc34b6dd4111 | e5937e1305b6f1a68c98bf85d479f2cc46271f6d | /First.py | 8dccbe53121fefa238ea688a09fb13622b1be489 | [] | no_license | sishen123258/python | 14b974cc078e9b2f6e0a15561a071da7acbccd91 | 3e1fde3289f018979f9b67799fa2daee8920beaa | refs/heads/master | 2021-04-09T16:51:28.129461 | 2015-05-29T07:38:29 | 2015-05-29T07:38:29 | 35,621,952 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 876 | py | __author__ = 'Yue'
#
# class MyFirstPyClass:
# "first py class"
#
# def _init_(self, pm, ph):
# self.name = pm
# self.phone = ph
# print("self created:", self.name);
#
# def updatePhone(self, ph):
# self.phone = ph
# print("self phone changed:", self.phone);
#
class... | [
"1144299328@qq.com"
] | 1144299328@qq.com |
616c58d38ba1341e31e3110eb28caf617d8d0c51 | 7f045311cf07d86c21c3e32649a0d3343351d7b5 | /sky/c3.py | d661310b92f5e4c9a50397604a8e3141cb7587a1 | [
"BSD-2-Clause"
] | permissive | amititash/sky | 2c757ec572902f12a6a550597044101d6e7cdbc1 | ffaf33e46825522bb87654593a0ca77c095c98b0 | refs/heads/master | 2020-04-14T22:50:55.264011 | 2019-02-06T05:11:22 | 2019-02-06T05:11:22 | 164,180,289 | 0 | 0 | NOASSERTION | 2019-01-05T04:02:40 | 2019-01-05T04:02:40 | null | UTF-8 | Python | false | false | 2,190 | py | #!/usr/bin/env python3
# --------- 1. Setup ----------------------------------------------
PROJECT_NAME = 'sophonone'
import os, base64, re, logging
from elasticsearch import Elasticsearch
from sky.crawler_services import CrawlElasticSearchService
from sky.crawler_plugins import CrawlElasticSearchPluginNews
imp... | [
"amititash@gmail.com"
] | amititash@gmail.com |
ba543c69df6097031a5e3dfae710324c39db3560 | 43671eb2be91782ac2096b9ec64e3a02b5aa9559 | /elComandante/lowVoltage_agente.py | cab98c5f206c5377ec93e1596070cdea46f3e0d2 | [] | no_license | psi46/elComandante | fba87eda9c404de0ceed0ab9b81f5258f172325b | 052066eda34d1e335128af214e55e330f9b6e855 | refs/heads/master | 2020-04-06T12:37:01.024183 | 2016-11-28T14:23:31 | 2016-11-28T14:23:31 | 28,905,523 | 1 | 4 | null | 2015-08-08T11:06:20 | 2015-01-07T08:25:52 | FORTRAN | UTF-8 | Python | false | false | 7,695 | py | ## @file
## Implements the agente class lowVoltage_agente
## @ingroup elComandante
## @ingroup elAgente
import os
import subprocess
from myutils import process
import el_agente
def preexec():
os.setpgrp()
## Agente class that communicates with the lowVoltageClient
##
## This is the agente whose job is to communict... | [
"mrossini@phys.ethz.ch"
] | mrossini@phys.ethz.ch |
57c22cd8876ae6bdf928f7d58919d905f86c43a5 | d343b6f47b9241f3822845c6627b82c9f98b95c4 | /core/apps.py | ab6efcf7bc66b12c7822555e95a5755b283f13ad | [] | no_license | ivan371/kiber | 11f23171bd51b29d210c44db0784b6caea31bdd6 | 39d7834c5e4e5497061748bd66232936300adda4 | refs/heads/master | 2021-05-05T06:30:55.836149 | 2020-06-16T20:37:59 | 2020-06-16T20:37:59 | 118,800,832 | 0 | 0 | null | 2020-06-16T20:38:00 | 2018-01-24T17:51:29 | JavaScript | UTF-8 | Python | false | false | 144 | py | from django.apps import AppConfig
class CoreConfig(AppConfig):
name = 'core'
def ready(self):
from .views import UserViewSet
| [
"ivan@DESKTOP-GM6Q430.localdomain"
] | ivan@DESKTOP-GM6Q430.localdomain |
37494b82fc1bfeefecdc11791dc68f84c757fca1 | d4184f2468852c5312e3e7a7e2033f1700534130 | /workflow/scripts/write_qc_metadata.py | ff0bfbcb948de8f68f439f1276ce7b4d6f9d7863 | [] | no_license | austintwang/ENCODE_scATAC_bingren_raw | d85b529cecd55e596c1d96ea370ade57cf418e81 | 9c1a6b23615a9d0f6d28f7e9ea6937755016b086 | refs/heads/master | 2023-08-17T04:03:46.276522 | 2021-09-19T00:40:32 | 2021-09-19T00:40:32 | 407,326,407 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,760 | py | """
Adapted from https://github.com/ENCODE-DCC/atac-seq-pipeline/blob/master/src/encode_lib_log_parser.py
"""
from collections import OrderedDict
import json
import os
def to_int(var):
try:
return int(var)
except ValueError:
return None
def to_float(var):
try:
return float(var)
... | [
"austin.wang1357@gmail.com"
] | austin.wang1357@gmail.com |
2eb829c87ae5849e5b0d7bf0a4c9e93efc347ecc | 32d934cabb1eac917bb583a1428b87f78b335a4e | /code_per_day/day_47_to_48.py | a8d229a9b40eae3b056c893a2848e2fd3d553e8c | [] | no_license | zotroneneis/magical_universe | 7339fefcfdf47e21e5ebcc6f56e3f1949230932a | c5da3367b7854c4cf9625c45e03742dba3a6d63c | refs/heads/master | 2022-12-07T20:21:25.427333 | 2022-11-13T14:33:01 | 2022-11-13T14:33:01 | 141,951,821 | 414 | 58 | null | null | null | null | UTF-8 | Python | false | false | 1,266 | py | from collections import defaultdict
class CastleKilmereMember:
""" Creates a member of the Castle Kilmere School of Magic """
def __init__(self, name: str, birthyear: int, sex: str):
self.name = name
self.birthyear = birthyear
self.sex = sex
self._traits = defaultdict(lambda: Fa... | [
"popkes@gmx.net"
] | popkes@gmx.net |
0ae601e2d21d74e13bbdd78607d416c058eed97a | 5d4def230bad7174e2a2352d277d391dfa118694 | /vocab.py | 3ae126b0cb1ca0de8128bb2c779c875720f8c902 | [] | no_license | hitercs/biLSTM-SlotFilling | a733b2df0e65834b6c6a91d609daa60c73c596ca | 8a0c1baed51e668e7fc4119f69ca6491e7328e7c | refs/heads/master | 2020-03-14T07:20:50.869860 | 2018-05-01T10:35:18 | 2018-05-01T10:35:18 | 131,502,870 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | #-*- encoding: utf-8 -*-
import codecs
import settings
from util import Util
class BiVocab(object):
def __init__(self, src_vocab, trg_vocab):
self.src_vocab = src_vocab
self.trg_vocab = trg_vocab
self.src_vocab_size = src_vocab.vocab_size
self.trg_vocab_size = trg_vocab.vocab_size
... | [
"schen@ir.hit.edu.cn"
] | schen@ir.hit.edu.cn |
43d6dc559a18868fb2fe56aa0c08b57bada0fce3 | f80b0891fbd9bbda3532327ed8129406d00947b7 | /IP/Lista-6/Comando de Repetição (while) – Roteiro Laboratório/3.py | 49086875a6382fccd9177714b3408668a594bca2 | [] | no_license | viniciuspolux/UFPB | d7e7cd7101e90b008391605832404ba2ae6d2001 | 445fc953d9499e41e753c1c3e5c57937d93b2d59 | refs/heads/master | 2021-01-19T20:44:51.869087 | 2017-08-30T17:16:07 | 2017-08-30T17:16:07 | 101,222,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | numeroa,numerob=map(int,input("Digite dois números com um espaço entre eles =").split())
x=1
while x < 2 :
if(numeroa > 0 and numerob > 0):
soma= numeroa + numerob
prod= numeroa * numerob
print("{} {}" .format(soma,prod))
else:
print("Você digitou um número inválido")
x += 1... | [
"30605184+viniciuspolux@users.noreply.github.com"
] | 30605184+viniciuspolux@users.noreply.github.com |
c52152bc18b44d48c909e1256ce9ae3b6d37647f | 310a141e68d730f2e3a0dee21b14cca65883e521 | /courses/migrations/0008_course_passed.py | 1ec04deca6b315eb29f330e1aa93eb3abec9e6b9 | [] | no_license | sokogfb/edu_fcih | 5c2eb883b88d70a34c7f21487527f18a8f6a26b2 | c480b448350226a1727f1d155e99dbe1ca6d30e7 | refs/heads/master | 2021-09-12T14:53:38.484104 | 2018-04-17T23:13:10 | 2018-04-17T23:13:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | # Generated by Django 2.0.3 on 2018-04-02 19:28
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0007_term_active'),
]
operations = [
migrations.AddField(
model_name='course',
name='passed',
... | [
"abdelrahman.sico_931@fci.helwan.edu.eg"
] | abdelrahman.sico_931@fci.helwan.edu.eg |
ec3ee36ac1ce3cea82d7bfe1563d5a76ade5968f | 7a583c534559ad08950e6e1564d4a59095ce9669 | /autoclient/src/plugins/memory.py | bc4df39f71e332e172e24144a790ef9c8973a5a3 | [] | no_license | wyyalt/cmdb | 67fbeabda2035e11c1933ab84b75c9c3feac7d92 | c43c17db7c6fb9f63b2387b7054a89a54bee199a | refs/heads/master | 2021-05-05T12:05:38.026134 | 2017-09-25T14:58:24 | 2017-09-25T14:58:24 | 104,718,572 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,812 | py | import os
from lib import convert
from lib.conf.config import settings
class Memory(object):
def __init__(self):
pass
@classmethod
def initial(cls):
return cls()
def process(self, command_func, debug):
if debug:
output = open(os.path.join(settings.BASEDIR, 'files/... | [
"wyyalt@live.com"
] | wyyalt@live.com |
af585888517df64c46a62653fa6ff3912e6b9f0d | 508c5e01aa7dce530093d5796250eff8d74ba06c | /code/venv/lib/python3.6/site-packages/pgadmin4/pgadmin/browser/server_groups/servers/databases/schemas/tests/test_schema_get.py | d39692be0008269bf1791e585f1e0e92b09181fa | [
"MIT",
"PostgreSQL"
] | permissive | jhkuang11/UniTrade | f220b0d84db06ff17626b3daa18d4cb8b72a5d3f | 5f68b853926e167936b58c8543b8f95ebd6f5211 | refs/heads/master | 2022-12-12T15:58:30.013516 | 2019-02-01T21:07:15 | 2019-02-01T21:07:15 | 166,479,655 | 0 | 0 | MIT | 2022-12-07T03:59:47 | 2019-01-18T22:19:45 | Python | UTF-8 | Python | false | false | 2,132 | py | ##########################################################################
#
# pgAdmin 4 - PostgreSQL Tools
#
# Copyright (C) 2013 - 2017, The pgAdmin Development Team
# This software is released under the PostgreSQL Licence
#
##########################################################################
from pgadmin.brow... | [
"jhkuang11@gmail.com"
] | jhkuang11@gmail.com |
8fcae2a12359d68896b1d9e5d7db84dacd86f151 | 3f453e74ae03c777d4ca803623cf9f69b70ace87 | /mappanel.py | 3d92e74b1764f1483756c88d1f68dbe828478608 | [] | no_license | acidtobi/weewar_clone | 5a348ece62ff22f3a0812867a93ac5f5a370f782 | 5b0575ee7534278d49df446a852e33d3f232d6e7 | refs/heads/master | 2021-05-04T10:41:44.741431 | 2016-02-11T20:47:23 | 2016-02-11T20:47:23 | 50,377,074 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,916 | py | from __future__ import division
import wx
import wx.lib.scrolledpanel
class MapPanel(wx.lib.scrolledpanel.ScrolledPanel):
def __init__(self, parent, background_tile, size, innerbitmap=None):
self.background_tile = background_tile
self.InnerSize = size
self.innerbitmap = innerbitmap
... | [
"acidtobi@gmail.com"
] | acidtobi@gmail.com |
cd04729dafc1306355807963c87d375bbfa6c2a7 | 6b096e1074479b13dc9d28cec7e5220d2ecc5c13 | /Python/q34.py | af3b5a71997a6c98c126bd1f89d3957a291886a6 | [] | no_license | wzb1005/leetcode | ed3684e580b4dae37dce0af8314da10c89b557f7 | 4ba73ac913993ba5bb7deab5971aaeaaa16ed4d7 | refs/heads/master | 2023-03-19T06:37:30.274467 | 2021-03-09T03:02:57 | 2021-03-09T03:02:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 112 | py | from typing import List
class Solution:
def searchRange(self, nums: List[int], target: int) -> List[int]:
| [
"chiyexiao@icloud.com"
] | chiyexiao@icloud.com |
c770c4a0ef473e599ea32a354884f2360f88218a | 365051fefddc9d549201225915122cb413168919 | /final CNN data aug/data_aug_v03.py | 1360161c08ef375089f3a624dd6d9ccfb8841482 | [] | no_license | PauloAxcel/SERS-EHD-pillars | 1623f5141a3d6fcd6b6f13e83afe1dac08cb893a | 89c029be9f3cb435103f497644d30e75ce3ae3ad | refs/heads/main | 2023-07-19T10:04:44.237797 | 2021-09-04T21:05:14 | 2021-09-04T21:05:14 | 375,076,169 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,140 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 15 13:05:02 2019
@author: paulo
"""
#DATA AUGMENTATION
import os
import cv2
import random
import numpy as np
import matplotlib.pyplot as plt
from keras.preprocessing.image import ImageDataGenerator
#get the folders
SERS_train_dir = r'/home/newuser/Desk... | [
"noreply@github.com"
] | PauloAxcel.noreply@github.com |
62c20ca9fb15d381b187ac793e03b1b5242e6d37 | 495b0b8de3ecc341511cdb10f11368b35b585bea | /SoftLayer/CLI/modules/filters.py | 1e4274ac04ae064468c5d1d0736b540b8f35416c | [] | no_license | hugomatic/softlayer-api-python-client | cf6c1e6bfa32e559e72f8b0b069339ae8edd2ede | 9c115f0912ee62763b805941593f6dd50de37068 | refs/heads/master | 2021-01-18T11:09:19.122162 | 2013-04-09T01:44:51 | 2013-04-09T01:44:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 996 | py | """
usage: sl help filters
Filters are used to limit the amount of results. Some commands will accept a
filter operation for certain fields. Filters can be applied across multiple
fields in most cases.
Available Operations:
Case Insensitive
'value' Exact value match
'value*' Begins with value
'*value... | [
"k3vinmcdonald@gmail.com"
] | k3vinmcdonald@gmail.com |
11aa915574de5fc4f11f5c7671205cfbaa964fe2 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/copp/lacpallowhist5min.py | 2d5afaedb106d24fcc43463d8548e0ce36b681e4 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,598 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
853e8cd7d44015eb9bfbe2e8d913ffb2d35fe27c | 35c75ed0ca9850a6dd62d0e19b7e2ab472c5f292 | /shop/migrations/0002_auto_20171109_0354.py | f417d1eaa71b14f9d43a38cb507c9d803779dad6 | [] | no_license | HyeriChang/tuanh | 1314b270d7b8d44424c5b6b82361b20397d30f4b | 38546afde0a4fa6a54727b4595b7cfa7c8baec1e | refs/heads/master | 2021-05-07T06:32:31.060921 | 2017-12-06T09:36:48 | 2017-12-06T09:36:48 | 111,763,554 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,656 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-09 03:54
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('shop', '0001_initial'),
]
operations = [
migrations.AddField(
m... | [
"anh.nguyentu3110@gmail.com"
] | anh.nguyentu3110@gmail.com |
76f0bfb3491090f86e4d11cf509c6a61dde62e2f | 1f9d8381f111ee34be61a82cdf2038afc1a44079 | /sequenceToLine.py | 848d936908c046a2428b7f84395126b3190bd404 | [
"BSD-3-Clause"
] | permissive | el-mat/ectools | f35d305c8fd558436cd7534c5fe4db66fffead24 | 031eb0300c82392915d8393a5fedb4d3452b15bf | refs/heads/master | 2021-01-23T21:10:42.869782 | 2014-12-01T14:07:00 | 2014-12-01T14:07:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 430 | py | #!/usr/bin/env
import sys
from seqio import iteratorFromExtension
from nucio import fileIterator
if not len(sys.argv) == 2:
sys.exit("sequencToLine.py in.{fa.fq}\n")
it = iteratorFromExtension(sys.argv[1])
for record in fileIterator(sys.argv[1], it):
if hasattr(record, "desc"):
print "\t".join([reco... | [
"gurtowsk@mshadoop1.cshl.edu"
] | gurtowsk@mshadoop1.cshl.edu |
61c91a5a98307bf6308fc87306a01cc429275024 | 83dc2a8d80a0614c66016efba9630cd60538d4b8 | /spider_traffic/test.py | 5a9cc750354cadebbffc1e99a03d3901ab54aea1 | [] | no_license | hanxianzhe1116/Python_Spider | 5095297e6071842aef95d0264b2024d5a0e81ce5 | ba3757acf2ed133ab76720a146d380eafe69a092 | refs/heads/master | 2021-01-04T09:29:13.616769 | 2020-10-19T02:16:17 | 2020-10-19T02:16:17 | 240,488,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,906 | py | import requests
import re
import json
import csv
from urllib.parse import urlencode
import datetime
import time
'''
函数说明:输入url及其参数
params:
baseUrl:最开始的url
cityCode:城市编码,这里我选择的是重庆,重庆编码:132
roadType:道路类型
callBack:返回类型
'''
def getPage(baseUrl,cityCode,roadType,callBack):
#headers信息
params = {
... | [
"876605943@qq.com"
] | 876605943@qq.com |
5f620ca66ea5f22f98da060905725de7b1622114 | e8c0513bce6ba781d6d55c48330c54edbd20cc23 | /manage.py | d66549db189c8fe3cddba1a8a34913eaa50627a3 | [] | no_license | BohnSix/myblog | aad06969026e5e0059e83d3c8bedab66eab3a5d2 | 3961bd813c8d706b15e66cd55dff2edeb992ca3c | refs/heads/master | 2022-09-25T00:47:35.509766 | 2019-11-21T08:33:20 | 2019-11-21T08:33:20 | 185,914,940 | 2 | 1 | null | 2022-09-16T18:13:43 | 2019-05-10T03:49:23 | JavaScript | UTF-8 | Python | false | false | 721 | py | from flask_migrate import Migrate, MigrateCommand
from flask_script import Manager, Shell
from app import create_app, db
from app.models import *
app = create_app(config_name="develop")
@app.template_filter()
def countTime(content):
return int(content.__len__() / 200) + 1
manager = Manager(app)
migrate = Migr... | [
"bohn_six@163.com"
] | bohn_six@163.com |
ac19567d2c9ed4b4c9852a5ca2ad7fbd7ab5185d | 7fdf9c9b4f9601f1f24414da887acb03018e99f1 | /gym/gym/settings.py | 80b1a8a45b3e88065e60982b4b7505f389a7c7e7 | [] | no_license | sid-ncet/fitnesss | d96653022664ec2b1c9a5811fc3f7048a122e3ed | fc62c77abe30659131f0befc93424f8bb9333a0b | refs/heads/master | 2023-04-25T19:02:12.719223 | 2021-06-05T06:53:17 | 2021-06-05T06:53:17 | 374,042,630 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | """
Django settings for gym project.
Generated by 'django-admin startproject' using Django 3.2.3.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
import os
from pa... | [
"siddharthsinghcs11@gmail.com"
] | siddharthsinghcs11@gmail.com |
661b9aa3fceb522de6be34632dd648f5060f74c3 | a69b96621abef181606fd3d68eebaa5b655ed529 | /Lesson3problem2.py | baf178f6055c80d571cdd52706d09817b15fd3d5 | [] | no_license | agonzalez33/Lesson3 | 3724be5e602a9befafe72be8570a5e3cc6ab2ec0 | cc7dfe7a43b3691141a1d9f81d5939d5134a23e3 | refs/heads/master | 2020-05-03T04:00:58.346507 | 2019-03-29T13:35:45 | 2019-03-29T13:35:45 | 178,411,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | for integer in range(1000,0,-1):
print(integer)
print('Blast off!') | [
"noreply@github.com"
] | agonzalez33.noreply@github.com |
9c49c4755281a3c8a9b671df5099d752953dc5ec | b4ef8fcaf8e8818215add4402efadfef9bda45ee | /sample_code/python/vessels_v2_graphql/run.py | e393f1cdfdf590796dd7068877f0fcb1a4f2fb1a | [] | no_license | ykparkwixon/maritime | aebbbfe8e2f1ebb1bf2dbb01a94127977251285c | 378834c9b521ff538395c36e377117c87760fe22 | refs/heads/main | 2023-07-17T07:00:17.651206 | 2021-08-30T22:18:14 | 2021-08-30T22:18:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,062 | py | import yaml
import json
import csv
from loguru import logger
from utilities import paging, helpers
from gql import gql
logger.add('demo_client.log', rotation="500 MB", retention="10 days", level='DEBUG')
rows_written_to_raw_log: int = 0
rows_written_to_csv: int = 0
pages_processed: int = 0
wrote_csv_header = False
... | [
"78374623+brucebookman@users.noreply.github.com"
] | 78374623+brucebookman@users.noreply.github.com |
849b16fbf6169f6d56be1d9b19ad76d20f75fe68 | 92dbb16f383754fd9fd8d35c87b68977ec42a586 | /Geogria/20200514-graph/map_world.py | 847c835b947d72027a50300d73ea3ed4aef2713e | [] | no_license | YWJL/pchong | c0c1bfa4695ac3b143430fd2291b197b4fdab884 | eaa98c5ed3daad60e8ac0560634ba631e665f00e | refs/heads/master | 2022-11-11T00:01:55.550199 | 2020-07-01T06:11:56 | 2020-07-01T06:11:56 | 276,290,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,565 | py | import pandas
from pyecharts import options as opts
from pyecharts.charts import Bar, Grid, Line
from pyecharts import options as opts
from pyecharts.charts import Map
from pyecharts.faker import Collector, Faker
from pyecharts.datasets import register_url
import pandas as pd
import asyncio
from pyecharts.commons.utils... | [
"201256153@qq.com"
] | 201256153@qq.com |
10fe64c7113e565bb25b1d2565fa28e8ea3cfdcd | 40711c0546644d1bb8709ee348211d294c0a48d2 | /Rapport/Benchmarking/state_plot.py | 48111f01a271055f269de89702c8ec49040ddac4 | [] | no_license | smaibom/bach_2015 | aaefa2a33cc0d5bb06761d72a3820ee0f2cfe290 | 4177977b81bb6f6c945e5e8a1956dbd4ca4b43f2 | refs/heads/master | 2021-01-20T21:53:03.374855 | 2015-06-07T21:54:47 | 2015-06-07T21:54:47 | 31,496,008 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,459 | py | """
Demo of a simple plot with a custom dashed line.
A Line object's ``set_dashes`` method allows you to specify dashes with
a series of on/off lengths (in points).
"""
import numpy as np
import matplotlib.pyplot as plt
#x = np.linspace(0, 22, 22)
grosses = [62242364,123246883,122562228,122562228,183556657,184105105... | [
"kullax@feral.dk"
] | kullax@feral.dk |
bd21bc1c8fa779e7d91a63e97ee2f3b07852e152 | 756504caae02535f359baa1bd232038979f5b3b5 | /AIA/scanm/apps.py | f211b8310e63fa9572dfb5eceffc97ba91744cd3 | [] | no_license | dante993/scantit | b75aac717e68cea25e17a40c44e719c95d0f0376 | 9a447f02af9f23b433bafdd02de852bd1c4e4d9e | refs/heads/master | 2021-01-13T15:04:49.853328 | 2017-05-29T12:52:54 | 2017-05-29T12:52:54 | 79,124,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 126 | py | from __future__ import unicode_literals
from django.apps import AppConfig
class ScanmConfig(AppConfig):
name = 'scanm'
| [
"danteejmg@gmail.com"
] | danteejmg@gmail.com |
fc0d28850895dd119c8a2b4afc9f5481bb7779fe | b9eef16211d4a5f2e5b51c0ddfb7dc0a9608db86 | /Chap2InprovingDNN/week2/optimization/optimization.py | e2e8cee8f4713b5cd9743e543af41771e71a40f0 | [] | no_license | vinares/DeepLearning | 905f44655c0b72c9ba6d52bf1c15146b0d07fc92 | c307c3c1063a101dcfa192bc3b8671c2781e31f3 | refs/heads/main | 2023-06-22T05:45:46.716091 | 2021-07-21T09:03:02 | 2021-07-21T09:03:02 | 369,407,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,039 | py | import numpy as np
import matplotlib.pyplot as plt
import scipy.io
import math
import sklearn
import sklearn.datasets
from opt_utils_v1a import load_params_and_grads, initialize_parameters, forward_propagation, backward_propagation
from opt_utils_v1a import compute_cost, predict, predict_dec, plot_decision_boundary, l... | [
"877649518@qq.com"
] | 877649518@qq.com |
1f276f5a21289f070e9ebfcc655a747a3d1cd3b1 | 0104f7736632084592cd6ced20de0be9fb9e24ac | /剑指offer/构建乘积数组.py | 09d398118fb634a3669c2c9da9a75f98947ad262 | [] | no_license | longkun-uestc/examination | 9eb63b6e8ffdb503a90a6be3d049ad2fdb85e46c | ef1d29a769f2fd6d517497f8b42121c02f8307cc | refs/heads/master | 2021-06-25T23:11:24.460680 | 2021-06-23T03:28:55 | 2021-06-23T03:28:55 | 228,847,479 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | class Solution:
def multiply(self, A):
left_to_right = [-1]*len(A)
right_to_left = [-1]*len(A)
left_to_right[0] = 1
right_to_left[-1] = 1
for i in range(1, len(left_to_right)):
left_to_right[i] = left_to_right[i-1] * A[i-1]
for i in range(len(right_to_left... | [
"1256904448@qq.com"
] | 1256904448@qq.com |
eeaa16fb67a5f6fb3382537928469d161d2ee20e | 985be2d2d979c1d5ffbd6cd73d9da711951e4f1c | /chat/consumers.py | a2ffba5a9b3687a82d2473cd12f884a487b2d806 | [] | no_license | sreesh-mallya/django-channels-demo | 6a1492c2ffe3a8f37782ced19562c629fa65ee8f | 8a3ac7d3e04ecd8c5053009f760d84e3b9415882 | refs/heads/master | 2021-01-23T22:16:04.353634 | 2017-09-19T03:44:00 | 2017-09-19T03:44:00 | 102,924,295 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,740 | py | import re
import json
import logging
from channels import Group
from channels.sessions import channel_session
from .models import Room
@channel_session
def ws_connect(message):
# Could use more error handling here
prefix, label = message['path'].strip('/').split('/')
try:
room = Room.objects.get... | [
"sreeshsmallya@gmail.com"
] | sreeshsmallya@gmail.com |
0dca2f890e85ab82a477f193ca5d7b13bb4452f4 | 5310aad336ad7cdc304a7204d4bd91b4fa754f1e | /Lab3/homework/serious_ex9.py | 1c3bf0845b2d742f8ca01016425fdb34f9ee6da7 | [] | no_license | dattran1997/trandat-fundamental-c4e17 | 329e294f68bde1fc04d53c0acd0f9a7e87d7d444 | fd2f0648f28e78769f7fbf3e40e9973bf211f1de | refs/heads/master | 2020-03-09T22:49:56.228853 | 2018-05-29T04:22:39 | 2018-05-29T04:22:39 | 129,044,126 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 244 | py | def get_even_list(list):
new_list = []
for i in list:
if (i % 2 == 0):
new_list.append(i)
return new_list
if __name__ == "__main__":
list = [1,4,5,-1,10]
newlist = get_even_list(list)
print(newlist)
| [
"dattran1997@gmail.com"
] | dattran1997@gmail.com |
6763b1340462fabc349debc7f52e0774a21e430f | 7c59004e0165c9b32dc5b786b96fc4d81f565daf | /predictor_ker.py | db39a01a8c2f10a576acb2f85d032224fae85302 | [] | no_license | LeonHardt427/mayi | f04d7d7bca68e0a3a57ca2ef2de14af7db28d2e7 | 679f688a971075794dd3d4ed0a7cbc50931a422f | refs/heads/master | 2020-03-20T05:34:58.677201 | 2018-07-08T03:23:23 | 2018-07-08T03:23:23 | 137,219,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | # -*- coding: utf-8 -*-
# @Time : 2018/5/29 10:11
# @Author : LeonHardt
# @File : predictor_ker.py
import os
import numpy as np
import pandas as pd
from sklearn.preprocessing import Imputer, OneHotEncoder
import tensorflow as tf
from keras import Sequential
from keras.layers import Dense, Activation
# data_pat... | [
"leonhardt427@126.com"
] | leonhardt427@126.com |
3774ffc4fdcb9c86ca755421da7b371e9f1e7d2c | 6f61a105f85f9e4b6b98494b45e96d3099402449 | /kapool/settings.py | 7993700b0e3d7208e963c459ba82c5a60ebc6863 | [
"MIT"
] | permissive | Marah-uwase/carpool | 00ca3b230fbe2bfabb4660cbf8974a902dadc85b | 6ee69e1ad48352a4d1f59f372b41a2891fc58ec7 | refs/heads/models | 2023-02-25T19:52:44.180676 | 2021-02-02T08:22:05 | 2021-02-02T08:22:05 | 334,284,598 | 0 | 0 | null | 2021-02-01T13:21:49 | 2021-01-29T23:14:54 | Python | UTF-8 | Python | false | false | 3,767 | py | """
Django settings for kapool project.
Generated by 'django-admin startproject' using Django 3.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
from pathlib ... | [
"maranahuwase12@gmail.com"
] | maranahuwase12@gmail.com |
be3571f979caec5427a8a79884e69c6e57bd6ecf | 27c1ba6ed6c1586a348cdcfe26d17be13ae38b72 | /scripts/hello_world_pallavisavant.py | c4a681787dd9cfab9a8e69eddfd8f12183f68509 | [] | no_license | codewithgauri/HacktoberfestPR2020 | 4299f2ae8f44b31c6ecbeaefa058fde26327a253 | 335310f3d81029938d119e15d3f1a131d745d3f2 | refs/heads/master | 2022-12-30T20:28:41.937632 | 2020-10-26T06:47:24 | 2020-10-26T06:47:24 | 307,281,958 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 60 | py | #python code to print 'Hello World" :)
print("Hello World") | [
"pallavisavant02@gmail.com"
] | pallavisavant02@gmail.com |
08d2b69ed9e737d8ee5c1f6d6389ece08b8737c4 | 74dd16cb3d4181d4b7b0d1bcfa3aa0c3a617548b | /src/utilities/video_metadata.py | 1545ef9a99282ca5b7d66e4802fd2bebed2c4ba0 | [] | no_license | eliasnieminen/vgs-data-annotation | 4b87a6ece64eb83b6d5d43d34825539a1ff27fc6 | a6569cb52017b88beffa8c1a1332acd9b340646f | refs/heads/main | 2023-07-20T05:13:57.492399 | 2021-08-31T12:16:19 | 2021-08-31T12:16:19 | 398,779,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 927 | py | import math
from typing import Optional, Union, Dict
class VideoMetadata:
"""Metadata object for videos.
"""
def __init__(self,
dur: Optional[Union[None, float]] = None,
fps: Optional[Union[None, float]] = None,
metadata: Optional[Union[None, Dict]] = N... | [
"elias.nieminen@tuni.fi"
] | elias.nieminen@tuni.fi |
b101ab8c3181c1392886b3ff9ddf5ba9a39dd257 | 7ff1ebbaaccd65665bb0fae19746569c043a8f40 | /readcsv.py | 28ea6bc771aee30752a72b42cf17a39c26ce3f94 | [] | no_license | Mutugiii/bot | 1cbc8e8493de5a31b831722c698fd8c7b1f60bf5 | 3d4ccbf8dbe981e2c363ad6f2774deb2d34ac110 | refs/heads/master | 2022-12-11T22:04:53.040939 | 2020-05-20T11:09:54 | 2020-05-20T11:09:54 | 247,986,918 | 0 | 0 | null | 2022-12-08T09:33:14 | 2020-03-17T14:11:54 | Python | UTF-8 | Python | false | false | 77 | py | import pandas
dataformat = pandas.read_csv('csv/data.csv')
print(dataformat) | [
"mutugimutuma@gmail.com"
] | mutugimutuma@gmail.com |
6c16d977d5da188d8203250fd478cfac76c891cc | 85c9d6fdff58b9cb40f5fdb9f01ff1a0dd386113 | /bot_tests/reminder.py | ef7aa772e1bbf39b40113c0d3d7e94d3036748d1 | [] | no_license | jmccormac01/karmafleet | 5874644c496b0bbcb2037404ad7ed43a1e4caaae | 57ebefbbc6ec3aae634cd9196950f103d48eae95 | refs/heads/master | 2020-03-25T17:24:39.187176 | 2019-04-20T18:17:05 | 2019-04-20T18:17:05 | 143,976,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | """
Bot for converting EVE times to local timezones
"""
from datetime import datetime
from pytz import timezone
import discord
from discord.ext import commands
import asyncio
# pylint: disable=invalid-name
Client = discord.Client()
client = commands.Bot(command_prefix="!")
reminders = {}
async def reminder_handler(r... | [
"jmccormac001@gmail.com"
] | jmccormac001@gmail.com |
367ec183a847084b29dd59bd79ca5db7e7418f61 | fb46511d2fa968e6a2e74a20a67ace59819e15dd | /ProcessedData/trial.py | 781f802ca1ea3ca3e8a244cc236a45615f979a0c | [] | no_license | PushA308/QPQCT | 6505f18907f8af3d9be24ebf21a01cc6603d657a | 6bd99690df213860a4af83f142423e64fa57c34a | refs/heads/master | 2020-04-27T05:03:55.061701 | 2019-03-06T05:02:51 | 2019-03-06T05:02:51 | 174,071,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,423 | py | import csv
import nltk
import shutil
import os
import sys
import traceback
import win32com.client #pip install pywin32
import nltk #pip install nltk
#nltk.download('punkt')
#nltk.download('averaged_perceptron_tagger')
#include other ntlk packages, if asked for.
##########################################
... | [
"noreply@github.com"
] | PushA308.noreply@github.com |
0dca7a66a1da77d96fed23a3f91e8168a80f5e26 | 0ee64034518898893d495639cb01aa9523789f77 | /2018 Materials/Resources/Week 4/RaspberryPi.py | 63b9c98778493a0ca93bb145474cbfe01bd4c169 | [
"MIT"
] | permissive | Phangster/digital-world-for-normal-humans | 31187b47e16d4359fce2ecac2ce7b5c1aa88d909 | 29a479af2e380bdf691f6487167d0d8edf0ba5ed | refs/heads/master | 2020-05-07T19:52:37.655375 | 2018-12-29T14:32:35 | 2018-12-29T14:32:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,039 | py | import RPi.GPIO as GPIO
from time import sleep
from firebase import firebase
url = "https://internet-of-things-c572e.firebaseio.com/"
token = 'qcHr20bWwg1ziqik58l39JD8UlcLLIGa8HJ0DaSC'
firebase = firebase.FirebaseApplication(url, token)
# Use the BCM GPIO numbers as the numbering scheme.
GPIO.setmode(GPIO.BCM)
# ... | [
"thaddeus.phua@gmail.com"
] | thaddeus.phua@gmail.com |
abb40cfd7886a6089a10fff801f6ff4840838feb | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /RecoBTag/ONNXRuntime/python/pfParticleNetFromMiniAODAK4DiscriminatorsJetTags_cfi.py | b09fabc5e9632fe7d6cba6adb353d5a7f3afbfa9 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 18,375 | py | import FWCore.ParameterSet.Config as cms
pfParticleNetFromMiniAODAK4PuppiCentralDiscriminatorsJetTags = cms.EDProducer(
'BTagProbabilityToDiscriminator',
discriminators = cms.VPSet(
cms.PSet(
name = cms.string('BvsAll'),
numerator = cms.VInputTag(
cms.InputTag('pfParticleNetFr... | [
"stephane.b.cooperstein@cern.ch"
] | stephane.b.cooperstein@cern.ch |
4c2ce9f4572cc0369d582cfe65ef86a9f3d7106a | e9530da3f17f990a3fade9c8c442ad3fbb4befc4 | /test.py | 3b60dca7cebd68376caafb431dc6465cd28133bf | [] | no_license | mattyhempstead/syncs-hack-2020 | 9796565c03560c76f0a4402ded1a536f0f3f7fc8 | 6e3d69070dad3228ed8bed3eb805dc090d52b56f | refs/heads/master | 2022-12-08T10:23:49.395788 | 2020-08-30T01:00:35 | 2020-08-30T01:00:35 | 290,966,904 | 5 | 0 | null | 2020-08-29T11:27:44 | 2020-08-28T06:17:23 | JavaScript | UTF-8 | Python | false | false | 490 | py | import binascii
text = "https://www.google.com/"
binary_conversion = bin(int.from_bytes(text.encode(), 'big'))
binary_conversion = binary_conversion[2:]
for count,i in enumerate(binary_conversion):
time = 0.5
sound_array = []
if count%8 == 0:
sound_array.append(0)
base_one = 220
b... | [
"pranav.alavandi"
] | pranav.alavandi |
b588764a31f012d092aa5fbb402b4f34eead4552 | 1071b46a6ea054a186ab5c270dfdba48362adf70 | /Python/Examples/juego_adivina_el_numero.py | 5231d40690c74099e97d77b93aef36975ff2fe0d | [] | no_license | diegoldsv/technotes | 5aaed2d6ef5037217a0c071b6f7b48b04d89d4fd | 6cb0b90001c52438b74da72c02c664164938d7e9 | refs/heads/main | 2023-05-10T22:08:21.189916 | 2021-05-31T14:14:13 | 2021-05-31T14:14:13 | 351,212,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 557 | py | import random
def run():
numero_aleatorio = random.randint(1,100)
numero_ingresado = input("Elige un número del 1 al 100: ")
numero_ingresado = int(numero_ingresado)
while numero_ingresado != numero_aleatorio:
if numero_ingresado < numero_aleatorio:
print("Busca un número más grande... | [
"disalvatorediego@gmail.com"
] | disalvatorediego@gmail.com |
ce3bfb840d3411bd2a1255ab453499c357ba459b | f407b21811c8eebbf1c32d6aadc502403d83d048 | /problem19.py | edb8fdb3cd28c83eb54faa6fca3eb45a9fee0301 | [] | no_license | gnikesh/project-euler | 37e95cbc0c82ff54ddb23b89f4f38067ec69d5c8 | 0d39c7b78fc2e11d2f863e7ae40fb27f93a18fbc | refs/heads/master | 2021-08-20T04:53:54.266867 | 2021-01-20T23:21:00 | 2021-01-20T23:21:00 | 87,681,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | # 1 Jan 1900 was a Monday.
# Thirty days has September,
# April, June and November.
# All the rest have thirty-one,
# Saving February alone,
# Which has twenty-eight, rain or shine.
# And on leap years, twenty-nine.
# A leap year occurs on any year evenly divisible by 4, but not on a century unless it is divisible by 4... | [
"gnikesh03@gmail.com"
] | gnikesh03@gmail.com |
5a1a67ef9e36c7013d262a0ec9e876fcec96d9c0 | 75a0e169a7b45a95b5d0de639b12ae2b601af236 | /worker.py | 94d496b3e2f01dd00dc3ff71faa400d71db56822 | [] | no_license | john-peterson/goodreads | 65722ef88f66c1ff00a22f308b2497c03cf44a5e | 0cf6d294cef6d7d4e1e4526ae02777d206f19ca3 | refs/heads/master | 2021-01-20T21:31:49.690764 | 2012-12-22T06:50:56 | 2012-12-22T06:50:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,895 | py | #!/usr/bin/env python
# vim:fileencoding=UTF-8:ts=4:sw=4:sta:et:sts=4:ai
from __future__ import (unicode_literals, division, absolute_import,
print_function)
__license__ = 'GPL v3'
__copyright__ = '2011, Grant Drake <grant.drake@gmail.com>'
__docformat__ = 'restructuredtext en'
import socket... | [
"john.peterson3@hotmail.com"
] | john.peterson3@hotmail.com |
0a185392606cd314acb4f13f45994b76855c9a6c | 500e5426adf70162cc75ae99be0743129639e4c7 | /gathering_server/gathering/apps.py | 56de823fb91dd525090a6cd2e82d8a62295c84ae | [] | no_license | L3oNav/gathering_server | 8b06ff4f176c6dfe3bc7f5c27bce0c9b4dfae8cb | b708fa831b6b5b227bafebd3ea302bcfa35adc46 | refs/heads/main | 2023-04-01T02:09:11.083248 | 2021-02-18T01:54:23 | 2021-02-18T01:54:23 | 339,837,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class GatheringConfig(AppConfig):
name = "gathering_server.gathering"
verbose_name = _("Gathering")
def ready(self):
try:
import gathering_server.gathering.signals # noqa F401
except Impor... | [
"L3oNav@outlook.com"
] | L3oNav@outlook.com |
e0aa72eb56790380371681952975423a0c147795 | 1a856152b3ab65a8a0cc5cbedf0492d1c3716d27 | /dropout_acnd_pe_noprior_nochans.py | 2eda907f0b1b6f9a40b45eb2cb3e98dbdb1b24e5 | [] | no_license | stablum/thesis | 272f7f23ad1ad454c9310775b969bb54c84c9ea0 | 5c06d78322ddd6e1b8c214261ea6e4464a094bad | refs/heads/master | 2021-07-23T04:29:28.438657 | 2018-08-18T18:59:11 | 2018-08-18T18:59:11 | 60,299,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | #!/usr/bin/env python3
import scipy
import ipdb
import theano
from theano import tensor as T
import lasagne
import numpy as np
import random
import sys
from tqdm import tqdm
tqdm.monitor_interval = 0
import ipdb
# local imports
import movielens
import cftools
import config
import numutils as nu
import augmented_type... | [
"stablum@gmail.com"
] | stablum@gmail.com |
ab04985a81690a29fc99f93e08d4a4ec4e364ad5 | 847273de4b1d814fab8b19dc651c651c2d342ede | /.history/Sudoku_II_004_20180618143456.py | c999da2e6ae97112548cc81b5e4e3de4c117dc62 | [] | no_license | Los4U/sudoku_in_python | 0ba55850afcffeac4170321651620f3c89448b45 | 7d470604962a43da3fc3e5edce6f718076197d32 | refs/heads/master | 2020-03-22T08:10:13.939424 | 2018-07-04T17:21:13 | 2018-07-04T17:21:13 | 139,749,483 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | from random import randint
# Sudoku1 almost solved
sudoku1 = [
[5, 9, 8, 6, 1, 2, 3, 4, 7],
[2, 1, 7, 9, 3, 4, 8, 6, 5],
[6, 4, 3, 5, 8, 7, 1, 2, 9],
[1, 6, 5, 4, 9, 8, 2, 7, 3],
[3, 2, 9, 7, 6, 5, 4, 1, 8],
[7, 8, 4, 3, 2, 1, 5, 9, 6],
[8, 3, 1, 2, 7, 6, 9, 5, 4],
[4, 7, 2, 8, 5, 9, 6,... | [
"inz.kamil.wos@gmail.com"
] | inz.kamil.wos@gmail.com |
111d16939c63cebf88383cf5a24501665490bbc1 | 0f7b8d2ae2c0e81941d5ca5fa4c8313cec8d1544 | /endApi/migrations/0008_auto_20200904_0734.py | 89d799dc142fa35893d751810280051c1fd1bddf | [] | no_license | rajielijah/endpoint | 5c061972cb8ab9fc089046dd9e71f194ee6e5aca | 6db1d6c92d57fc143446d2c4df13664ffa5b1f2d | refs/heads/master | 2022-12-27T23:58:22.232298 | 2020-10-01T11:46:45 | 2020-10-01T11:46:45 | 298,791,670 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | # Generated by Django 3.0.7 on 2020-09-04 07:34
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('endApi', '0007_post_image'),
]
operations = [
migrations.AlterField(
model_name='post',
name='image',
fi... | [
"rajielijah@gmail.com"
] | rajielijah@gmail.com |
fe588b211aefbc83d08eca506d88db9be266716c | 0d7247b52044d5bfc498610fe33725c4ca0a2076 | /MDD-SG-SD.py | 235989f1e5607b3a6d8c9407160ab862c37b7b9d | [] | no_license | SivaArwin/Scraping---Uswitch.com | 1ebde73978ce7912d164e8965a47fd79106b5026 | f33e3d9b05b9ba23065c5b2ac9073e16174a0585 | refs/heads/main | 2023-03-03T14:06:52.455351 | 2021-02-13T18:11:34 | 2021-02-13T18:11:34 | 338,635,431 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,392 | py | from selenium import webdriver
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.support.ui import Select
import pandas... | [
"noreply@github.com"
] | SivaArwin.noreply@github.com |
24c2e84b37749a34542141af25758a0b77c195ba | e5ee01bde67fed16b890023cdc33b3294e7acb6d | /python/path_search_stripped/a_star.py | dc833d9ba96cf55f58739839921c943c153c83a2 | [] | no_license | dragonfi/a_star_examples | f8ca1494d49abf5170d52408e9efa6179b36b002 | a6c43ca4b5f135bbaa848fcc45e74922dc174286 | refs/heads/master | 2020-06-19T15:07:09.298508 | 2019-08-06T15:02:56 | 2019-08-06T15:03:06 | 196,756,037 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,063 | py | from collections import OrderedDict, namedtuple
from .graph import Graph
class Path():
def __init__(self, weight, nodes):
self.weight = weight
self.nodes = nodes
@property
def dest(self):
return self.nodes[-1]
@property
def source(self):
return self.nodes[0]
AS... | [
"david.gabor.bodr@gmail.com"
] | david.gabor.bodr@gmail.com |
a07905b07cfcf4e19974315b9839310a2d8f725c | d4a88b3b102e20e727cae8fbd4167dcb4b57d1ec | /additional_examples/py2exe_setup__basic_test.py | 746c5610f04ff4682414ded9ad60376e1f9e3b2d | [
"MIT"
] | permissive | viblo/pymunk | ca64888e45706db431788368ff8464edf2912d5f | 20ac14f665fb38b4ef1bef5acea36a3d612dd0d5 | refs/heads/master | 2023-08-27T16:37:14.740653 | 2023-08-16T19:26:16 | 2023-08-16T19:26:16 | 13,273,472 | 855 | 255 | MIT | 2023-01-13T10:13:47 | 2013-10-02T14:36:46 | Python | UTF-8 | Python | false | false | 218 | py | """Simple example of py2exe to create a exe of the no_dependencies example.
Tested on py2exe 0.13.0.0 on python 3.11
"""
import py2exe
py2exe.freeze(console=["no_dependencies.py"], options={"includes": ["pymunk"]})
| [
"vb@viblo.se"
] | vb@viblo.se |
b4430e26ab1dde9f74b12f200a1896351cd2722b | 4d65f85fb8fba5a3d6582ccbf9d38042ec1ec422 | /代码1/hotdog_war.py | f177dd62bdbf8984d14a17f21671d5aee76aa8df | [] | no_license | qsten/game | f50756d001116f41cfdf7715ee061a3dfa3f9400 | 86164c3dcec869b85aaa777105c7faf738dd8e1f | refs/heads/master | 2020-04-28T10:56:36.871862 | 2019-05-19T13:18:46 | 2019-05-19T13:18:46 | 175,218,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,001 | py | import pygame
from player import Player
from settings import Settings
import game_functions as gf
from pygame.sprite import Group
from game_stats import GameStats
from button import Button
from scoreboard import Scoreboard
from lifeboard import Lifeboard
from music_button import Music_button
from stop_button... | [
"noreply@github.com"
] | qsten.noreply@github.com |
cc4189ead66a7efb115d15670bd7e27b82860536 | 3874a909e3152fda6a87dbb0ef05b18d6908807c | /la/parse_tabs.py | 0de026ab72ba5ab67f99b19a08939f52599c51dc | [
"MIT"
] | permissive | FranchuFranchu/la | f5ef3f8d43aec67d84030018278640d91a77dd05 | 7afa25d3d102f5a0316f5084a46a04e62976991b | refs/heads/master | 2020-07-24T07:50:01.756324 | 2020-04-18T15:49:03 | 2020-04-18T15:49:03 | 207,853,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,332 | py | # Converts python-style code into JS-style code
def tabs_to_codeblocks(d):
list_index = 0
code = list(d)
at_newline = True
current_indentation = 0
this_line_indentation = 0
while list_index < len(code):
if at_newline:
if code[list_index] in (" ", "\t"):
this_l... | [
"fff999abc999@gmail.com"
] | fff999abc999@gmail.com |
359f9c86575cbc6401fa831c42183d3cd110679b | 9d278285f2bc899ac93ec887b1c31880ed39bf56 | /ondoc/account/migrations/0103_merge_20190905_1609.py | 16fb7e5557b47e3db32cd6549c06ffb2218de131 | [] | no_license | ronit29/docprime | 945c21f8787387b99e4916cb3ba1618bc2a85034 | 60d4caf6c52a8b70174a1f654bc792d825ba1054 | refs/heads/master | 2023-04-01T14:54:10.811765 | 2020-04-07T18:57:34 | 2020-04-07T18:57:34 | 353,953,576 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 273 | py | # Generated by Django 2.0.5 on 2019-09-05 10:39
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('account', '0100_auto_20190902_1653'),
('account', '0102_auto_20190903_1950'),
]
operations = [
]
| [
"ankit.s@policybazaar.com"
] | ankit.s@policybazaar.com |
98239088c3b4a53c50df2bc9f8bf239942107bf9 | a36d54fb56bc2898089d6ad407bc2039a55271d4 | /zdevicemanager/base/tools.py | 8385f630bed268e1b477abec92e22fe0662faa58 | [] | no_license | zerynth/core-zerynth-toolchain | 443e5180d87b3b783c2b3ec69f24918761715b63 | d27b0d6ee47b9c4f320f518705074f1032fedf8a | refs/heads/master | 2021-07-25T00:28:00.192322 | 2021-05-17T14:53:20 | 2021-05-17T14:53:20 | 122,219,458 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,153 | py | from .base import *
from .fs import *
from .cfg import *
from .pygtrie import *
__all__ = ["tools"]
class Tools():
def __init__(self):
self.tools = {}
self.installed = {}
def init(self):
#register platform tools
if env.is_windows():
self.tools["stty"]="mode"
... | [
"dev@zerynth.com"
] | dev@zerynth.com |
9881b96519fce86f61a5ee3cb7a611005b646983 | 0d2af397b900fddad3d532a9f772f70473886cf5 | /tickets/urls.py | 0e2d8c65e60ed82fb02ab25f58af4e4c1d190634 | [] | no_license | RobertUJ/Omaha | cc779b06e42c08ebadae0b8df4e006ad67d504d1 | 650d5e1e5550bf772f1817e16505c574f361bae0 | refs/heads/master | 2016-08-12T13:51:32.262876 | 2016-02-12T00:51:52 | 2016-02-12T00:51:52 | 49,794,851 | 0 | 0 | null | 2016-01-22T00:04:29 | 2016-01-16T23:12:39 | Python | UTF-8 | Python | false | false | 264 | py | from django.conf.urls import patterns, url
from tickets.views import TicketsIndexView, AddTicketView
urlpatterns = [
url(r'^tickets/$', TicketsIndexView.as_view(), name='TicketsView'),
url(r'^addticket/$', AddTicketView.as_view(), name='AddTicketView'),
] | [
"erickhp12@gmail.com"
] | erickhp12@gmail.com |
f84e7e892f22dcef23a66020fb69487611bee303 | b37769515f7e078e2215be27a76a0ba199f7676e | /home/migrations/0003_remove_blog_slug.py | c37321351241594e4fb6b823fb4bc8ea1c54e86c | [] | no_license | roxna/eproc | 15e532a401291505adec086d2c60c78843c9afc6 | f22506e2afd005538c21d7bb678649a3736b6feb | refs/heads/master | 2022-12-02T20:38:49.674344 | 2017-03-28T09:44:03 | 2017-03-28T09:44:03 | 72,560,527 | 0 | 0 | null | 2022-11-22T01:20:51 | 2016-11-01T17:38:57 | HTML | UTF-8 | Python | false | false | 377 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.2 on 2016-11-23 17:51
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('home', '0002_blog_slug'),
]
operations = [
migrations.RemoveField(
mode... | [
"roxna.irani@gmail.com"
] | roxna.irani@gmail.com |
41dfb043debbb31d564d9bdcdda0dd997a4a98a5 | dca5705c291da76cbfaf3897680eb0ae2eb56e2b | /aayushg_assgn/myauth/views.py | face35c4566395dead6248d30c8430cf8b2fedf8 | [] | no_license | gadia-aayush/Django-API-1 | 41a40598653009def8ca5bda9a578a26b8bf9115 | 307202ad0aa4357408e756cd74f3723e74fca253 | refs/heads/master | 2022-12-13T23:09:45.960562 | 2020-08-30T19:36:16 | 2020-08-30T19:36:16 | 273,763,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,723 | py | from django.shortcuts import render
from django.contrib.auth.models import User
from django.shortcuts import redirect
from django.contrib.auth import authenticate, login, logout
from django.http import JsonResponse
from rest_framework.response import Response
from rest_framework.views import APIView
from rest_framework... | [
"gadia.aayush@gmail.com"
] | gadia.aayush@gmail.com |
ac9c2a9ef0b1cf9f39976b219335f1e2257893fc | d4c2846af2194e8463bff02a9ad49eedc97539eb | /src/RPConfig1.py | 77c0a56cf43effb39d46c064b268de9169bf6a08 | [] | no_license | rbulha/pytimeclock | 8eda6a41ecbe0e5f94238885a4d70e6d5f7e385f | a1cda1edce3d69fa504f55c40e78db9ecb2d837b | refs/heads/master | 2021-01-15T22:28:57.382733 | 2012-08-10T17:58:52 | 2012-08-10T17:58:52 | 40,454,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,680 | py | import sys
import os
import time
import shelve
import dbhash #incluidos apenas para que o instalador encontre os requisitos
import anydbm #incluidos apenas para que o instalador encontre os requisitos
CONFIGURATION_FILE = 'configuration1.dat'
class CRPConfig:
global CONFIGURATION_FILE
print '[CRP... | [
"rbulha@3db46129-f7cc-561c-f858-d950435ae609"
] | rbulha@3db46129-f7cc-561c-f858-d950435ae609 |
658da1160eb4755901ebedf82b585ce6ddcd99da | 1b83b79fcd58878cad8c683f7c2fb048abdc9b6c | /magnum/conf/kubernetes.py | 2de9370e2bc59fb73dcbfd6a2ef6f75e558c8313 | [
"Apache-2.0"
] | permissive | ititandev/magnum | 88f7ab8d93e6913fa085d34577827d11aead1790 | 16ea8b6397f2bafc01e6d4ec474c1ae97f15a484 | refs/heads/master | 2020-12-28T19:07:02.905485 | 2020-02-03T17:53:15 | 2020-02-03T17:53:15 | 238,458,066 | 1 | 0 | Apache-2.0 | 2020-02-05T13:35:13 | 2020-02-05T13:35:12 | null | UTF-8 | Python | false | false | 1,333 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may not
# use this file except in compliance with the License. You may obtain a copy
# of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | [
"flwang@catalyst.net.nz"
] | flwang@catalyst.net.nz |
7aade3ac2d090d75cb7eb785668927ac61e0d212 | 297b6b2a030a0d665fd12780da80bc64a9016f59 | /Assignment2/Assignment/makeChange.py | 5d9e807a700003f2aa560de428e99a25f0a3393e | [] | no_license | z0t0b/COMP5703 | 133ed9a90ba2024616a7ad5480937b89a9f70072 | bd89faa66f726c9675d4e58855577e2fda1075c4 | refs/heads/master | 2022-04-21T15:50:39.272916 | 2020-04-15T02:40:13 | 2020-04-15T02:40:13 | 255,782,341 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | import decimal
changeList = [0, 0, 0, 0, 0, 0, 0, 0]
def chop_to_n_decimals(x, n):
# rounds x to n decimals (works better for inputs like 0.005 than standard round func)
d = decimal.Decimal(repr(x))
targetdigit = decimal.Decimal("1e%d" % -n)
chopped = d.quantize(targetdigit, decimal.ROUND_HALF... | [
"noreply@github.com"
] | z0t0b.noreply@github.com |
e495a6da64e3b39072332ee3934ad2f8318bb290 | b7bb0a3ea2078dbdaa17947fd841fe1c9b5e356b | /oschown/workflows.py | a5b712d06344ce7e3a3a514e1831195fb2f2557f | [
"Apache-2.0"
] | permissive | epim/oschown | 48d4a7528ed38fb12cae408baad7a6e370ba86f1 | a50d3ad3769dad8d1f56dfe171d5345b3bee517f | refs/heads/master | 2021-02-13T21:21:01.223901 | 2018-09-17T15:28:41 | 2018-09-17T15:28:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,690 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed u... | [
"dansmith@redhat.com"
] | dansmith@redhat.com |
8d8b46573115c470483434c30bc2fd15efceb159 | 73785aea08895d0fc15e914ce329716712f057ec | /recipes/errorAnal.py | 9208c6a48ac906004212b9520360e38dbc9b8806 | [] | no_license | Peder2911/ModelComp | 5e93e6db7fbc809e7444448729a91ff7a762b0cc | 91ee3835ddc560adeb4af457953905aaeca79cd6 | refs/heads/master | 2020-05-20T05:09:01.877547 | 2019-05-18T13:37:34 | 2019-05-18T13:37:34 | 185,397,609 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 188 | py |
ppSentences(sentences,y,x):
for i,s in enumerate(errorSents):
print('#'*38)
print(f'{s} - pred: {prediction[err][i]} | actual: {actual[err][i]}')
print('\n')
| [
"pglandsverk@gmail.com"
] | pglandsverk@gmail.com |
0c57b23ce2e57693a0fa07b8ddd2d25521f90145 | c6a101547c2b7f36fe83a725974a8a7f02cf176d | /data_structures/binary_trees/flip_tree.py | 20c8cbf5f563689f2b9a252bd664a6b22b2a1b23 | [
"MIT"
] | permissive | prabhupant/python-ds | 737cc35574de5c2ece0f0813cf00775324a8dbe7 | f7d6d78fedaf84b7527965bb1798b7a8da989474 | refs/heads/master | 2023-08-22T05:04:22.937675 | 2022-10-04T01:29:39 | 2022-10-04T01:29:39 | 199,366,418 | 2,325 | 704 | MIT | 2022-10-10T13:01:10 | 2019-07-29T02:48:57 | Python | UTF-8 | Python | false | false | 643 | py | # Flip a tree such like here
# https://www.geeksforgeeks.org/flip-binary-tree/
# Flipping subtree algorithm
# 1. root->left->left = root->right
# 2. root->left->right = root
# 3. root->left = NULL
# 4. root->right = NULL
class Node:
def __init__(self, val):
self.val = val
self.left = None
... | [
"noreply@github.com"
] | prabhupant.noreply@github.com |
99d5656ae432b56eb9438da7a8014adeca443e39 | ee2c15d82ff596f4ca9eda408f8e096b787f0d48 | /Python/4 Dictionaries_Sets/4 dictionary/sets_challenge.py | 7a56065963a00863f02685fa85a6c29210e88624 | [] | no_license | sainimohit23/algorithms | 1bbfee3bd4d1049b18425bf0d86ecaacd4c43ea0 | 911986abe015f7518ef169a5866b1058c7d41d4f | refs/heads/master | 2022-11-13T17:40:06.128838 | 2020-06-30T17:35:35 | 2020-06-30T17:35:35 | 268,071,412 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | my_str = input("enter some text please ")
my_set = set(my_str)
vowels = set("aeiou")
finalset = my_set.difference(vowels)
finallist = sorted(finalset)
for num in finallist:
print(num)
| [
"sainimohit23@gmail.com"
] | sainimohit23@gmail.com |
784e7a40abe66b769c8b6ffca8fcf4ff447532c1 | 88ff86b95b377a4fd10474d2b215b0cf0b32143c | /src/ralph/scan/plugins/ssh_proxmox.py | 5627cf11be6d296a44bcf87c00dae5afd8551d1c | [
"Apache-2.0"
] | permissive | fossabot/ralph | f00fbfd9e64ae779633e0ea1faeb7fbe8f35353f | 9eb82955adf6b662bc460112b3d9b2d574ef0d70 | refs/heads/master | 2020-07-04T15:27:38.758147 | 2014-04-28T15:08:59 | 2014-04-28T15:08:59 | 202,324,100 | 0 | 0 | NOASSERTION | 2019-08-14T09:59:42 | 2019-08-14T09:59:41 | null | UTF-8 | Python | false | false | 9,507 | py | # -*- coding: utf-8 -*-
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import logging
import os
import json
from django.conf import settings
from ralph.discovery.hardware import get_disk_shares
from ralph.discover... | [
"andrew.jankowski@gmail.com"
] | andrew.jankowski@gmail.com |
c75ea51b954cef8081502d553948e07b0487abe9 | bf813d2b877fb8ba62feb4263484db3d0f26d5cd | /early-phd/map_to_flux.py | 1c2d0eab20e2c6fa5e1fe3228a8f9507a9b7ba48 | [] | no_license | 9217392354A/astro-scripts | 1e8e8c827097a877518d1f3e10870a5c2609417c | cd7a175bd504b4e291020b551db3077b067bc632 | refs/heads/master | 2021-01-13T00:40:57.481755 | 2016-03-25T17:04:28 | 2016-03-25T17:04:28 | 54,730,096 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | #Program created by Chris Fuller to test a function for extracting flux's from a fits file using appature photomotry
#import stuff
from numpy import *
import numpy
import scipy
import math
import sys
import os
from os.path import join as pj
#File stuff
cat = "bigcoma.csv"
catfolder = "/Users/chrisfuller/Dropbox/coma... | [
"chrisfuller@Chriss-MBP.lan"
] | chrisfuller@Chriss-MBP.lan |
98ae73f5af580dce3fc708af8516af5e1c67bbf3 | 50e03dae243af6bfab19f8cf42494284ff70fbd3 | /BIG-BIRD/RelGAN.py | 05e0634536e46c4d7140e7c904e0f5d7773baeb5 | [] | no_license | BritneyMuller/Summarization-Lab | bf2d79abe724e999e4017d4ffe6220863fe7f162 | 4b40f5ac7a629f509c323bf426d3058268628186 | refs/heads/master | 2021-01-25T23:13:13.669487 | 2019-09-30T14:38:13 | 2019-09-30T14:38:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22,010 | py | import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import math, copy, time
from torch.autograd import Variable
import matplotlib.pyplot as plt
import os
import torch.autograd as autograd
from RelationalMemory import *
from Transformer import *
class BigBird():
#generator is tran... | [
"you@example.com"
] | you@example.com |
cc8c69ab62120ec4784513c836d1a7756d9b1a0d | 2814757215ea599c47817315902a1642459970df | /object-dev/student-info/two_version/step5.py | 1cdf392ac433075bcca876a89264a944d9d516a2 | [] | no_license | legolas999/Python-learning | caadf31e60b973864f365c4f27eb9589bc1cdcd2 | 1a828595bc9596e737cc997bfad1f245b3314e8b | refs/heads/master | 2020-05-15T04:11:13.328995 | 2019-06-08T16:17:04 | 2019-06-08T16:17:04 | 182,081,867 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,281 | py | #!/usr/bin/python3.6
#定义全局变量存储学生信息
student_info = []
def print_menu():
'''实现打印功能提示菜单功能'''
#1.打印功能提示菜单
print('=' * 40)
print('\t{:<40}'.format('学生信息管理系统V1.0'))
print('\t{:<40}'.format('1.查询学员信息'))
print('\t{:<40}'.format('2.增加学员信息'))
print('\t{:<40}'.format('3.修改学员信息'))
print('\t{:<40}'.... | [
"lqr888888@aliyun.com"
] | lqr888888@aliyun.com |
715c52973d9758a579026ef80e34afbd30905a12 | 32134ac2fa760ba7285d9bc844fa4db0be76352a | /perceptron.py | dcc4b74eaf87eec1c00054f55b18a839728e6999 | [] | no_license | NJCinnamond/NLPAssignment-1 | 8143bf8bce8de1044b757de28e2b0afce4169ce1 | 4204dcf64cf0864e6be2c5ce645f3e1ea810762f | refs/heads/master | 2020-12-31T10:45:22.029690 | 2020-02-25T01:14:43 | 2020-02-25T01:14:43 | 239,006,956 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,636 | py | """ Maximum entropy model for Assignment 1: Starter code.
You can change this code however you like. This is just for inspiration.
"""
import os
import sys
import numpy as np
from util import evaluate, load_data
from sklearn.metrics import confusion_matrix
class PerceptronModel():
""" Maximum entropy model for ... | [
"54274991+NJCinnamond@users.noreply.github.com"
] | 54274991+NJCinnamond@users.noreply.github.com |
342f10e5e1c17b196563987f7720df7d1de0ef8e | 1361f56a3dc2205455054d144fa30d9cebb9704f | /week-07/project/get_data.py | b6f5c0ca6d65a95f039ea83f0e9e44f705ff9f35 | [] | no_license | green-fox-academy/TemExile | 31b240f58a0d56364e3b888cd9610b176f244d5e | 040882ebb07d10c65b98cd3dc12814f10fa52dc0 | refs/heads/master | 2020-05-19T18:17:58.468807 | 2019-06-21T06:22:51 | 2019-06-21T06:22:51 | 185,149,461 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import requests
from bs4 import BeautifulSoup
import numpy as np
import pandas as pd
from function import get_info
city_list = {
'Bath':'116', 'Bridgwater':'212', 'Burnham-On-Sea':'251', 'Chard':'301',
'Cheddar':'306', 'Clevedon':'337', 'Crewkerne':'381',
'Frome':'536', 'Glastonbury':'551', 'Ilminster':... | [
"hxwengl@163.com"
] | hxwengl@163.com |
5a18ee6526a8d5b5735523e7efe503c9224f57c1 | 35631053e6c1e7d01d31c27e10388204ab59b8f2 | /Streaming Media Player/pop_up_message.py | aaa1ee198e1f91f7dbfde98f2f21ab3e38f033da | [] | no_license | vanduan/DichVuMang | 7cf442498820c6c39362cc69e1fd10b503fca704 | c569cf52265356ed67eb703f50ddc65e6ce9e846 | refs/heads/master | 2021-01-21T13:03:15.699281 | 2016-04-22T10:41:27 | 2016-04-22T10:41:27 | 55,877,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 900 | py | import sys
from PyQt4.QtGui import *
from PyQt4.QtCore import *
def window():
app = QApplication(sys.argv)
w = QWidget()
b = QPushButton(w)
b.setText("Show message!")
b.move(50,50)
b.clicked.connect(showdialog)
w.setWindowTitle("PyQt Dialog demo")
w.show()
sys.exit(app.exec_()... | [
"vanduan95.dvp@gmail.com"
] | vanduan95.dvp@gmail.com |
99cd43a8c940db281d4db4d33d06b1cee795bc61 | c5291e50a3c72c885922378573a0ad423fcedf05 | /analysis/data/urls.py | e7638f31b2b04491d30e6f29d5a4d9826f2a05c3 | [] | no_license | raghurammanyam/django-projects | bcc3ed6285882af437a2995514cef33760fb063e | dd20ae354f7f111a0176a1cc047c099bd23e9f05 | refs/heads/master | 2022-12-12T19:22:31.698114 | 2018-12-09T09:41:45 | 2018-12-09T09:41:45 | 137,443,359 | 0 | 0 | null | 2022-11-22T03:01:07 | 2018-06-15T05:08:15 | Python | UTF-8 | Python | false | false | 196 | py |
from django.conf.urls import url
from django.urls import path
from .views import test,get
from django.http import HttpResponse
urlpatterns = [
url(r'^date/',test),
url(r'^get/',get)
]
| [
"manyamraghuram@gmail.com"
] | manyamraghuram@gmail.com |
f231f73dec833a474cefcee2707d8742f92f9d51 | 125bc51efb95f383257e7bdb50ae74e5dc05b7f7 | /src/belajarIntegerString.py | f28765c84ddfefc5911c0710cd851199053fcd21 | [] | no_license | frestea09/learn_ch1_python | f9688fffda5f0fa312b82bd25081b986fa0779e9 | 510ea59bf85ec024ebc473db2533e92becaefbf3 | refs/heads/master | 2020-05-26T18:22:31.171688 | 2019-05-26T05:42:08 | 2019-05-26T05:42:08 | 188,334,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 239 | py | from __future__ import print_function
def main():
variabelNama = input('nama : ')
variabelInteger = int(input('Umur'))
print('Nama anda %s dan umur anda %d'%(variabelNama,variabelInteger))
if __name__ == "__main__":
main() | [
"ilmanfrasetya@gmail.com"
] | ilmanfrasetya@gmail.com |
8f4ca0a46c8c2f2b477ecfa59a36f08c988916bb | c220ac95ee13465d549b721700fe482ed490a2ac | /itty/__init__.py | 6363a9929b9908c6a4220c4143cefa060e4c3310 | [
"BSD-3-Clause"
] | permissive | ruthenium/itty | 66587621e1f36fc66202bf3a24509438d04b48d1 | 5d4219909c88d21af8b5548d366888accace68f6 | refs/heads/master | 2021-01-18T08:46:24.315865 | 2011-08-17T03:10:47 | 2011-08-17T03:10:47 | 2,151,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,591 | py | from .base import (HTTP_MAPPINGS,
Callback as _Callback,
Error as _Error,
Request,
Response,
static_file,
EnvironmentError,
Forbidden,
NotFound,
AppError,
Redirect,
App,
run_app)
APP_METHODS = { }
class Callback(_Callback)... | [
"bubucektop@gmail.com"
] | bubucektop@gmail.com |
9a0f0433298aaf2b0b0aa33f5a64b0273f639e93 | 24d8cf871b092b2d60fc85d5320e1bc761a7cbe2 | /eXe/rev2669-2722/left-trunk-2722/twisted/internet/iocpreactor/udp.py | 3bf7a5bba392de8252482bdf0e1ba0600cfe27fa | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | joliebig/featurehouse_fstmerge_examples | af1b963537839d13e834f829cf51f8ad5e6ffe76 | 1a99c1788f0eb9f1e5d8c2ced3892d00cd9449ad | refs/heads/master | 2016-09-05T10:24:50.974902 | 2013-03-28T16:28:47 | 2013-03-28T16:28:47 | 9,080,611 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 6,644 | py | import socket
from twisted.internet import interfaces, defer, error, protocol, address
from twisted.internet.abstract import isIPAddress
from twisted.persisted import styles
from twisted.python import log, failure, reflect
from ops import ReadFileOp, WriteFileOp, WSARecvFromOp, WSASendToOp
from util import StateEventMa... | [
"joliebig@fim.uni-passau.de"
] | joliebig@fim.uni-passau.de |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.