blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
616647cdf2be27e724c65198518eae2d86e18a24 | c8da7907833ed9640c7f5c8b53421e260d854563 | /day5/day5.py | c37f748236b988e82895f68e28cb990f6f9e9aba | [] | no_license | alsonfx/AoC2020 | eb302214634ea0f9567aa4112808dc48f468d996 | a971eabce7465a412451daeb973c6fca11b5ed75 | refs/heads/main | 2023-05-14T15:33:16.670563 | 2020-12-08T03:13:54 | 2020-12-08T03:13:54 | 319,510,696 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 945 | py | zones = open('zones.txt', 'r')
max_id = 0
my_seat = []
for line in zones:
seat_id = 0
rows = [*range(128)]
columns = [*range(8)]
for letter in line:
if letter == 'F':
mid_row = len(rows) // 2
rows = rows[:mid_row]
elif letter == 'B':
mid_row = len(ro... | [
"49161570+alsonfx@users.noreply.github.com"
] | 49161570+alsonfx@users.noreply.github.com |
38912cc3fa092bccfa3bccf43f060efc5ae72b50 | 5d3e77854877be580529e3cb5aaff1da3d19958a | /0x0F-python-object_relational_mapping/100-relationship_states_cities.py | 4805077b20c4592541c20fd017d77050841a8b63 | [] | no_license | afinesami/holbertonschool-higher_level_programming | a504a06cdb485a98a929bed4b13dda5d5286f0d6 | 13c9cec136665d68fb44157206b43a26e5243bd3 | refs/heads/master | 2020-09-28T22:42:33.081237 | 2020-06-22T12:50:01 | 2020-06-22T12:50:01 | 226,883,016 | 11 | 26 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | #!/usr/bin/python3
"""
All states via SQLAlchemy
"""
from sys import argv
from relationship_state import Base, State
from relationship_city import City
from sqlalchemy import (create_engine)
from sqlalchemy.orm import Session
if __name__ == "__main__":
engine = create_engine('mysql+mysqldb://{}:{}@localhost/{}'.
... | [
"samibenomar84@gmail.com"
] | samibenomar84@gmail.com |
569e5135fac1555cf0fb518269b99b2c71661cc5 | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_9477.py | fa57d72004d0e3842548a0d58e2499f639d33ab5 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | # Django Testing: Using a login decorator for test cases
class SimpleTest(TestCase):
def setUp(self):
self.client.login(username='foo', password='bar')
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
4597d83584788cf695d87c1e2a496c54a0755578 | b3f125b5a3039fdda872365d5ddeed2947a0a0aa | /data_process/save_shstock_list.py | e21659f85d192fe8bf00d7f61c9c8c82888c72a5 | [
"MIT"
] | permissive | dxcv/vnpyStockEngine | f7faa77aebfc813f7a82fecddd4822dadcd0e112 | 7543c7ed5bae70b5b87342d9317517a12444b673 | refs/heads/master | 2020-06-21T21:26:31.405461 | 2019-03-06T07:16:00 | 2019-03-06T07:16:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 890 | py | import pandas as pd
import pickle
import os
from data_process.base_define import shfile_address_base
def save_data(date):
count = 0
shfile_list = os.listdir(shfile_address_base.format(date))
for file_name in shfile_list:
count += 1
file_address = shfile_address_base.format(date) + os.sep +... | [
"18665304480@163.com"
] | 18665304480@163.com |
dc669df5d5ea84b97b7364cf7fe66b5c289a477b | 6fa7045a2b9a14fc371e65ea5a843571f81c643e | /driver.py | 4bbce18f7489e1c5ada2057ab46e0f58e6c3df3a | [
"MIT"
] | permissive | MileyCao/ToyLanguage | a406451d9181f1d5d48081f0a8da12e23c109e04 | b565d10fbdb922c27a61f5f75e414bc669bfbbd6 | refs/heads/master | 2020-08-13T01:58:20.438939 | 2018-08-20T00:10:57 | 2018-08-20T00:10:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,832 | py | """
This file is the driver file, it provides a command-line frontend
Usage: python3 driver.py <file> [Option]
Option:
--dump-ast: dumps the AST
--dump-assembly: dumps the assembly code for the internal virtual machine
--help: print the help message
If no option specified, it will run the program by defa... | [
"1024842937@qq.com"
] | 1024842937@qq.com |
39ec26d2bdaef2cebe504d4ad940fe7e5fc8bea9 | dedcb694d8d8f53fdbf047334db1ed23146be4ee | /todo/kurz.py | 7e29fd9ab27c7212ed4c4807240a0beafc0fdbbb | [] | no_license | jozo/pythonbrno | a436a7942ddd124845bdc0ddb2b4e9462d32805a | 88c77b6f48931d001de16b611ccec4bb3ebb29fa | refs/heads/master | 2021-06-15T14:49:22.961764 | 2017-03-24T08:48:02 | 2017-03-24T08:48:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | from flask import request, url_for
from flask.ext.api import FlaskAPI, status, exceptions
app = FlaskAPI(__name__)
import sqlite3
# notes = {
# 0: 'do the shopping',
# 1: 'build the codez',
# 2: 'paint the door',
# }
def note_repr(key):
conn = sqlite3.connect('test.db')
cur = conn.cursor()
... | [
"fadawar@gmail.com"
] | fadawar@gmail.com |
52b1286ab48d460abebb87719f7d65cef1e7009d | c62a07c8051d6106717863651004c8186a0e3027 | /logic.py | 84c2678f81cea7f404f2c5b6faddd8b4b1335110 | [] | no_license | isakura313/third_22 | bf47bef5914ac5debeb33a36dad39566181ed6fb | c43911d6b73f638894d14f757a0ec5462e9e8005 | refs/heads/master | 2022-04-18T14:27:00.231299 | 2020-04-22T17:01:23 | 2020-04-22T17:01:23 | 257,967,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | role = input("Введите вашу роль в проекте: ")
age = input("Введите ваш возраст: ")
age = int(age)
if role == "admin" and age > 18:
print("У вас есть все права")
elif role == "user" and age> 16:
print("У вас на этом проекте есть некоторые права")
else:
print(" этот сервис закрыт на карантин")
| [
"isakura313@gmail.com"
] | isakura313@gmail.com |
b9c6ad69d505a67cc6c868578c045ddeed34fda6 | fe108bfc4ac5206949d8ae9f787acf2e46b78bed | /code/32.3 从上到下按行打印二叉树.py | ca141d6c5c6d8f62df1011020b73c430182bddca | [] | no_license | Lmyxxn/JZoffer | 88dc8ea71a72e4f1b6806de4e7af3323d6e12f7e | 12b8889eda79a0af72b9326982c597e807d1ccea | refs/heads/master | 2022-04-18T06:05:19.209089 | 2020-04-13T16:00:53 | 2020-04-13T16:00:53 | 255,370,848 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,362 | py | # Definition for a binary tree node.
class TreeNode:
def __init__(self, x):
self.val = x
self.left = None
self.right = None
###### 从上到下按行打印
class Solution:
def levelOrderBottom(self, root: TreeNode) -> List[List[int]]:
if not root: return []
queue = [root]
res = [... | [
"noreply@github.com"
] | Lmyxxn.noreply@github.com |
e9c1e88cba3c232330a1faccfd36c0eabcd038bf | 7757c2a7d49562e381a2aff5819e590fa77eee84 | /TiendaOnline/settings.py | c132e6ac19fae5d2b1c75076e6e2786935bf23b1 | [] | no_license | eduardobrunner/TestAppDjango | 22737c3427d7c4e7901c27f9bc8e3904b57c775c | de4fd29e5afebdcbd1e4b0282e64ad3b68e464f4 | refs/heads/main | 2023-07-07T03:11:57.831023 | 2021-08-16T15:15:16 | 2021-08-16T15:15:16 | 396,839,053 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,279 | py | """
Django settings for TiendaOnline project.
Generated by 'django-admin startproject' using Django 3.2.6.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.2/ref/settings/
"""
from pa... | [
"eduardobrunner94@gmail.com"
] | eduardobrunner94@gmail.com |
4f59061967f5c5c68703686d4d4f94c877768bfb | 275341122022985c9e5b4020b1d0541b0da9a1b5 | /simplifyPath.py | f1d4cab781ddfb2190d4fa66b5d135c128312dad | [] | no_license | wxy325/leetCodePython | 54135677591a05e9342d983935f58a53bcde7750 | 1ce2e24a0065f83b5e5e2ddbdef138445b357b8f | refs/heads/master | 2021-01-18T23:31:22.854424 | 2016-06-10T17:04:17 | 2016-06-10T17:04:17 | 18,469,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 896 | py | __author__ = 'wxy325'
class Solution:
# @param path, a string
# @return a string
def simplifyPath(self, path):
if path == '':
return '/'
pathArray = path.split('/')
outArray = []
outputPath = ''
for p in pathArray:
if p == '' or p == '.':
... | [
"wxy325@qq.com"
] | wxy325@qq.com |
f2b3d2056573b279c7c6d398884534fc2b8b9c75 | 83b24f0895a2db3c335753f43a5b1bc8fac8440a | /Baekjoon1000.py | 0abf028a96827d9fa3a3817c829f0e27a74c37ac | [] | no_license | Sorune/BaekJoon | 78ac2d317abc17b1ac842181fc83fadb3f237a39 | 0c264132eea66eb46143f166d3fb776a0a774d41 | refs/heads/master | 2023-02-14T14:08:34.345087 | 2021-01-13T04:30:24 | 2021-01-13T04:30:24 | 327,553,337 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | IntA = input()
result = int(IntA[0]) + int(IntA[2])
print(result) | [
"zksktldl125@naver.com"
] | zksktldl125@naver.com |
1df1aee8ad792efd4d9263211983fde1e9a21686 | 7a0810569ea1bf5da242747051e6abb271667c0f | /djangofirstexample/manage.py | 9552d57fba9f7e3b5d0c1694553b151e23cfa6e8 | [] | no_license | saifu-tech/django_crud_ | 1e8020e9e6ea878354ab96782b9cd25ffdebf97b | 7de5c9d8b10aeba030e425ab4cbeed14b1d27b89 | refs/heads/master | 2020-05-18T23:17:53.777832 | 2019-05-03T06:40:02 | 2019-05-03T06:40:02 | 184,708,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'djangofirstexample.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
r... | [
"saifudeen2638@gmail.com"
] | saifudeen2638@gmail.com |
7953194e08d87e2cc8bd5e2a743dc383d4d6458b | fc3c9d2143aecedce191bb91dbd01babe7f6d40b | /tensorpack/callbacks/dump.py | ef62833b31118c6a9f00e80eb5e6c9216d57a65e | [
"Apache-2.0"
] | permissive | rahulbprakash/tensorpack | 0ee10de245f486d17a252354833c98dd713fd6e6 | b2ec42a8d152760498aa911818d50b01e408bb43 | refs/heads/master | 2020-12-30T19:12:08.800662 | 2016-06-09T23:03:37 | 2016-06-09T23:03:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | # -*- coding: UTF-8 -*-
# File: dump.py
# Author: Yuxin Wu <ppwwyyxx@gmail.com>
import os
import scipy.misc
from scipy.misc import imsave
import numpy as np
from .base import Callback
from ..utils import logger
from ..tfutils import get_op_var_name
__all__ = ['DumpParamAsImage']
class DumpParamAsImage(Callback):
... | [
"ppwwyyxxc@gmail.com"
] | ppwwyyxxc@gmail.com |
b13a8e027de105c667d522cc548f74f489d5db8a | ed62feadf4e8735854e3d3d55f3a06ece56994ed | /Chapter 1/Practice exercise 1/2 Number of seconds in a year.py | af64871617419deccd56896a802b253200ab7b70 | [] | no_license | kitsmart/pythonbooklet | e903ce82a2aa7c03e19a273c3969d238aeb8fe79 | 9eba2df0174a03551837a2be294269cfbbfa3ef4 | refs/heads/master | 2023-02-09T10:32:23.134185 | 2017-11-19T20:23:39 | 2017-11-19T20:23:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | seconds = 1
noOfin1year = seconds * 60 * 24 * 365
print("Number of seconds in a year:", noOfin1year)
| [
"atomlizard@gmail.com"
] | atomlizard@gmail.com |
47c54f8ce55b1827413426a314d5845705c18bbf | 391b3db590a1a8e991c5d3bfe1911bd43a8aeb2a | /debug-scripts/python_listener.py | a6f1ddc3fa008156048ebdf00d37979e3d04981b | [] | no_license | GRIDAPPSD/gridappsd-docker | 4b356a32043209097bcb274a34eff8ff9e3e7d59 | 226d03c8aa7a0e986099feea3dd080f3d6a1b836 | refs/heads/main | 2023-09-01T06:33:43.204690 | 2023-08-04T23:41:20 | 2023-08-04T23:41:20 | 109,312,823 | 9 | 11 | null | 2023-07-17T21:55:05 | 2017-11-02T20:00:42 | Shell | UTF-8 | Python | false | false | 3,646 | py | import argparse
import json
from fncs import fncs
class PythonListener(object):
def __init__(self, broker_port, sim_id, sim_length):
self.broker_location = "tcp://localhost:{}".format(broker_port)
self.subscription_topic = "{}/fncs_output".format(sim_id)
self.sim_length = int(sim_length)
... | [
"andrew.fisher@pnnl.gov"
] | andrew.fisher@pnnl.gov |
9d3ebb55f1314362a215d95a4aadf6a840bf824d | 1b9075ffea7d4b846d42981b41be44238c371202 | /2009/stable/hardware/firmware/flashrom/actions.py | 870e4cb6e12699846f65a6f0b2a8ad85380f45fd | [] | no_license | pars-linux/contrib | bf630d4be77f4e484b8c6c8b0698a5b34b3371f4 | 908210110796ef9461a1f9b080b6171fa022e56a | refs/heads/master | 2020-05-26T20:35:58.697670 | 2011-07-11T11:16:38 | 2011-07-11T11:16:38 | 82,484,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Copyright 2007-2010 TUBITAK/UEKAE
# Licensed under the GNU General Public License, version 2.
# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
def build():
autotools.make()
... | [
"necdetyucel@gmail.com"
] | necdetyucel@gmail.com |
2fc890324dbea582d0d5a3fe622be21a02df6bbc | 11372b8fb4df2b8ccb68589fc84bb716a7ea10a2 | /Bindings/Python/tests/test_DataTable.py | ef9952122c4fa0ea26195ac9e8e21f97c8a259cb | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | shyamalschandra/opensim-core | 4e8adce1da4ff964b03a2b7f94c4a05a539ec37f | eb6cc66e3fae995e50ee054bce5d039a0f7d9ef5 | refs/heads/master | 2020-05-29T08:43:06.596505 | 2016-09-30T00:04:14 | 2016-09-30T00:04:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,456 | py | """
Test DataTable interface.
"""
import os, unittest
import opensim as osim
class TestDataTable(unittest.TestCase):
def test_DataTable(self):
table = osim.DataTable()
# Set column labels.
table.setColumnLabels(['0', '1', '2', '3'])
assert table.getColumnLabels() == ('0', '1', '2', ... | [
"klshrinidhi@gmail.com"
] | klshrinidhi@gmail.com |
e8a722224a3af0bbf9f0bb156957c59e20ba719a | f32cd42623b5ae25895a2a1da9f748d592b457e0 | /airline/flight/migrations/0003_passanger.py | 165e8fae53aa8b2a1de06b8c5ff58d646b79b8ed | [] | no_license | drkrthnblk/Django | 790dac28961ca5f706a57385f7f8affa70e0a08f | 2bb0d678bcbc90b35a98bd1e57aa69b32a2b6d35 | refs/heads/master | 2020-03-28T01:41:35.831566 | 2018-09-08T07:05:48 | 2018-09-08T07:05:48 | 147,523,313 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 753 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.15 on 2018-09-08 04:48
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('flight', '0002_auto_20180906_1341'),
]
operations = [
migrations.CreateMod... | [
"rarc111@gmail.com"
] | rarc111@gmail.com |
51150a3dae6b91bae2baf4002c8e95d9079059ef | ffcb28129a7ff97c585bd3dd0eeace40c363c978 | /mglearn/plot_kneighbors_regularization.py | 2dc0c238953ae98a0902bff483e6e4411f6fa153 | [
"BSD-2-Clause"
] | permissive | data-ml/advanced_training | 6b090482d99a24e821f6c419135eba659734da69 | 84d78b60161d08b0f212a14f10f80c6bdc346998 | refs/heads/master | 2020-04-01T20:27:10.907126 | 2018-10-18T11:46:21 | 2018-10-18T11:46:21 | 153,604,614 | 0 | 0 | BSD-2-Clause | 2018-10-18T10:14:25 | 2018-10-18T10:14:24 | null | UTF-8 | Python | false | false | 1,159 | py | import numpy as np
import matplotlib.pyplot as plt
from sklearn.neighbors import KNeighborsRegressor
def plot_regression_datasets():
fig, axes = plt.subplots(1, 3, figsize=(15, 5))
for n_samples, ax in zip([10, 100, 1000], axes):
x, y = make_dataset(n_samples)
ax.plot(x, y, 'o', alpha=.6)
... | [
"amueller@nyu.edu"
] | amueller@nyu.edu |
22af9c136349ee70da4d000c5eef00cb1baf0109 | 8ecd899a8558ad0a644ecefa28faf93e0710f6fb | /ABC007/ABC007_A.py | 679623e243c760e493ba9bd56ca1c2569cd69a61 | [] | no_license | yut-inoue/AtCoder_ABC | b93885547049788d452e86b442a4a9f5ee191b0e | 3d2c4b2b2f8871c75f86040ad07ccd7736ad3dbe | refs/heads/master | 2021-07-03T09:09:20.478613 | 2021-02-21T13:20:31 | 2021-02-21T13:20:31 | 227,140,718 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | n = int(input())
#a, b = map(int,input().split())
#l = list(map(int,input().split()))
#l = [list(map(int,input().split())) for i in range(n)]
print(n-1) | [
"yinoue.1996787@gmail.com"
] | yinoue.1996787@gmail.com |
d332802e56fe91375933bf622ca63bde19817eb3 | 386b836548bd64369e9192b7b540fadd5c1e0338 | /DGGAN/code/utils.py | eac66edcf20a489af2d4adada14c5f4670c14ca9 | [] | no_license | RingBDStack/AGE | e8efef8dc4ce958bf19ce03bac93e5f8ef6c7520 | 392ed8ca4b84d8e713719c6c7b93e092f8931bf9 | refs/heads/main | 2023-04-03T23:48:24.061213 | 2021-04-12T15:56:18 | 2021-04-12T15:56:18 | 357,246,136 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,315 | py | import numpy as np
def read_graph(train_filename):
nodes = set()
nodes_s = set()
egs = []
graph = [{}, {}]
with open(train_filename) as infile:
for line in infile.readlines():
source_node, target_node = line.strip().split(' ')
source_node = int(source_node)
... | [
"fuxc@act.buaa.edu.cn"
] | fuxc@act.buaa.edu.cn |
9c512e0241560b6fe71836a85588014ff24d8cfd | 4496b6864f51f1716d8221514ec43f648d1cd7d1 | /task3.py | 9c9a2ab2f90f9a4659213cb1d1518b3b0201c41d | [] | no_license | inwk6312winter2019/modelopenbook-1-khyathinalluri | 0d19bc33c0761c756b1f21ddbf7e56cd347a242d | 8da42272aaf0563ddb22a785dfa57f10a5c906f7 | refs/heads/master | 2020-04-21T08:47:35.807738 | 2019-02-06T19:11:26 | 2019-02-06T19:11:26 | 169,429,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,141 | py | def get_access_list(fout):
fout.seek(0)
transit_access_in=[]
global_access=[]
fw_management_access_in=[]
for line in fout:
line=line.strip()
if 'access-list' in line:
if 'transit_access_in' in line:
transit_access_in.append(line)
elif 'glo... | [
"Khyathi.Nalluri@dal.ca"
] | Khyathi.Nalluri@dal.ca |
91be3f6ba80e16dd77e7a909e79b0c4743203ba1 | 226b3aefd1877a51e26cd9c00ffadb94249bc7c0 | /Image-OCR-and-Translator/Auto_Translate.py | 40610a7c6fe19862f63a057f141a7f01d4a7a7e2 | [] | no_license | CMWorks/Python | f8872f7f87f30fbe0072ddf262ba8abda7fa34d3 | 1852a4cfbca099cd153fc46676b7cee8ec2d9b6c | refs/heads/master | 2022-11-19T18:05:29.630181 | 2020-07-19T16:50:07 | 2020-07-19T16:50:07 | 280,886,772 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,320 | py | import sys
import time
from os import listdir
from os.path import exists
import threading
import cv2
import imutils
import numpy as np
import pyautogui as auto
import pytesseract
from PIL import ImageGrab
from PyQt5.QtCore import Qt
from PyQt5 import QtCore
from PyQt5.QtGui import QCloseEvent
from PyQt5... | [
"noreply@github.com"
] | CMWorks.noreply@github.com |
22cbfa85a5db8d187adefa8c0db904d9217a9a83 | 9c912c4150f49b098d747bd1eb4dc4a20581b0a1 | /IMU/pi to pc/data_to_3d.py | 3c398262c4fa396baa53d279e62e719319e72c00 | [] | no_license | Pratyush-S/LOCALISATION | a2dd40bdb8a9dab17378b9efec6701855cf5554e | 02e12122f2d24fe996f5f543661ec9f4b0f7021d | refs/heads/master | 2021-01-14T18:06:57.999736 | 2020-04-04T08:18:22 | 2020-04-04T08:18:22 | 242,706,700 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from mpl_toolkits import mplot3d
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(10,10))
ax = plt.axes(projection='3d')
from matplotlib.pyplot import figure
figure(num=None, figsize=(1, 1), dpi=80, facecolor='w', edgecolor='k')
# Data for a three-dimensional line
z... | [
"shukla1024@gmail.com"
] | shukla1024@gmail.com |
e2273f82a362b586f2ca3bba2a5a25a7d369649a | a68e51cdd60da58880487dffb14083014a2337fb | /pixiv_v2.py | 61c688eb07156e214789efed649859608de8f959 | [] | no_license | monburan/pythongit | 96cf57a8ad8449711443acdbe996db9e4729b5f1 | f1ab12e6a654b4a82c626eb117120f48ae74dcce | refs/heads/master | 2021-01-17T18:00:56.334659 | 2016-07-18T09:36:55 | 2016-07-18T09:36:55 | 56,758,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,291 | py | #coding:UTF-8
__author__ = 'monburan'
__version__ = '0.10 only_international'
import os
import re
import urllib
import urllib2
import cookielib
from urllib2 import urlopen
from bs4 import BeautifulSoup
class Tools:
remove = re.compile('amp;')
rmbig = re.compile('_big')
make_m = re.compile('mode=medium')... | [
"mengbulang012@gmail.com"
] | mengbulang012@gmail.com |
0c436c65853fb5972935b4ecbfa85d46d0946c27 | 5c078ed010ca8a085f69669fa2590d7afb780e3d | /venv/Scripts/easy_install-script.py | a484963ffdfdf50f719b2b070aaf7a15e1713cc6 | [] | no_license | klaartjebloks/Selenium-Robot-Automation | baee9f4ff70f30d9beb3c18b8dbdbe8f94624e27 | d95a0c52b568846629ce6bc4ea6181ec4549c587 | refs/heads/master | 2020-05-30T20:57:51.018591 | 2019-06-03T08:17:34 | 2019-06-03T08:17:34 | 189,961,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py | #!C:\Users\Klaar\PycharmProjects\Automation\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?... | [
"klaartje.bloks@closesure.nl"
] | klaartje.bloks@closesure.nl |
2859050f5f4926044ceeb1a9937dfdf2a9332f07 | 3ec84a6e34f9bc709cb203f8b3f668f2b6697e2a | /python20200322-master/class_Python기초/py12패키지/mylib/operation/test.py | a8124c496932fed9a4168d433ceb4a82eeb59f3b | [] | no_license | eopr12/pythonclass | 52079bd99358ac73664beed236659b97c8b63d40 | 2526fe255969a799f6c534c9db6bff9e4eccd877 | refs/heads/master | 2022-07-10T11:17:31.692754 | 2020-05-16T08:43:00 | 2020-05-16T08:43:00 | 263,377,402 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 153 | py |
def test_operation():
result = None
try:
result = "test_operation"
except Exception as ex:
print(ex)
return result | [
"kye9565@gmail.com"
] | kye9565@gmail.com |
17e7c8be515f80ea9dee0d5f118fd8e35ac8d642 | 652a145a1bdedd9be6ed21b7c47fb8e4bd44f263 | /model.py | 7b0955bbd3f9552190014ad7bd37bce102bfbb1a | [] | no_license | vaibhavkakodiya/rock-paper-scissors | f9e62d174241d4c0b1b02d48160fe4a2983df3db | 06c6e6b54e02e29d8187cf7c7c81b50150b0b7f1 | refs/heads/master | 2022-12-02T23:03:40.876420 | 2020-08-22T20:21:09 | 2020-08-22T20:21:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 422 | py | from pygame import image, draw, font
import game_confi as gc
def scoreboard(your,bot):
your_score = font.SysFont('freesansbold.ttf',100)
bot_score = font.SysFont('freesansbold.ttf',100)
your_score = your_score.render('your score : ' + str(your),True, (0,255,0))
bot_score = bot_score.render("computer'... | [
"vaibhavkakodiya12345@gmail.com"
] | vaibhavkakodiya12345@gmail.com |
b189c9f79a4040f7fdc65f0d0acd2de225abbcc1 | e3a50f0c2c4aab5340c6d1cb6acb078475d89455 | /wordcount/views.py | 443780481e57e0022ac76c3e4d3773bb37def313 | [] | no_license | thecplusplus/wordcount-project | e3a3259c01b732dccd1642f0e41bef63fe159727 | abdfb7245e00e2a45bb1479792e2ce2816202508 | refs/heads/master | 2022-11-28T02:20:16.857336 | 2020-07-31T06:26:11 | 2020-07-31T06:26:11 | 283,953,345 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from django.http import HttpResponse
from django.shortcuts import render
def homepage(request):
return render(request, 'homepage.html')
def hola(request):
return HttpResponse("Hola Amigo")
def about(request):
return render(request, 'about.html')
def count(request):
text = request.GET['fulltext']
... | [
"cplusplus.2611@gmail.com"
] | cplusplus.2611@gmail.com |
a227df16f5ae47666110b93b5b1169d8690aa7b7 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractEllionoratranslationsCom.py | 0f48d87eec935ae8a6cf120a0f95327cacb1e09f | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 563 | py |
def extractEllionoratranslationsCom(item):
'''
Parser for 'ellionoratranslations.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', 'translated'),
('... | [
"something@fake-url.com"
] | something@fake-url.com |
47eb73bba21e3a85c8dfe3a57c32769f1bf528c4 | 02d278bad0bba99efca54b00e8f66e8d6b0497e0 | /ultrafinance/pyTaLib/indicator.py | bc6a5828c22a3f886ce5fba52bb004dd187d5c37 | [] | no_license | afcarl/ultra-finance | 857528407e4f9b9fe3288dad57dd9aab20a6185e | fd16aebf42ddcf420990c41f475c7b13358ac9a7 | refs/heads/master | 2020-09-03T04:18:51.544354 | 2014-03-03T08:43:29 | 2014-03-03T08:43:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,155 | py | '''
Created on May 26, 2012
@author: ppa
'''
import numpy
from math import sqrt
from collections import deque
def mean(array):
''' average '''
return numpy.mean(array, axis = 0)
def stddev(array):
''' Standard Deviation '''
return numpy.std(array, axis = 0)
def sharpeRatio(array, n ... | [
"panpandas@gmail.com@4d73ce26-f01c-a35a-b3e1-28a64a014117"
] | panpandas@gmail.com@4d73ce26-f01c-a35a-b3e1-28a64a014117 |
8275af2db00836647300750763b190f0e3727163 | 3c99871ed1923632cbd7d0068f6ed50acca8163e | /Homework/session_1_ex_1.py | 4402f8bd922a21f1327dde1bcbf22de7fad078d7 | [] | no_license | mindt102/C4T_A03 | f7828919ffedc9629329de71fd4bc593699a9b00 | 845ddf3a0646c1496a812e285e946e2b8cf8ddfd | refs/heads/master | 2022-08-14T20:45:34.901714 | 2020-05-22T14:26:33 | 2020-05-22T14:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | loop = True
while loop:
n = input("Enter a number: ")
if not n.isdigit:
continue
n = int(n)
if n < 0:
continue
loop = False
factorial = 1
for i in range (1,n+1):
factorial *= i
print("{}! is {}" .format(n,factorial))
| [
"minhdt24082002@gmail.com"
] | minhdt24082002@gmail.com |
7c5f13bb16f8b2cc9880f0b652a33abc44f9b229 | 275aaf4eba0badd745a17a42a1a43c822f5e4416 | /app/controllers/user.py | 1ebbe549383968658f2e640f4902d32bccd16065 | [
"MIT"
] | permissive | leonardowolf/bookfree | e99c26ffcb457110efd228c927ea7bb33dc2646d | 3ddfe970f87207ff8b536e994fac9daec773ac1c | refs/heads/master | 2020-12-26T19:59:06.873321 | 2016-07-22T14:54:55 | 2016-07-22T14:54:55 | 63,426,474 | 0 | 0 | null | 2016-07-15T14:07:24 | 2016-07-15T14:07:24 | null | UTF-8 | Python | false | false | 159 | py | from app import lm
from flask import render_template
from app.models.tables import User
@lm.user_loader
def load_user(id):
return User.query.get(int(id))
| [
"contato@juliarizza.com"
] | contato@juliarizza.com |
d90f9239f6914f951f2e982845309fcde51fb5c6 | c0a49fa2d42df21eac90d8e94825edd8dadd655b | /shoogie/views.py | c535d1bcfec86d7c96398c508d9c10571c0f22a9 | [
"MIT"
] | permissive | hermanTenuki/django-shoogie | 55241d3d0450c8094262386035b88b44e0c7cf68 | 96f0b1178a7f08b1a980274d610b131ca1fc0f89 | refs/heads/master | 2021-10-07T20:52:23.365300 | 2018-12-05T10:48:16 | 2018-12-05T10:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from django.http import HttpResponse
from django.views.generic import detail
from shoogie import models
class TechnicalResponseView(detail.BaseDetailView):
queryset = models.ServerError.objects.all()
def render_to_response(self, context):
return HttpResponse(context['servererror'].technical_response)... | [
"git@aryehleib.com"
] | git@aryehleib.com |
815d3f3a34ea7f77be96600c31e2cb95753d4113 | ff018db3042b3b06076fab02f49b8c17b8887d3b | /car/autohome/pipelines.py | 7a7b0ec42ded1e4896d8f53ff324c52b40a59efa | [] | no_license | chenzhenpin/my_scrapy | bef05c9a843dad4697b431023e7f094fa8c570b9 | 77310d9c9082dcd54f175a13c7a3919384bbc309 | refs/heads/master | 2020-04-08T12:49:03.973291 | 2019-07-17T08:17:30 | 2019-07-17T08:17:30 | 159,362,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,601 | py | # -*- coding: utf-8 -*-
# Define your item pipelines here
#
# Don't forget to add your pipeline to the ITEM_PIPELINES setting
# See: https://doc.scrapy.org/en/latest/topics/item-pipeline.html
from datetime import datetime
import pymysql
import requests
from scrapy import Selector
from bs4 import BeautifulSoup
import... | [
"1120135449@qq.com"
] | 1120135449@qq.com |
08b472221630c4565953cc952679cc1626a408d6 | c130eeec1da4547b0bd0a11f0048dab4db424435 | /test-yolov3-shuffleunit-9-tiny2-caltech-416.py | ec863fc6a838cc564cc380fcebd7f0f4ecae5214 | [
"MIT"
] | permissive | zwangZJU/RSYNet | 7627dca6cb4281534f7a9dae99f4e44cbc86057f | d042a0b6aab0b0e38020dca6c1fe9a95a083240d | refs/heads/master | 2020-11-29T06:25:25.850797 | 2019-12-25T05:36:04 | 2019-12-25T05:36:04 | 230,046,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,000 | py | import argparse
import json
import time
from pathlib import Path
from models import *
from utils.datasets import *
from utils.utils import *
def test(
cfg,
data_cfg,
weights,
batch_size=16,
img_size=416,
iou_thres=0.5,
conf_thres=0.3,
nms_thres=0.45,
... | [
"zju.zwang@gmail.com"
] | zju.zwang@gmail.com |
947a607c11baaa1bf4c629a3a5122e7985c37f8a | c3f171c3c05ca95c354e594598fb396a17a5c72d | /Project_Management/Project_Management/wsgi.py | 385a28c034eb7813623e08a2447faee57ce03e45 | [] | no_license | VikNim/Project-Management | 8919fe6a32431596e601aae5683840856cd2d0d0 | c10e09ac4625f233e13b10628f8c8bbc24b677bf | refs/heads/master | 2022-12-19T18:03:02.357715 | 2020-09-30T21:05:29 | 2020-09-30T21:05:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | """
WSGI config for Project_Management 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/dev/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("D... | [
"noreply@github.com"
] | VikNim.noreply@github.com |
0554687d5d1f80d813f8dbe86b7380c3f0309fae | 6550c2da7abe8942ab26aceac57fd14eec29095f | /db.py | 1f68b5a93af43162f43d344ccea9d8d1c6ef62b3 | [] | no_license | katelk/oligopoly-bot | 09e6f6c2ff5b9e398bcf932896d8b67a30f5166a | 6febcea57a5df408c3742b9480e091b3eba6cf11 | refs/heads/main | 2023-02-02T23:08:42.136787 | 2020-12-23T09:34:11 | 2020-12-23T09:34:11 | 323,705,946 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,158 | py | import sqlite3
from market import set_params
class Tbgames:
def __init__(self):
self.connection = sqlite3.connect('rooms.db', check_same_thread=False)
cursor = self.connection.cursor()
cursor.execute(''' CREATE TABLE IF NOT EXISTS games
(creator INTEGER,... | [
"noreply@github.com"
] | katelk.noreply@github.com |
7665eb4664516e82e89dc0b78f3cc8b550ddd050 | c0bb77593f805adffa90bc585f755888305ce2a4 | /WriteILIinput.py | 2f4696efe71ccfa7bf4811cb04897a8843e26771 | [
"Apache-2.0"
] | permissive | chloejjjk/SpaceM | 398b91f2d32f1764e9052a48e09cfda1065f4a11 | cf3da7e4a81b6b928c87d2b40471b480ea06d7f9 | refs/heads/master | 2023-07-29T10:15:47.019758 | 2020-09-30T20:45:56 | 2020-09-30T20:45:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,360 | py | # from pyimzml.ImzMLParser import ImzMLParser, getionimage
# from sm_analytics_python.sm_annotation_utils import sm_annotation_utils as smau
from metaspace import sm_annotation_utils as smau
import numpy as np
import csv
import glob, os, tqdm
import pandas as pd
def preCSVdatagen(xy_p, radius, nbin, PlainFirst):
"... | [
"luca.rappez@embl.de"
] | luca.rappez@embl.de |
b581b228bef7e76b72d1825eaeb5b75ab0df67b6 | 6f87861d1ed440b09521bb2df7f8bc1d35e7087e | /manual/(4) Migration/Template/master/import_for_master.py | 5ad780b5bf9a5305acdc60efdad65aa3358a1534 | [] | no_license | AllianceWebcoop/webcoop_other | 0654122fffd29ad6562bbc2b1b7218adc7ea38f8 | 3d4ac702d58489906e11f1dd52c1ab0497b0f291 | refs/heads/master | 2023-01-09T07:11:11.553430 | 2020-11-12T08:03:06 | 2020-11-12T08:03:06 | 274,335,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,988 | py | import xlrd
import xmlrpclib
import csv
import traceback
import logging
import ConfigParser
CHUNK_SIZE = 50
THREADS = 4
class Struct(object):
def __init__(self, **entries):
self.__dict__.update(entries)
def read_csv(filename):
csv_file = open(filename,'r')
#record count check , throw error if ... | [
"noreply@github.com"
] | AllianceWebcoop.noreply@github.com |
dcb2eab57b35e0b1daf8da8703b54e63f51b7cae | 49e987133ad2146a3d265f4acdf61a31d1cb57fe | /logic.py | 946ef853e4a3a21de2c63ac797700d428a6c18ee | [] | no_license | Ashleybishop37/Python | 6f636aab8dcb28ae8db1129ba45939199002ecea | b5b3882c2b6803608e63d941c806c8afaf9aa4d5 | refs/heads/master | 2022-12-11T14:55:26.059802 | 2020-09-07T00:11:59 | 2020-09-07T00:11:59 | 292,190,255 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,433 | py | from Functions import temperature_calc,area_calc,volume_calc,weight_calc,log,read_file
def menu_selection():
print("\033[0;34m Welcome! What kind of conversion are you looking to do?")
print("\033[1;37m Here are your options: \n 1. Temperature \n 2. Area \n 3. Volume \n 4. Weight")
conversionType = i... | [
"noreply@github.com"
] | Ashleybishop37.noreply@github.com |
37e7f87129a8f909f5d37aa564038f78fc589e64 | cd69495691e5e84634e64618287407520508ff25 | /model.py | 76bc86f98466352d990ad7a00faaafd34dcde32d | [] | no_license | MahlerTom/SiameseNeuralNetworks | 6ba9fbef18fec06383aa725974ba911f7c3f6d5d | da1529e5961c0aa1ab60c1fd792d73b6555c3cb0 | refs/heads/master | 2020-05-24T09:28:33.355329 | 2019-06-09T19:08:43 | 2019-06-09T19:08:43 | 187,203,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,351 | py | from .distance import absolute_distance
import time
import numpy as np
from tensorflow.keras.layers import Conv2D, Input, MaxPooling2D, Lambda, Flatten, Dense
# from tensorflow.keras.layers import BatchNormalization
from tensorflow.keras.models import Sequential, Model, load_model
from tensorflow.keras.regularizers i... | [
"tom@mahler.tech"
] | tom@mahler.tech |
acfe67012e03a874f34951b890be688b24c038bb | b672a86db3e802c596ae94803c89f7a1802c0ad7 | /tools/check_totals.py | a98eb56c45d500f50b44e0bba073788012854f70 | [
"Unlicense"
] | permissive | couby-debog-dev-fini/Kaios | 44ce3e02e0e0d98de13b0d116aa1fa291d5c1a8f | cf9a4a6f3266eda9e4fe7c95bc5d10a648a0ca04 | refs/heads/master | 2023-01-28T20:54:46.688952 | 2020-12-10T13:34:46 | 2020-12-10T13:34:46 | 314,804,454 | 0 | 0 | Unlicense | 2020-12-06T05:08:23 | 2020-11-21T12:14:48 | HTML | UTF-8 | Python | false | false | 1,351 | py | #!/usr/bin/env python
# Check that the area case numbers add up to the totals.
import pandas as pd
def check_latest(totals_csv_file, cases_csv_file, country):
totals = pd.read_csv(totals_csv_file)
last_row = totals.to_dict("records")[-1]
date = last_row["Date"]
total_cases = last_row["ConfirmedCases... | [
"67220682+couby-debog-dev-fini@users.noreply.github.com"
] | 67220682+couby-debog-dev-fini@users.noreply.github.com |
41e8e74f21cffd487f6b0b9d67b13155c65d9abe | 9a928434baded09706e33841a8b6696fa7ac145f | /Dev/trydjango1-11/src/restuarants/views.py | 48f53200c54c1ae8421b6a4498a2d7a916734b96 | [] | no_license | rtamir/Django | 912e36dc8b682c9dc09faadd971e703260a3c98b | 39efc83fb3bd685e89b8b89b980b185b2ef0e5c6 | refs/heads/master | 2022-12-21T04:48:00.259828 | 2019-03-06T11:25:42 | 2019-03-06T11:25:42 | 161,774,693 | 0 | 1 | null | 2022-12-12T10:30:03 | 2018-12-14T11:19:33 | Python | UTF-8 | Python | false | false | 2,411 | py | import random
from django.http import HttpResponse
from django.shortcuts import render
from django.views import View
from django.views.generic import TemplateView
from .models import RestuarantLocation
# Create your views here.
#fun based view
def restuarants_listview(request):
template_name = 'restuarants/restuarant... | [
"rk4ravikiran@gmail.com"
] | rk4ravikiran@gmail.com |
b6946f3709bb792e94e5f84e8b521c1e4e7eb13e | cbce70a7882bc872fd63c1a8438a52bc299494bf | /src/cmp.py | b2fdcf603eb05959437516542c324e797dc3f8e6 | [] | no_license | lxd99/2020_BDCI | 00b83ae6c3eb189c3010e2a00b86976595d6cc87 | 505d5d7156b9083e9584fa60646cd0bd2cd12a2f | refs/heads/master | 2023-07-01T08:31:04.933865 | 2021-08-11T03:30:13 | 2021-08-11T03:30:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,511 | py | import numpy as np
import pandas as pd
from tqdm import tqdm
import math
import numpy as np
import matplotlib.pyplot as plt
tx = pd.DataFrame([[1, 2], [3, 4]])
def duck():
data = pd.read_csv('../data/train.csv')
data['mean'] = data[[f'{j}_{i}' for i in range(1, 6) for j in ['CPU_USAGE', 'cpu']]].std()
fd... | [
"l12x19d4@buaa.edu.cn"
] | l12x19d4@buaa.edu.cn |
9248bd8244dbde9dc739d3c6ccb0ab3d3844b09d | 4e3ebb0704bba0cb12757ced36018e39829c8f6d | /ejemplos/network/telnet_startWar.py | c78f1f6c7017c282c4ef081402d76e974ebe48ab | [] | no_license | moisesStevend/micropython_nodemcu2 | 9c62c0ff397ef8018528219c5c175257e97ad248 | 6922dc8dc0db16e0d7a4a5f3b7cf5444618e4814 | refs/heads/master | 2021-01-19T14:45:24.935187 | 2017-10-24T18:00:03 | 2017-10-24T18:00:03 | 100,919,680 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | import socket
#addr_info = socket.getaddrinfo("furrymuck.com", 8888)
addr_info = socket.getaddrinfo("aardmud.org",23)
addr = addr_info[0][-1]
s = socket.socket()
s.connect(addr)
while True:
data = s.recv(500)
print(str(data, 'utf8'), end='')
| [
"noreply@github.com"
] | moisesStevend.noreply@github.com |
f103a915f720597b01a67d9961f1606c3d21dd2d | 23f3519e7610253c3affc469cfdd7d7e87efc057 | /cogs/role.py | fbac146790c53e09fa7b78a41dd3e4e3203d7c84 | [] | no_license | roott-x/discord-bot | 5c923f9bf73cb5807b78f2c9b5cf0741f2c56ee7 | 0e266965e80bc654432f89fd3083e8ee62d86583 | refs/heads/main | 2023-02-10T06:04:00.691896 | 2020-12-14T17:21:29 | 2020-12-14T17:21:29 | 321,418,996 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,567 | py | import discord
from discord.ext import commands
from discord.ext.commands import Bot, has_permissions, MissingPermissions
class Role(commands.Cog):
def __init__(self, client):
self.client = client
@commands.command(pass_context = True)
@commands.cooldown(1, 5, commands.BucketType.user)
async d... | [
"noreply@github.com"
] | roott-x.noreply@github.com |
be81f104decc5d52a29adf9cf12a2b4e18b608ee | afe201d25bdd4c838821b15cb2406bf393add74f | /server.py | f9686b0b53c71fb6495e01da138d22c060d6495a | [] | no_license | kyle-deleon/job_search_tracker | c239da9ef93551a268153f2fc58d9cb0d436949b | 8058e0445e650d3cf546c932994b55513ac8e428 | refs/heads/master | 2022-09-21T16:52:23.130225 | 2020-06-05T03:05:05 | 2020-06-05T03:05:05 | 267,954,477 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,796 | py | from flask import Flask, render_template, request, session, flash, redirect
from flask_bcrypt import Bcrypt
from mysqlconnection import connectToMySQL
import re
EMAIL_REGEX = re.compile(r'^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9._-]+\.[a-zA-Z]+$')
app = Flask(__name__)
app.secret_key = "keep it secret"
bcrypt = Bcrypt(app)
sche... | [
"kydeleon10@gmail.com"
] | kydeleon10@gmail.com |
6f6ff961181868786b67946078300a383acc9695 | b0ae1a052ec28a681d4201066c5e25af622831c8 | /PatRecTutorials/patrec-tutorials/blatt1/aufg01.py | f68aadb06ac0dec684e53fb942dd7762b8ff5987 | [] | no_license | morpheus176/Mustererkennung | 8bda7d2c6a8f811fe92c977ff06ad8f91f518c2e | 3b9107306993b8af263ffde21a00ae60d638441b | refs/heads/master | 2022-04-12T08:27:35.927135 | 2020-02-13T11:44:28 | 2020-02-13T11:44:28 | 238,529,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,716 | py | from common.data_provider import DataProvider
import matplotlib.pyplot as plt
from common.classification import KNNClassifier
from common.classification import ClassificationEvaluator
from common.classification import CrossValidation
def aufg01():
# Zur Einfuehrung werden auf einem Beispieldatensatz Klassifikatore... | [
"julia.sobolewski@tu-dortmund.de"
] | julia.sobolewski@tu-dortmund.de |
8c7bb7ade1dfce6ac565e2f47ddb593c0c45c890 | 6155d98c696f012eacdab9f0817f3d7a909e8c5c | /chap7/MP-HW7/graph_node.py | 3136046596d5dbd8c1303624f4c125db65ac18d0 | [
"MIT"
] | permissive | Forrest-Z/Motion-Planning-Course | 496c9f3689abb67904f9db02a17b9684769567a7 | d2ff6c96bbe3944c21a08af65e82fc44e882d506 | refs/heads/master | 2020-09-27T05:32:15.580994 | 2020-01-02T08:28:26 | 2020-01-02T08:28:26 | 226,441,879 | 0 | 0 | MIT | 2020-01-02T08:28:28 | 2019-12-07T02:05:48 | null | UTF-8 | Python | false | false | 3,389 | py | from racetracks import *
class Node:
def __init__(self, px, py, vx, vy):
# state
self.px = px
self.py = py
self.vx = vx
self.vy = vy
# value
self.g_value = 0.0
# successor
self.next_prob_9 = []
self.next_prob_1 = []
# key
... | [
"boyang.li@outlook.com"
] | boyang.li@outlook.com |
922ad653e03b85705765df9053e41ed4a995fcc9 | 7e3c7e9bf8e8410b688787bbf41f93e0bce30ef8 | /misc/fix_keras_optimizer.py | 4c1e72705ec6e77de0e31f5dd426bd7ffed1acef | [] | no_license | directorscut82/msthesis-experiments | bb8233d4e54da0b294b3a43f219bc424626e8ad5 | f86e344c972f2b61c3fa16eae523fd20303e8842 | refs/heads/master | 2020-03-23T08:24:19.535200 | 2017-07-27T06:23:18 | 2017-07-27T06:23:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | #!/usr/bin/env python
"""
Make keras 1.x models usable in keras 2.x.
Run this when you get the following error:
ValueError: Optimizer weight shape (512,) not compatible with provided weight shape (32,)
"""
import glob
import h5py
model_files = sorted(glob.glob('*.h5'))
for model_file in model_files:
print("Upd... | [
"info@martin-thoma.de"
] | info@martin-thoma.de |
214e49ddfe976444c8056d7219d2103c35998f7b | 47d504eba70ce8fcf0d71fb2e3c5895c55897bcf | /auto/migrations/0014_auto_20201210_2149.py | 1814600924fd9487c14c2e1f31f801256bb3da65 | [] | no_license | mzKaNgPae/PruebaDesarrollo3FINAL | aed4d51da6e042f02e0b041d13abae7dbd2c55b4 | c58f200b6b8483d6000406cbd7ad18b021dc1353 | refs/heads/main | 2023-02-03T20:45:42.765639 | 2020-12-18T16:11:37 | 2020-12-18T16:11:37 | 322,665,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | # Generated by Django 3.1.2 on 2020-12-11 00:49
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('auto', '0013_auto_20201210_2044'),
]
operations = [
migrations.AddField(
model_name='marca',
... | [
"diegoquezadapavez@gmail.com"
] | diegoquezadapavez@gmail.com |
236efac96ff09fffad954d9f0b67a036e1924fb6 | 9c04dfec0c7e6a5e82fc5bf0ddf2e06c2308cdef | /packages/auto-nlp-deployment/src/models/__init__.py | 43798c3e912b4453892d8b1f4235b4ed1ef41932 | [
"MIT"
] | permissive | fhswf/tagflip-autonlp | 8d678c780476d20d4d870a23320e5908a4e8972f | f94abb35ed06198567e5d9cbb7abb7e112149d6c | refs/heads/main | 2023-04-07T10:19:01.108884 | 2022-04-10T19:56:48 | 2022-04-10T19:56:48 | 410,777,896 | 5 | 2 | MIT | 2022-04-10T12:19:35 | 2021-09-27T07:07:28 | TypeScript | UTF-8 | Python | false | false | 39 | py | from .model_service import ModelService | [
"timo@n.euhaus.net"
] | timo@n.euhaus.net |
e903a4ab704f34dc65dc8c166c839d8b82cf06b5 | 60db7dd5aab51a53e6b39e41a32dea226d25f082 | /flask_example/venv/bin/pip3.6 | 75f1e711ab79e19a9f9948f1d482a79aa241de67 | [] | no_license | VladBeglik/homeworks | 2e0f55d4a3cd1b6317be8c8499bbb3faa8e1f97f | fdefb210c75586de93b9f51ea5e0a8850936d8f9 | refs/heads/master | 2022-04-15T21:27:12.655346 | 2020-04-01T14:45:17 | 2020-04-01T14:45:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | 6 | #!/home/vlad/Documents/python/example/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.6'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
s... | [
"vladbeglik@gmail.com"
] | vladbeglik@gmail.com |
a515fc587646476cc8878bb50f72120b4e6aa5ba | bad85cd8d547a071baf4b6590f7e81d13ef1ec0d | /assistant/core/views.py | 2732966b89290e6982d4e90149bce48ffa294e63 | [
"MIT"
] | permissive | kapiak/ware_prod | 92e11671059642e14219d5aa8334e0564403db77 | ae61256890834c434d2e38cc2ccacf00b638665a | refs/heads/master | 2023-01-06T04:36:43.173093 | 2020-09-21T04:06:51 | 2020-09-21T04:06:51 | 310,320,165 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 871 | py | from typing import List
from django.contrib.auth.mixins import LoginRequiredMixin
from django.views.generic import TemplateView
from assistant.orders.models import Order
from assistant.products.models import Product
class DashboardViewMixin(LoginRequiredMixin):
title: str = None
breadcrumbs: List = []
... | [
"hamadeh.basel@gmail.com"
] | hamadeh.basel@gmail.com |
6de9de2c26cd97ae4bf4fcf3e8775dfda68e8817 | b95f9592df987386ff60d8ab10dd71b566995ee5 | /create_map.py | 5540cd7246c81808d9fb729c365e93adea5c760d | [] | no_license | ernie7334066/ATXHackTheTraffic | 35bc78cae5dfd54c93b34f992015e2eb24eb698b | aee6552607fa887ce86f99c5446471f9a39b2992 | refs/heads/master | 2020-05-22T16:08:01.731225 | 2017-03-12T04:55:50 | 2017-03-12T04:55:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 810 | py | from database_setup import Base, User, TravelSensor, Summary, db_session
import pickle
class Map:
READER_IDs = []
ADJ_INTERSECTIONS = {}
def get_map_from_database(self):
travelSensors = db_session.query(TravelSensor).all()
self.READER_IDs = [x.READER_ID for x in travelSensors]
for sensor in self.READER_IDs:
... | [
"tiger.yang.g@gmail.com"
] | tiger.yang.g@gmail.com |
358e081b2f6c8b3bf299043f9bcaf84f6c843033 | 410049acf0ce29853f4a41cdbeb148d0610103cc | /PM500gui.py | 6c994f45f4db56377604c97045939ee540307a68 | [] | no_license | ari1127/PM500 | 59f1a99757ee0781eb81fcb0566a0afecba6349a | f40f0bfc35a58e59a3e643e772b8f4a0ae5400a8 | refs/heads/master | 2021-01-02T22:49:55.774700 | 2015-02-25T23:04:08 | 2015-02-25T23:04:08 | 31,338,681 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,866 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'PM500.ui'
#
# Created: Fri Oct 10 13:37:38 2014
# by: PyQt4 UI code generator 4.9.6
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except Attribute... | [
"ari1127@gmail.com"
] | ari1127@gmail.com |
0411474f0c3bcd60e5acc7806209416068b0b003 | 1242dfc7dfd8f7573fb0d7c8bf6a0490418c825a | /examples/test_predict.py | 935354b789dd0dc0781e70c0e40d687a48cfe407 | [] | no_license | vvagias/HDP-3.0-classifying-melanoma | 5ad3f532228b8e85a735ba28cb283df119e22a4d | 3d5f4015647fd39ab86c8dac6aa718022a21fd04 | refs/heads/master | 2020-04-01T21:10:04.066085 | 2018-10-20T11:15:39 | 2018-10-20T11:15:39 | 153,640,454 | 0 | 0 | null | 2018-10-18T14:46:08 | 2018-10-18T14:46:02 | Python | UTF-8 | Python | false | false | 646 | py | from keras.models import load_model
import cv2
import numpy as np
from keras.models import model_from_json
# load json and create model
json_file = open('model.json', 'r')
loaded_model_json = json_file.read()
json_file.close()
loaded_model = model_from_json(loaded_model_json)
# load weights into new model
loaded_model... | [
"vasilis.n.vagias@gmail.com"
] | vasilis.n.vagias@gmail.com |
b9a942907211d6ab1c304c195019967ec722f6e4 | 77cc6f40bbff0285d64dd4864cedf7d594b346e6 | /openstack/common/test.py | 7f400e5aa9fdc39c90a76d21ff380d4a70d0aa04 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | thomasem/oslo-incubator | 22d8aad763f6d43c2a9a3bca50c9c8dd324862d6 | 9bfa4ec4240e0f33f854d37e10dbc65a5f3b2789 | refs/heads/master | 2021-01-20T21:35:14.812836 | 2013-09-05T07:03:23 | 2013-09-05T07:03:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,937 | py | # vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright 2010-2011 OpenStack Foundation
# 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. You may obtain
# a copy of the License at
#
# http://www.... | [
"review@openstack.org"
] | review@openstack.org |
6037f6bbf5ef3b3a143e54da96b9cb295f8855e7 | 0ac185a7f50a630b713cc11902c3fd3a5436ece4 | /leet872.py | ae3b8ea87c1dc59b48543afddf16e82a27eab59e | [] | no_license | thebestKaKa/Leet-Python | 25156d75c3e0782c839ed7bfe48bb66666bcc73f | dc9e3dc62f96f2b071b4d51bd8692ca41502bc8c | refs/heads/master | 2023-05-05T12:20:37.370835 | 2021-05-23T08:48:42 | 2021-05-23T08:48:42 | 366,065,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,225 | py | # Definition for a binary tree node.
class TreeNode(object):
def __init__(self, val=0, left=None, right=None):
self.val = val
self.left = left
self.right = right
class Solution(object):
def leafSimilar(self, root1, root2):
"""
:type root1: TreeNode
:type root2: ... | [
"2429642242@qq.com"
] | 2429642242@qq.com |
56a8a84a92ce89ddbed0b0db7c66cebb8b539849 | ea8e2a8c0166d0bb0ca618a3b6628f060170e802 | /dnc/model/memory.py | 19c6c376b4b26bc3147eca912a65bc4e5013eabe | [] | no_license | yejiming/ml_papers | 051c7f86adeb032b0d2dd625f6d235f852dea491 | b3e27e1311a29e9ec68e5f660f91581c385328e0 | refs/heads/master | 2020-03-25T02:11:07.925614 | 2018-08-02T11:44:59 | 2018-08-02T11:44:59 | 143,277,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,153 | py | import numpy as np
import tensorflow as tf
from dnc.model import utils
class Memory:
def __init__(self, words_num=256, word_size=64, read_heads=4, batch_size=1):
"""
constructs a memory matrix with read heads and a write head as described
in the DNC paper
http://www.nature.com/na... | [
"jiming_ye@163.com"
] | jiming_ye@163.com |
f7526d46e57dacaf54913613ea92feeddb67cffd | e34cbf5fce48f661d08221c095750240dbd88caf | /python/homework/day10_ansibleLike/core/verify.py | 70613c6ced9cebe0e42908774b56c4de14604d30 | [] | no_license | willianflasky/growup | 2f994b815b636e2582594375e90dbcb2aa37288e | 1db031a901e25bbe13f2d0db767cd28c76ac47f5 | refs/heads/master | 2023-01-04T13:13:14.191504 | 2020-01-12T08:11:41 | 2020-01-12T08:11:41 | 48,899,304 | 2 | 0 | null | 2022-12-26T19:46:22 | 2016-01-02T05:04:39 | C | UTF-8 | Python | false | false | 790 | py | #!/usr/bin/env python
# -*-coding:utf8-*-
# __author__ = "willian"
import getpass
from lib import mysql_helper
from conf.settings import *
def verify():
conn = mysql_helper.MySQLHandler(db_host, db_port, db_user, db_pass, db_name)
result = conn.select('select * from {0}', 'users')
count = 3
while c... | [
"284607860@qq.com"
] | 284607860@qq.com |
47349284a779673df3b266dddcf38cbc1c86ae82 | 68676effc4e5d177fe5411e968098ab55e39f49c | /sim_viz_alpha.py | 03dfbb32feec8b8c89dc90da509a0d3041694ca9 | [] | no_license | barboc/sim_viz_alpha | c3144accde2b1c2a3a012f9259290092a6c47740 | c953e350a99ec7c9653da1d4003752d3d1ebf5b8 | refs/heads/master | 2022-12-28T07:35:46.397355 | 2020-10-11T12:37:07 | 2020-10-11T12:37:07 | 299,478,665 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,145 | py | # _____ _
# |_ _| | |
# | | _ __ ___ _ __ ___ _ __| |_ ___
# | | | '_ ` _ \| '_ \ / _ \| '__| __/ __|
# _| |_| | | | | | |_) | (_) | | | |_\__ \
# |_____|_| |_| |_| .__/ \___/|_| \__|___/
# | |
# |_|
imp... | [
"chris.barbosky@yahoo.com"
] | chris.barbosky@yahoo.com |
460f26e4ddbda79353b5efdb773a8dc6b7355b37 | 0f3606394c731e06360a0ae4c0590769306f2d9c | /app/lobby.py | e7ebaddf585b07769d3a3267f8d51343125a301d | [] | no_license | Oneoeigh/Flask-test | 63de921b9b96917eab5141cf25143ee625b92f56 | cc5bdb29a44133e220e5530dc11afcceccd78a9f | refs/heads/master | 2020-04-11T12:29:06.972027 | 2018-12-15T15:33:11 | 2018-12-15T15:33:11 | 161,781,919 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 214 | py | import threading
import json
from flask_socketio import join_room, leave_room
from flask import render_template, request, redirect, url_for
from flask_login import current_user
from app import app, socketio
| [
"jqy108@gmail.com"
] | jqy108@gmail.com |
7bd3553f72aa8efcac87122cf902fc094470fc29 | 381bf9a429b1b0bcfdb52faa3e0f8e553264fde4 | /ingest/qtl/pQTL_sun2018/fix_mac_column.py | 98f768ace1c79c0c5a7e73329d7f0df3b378c3a3 | [
"Apache-2.0"
] | permissive | thehyve/genetics-sumstat-data | a99f327c68ba5524006c12d7262e7e9aad5916ef | 9abe1dfba744266f4321fcfa58ef0c764747c183 | refs/heads/master | 2022-11-18T06:07:44.523537 | 2022-06-09T15:36:39 | 2022-06-09T15:36:39 | 224,444,420 | 0 | 0 | Apache-2.0 | 2022-07-29T08:11:28 | 2019-11-27T14:05:14 | Python | UTF-8 | Python | false | false | 1,681 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Jeremy Schwartzentruber
#
# The MAC column for two datasets (eQTLGen and SUN2018) was saved as a double,
# but should have been an int, for compatibility with other QTL datasets
# ingested. This fixes that.
import sys
import os
from time import time
import pyspark.sql
... | [
"jeremy37@gmail.com"
] | jeremy37@gmail.com |
e9b643923ea8f3ea277bfd5d97c1270a1ed32532 | d9c0dad2ddc262ac6316f5eab49c5873fa26cc00 | /docker/resources/sdnctrl/rest_qos.py | c5bac29a3057e08588e28cd480542dc0d1c07e3b | [
"MIT"
] | permissive | RENCI-NRIG/Mobius | c45b8e1de956f7b81fbb7c87eeda8a372a214079 | 96aac6dd6dd89bf8565d953cee1e4d1e8a95f70a | refs/heads/master | 2023-05-05T10:44:20.089459 | 2022-07-18T16:05:04 | 2022-07-18T16:05:04 | 81,361,221 | 4 | 2 | MIT | 2023-03-01T20:48:12 | 2017-02-08T18:21:06 | Java | UTF-8 | Python | false | false | 40,028 | py | # Copyright (C) 2014 Kiyonari Harigae <lakshmi at cloudysunny14 org>
#
# 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 appl... | [
"kthar10@renci.org"
] | kthar10@renci.org |
efdec7b3b3fca645a6647896a60d9df62a9902ca | ab26555301ac1196086c6c9329df44e6eefa15df | /python/coppeliasimapi2.py | 2dd57a130d3fe034e5ad0e716a0d7bae091c8d3b | [] | no_license | ljmanso/sonata | dd050a7efd4a02e06077488eb2dca3e6129ad6cf | 559165e7a7868aaf61d46f7c682464b6e40b8982 | refs/heads/master | 2022-11-22T03:17:11.639336 | 2020-07-17T17:21:50 | 2020-07-17T17:21:50 | 279,068,834 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,751 | py | #!/usr/bin/env python3
import os
import sys
import numpy as np
from math import cos, sin, atan2
from os import path
import time
from typing import List, Tuple, Sequence
import threading
from pyrep import PyRep
from pyrep.objects.shape import Shape
from pyrep.objects.object import Object
from pyrep.const import Primit... | [
"pilar.bachiller@gmail.com"
] | pilar.bachiller@gmail.com |
143e7fb5eb3ea2d1e3afc369d304ee334bde63fc | 7b6c0318585f1639529002e8c69f23f3603775a9 | /detectron2/modeling/box_regression.py | 1488ad748288cefe9b4b2e9d28f00774362e203f | [
"Apache-2.0"
] | permissive | av777x/detectron2 | 41f2dda1198c21ef999da1cd0e28b980f68065ee | c1794881d6d2fac6af0b3206937d32628677469c | refs/heads/master | 2023-03-03T19:40:45.820084 | 2021-02-19T00:02:03 | 2021-02-19T00:02:03 | 340,200,661 | 0 | 0 | Apache-2.0 | 2021-02-19T00:02:04 | 2021-02-18T23:04:22 | null | UTF-8 | Python | false | false | 11,122 | py | # Copyright (c) Facebook, Inc. and its affiliates.
import math
from typing import List, Tuple
import torch
from fvcore.nn import giou_loss, smooth_l1_loss
from detectron2.layers import cat
from detectron2.structures import Boxes
# Value for clamping large dw and dh predictions. The heuristic is that we clamp
# such t... | [
"facebook-github-bot@users.noreply.github.com"
] | facebook-github-bot@users.noreply.github.com |
a78ee24a96832a0173b264d9e6d62ade8714107c | d964f0a98f5bfa5f71d23de2df2d32a07219cc1f | /students/Volodzko/Task_12/tests/test_tsk_12_1.py | 9e41d9c8d9158eac0937bcc343d19da08f95018d | [] | no_license | AlexandrSech/Z49-TMS | cc8e3308e54c8e9f7ed03c6d7891da074e5c7c45 | d83200ff04c06772ef643b31569b37006420cd6b | refs/heads/main | 2023-07-28T02:40:17.355675 | 2021-08-15T16:54:27 | 2021-08-15T16:54:27 | 366,099,594 | 3 | 4 | null | 2021-09-08T16:52:11 | 2021-05-10T16:00:24 | Python | UTF-8 | Python | false | false | 1,490 | py | import unittest
from Task_12_1.task_12_1 import *
class TestTask_12_1(unittest.TestCase):
def my_object(self, h, m, s, h_r, m_r, s_r):
time = MyTime(h, m, s)
self.assertEqual(time.hours, h_r)
self.assertEqual(time.minutes, m_r)
self.assertEqual(time.seconds, s_r)
def test_Myti... | [
"volodko_ura@mail.ru"
] | volodko_ura@mail.ru |
ad4aad0835ca0dcd62db019c4780755f1c0304e6 | 0325048809df9b0b5f26a22ab790ff94947a1728 | /depend.py | a89dbc9c66b9e36e263cc44d1d4b5c4dc9a8056f | [] | no_license | madisong/aiudirog | 78a2b83ed2bc8dc76a4a878cc5353c22de794d4f | 9285fe020b0b96e0e729f6a62fd2c01f485ed898 | refs/heads/master | 2021-01-01T16:34:22.421712 | 2014-08-18T01:40:59 | 2014-08-18T01:40:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | #Install Linux (Debian) dependencies.
import os
try:
import wx
except:
os.system("sudo apt-get install python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev")
try:
import keyring
except:
os.system("sudo apt-get install python-keyring")
try:
import BeautifulSoup
except:
... | [
"aiudirog@gilbertschool.org"
] | aiudirog@gilbertschool.org |
1f274d45c819c75e5909ef811396617f68af6e41 | 32271508e449e8842f38186e5e4528696b41d1f9 | /tabby/tab/migrations/0025_remove_race_win_market.py | 16142941a5e3532c0ac93d4c68b1aef608b2742a | [] | no_license | Tjorriemorrie/tabby | d623ad5be3ae53b9370fd400f362d940e7191ac3 | 09c697bd48fdc4de548c911f1fd81b2a7e4b511b | refs/heads/master | 2022-12-10T10:01:40.317751 | 2019-12-13T04:31:12 | 2019-12-13T04:31:12 | 100,076,546 | 4 | 2 | null | 2022-12-08T06:51:55 | 2017-08-11T23:26:00 | Jupyter Notebook | UTF-8 | Python | false | false | 326 | py | # Generated by Django 2.0.1 on 2018-01-30 01:00
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('tab', '0024_auto_20180128_1356'),
]
operations = [
migrations.RemoveField(
model_name='race',
name='win_market',
),
... | [
"jacoj82@gmail.com"
] | jacoj82@gmail.com |
21dae073458e0bac5899c85d1f117f88958119dc | fb78fd824e904705fb1ee09db8b3c20cc3902805 | /django-myshop/myshop/settings.py | e93a63838401dfb03886299b9b686dadf4dae54b | [] | no_license | Roderich25/mac | 8469833821ac49c539a744db29db5a41d755ad55 | 4f7fe281c88f0199b85d0ac99ce41ffb643d6e82 | refs/heads/master | 2023-01-12T05:55:12.753209 | 2021-11-26T01:16:24 | 2021-11-26T01:16:24 | 207,029,750 | 0 | 0 | null | 2023-01-07T11:49:23 | 2019-09-07T21:51:53 | Jupyter Notebook | UTF-8 | Python | false | false | 3,011 | py | import os
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
# SECURITY WARNING: keep the ... | [
"rodrigoavilasolis@gmail.com"
] | rodrigoavilasolis@gmail.com |
e350c375091476a2506c1e698410dc3a6adfbfb8 | 30f8afce1ba484183d8e1e14aae76cabb2d92354 | /pbase/day29/old.py | 741ae415c047f7297fc6ca49c5aab16131a342b0 | [] | no_license | brooot/Python_Base_Codes | d83e8c3b8a37b86672412c812fdb0d47deb67836 | a864685e160b5df4162a6f9fb910627eda702aaf | refs/heads/master | 2023-04-10T20:08:39.161289 | 2021-03-25T12:59:23 | 2021-03-25T12:59:23 | 200,570,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 790 | py | from socket import *
import sys
class FtpClient(object):
def __init__(self,serveraddr):
self.serveraddr=serveraddr
def do_list(self):
sockfd=socket()
sockfd.connect(self.ser)
def main():
if len(sys.argv)<3:
print('argv is error')
host=sys.argv[1]
port=int(sys.argv[2])... | [
"1442704671@qq.com"
] | 1442704671@qq.com |
b9cb41b35cc969196c8ec6633fcff5fa349c91a6 | c5abb3fd23687c9200b055f5762ee01e52ce1a76 | /project_euler/multiplesOf3and5.py | 09dcddd7f2eb33d56936732e4dbbba55918dc1f9 | [] | no_license | hxperl/hackerrank | c0fc8f99c38380d56458cd57e16f7198b8e0037c | 57e6984e8dced08caaf14742465668de6ba23b4c | refs/heads/master | 2021-05-15T17:17:23.372158 | 2020-04-14T06:22:11 | 2020-04-14T06:22:11 | 107,495,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | #!/bin/python3
import sys
sums = list()
t = int(input().strip())
for a0 in range(t):
n = int(input().strip())
n -= 1
tmp = 3 * (n//3 * ((n//3)+1)) // 2
tmp += 5 * (n//5 * ((n//5)+1)) // 2
tmp -= 15 * (n//15 * ((n//15)+1)) // 2
sums.append(tmp)
print(*sums, sep="\n") | [
"hxperl@gmail.com"
] | hxperl@gmail.com |
cd9ce63f65b34f85c2d8bf78f234cf30286802fa | e6eb5c33be238a9281b457630e32e1ae181ecea4 | /PDB_RMSD_Calculate | a10d0fe66d6d187c4c28f1e8ce2d86174ebfb6e8 | [] | no_license | Power-dog/21.7.4 | 55f7e3c2fcdf4b6b4f5381eb2727ddaae61a1fc0 | 1524e7d936377b17ff5d2374126ae8d2d5d40dc4 | refs/heads/master | 2023-06-29T17:28:39.135427 | 2021-07-26T08:35:50 | 2021-07-26T08:35:50 | 389,521,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,681 | # 한 파일 내에서의 MODEL n과 n2의 RMSD를 비교하는 프로그램
def pdb(n, n2):
import math
p = open("C:/Users/SML/Desktop/우원/7월/3주/1l2y.pdb", 'r').read().split('\nMODEL') # MODEL 단위로 나눠줌
p2 = "".join(p[n]) # n번째 MODEL 이후 다음 MODEL 전까지 전체 문자열
p3 = p2[p2.index('ATOM'):... | [
"Ekdzhdwhdk@catholic.ac.kr"
] | Ekdzhdwhdk@catholic.ac.kr | |
a296b492f907bd7c9b0172fb9bddb55b6caf2e3b | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_15314.py | d42d7ec70ac3476ead6abba82a8293d71aa4e166 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 98 | py | # Different results when using sklearn RandomizedPCA with sparse and dense matrices
RandomizedPCA
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
c51c27f98dfdd33ed8055495236836b200efc808 | 93652e0f73558ffa24059647324f79ba043ba241 | /topi/tests/python/test_topi_bitserial_conv2d.py | 6df18483a45f9263f685e4ade3c425b75b29eb76 | [
"Apache-2.0"
] | permissive | souptc/tvm | 830b1444435b6bda267df305538a783eb687d473 | a8574e7bb814997cb3920a72035071899635b753 | refs/heads/master | 2020-03-25T12:42:20.686770 | 2018-08-06T21:07:38 | 2018-08-06T21:07:38 | 143,789,191 | 1 | 0 | Apache-2.0 | 2018-08-06T22:18:20 | 2018-08-06T22:18:19 | null | UTF-8 | Python | false | false | 4,821 | py | import os
import numpy as np
import tvm
import topi
import topi.testing
from tvm.contrib.pickle_memoize import memoize
from topi.util import get_const_tuple
from tvm.contrib import util
from tvm.contrib.pickle_memoize import memoize
def generate_quantized_np(shape, bits, out_dtype):
min_val = 0
max_val = 1 << ... | [
"tqchen@users.noreply.github.com"
] | tqchen@users.noreply.github.com |
3d1f1756528afaa87544ba2b6c62e67f3b6572f7 | b2c24abff86b28ca8a495b3a3c3227f070737aa2 | /parlai/agents/AdaND/utils.py | 2467ef5a277ddf9fdc24d14669efbf63843aff07 | [
"MIT"
] | permissive | hengyicai/AdaND | d5dda1b2fcd2abd17be6603de632f0515382b37b | 5e3fefb1cf40c42215a37246efc64958ae6db005 | refs/heads/master | 2023-09-01T07:38:49.076947 | 2020-10-19T04:58:00 | 2020-10-19T04:58:00 | 204,633,631 | 10 | 2 | MIT | 2023-08-11T19:52:23 | 2019-08-27T06:20:39 | Python | UTF-8 | Python | false | false | 947 | py | import torch.nn as nn
def reverse(lst):
return lst[::-1]
class FeedForward(nn.Module):
def __init__(self, input_dim, out_dim, hidden_sizes=(512,),
activation="Tanh", bias=True, dropout=0.1):
super(FeedForward, self).__init__()
self.activation = getattr(nn, activation)()
... | [
"caihengyi@ict.ac.cn"
] | caihengyi@ict.ac.cn |
19a193a3410c3f1777a2e80692d94b6d8f38c74a | cd4dbdab77668dbe09298d46879373c331001f06 | /pythonDjango/notes.py | 7dd0b66436f40cb963526724c694e449b6e20033 | [] | no_license | robertkoszegi/ga-classwork | add2bd00fa8d677dea5af1656505b6b1e16f5214 | 78678b8efc991564fbc957f9ed877549e2518dc5 | refs/heads/main | 2023-08-11T20:39:04.570050 | 2021-09-18T18:36:47 | 2021-09-18T18:36:47 | 389,796,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | # three-step guide to making model changes:
# Change your models (in models.py).
# Run python manage.py makemigrations to create migrations for those changes
# Run python manage.py migrate to apply those changes to the database.
| [
"robkoszegi@gmail.com"
] | robkoszegi@gmail.com |
fdef0e55fea15ec9925ee84443a708abafdfecc5 | 4a8775eac5a5f39400848b4c81476c49ddfbd871 | /apps/api-test/urls.py | a999262fcf5944dbfda9b7441dd035df4a93df14 | [] | no_license | wdudek82/quotarium-backend | ec6d73c13ed06a201066442f108cdbcc4777da5e | b37cbbe1a136f89fe10ed6d6418a69d585bec8ff | refs/heads/master | 2022-12-10T18:32:37.564838 | 2018-07-08T20:40:28 | 2018-07-08T20:40:28 | 140,035,629 | 0 | 0 | null | 2022-12-08T02:17:15 | 2018-07-06T22:39:13 | Python | UTF-8 | Python | false | false | 142 | py | from django.conf.urls import url
from .views import UserViewSet
urlpatterns = [
url(r'^users/$', UserViewSet.as_view(), name='users'),
] | [
"wdudek82@gmail.com"
] | wdudek82@gmail.com |
1bbf5ffc9207b2158d368fcd96d197f1026c6620 | 22e6960251e43746656a2b42f7ac1c1ae66a8ba9 | /Scale/data.py | 972dda0c6c6e727bc33d4437e5226c7087853ecd | [] | no_license | Zziwei/Fairness-in-Cold-Start-Recommendation | c48f26c456fe0915f3d64e0edd30d26853371d7d | a13f0bdf36a5e626c5c0d2e0b32f1b17aea59a29 | refs/heads/main | 2023-07-01T05:54:14.701777 | 2021-07-31T22:58:42 | 2021-07-31T22:58:42 | 363,529,120 | 11 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,535 | py | import numpy as np
import tensorflow as tf
import scipy.sparse
import utils
import pandas as pd
"""
This module contains class and methods related to data used in DropoutNet
"""
def load_eval_data(test_data, name, train_data, warm_test):
timer = utils.timer()
if warm_test is not None:
test_data = n... | [
"zhuziwei@tamu.edu"
] | zhuziwei@tamu.edu |
e6a2fb17e898a3dedb7ffb531fb3c9dcd46ee0a7 | 6189f34eff2831e3e727cd7c5e43bc5b591adffc | /WebMirror/management/rss_parser_funcs/feed_parse_extractRandnovelstlsamatchateaWordpressCom.py | d0cebc880f2171d48c773fdaf78dc3e6e389d55b | [
"BSD-3-Clause"
] | permissive | fake-name/ReadableWebProxy | 24603660b204a9e7965cfdd4a942ff62d7711e27 | ca2e086818433abc08c014dd06bfd22d4985ea2a | refs/heads/master | 2023-09-04T03:54:50.043051 | 2023-08-26T16:08:46 | 2023-08-26T16:08:46 | 39,611,770 | 207 | 20 | BSD-3-Clause | 2023-09-11T15:48:15 | 2015-07-24T04:30:43 | Python | UTF-8 | Python | false | false | 586 | py |
def extractRandnovelstlsamatchateaWordpressCom(item):
'''
Parser for 'randnovelstlsamatchatea.wordpress.com'
'''
vol, chp, frag, postfix = extractVolChapterFragmentPostfix(item['title'])
if not (chp or vol) or "preview" in item['title'].lower():
return None
tagmap = [
('PRC', 'PRC', ... | [
"something@fake-url.com"
] | something@fake-url.com |
16106a80a06c2b6a9745ba4cca55bd6be164dc48 | 5c55d83a16628cf2115f5276fe13566334b48843 | /Codeforces/Problem-1475F.py | 9bea59ddfb6250c88f1ddff90d8473b9852e7c53 | [] | no_license | MahirJhaveri/CompetitiveProgramming | a07a8dd5fd27351b83d4d0b422cc0ae118e6458c | 064b87d1ac786f404213d4fa0da18332b278845f | refs/heads/master | 2021-09-17T23:23:54.605010 | 2021-08-02T02:52:40 | 2021-08-02T02:52:40 | 230,447,015 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,231 | py | # Problem 1475F - Unusual Matrix
def solve():
n = int(input())
a1 = []
a2 = []
for i in range(n):
arr = input().rstrip()
a1.append([int(arr[x]) for x in range(n)])
a2.append([int(arr[x]) for x in range(n)])
input()
b = []
for i in range(n):
arr = input().rstr... | [
"noreply@github.com"
] | MahirJhaveri.noreply@github.com |
fc671086c736037ad538ae6e90677684639d03d8 | 8a025c88c554c782885ccf780faf7af51f8d2583 | /stu.py | 345b718b7d85569d755d248bf840883f8a5233e2 | [] | no_license | LIGHT1213/PythonStudy | cc97a6372d5347229d014fa7fa499ac6af1abd2c | b3ac29777e395dee1282d9d422f1f6556cc2b3f6 | refs/heads/master | 2020-04-08T14:17:08.773627 | 2018-12-19T10:32:17 | 2018-12-19T10:32:17 | 159,430,245 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | Tempin=input("请输入一个带符号的数组")
if Tempin[0:-1] in ['1','2','3','4','5','6','7','8','9','0']:
if Tempin[-1] in ['f','F']:
C=(eval(Tempin[:-1])-32)/1.8
print("转化后的温度为{:.2f}C".format(C))
elif Tempin[-1] in ['c','C']:
F=1.8*eval(Tempin[:-1])+32
print("转化后的温度为{:.2f}F".format(F))
else... | [
"pch19980807@gmail.com"
] | pch19980807@gmail.com |
0511fb43057a60f889f53874c33afcd98ff8ddd8 | 01bb92319db579fc60087cfc4b5c2edd924809d9 | /part_b.py | 269e2f26af02c1b213f06c2538aef80e316adce6 | [] | no_license | UIUC-public/MP5_py | 81282ae9a0884c5d3f5e6710d36a8049a59af2cd | 3664b5ec1f0c37b44363f6c5dbbcd479cf66736c | refs/heads/master | 2020-03-12T13:30:03.527768 | 2018-04-23T05:19:32 | 2018-04-23T05:19:32 | 130,643,680 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | from pyspark import SparkContext
from numpy import array
from pyspark.mllib.clustering import KMeans, KMeansModel
sc =SparkContext()
# do NOT change this line
data=sc.textFile("dataset/cars.data")
# TODO
f=open('py_part_b.txt','w+')
# TODO
f.close()
| [
"noreply@github.com"
] | UIUC-public.noreply@github.com |
4aa8272025f036b52ea729420003ccaed04615fc | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02955/s157641213.py | 4c49cb084d398b88a82c7768e464c3400e1d3697 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from collections import deque
def isok(x):
que=deque(sorted(z%x for z in a))
res=0
while que:
l=que[0]
if l==0:
que.popleft()
continue
r=que[-1]
if r==0:
que.pop()
continue
d=min(l,x-r)
que[0]-=d
que[-1]=... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
25c76f936b1e618ae4f59f11a453aeb716d710ca | 4c0062f3b45afe6a087f0e8b0b9292448ce8680e | /inwike/wsgi.py | b62adb52993addcae9133236c57a9f24c5e90cd2 | [] | no_license | mitshel/inwike | 89846286824d4dd322edb4d51836af8d86da00d2 | e89bd4ccb9c3a71d17692d14def6e1041596d0f9 | refs/heads/master | 2020-06-20T21:04:00.623930 | 2019-07-19T20:14:03 | 2019-07-19T20:14:03 | 197,248,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for inwike project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"mitshel@mail.ru"
] | mitshel@mail.ru |
d6ecb87852168421b3635fb5dffa7be3e972afcf | 163e2435668e07f6ba0b4e44653a0cc95e612d88 | /easy/073_diamond/diamond.py | 6985e06fa1a86f49007ca236313e514defdf4c1e | [] | no_license | mrifqy-abdallah/python-exercises | d202ff4204269db5974fb494a813de5494c8286e | df6637a40a853e4876cdd74eea0deebadbce688d | refs/heads/main | 2023-05-30T16:35:50.790242 | 2021-06-19T12:01:59 | 2021-06-19T12:01:59 | 361,814,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,131 | py | from string import ascii_uppercase
def rows(letter: str) -> 'list[str]':
letter = letter.upper()
if letter not in ascii_uppercase:
raise ValueError("Input must be alphabet.")
if len(letter) != 1:
raise ValueError("You must insert exactly one alphabet.")
# Quick return
if letter ==... | [
"mrifqyabdallah@gmail.com"
] | mrifqyabdallah@gmail.com |
daf4ddaea769085c50cf8f4f15f0287de9a5ab16 | 7256596fc6437c7f3cd1947f9f88bc556df6ba56 | /programs_in_python/programming_excercise/1.py | 7aa1303ea03548fa583c4aa0857c6f32292d692b | [] | no_license | panu2306/Python-Articles | fd02cf70635e4a63eae8b691597b6858c40832b8 | 7585dbdca92264a8f52cfb3c1b918b29814d3bd1 | refs/heads/master | 2020-12-27T17:33:28.576776 | 2020-05-06T14:55:10 | 2020-05-06T14:55:10 | 237,990,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 645 | py | '''
Write a program which will find all such numbers which are divisible by 7 but are not a multiple of 5,
between 2000 and 3200 (both included).
The numbers obtained should be printed in a comma-separated sequence on a single line.
'''
# Using List in Python:
def multiple_of_seven(start, end):
l = []
for i in ran... | [
"pranavbhendawade@gmail.com"
] | pranavbhendawade@gmail.com |
95efb04d5889db91c927e9ef5d60e9eba7e04bdb | 65ae9d8ca2f3d5657ab92bd998eec7d4a9ed9b6a | /benchmark/django_ab/django_ab/wsgi.py | 6dc073640d5af46ee9fe68dba15a364d663e30a9 | [
"MIT"
] | permissive | JieweiWei/lnet | cbb54ab0ad7dc37a1814e8b34e21a7d2cab9df05 | 94188045fba29824591cc92e6447d4807cba831b | refs/heads/master | 2016-08-12T20:08:54.559226 | 2016-05-09T03:28:53 | 2016-05-09T03:28:53 | 53,181,697 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for django_ab 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.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"weijieweijerry@163.com"
] | weijieweijerry@163.com |
813e7f76f75b88baa4938c22d880b668d437d16a | 503c001c0e1ad76d2ee2fd0ece71dbdbdb0c0465 | /sprites/block.py | 957b3cb2256bf95ba6132f5382da1b6f0e61b15e | [] | no_license | king1600/DragonTakeOver | 607a0e65abe20b5167e647234e282335e9feb5c8 | de5979b5d0d122966073112b0c745674c10159f7 | refs/heads/master | 2020-05-22T08:11:16.993950 | 2016-10-05T23:56:30 | 2016-10-05T23:56:30 | 64,617,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import pygame
import colors
hitbox_img = pygame.Surface((64, 64))
hitbox_img.fill(colors.BLUE)
""" Direction Facing """
class DirectionEnum:
LEFT = 0x00
RIGHT = 0x01
""" Basic Sprite Block (interactive object) """
class Block(pygame.sprite.Sprite):
WIDTH = 64
HEIGHT = 64
... | [
"noreply@github.com"
] | king1600.noreply@github.com |
5b4b604359261863dda10a1df806583c9f595799 | 556290802d8cbcfea6634e26d26e80567efb59bf | /2048 Player/tempCodeRunnerFile.py | 785cfe5b5a83017fae748da9e7188eeec14e2ea1 | [] | no_license | leognon/2048Bots | 7319dff041deae87aaa494460f3d0b5a92a17266 | c6668a5f6b398f51e3329cf897793355b9e555a7 | refs/heads/master | 2023-08-09T09:10:36.674126 | 2019-07-14T15:50:43 | 2019-07-14T15:50:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 128 | py | ][-2] > old_board[-1][-2] and # 2nd to Right
# new_board[-1][-1] >= old_board[-1][-1]):
# fit += .6 | [
"noreply@github.com"
] | leognon.noreply@github.com |
0bce4dd101c8d39822754429170351618117265b | 75c787f39802888b6c752688c68af439201a7894 | /回归分析散点图绘制.py | afd148f7272f4e534a89bc1d1aa007c4b3cd8e39 | [] | no_license | llqqyy/data_ans | 48478df92bba3e3ce6975a30746a9edaae0a80dc | d65e497f1011b802918eea973846021fd1235d11 | refs/heads/master | 2020-03-18T17:11:11.821009 | 2018-05-27T03:17:35 | 2018-05-27T03:17:35 | 135,011,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # -*- coding: utf-8 -*-
import numpy as np
import matplotlib.pyplot as plt
from pylab import *
mpl.rcParams['font.sans-serif'] = ['SimHei']#标签显示中文
mpl.rcParams['axes.unicode_minus'] = False#正常显示正负号
data=np.loadtxt('C:/Users/刘青源/Desktop/回归分析数据.txt')#读取数据
data=np.transpose(data)#将数据进行转置,第一行是月份
#print(data)
#进行库存金额-销售额散点图... | [
"383870587@qq.com"
] | 383870587@qq.com |
c7e086c6ea45c41cf28e897e3b175a4f462aca19 | ccf94dcb6b1500fcbbd56964ae8c4832a496b8b3 | /python/baiduads-sdk-auto/test/test_app_info_item.py | deaf0a9f6d02f3a631c0a04ff600f2afd04a818c | [
"Apache-2.0"
] | permissive | baidu/baiduads-sdk | 24c36b5cf3da9362ec5c8ecd417ff280421198ff | 176363de5e8a4e98aaca039e4300703c3964c1c7 | refs/heads/main | 2023-06-08T15:40:24.787863 | 2023-05-20T03:40:51 | 2023-05-20T03:40:51 | 446,718,177 | 16 | 11 | Apache-2.0 | 2023-06-02T05:19:40 | 2022-01-11T07:23:17 | Python | UTF-8 | Python | false | false | 637 | py | """
dev2 api schema
'dev2.baidu.com' api schema # noqa: E501
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import baiduads
from baiduads.appprocess.model.app_info_item import AppInfoItem
class TestAppInfoItem(unittest.TestCase):
"""AppInfoItem unit test stubs"""
de... | [
"jiangyuan04@baidu.com"
] | jiangyuan04@baidu.com |
ab3a482230c4698e7f9d49b9254e260e3bddd324 | 80195b74663c39334f0586c170e0a98a25050135 | /modules/analyzer/wimea_analyzer_python/eraseMaillog.py | 08c6f0e1c6c8823056600c6f365c3d493da5267f | [] | no_license | wimea-ict/AWS-monitor | e929bc876373f8c979d835cb5febecf43ffa40ab | 993a7b23d45923acb5394914844e2545e4d9fb65 | refs/heads/master | 2022-07-29T15:40:11.217388 | 2021-07-05T17:04:34 | 2021-07-05T17:04:34 | 120,739,881 | 0 | 3 | null | 2022-07-07T20:44:53 | 2018-02-08T09:27:46 | Blade | UTF-8 | Python | false | false | 165 | py | from paths.directories import emailPath
messageLog = emailPath+'/mailHistory.txt'
f = open(messageLog, 'r+')
f.truncate(0)
f.write('userId,problem,date')
f.close() | [
"piuskk71@gmail.com"
] | piuskk71@gmail.com |
37c1bcd5aee686df823ee3f0be5cd04f64936ce0 | 80de2ec1cba6bb1742640b9da93fc001dad17c15 | /alarmpi/get_greeting.py | 01e9eafafea4914f9c65b44eeb3ed94df9b51540 | [] | no_license | baobin25/cid4smartalarm | ebc362f361cedb42093c628eb64680a5cb857234 | 362f68e5e4ed9c39d18743781b1d9b64b310bff4 | refs/heads/master | 2020-07-04T11:19:26.027571 | 2016-08-24T14:44:53 | 2016-08-24T14:44:53 | 66,471,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 768 | py | #!/bin/python
# -*- coding: utf-8 -*-
import time
import better_spoken_numbers as bsn
from apcontent import alarmpi_content
class greeting(alarmpi_content):
def build(self):
day_of_month=str(bsn.d2w(int(time.strftime("%d"))))
now = time.strftime("%A %B ") + day_of_month + ',' + time.strftime(" %I %M %p")
... | [
"noreply@github.com"
] | baobin25.noreply@github.com |
ed9fac599e6466da1021f90cfb4d5e0684fad02f | fd3b0bc4bb7f49a32b1f016926ffaa584e1471de | /blog/applevel/migrations/0006_post.py | 4587ce980ac500277e9a30faedb5a029493a6c16 | [] | no_license | prema1432/blog | 9dc153eae8f062f5c0e33ae1e64932d56c83a005 | 1b9bcce3ff27bacf61c0804cd294f1893cc695f9 | refs/heads/master | 2021-01-09T13:33:33.680983 | 2020-02-22T10:10:51 | 2020-02-22T10:10:51 | 242,320,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | # Generated by Django 2.2 on 2020-02-18 06:09
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_... | [
"talamarlapremanath@gmail.com"
] | talamarlapremanath@gmail.com |
543ef8c8c0b3586eacae8fba47408cda829a38bb | 697345ad4337a29767de0c20edaad331b3798202 | /biofeedback/views.py | cee97e77e731f38de078a74a9850d384ab1b622b | [] | no_license | Yursksf1/D_Biofeedback | 0bb055a40c35b7c1b5a98b7c2b91ba4a7d7a2824 | abcfb5f5aaa81197d8be678fda03ad6fb4f911ef | refs/heads/master | 2020-03-10T17:16:44.770226 | 2018-04-14T08:11:30 | 2018-04-14T08:11:30 | 129,496,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,358 | py | from django.shortcuts import render
import os
from django.http import JsonResponse
import _thread as thread
#from subprocess import run
#from .models import Question
def index(request):
thread.start_new_thread(plotters, ())
#plotters()
print("yes")
context = {'1': 1}
return render(request, 'b... | [
"root@yurley.sanchez"
] | root@yurley.sanchez |
0609f510d3ee1eb27d449292f8f96ac3cbfa6912 | 5f6f78eade0734f1e95cacb39b3a320a18dfc4e5 | /poembot.py | b1a4a337b81dfc9999a6a3fe693ffda7d63e07bd | [] | no_license | mplitnikas/poetrybot | 1f772aed67143ce83b88cfc1990f64af20c6f867 | 1bc6f6b7768904990700b0d05f4e10a2dc8a183c | refs/heads/master | 2021-01-01T05:10:56.265847 | 2016-05-04T00:16:08 | 2016-05-04T00:16:08 | 58,009,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,389 | py | import pprint
import random
import rhymer, chainer
#with open('bernie.txt', 'r') as fo:
with open('trump.txt', 'r') as fo:
content = fo.read()
#content = content.decode('utf-8')
r = rhymer.Rhymer(content)
lexicon = r.vocab # set of all words (no duplicates)
clean_text = r.cleaned_text # all words in order, lowerc... | [
"mplitnikas@gmail.com"
] | mplitnikas@gmail.com |
a829de9080f12b849296a6ffe1ccf39566113196 | 39a9e65aab78fd01b2d0722a2b4227468f317209 | /venv/bin/pip | d56e258cbc6545d7e6bd6bdbd8c225569f0ee525 | [] | no_license | Nikhildevadas/flask-intro | 2549531cc0ddaabf9ec4cf90da635c22d666d8d5 | ddf5dae7c4fadaa717e75c1213c3b2ec1871faf1 | refs/heads/master | 2020-04-05T23:40:24.357879 | 2014-07-14T06:05:48 | 2014-07-14T06:05:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | #!/home/nikhil/flask-intro/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.3.1','console_scripts','pip'
__requires__ = 'pip==1.3.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.3.1', 'console_scripts', 'pip')()
)
| [
"nikforu91@gmail.com"
] | nikforu91@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.