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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5e5c6414271cbd989561de51d4ffc44f3105539d | ce47784499852d9f4f328ca39ac954ce7932e932 | /shop/catalogue/fields.py | b5500f1755a3b0aef78b36402dc988c121f0cca6 | [] | no_license | kshutashvili/multishop | 3f7ddb14a534009936f7cb0950555744f12c06f6 | 6f3c1b9a719b8ae6004bb819f492bbef9cc211b7 | refs/heads/master | 2022-11-30T23:43:22.807302 | 2018-01-12T16:39:02 | 2018-01-12T16:39:02 | 203,870,369 | 0 | 0 | null | 2022-11-22T01:39:59 | 2019-08-22T20:43:31 | JavaScript | UTF-8 | Python | false | false | 889 | py | from __future__ import unicode_literals
from django.utils.encoding import force_text
from django.forms.fields import MultipleChoiceField
class CustomFilterMultipleChoiceField(MultipleChoiceField):
def valid_value(self, value):
"Check to see if the provided value is a valid choice"
text_value = fo... | [
"dmyutro@ukr.net"
] | dmyutro@ukr.net |
75beee39f655ccdabb0e887a3fea8cafc7e95c8a | e2897c39ec494856e0f110c57f3f0bb4740ac4de | /task_2/task_2/wsgi.py | d926bbe042842485d5f7b8e6eef5a2e769852adf | [] | no_license | ksuvarna85/app_school | fc3f75eddf18535fff8cbf2b38d1fd39bf313102 | 9804cd0d9c629e37d72cd72738c675536ce1dd24 | refs/heads/master | 2022-12-10T23:24:30.967284 | 2020-09-02T05:13:16 | 2020-09-02T05:13:16 | 292,185,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 389 | py | """
WSGI config for task_2 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/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETTIN... | [
"you@example.com"
] | you@example.com |
953dfcb4dd312ccbcb7d455b544179ac4a617b59 | 2d4005c1bce1bad26fa9cba6c8ccab913e27c4ec | /Python高级/7丶http协议丶web服务器/4丶根据用户的需求返回相应的页面.py | 98eb031fe68132eb0345e8427d55a43e7c9ea1ae | [] | no_license | wfwf1990/learn | 4b801f2c082ce180a6d70d680c8cadbc5c6ec3cf | 5ed32454ddf083866fabd730d5b2ffb544a30e08 | refs/heads/master | 2020-03-21T18:16:20.284168 | 2018-07-18T11:35:29 | 2018-07-18T11:35:29 | 138,881,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,626 | py | # Author: wangfang
# Author: wangfang
import socket
import re
def handle_data(client_socket):
recv_data = client_socket.recv(1024)
#接收的数据进行解码
recv_data = recv_data.decode("utf-8")
#接收的数据进行合并
recv_data = recv_data.splitlines()
#获取请求头中的URI
url = re.match("[^/]+(/[^ ]*)",recv_data[0]).group... | [
"576589099@qq.com"
] | 576589099@qq.com |
51a63a31cdd2da9dd062609a777200d0a364cdf2 | d66fe51e587258c5aa989d91dec2b94409d1abd4 | /keras_model/nets/SqueezeNet_speed_wire_fit.py | d8e76dc18a66a1c6c2a3004b70a3dc7544006fdd | [] | no_license | izeki/RL_driving | 5519961a2f28f6c2d2ddf5f2f41ebb10bee5dfce | 7605d79504dd2af9d23b43d5588989c7cc049d40 | refs/heads/master | 2021-05-07T22:36:13.043987 | 2018-04-06T22:50:28 | 2018-04-06T22:50:28 | 109,063,940 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,906 | py | from keras.models import Model
from keras.layers import Input, BatchNormalization, AveragePooling2D, Conv2D, \
MaxPooling2D, Dense, ZeroPadding2D, Flatten, concatenate
from keras import optimizers
from keras import regularizers
from keras.layers.core import Lambda, Dropout, Reshape
from keras.l... | [
"izeki@berkeley.edu"
] | izeki@berkeley.edu |
0c14f478ee49acb3207cb1a384fee040a3bdda58 | 236afd92083f18a053f03caa4b3c6fd212890ef6 | /utils.py | 86bc4b9338d450159791b1b626ed5316f308682f | [
"CC-BY-4.0"
] | permissive | IldikoPilan/linkage | 31f3293323ca357d38ee3c461ea99ec2dbe24bcd | 3832bcc2db9446cbfd836e3500896e446b99ea4c | refs/heads/master | 2023-06-04T01:01:46.591856 | 2021-06-21T07:52:55 | 2021-06-21T07:52:55 | 257,837,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py |
def read_relations(path_to_file):
""" Reads information from .uio file format with
relations. Returns a nested list where sub-lists
contain the follwing token-level information.
"""
relation_info = []
with open(path_to_file) as f:
lines = f.readlines()
for line in lines:
... | [
"ildiko.pilan@gmail.com"
] | ildiko.pilan@gmail.com |
67e955dc2e70709a21813dde1e1e3ecf9da1ec54 | 41c26da9c57052a3c9cd17b81d91f41ef074cf8d | /MyLeetCode/FB/Sqrt(x).py | e57f5f518cdc5ab67b63761318a1cca55c7a2c24 | [] | no_license | ihuei801/leetcode | a82f59a16574f4781ce64a5faa099b75943de94e | fe79161211cc08c269cde9e1fdcfed27de11f2cb | refs/heads/master | 2021-06-08T05:12:53.934029 | 2020-05-07T07:22:25 | 2020-05-07T07:22:25 | 93,356,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | ###
# Binary Search
# Time Complexity: O(logn)
# Space Complexity: O(1)
###
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
if x <= 0:
return 0
if x == 1:
return 1
l, r = 1, x
while l + 1 < r:
... | [
"hhuang@pinterest.com"
] | hhuang@pinterest.com |
8251df20d34bd166007675aafc1b6abc6c317a2d | 4408859ff99069ade676ae47fd73e117339f1445 | /Data_Structure/Python/Generators/generators.py | b1e670cca1e201437acd65d567a8b6f5b6c7b536 | [] | no_license | stulsani/Additional-WorkSpace | 71309c28d8487ea1a080cf923b4efa8cbbfb9e6f | bba9140ff64ab83a63c6293719702d3939ab1b4e | refs/heads/master | 2022-06-12T04:47:11.251338 | 2020-04-26T03:41:28 | 2020-04-26T03:41:28 | 88,526,381 | 0 | 0 | null | 2022-03-02T08:21:22 | 2017-04-17T16:15:41 | C++ | UTF-8 | Python | false | false | 611 | py | input_list = [2,5,10,14,15,23,25]
def div_by_five(num):
if num%5 == 0:
return True
else:
return False
xyz = ( i for i in input_list if div_by_five(i) )
print(xyz)
for i in xyz:
print(i)
[[ print(i,ii) for ii in range(5)] for i in range(3) ]
x = ([ (i,ii) for ii in range(5)] for i in ran... | [
"sumeettulsani1@gmail.com"
] | sumeettulsani1@gmail.com |
bbd25fc97bb6bd34c80649e0f1729d4b08bd09aa | 13dd6f83cfa9bd227741abe1fe01445a88b93944 | /project/urls.py | d9199a27dc45611d7809c7867856b9caa101ca42 | [] | no_license | Rajeshkanchi/Revisedfile | f34a62450ebc9ef33ff41ed776e68e3b4d50227b | 5930a41b42603dcee88cc27fec778aad3dd6f6ea | refs/heads/master | 2022-12-25T18:57:48.017650 | 2020-09-17T12:41:41 | 2020-09-17T12:41:41 | 296,321,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,169 | py | """project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Cla... | [
"noreply@github.com"
] | Rajeshkanchi.noreply@github.com |
e45e92ac2a515b699091a99231db873b58ea6c9e | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/cirq_new/cirq_program/startCirq_noisy786.py | f2b65f32ed029be9c4178c2a3b37eb138cc9f1e7 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,253 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 5/15/20 4:49 PM
# @File : grover.py
# qubit number=4
# total number=19
import cirq
import cirq.google as cg
from typing import Optional
import sys
from math import log2
import numpy as np
#thatsNoCode
def make_circuit(n: int, input_qubit):
c = cirq.Ci... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
bdb1dcd0e7a5318ece8f7870d373b25ee900437c | 8d8772b873b2fc5bfe193453b23fc0ba9a270433 | /tools/benchmark.py | a648fcb3b422639121f27e396f417c98bcabae82 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | hz-ants/BCNet | 5246c8bc90839c5d1bd040a88bed561232594068 | a027645a03a288115c703184bb9c8f5126221db8 | refs/heads/main | 2023-05-25T14:36:58.872327 | 2021-06-01T16:21:29 | 2021-06-01T16:21:29 | 373,832,572 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,462 | py | """
A script to benchmark builtin models.
Note: this script has an extra dependency of psutil.
"""
import itertools
import logging
import psutil
import torch
import tqdm
from fvcore.common.timer import Timer
from torch.nn.parallel import DistributedDataParallel
from detectron2.checkpoint import DetectionCheckpointer... | [
"keleiwhu@gmail.com"
] | keleiwhu@gmail.com |
7ed737bd9a5b2c998c3e7ecd20e75e8b6c05aa42 | e24fee7793cc7e89e78174b744cdaddbaecf45cd | /app/hypatio/wsgi.py | 7bb13ea6aa8ca74f101740b809c54ab1222b0ab9 | [] | no_license | hms-dbmi/hypatio-app | e63bfa9f123233ca33175d6d15bc0fd65294f749 | bff632ea72fa62ee503a1bff15b7e840e53a0d45 | refs/heads/master | 2023-09-01T02:14:03.432174 | 2023-08-09T15:14:08 | 2023-08-09T15:14:08 | 71,184,816 | 4 | 0 | null | 2023-09-13T16:04:50 | 2016-10-17T21:58:35 | Python | UTF-8 | Python | false | false | 392 | py | """
WSGI config for hypatio project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETT... | [
"mcduffie.michael@gmail.com"
] | mcduffie.michael@gmail.com |
33b7f9ac9953ad10274b3232c352058e44e69e71 | 0724193d3ddd21a428aabbdd16d84e944cf082dc | /tests/config/test_potable.py | 8d372186a4a4ab1d590d25e1e5fde35894af90bd | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | fengnianzhuang/atsim-potentials | 305b5aa33b9e7df7765abfda3a73d7f31241ba69 | 566020dc0d2df4b701b9c8cd00319a1c9461f56e | refs/heads/master | 2023-06-15T21:05:00.608645 | 2021-05-20T19:00:22 | 2021-05-20T19:00:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,210 | py | import pytest
from ._common import _get_dlpoly_resource_dir, _get_lammps_resource_dir
from atsim.potentials.tools.potable import _query_actions
from atsim.potentials.config import ConfigParser
def test_list_item_labels():
expect = [
"Tabulation:target",
"Tabulation:nr",
"Tabulation:dr",
"Tabulatio... | [
"m.j.d.rushton@gmail.com"
] | m.j.d.rushton@gmail.com |
82367d80dbeb2a3e6cf100cb33c3a7f9e7406328 | 71063487dc412ba4d7c24e169e14916172dc7756 | /Common/models.py | 6ae161cb4cd3f38193bc5027fd8e7057615a9d4f | [] | no_license | saurabhwahile/Stark | 420ff11bff6ffdf7bf02ea5b573e274815823e5f | ab683e80acffb57ecfc8c2c62abc550427129fa9 | refs/heads/master | 2020-04-16T07:28:19.681736 | 2015-06-08T17:17:21 | 2015-06-08T17:17:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | __author__ = 'Saurabh'
class IncompleteDataException(Exception):
def __init__(self, message):
self.value = message
def __str__(self):
return repr('Missing '+self.value)
class DuplicateDataException(Exception):
def __init__(self, message):
self.value = message
def __s... | [
"saurabh-wahile@hotmail.com"
] | saurabh-wahile@hotmail.com |
4713452da4676073abf78c5b13eaf884b0b5121a | e11d8ccf73cbf5fb30dbde69832f1a9c95df467a | /src/Dj4sq/settings.py | 67a512912d343a74dda4f937c87587609134329a | [
"CC-BY-3.0"
] | permissive | martinjc/DjangoFoursq | 013060794cc1f83080597a800ecfd1ede7aad4f4 | 5f3736a9bff4f955160b603a74645ec447376b30 | refs/heads/master | 2020-04-26T23:49:44.058089 | 2011-09-08T17:42:02 | 2011-09-08T17:42:02 | 2,349,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,759 | py | import os
ROOT_PATH = os.path.dirname(__file__)
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(ROOT_PATH, ''), # path to database file as us... | [
"m.j.chorley@cs.cardiff.ac.uk"
] | m.j.chorley@cs.cardiff.ac.uk |
6a71d095d97872e0de1678319efb32d063a8d074 | 6ee6a5fcd84c6a3aaf3894a1f06fd4cc3ba8bc63 | /Chapter01/ch01_IceCream.py | aef3f86d14e9b96f8897a074717428b7e1f72a36 | [] | no_license | lyubomirShoylev/pythonBook | ff50952035b883ec3721da49d17112d4ef5b8b13 | f3eca2d47ea31aaaecaa5a0b00a45d1ccee80dae | refs/heads/master | 2020-03-21T14:09:30.826106 | 2018-08-22T17:41:14 | 2018-08-22T17:41:14 | 138,642,968 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | #Challenge1
#Favourite ice cream
print("Chocolate, of course")
input("\nWhat's yours?\nPress Enter key to exit.")
| [
"luboshoilev@gmail.com"
] | luboshoilev@gmail.com |
d01a284894e33a20d0198937965703279aa95c84 | b42665a5b7c30ff9609d04a5fafaaffad2121fe7 | /leglib/__init__.py | b098b19c29352e149c9735cbefcbdb89aa9f22dd | [
"MIT"
] | permissive | joelegner/leglib | 71f7779d43f910a074ea59c8c0c1fab84773c7ae | 5f7f4cc48112302bb48857d85435c42fb8c72169 | refs/heads/master | 2021-06-13T22:13:11.414707 | 2020-11-26T16:02:45 | 2020-11-26T16:02:45 | 155,223,190 | 0 | 0 | MIT | 2021-03-20T04:57:58 | 2018-10-29T14:12:39 | HTML | UTF-8 | Python | false | false | 57 | py | __all__ = ["legmath", "util", "fmt", "tests", "unitval"]
| [
"joelegner.gmail.com"
] | joelegner.gmail.com |
4401d1e8caca6d642272910a81badbe024178ea0 | 99a8fee72524a221f3e754876a051cdc799d9ca5 | /bentoml/cli/yatai_service.py | 35edda58dc7a85b1c7feffaa0186f6c892c0b53a | [
"Apache-2.0"
] | permissive | AmeerHamza111/BentoML | d112f3d73e4ac1bb088a11548a04314eadafb2da | 7a23ebb986971d0cf0508c88a33304773926f3e8 | refs/heads/master | 2022-11-18T13:05:01.219977 | 2020-07-07T14:39:49 | 2020-07-07T14:39:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | # Copyright 2019 Atalaya Tech, Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# http://www.apache.org/licenses/LICENSE-2.0
# Unless required by applicable law or agreed to in writing, ... | [
"noreply@github.com"
] | AmeerHamza111.noreply@github.com |
63a817e8557c763d366712c27c996a9e667b18c3 | ebe7c57183b0eeba9af1bdc72f0f81b9b8129ca9 | /23. HashTable/387.py | 8b7b7473758a3bccdd09c324c10a8ef2fb84a148 | [] | no_license | proTao/leetcode | f2e46392b56b69606e1dd25cf5738cb0ad275645 | 97533d53c8892b6519e99f344489fa4fd4c9ab93 | refs/heads/master | 2021-11-24T10:23:56.927122 | 2021-11-18T04:28:05 | 2021-11-18T04:28:05 | 110,225,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from collections import Counter
from math import inf
class Solution:
def firstUniqChar(self, s: str) -> int:
count = Counter(s)
for i, c in enumerate(s):
if count[c] == 1:
return i
return -1
def firstUniqChar(self, s: str) -> int:
alpha = "qwertyuiop... | [
"836807627@qq.com"
] | 836807627@qq.com |
a76178923d7a753fe33c9b685cdc686a0032faa6 | cd117c1bcde2d7d7d7a389ef6889630b99a53059 | /Lesson 1/lesson1_task1.py | 3737200d9156fcddbe4c8288443bc813f35a04d3 | [] | no_license | mironnay/Python-Classes | e120cf5ea5403a907a9c567f9e634ab89cd04bea | 6f44618519983b28e2b743f9f7f982d556fee177 | refs/heads/master | 2022-08-31T17:28:59.064379 | 2020-05-27T12:57:46 | 2020-05-27T12:57:46 | 259,941,900 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | num = input("Enter number of products you want to buy ")
price = input("Enter price for each product ")
final_price = int(num) * int(price)
print("Final sum of products is: " + str(final_price)) | [
"noreply@github.com"
] | mironnay.noreply@github.com |
fb7767bbf20ea1ac3b6d1db40ee1d0556a8dce91 | c8d39c580c3b0716d161c2d070335a713173c701 | /setting/urls.py | 1f6976e62f29c7c44830b9930fba3bd05219f778 | [] | no_license | NIKULAHIR/B2C | 2d58c95757314eb54a142b53ac3072e99639b2cf | cd24761a364a4314ac6857a621c859be5fea7122 | refs/heads/master | 2020-04-02T18:18:53.664016 | 2019-07-27T19:06:30 | 2019-07-27T19:06:30 | 154,695,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,077 | py | """FromDemo URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-b... | [
"nikulahir90@gmail.com"
] | nikulahir90@gmail.com |
a6664ec1cdda715d878aabeded1980ae5457a15c | 6f4f4d2ff85574a42a6e539d43becce5815e4530 | /lyman/tests/test_frontend.py | 639f8dc1d503c8f8798aa0fc2826f066d4bf4007 | [
"BSD-2-Clause"
] | permissive | toddt/lyman | b6aa656b6f8a6a235b9bf2f64d035a1b78dc188f | e3a5519fce41a765ae593d8d161e995c5f9aae8c | refs/heads/master | 2021-01-22T12:53:33.693352 | 2014-01-15T21:33:10 | 2014-01-15T21:33:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 661 | py | from argparse import Namespace
from nose.tools import assert_equal
from .. import frontend
def test_determine_engine():
plugin_dict = dict(linear="Linear",
multiproc="MultiProc",
ipython="IPython",
torque="PBS")
for arg, plugin_str in plug... | [
"mwaskom@stanford.edu"
] | mwaskom@stanford.edu |
99bdc1c699823b80e602a055a5b4a13d0a38c9ac | 4666793c3310dd20cf507dd4511a22d74365f851 | /database.py | b97bc5b343cf59b90d6b6036b605f601111db60e | [] | no_license | huomarc/covid19live | 00c102e7fe9829a9f790cf056ecb8d28ae34757c | 94923fe2c65b3e1d35190c69e08f56fb9bf3605c | refs/heads/master | 2022-11-05T00:10:23.290949 | 2020-06-18T21:29:34 | 2020-06-18T21:29:34 | 273,342,110 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "sqlite:///./covid.db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}
)
SessionLocal = sessionmaker(... | [
"noreply@github.com"
] | huomarc.noreply@github.com |
b6fc0625c6dd1554957b189643c7ecfa03533679 | f66d348063989778817eaeeaff868fbaadbdb68a | /euclidean.py | 5f715621e15aa74daac7745adc0c3a1d52a29751 | [] | no_license | william-richard/BowdoinMath252 | aca1f0247afe857b813dfc95511b898115cf8acb | 701c8d29c759d964970d006e3637c4c8b88b0dca | refs/heads/master | 2021-05-27T12:24:05.213768 | 2013-05-21T02:34:13 | 2013-05-21T02:34:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 821 | py | import sys
import math
def getInt(msg):
try:
data = int(raw_input(msg + " "))
except ValueError:
data = int(raw_input("Invalid input. Try again: "))
return data
def main():
#get our values
first = getInt("Input the 1st number you would like to get the GCD for: ")
second = getI... | [
"willster3021@gmail.com"
] | willster3021@gmail.com |
d2c956a7058044ec6ac1b4794ea0c4c38068efa6 | fb00807a844bcb9e828479ba206ee842469f27df | /sample_density_map.py | 3c7f49fa4886351509b2d64220db8c930032bdc2 | [] | no_license | eamalikaaa/CSRNet | fa60a84221fe403b1a05489f641cf5c6e2ef5fa0 | 156fa12bd4eabfea492b62401bbc30025994436a | refs/heads/main | 2023-04-09T21:39:51.437847 | 2021-04-18T17:30:36 | 2021-04-18T17:30:36 | 359,210,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | gt_file = h5py.File(img_paths[0].replace('.jpg','.h5').replace('images','ground-truth'),'r')
groundtruth = np.asarray(gt_file['density'])
plt.imshow(groundtruth,cmap=CM.jet) | [
"noreply@github.com"
] | eamalikaaa.noreply@github.com |
8c6a5a3e278d1c8a19d73033246e3453833eb81e | 18f8a1c7122c0b320f17ea31192439779a8c63e8 | /web/apps/admin/groups.py | b0ad4bfe977abf42bf38d551d4f9ce035134e1a5 | [
"MIT"
] | permissive | RyanLainchbury/zoom | d49afa8d3506fca2c6e426707bd60ba640420a45 | 684a16f4fe3cea3d26f2d520c743a871ca84ecc5 | refs/heads/master | 2020-12-25T19:03:12.881247 | 2017-06-09T07:29:27 | 2017-06-09T07:29:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,650 | py | """
system users
"""
from zoom.components import success, error
from zoom.collect import Collection, CollectionController
from zoom.forms import Form
from zoom.helpers import link_to, url_for
from zoom.models import Group, Groups
from zoom.tools import now
import zoom.validators as v
import zoom.fields as f
from... | [
"herb@dynamic-solutions.com"
] | herb@dynamic-solutions.com |
e112517d50528afa0bdebfab681278009f81d1f9 | e801dbaf4cf72782827e618e88bb1a460d297ba0 | /Scripts/StatisticalAnalysisScripts/csvGenerationConfigToNumeric.py | e17fa9f64da1a81935c0a9e6af3ed33050b174f8 | [] | no_license | maliha1234/StaticAnalysisFeatureSelection | 463345fd2d3f08ade1cfbc33d7851c930718bac3 | 9181ccb7271c02c64e7a72fc0721d8f3024ba202 | refs/heads/master | 2023-02-03T17:01:30.325084 | 2020-12-16T06:24:01 | 2020-12-16T06:24:01 | 234,459,863 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,278 | py | import pandas
import sys
import glob
import os
from collections import defaultdict
postAnalysisDirectory = sys.argv[1]
programName = sys.argv[2]
try:
aiCsvFileName = postAnalysisDirectory + programName + ".csv"
aiCsv = pandas.read_csv(aiCsvFileName)
print(aiCsvFileName)
# Create the d... | [
"malihasarwat@Malihas-MBP.lan1"
] | malihasarwat@Malihas-MBP.lan1 |
2c3a942a58a9f33ffbac28e938292022335ed2fa | 1db4518a0bc3782d46f1895d5592f81ed917868d | /src/VirtualNodeMap.py | d64b7b55b2b57a4502527302f4e7828692a54966 | [] | no_license | nilotpalsrkr/ConsistentHashing | fa8a1f4cf45d4b1bd2fd0d6d9ddf90d00a16e6d2 | 7e3e3b624606c9e52c3bd92fae4ae93eb1fcdcba | refs/heads/main | 2023-08-12T18:38:48.260161 | 2021-09-16T16:23:55 | 2021-09-16T16:23:55 | 407,236,074 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,555 | py | import random
import math
# Stores the vnode to node mapping
# Composed within a node so that every node has its own vnode mapping
class VirtualNodeMap:
def __init__(self, node_names, TOTAL_VIRTUAL_NODES):
self._vnode_map = {}
self._node_names = node_names
self._TOTAL_VIRTUAL_NOD... | [
"nilotpalsarkar@Nilotpals-MacBook-Pro.local"
] | nilotpalsarkar@Nilotpals-MacBook-Pro.local |
e059a8bdbfc125439f694cd82fc8d44168c0cafe | 9aa46b74b6c3d927aa870306057b3d0d50236e87 | /weatherapp.py | 0b28f6000aebc18b2441bd129cd19117c72d59c6 | [] | no_license | McEdward/Mini-Weather-App-Python- | d81dede01a3e6039290f3b3605501a3cb3fcfa21 | 4badf3e75cd1c880e2fe714a66346b1bf1d411cb | refs/heads/master | 2021-01-21T12:11:53.748945 | 2017-08-31T22:42:29 | 2017-08-31T22:42:29 | 102,049,564 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | def window():
ui = tkinter.Tk()
ui.geometry('300x250+550+200')
L1 = tkinter.Label(text = "Locate City")
L1.pack()
E1 = tkinter.Entry(width=45)
E1.pack()
go = tkinter.Button(master = ui, text = "Search", command = lambda: yahooweather(E1.get()))
go.pack()
ui.mainloop()
def yahooweather(name):
baseurl = "https:... | [
"mac114.md@gmail.com"
] | mac114.md@gmail.com |
d04bc1786001d02dc9ac9d0587bf959ff6a23588 | 3d1079a886b22081a7d8137e29ec47528a912d86 | /MT3FileNameChange/MT3FileNameChange.py | f688c351160fa8570ce67a1ab5a6e7607a134b62 | [] | no_license | satoshi246ss/MT3FileMove | 0273d20000dacc8f2b547f38489159081c0aa6ca | d3042a3743af9d368bce119debdcc3053f12a6e6 | refs/heads/master | 2021-01-19T03:19:58.949652 | 2017-01-07T06:53:46 | 2017-01-07T06:53:46 | 48,326,541 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,605 | py | ## -*- coding: utf-8 -*-
import os
import sys
import datetime
import shutil
import time
import cr2_file_move
import bmp2avi
#---------------------------------------------------
# 2_ .avi ファイル名変更
# datedir -> yyyymmdd
#
def proc_2_rename(BaseSoucePath,dir):
datedir = dir.replace("/","")
# 条件確認
if os.path.... | [
"satoshi246ss@yahoo.co.jp"
] | satoshi246ss@yahoo.co.jp |
1c7cc732f20e33f9a1ba6643dbfd612499b6a9e0 | 7afafec3e6bde1b182581ca32d1dcd19279a8c34 | /server/venv/bin/easy_install | 2fa70b27267b04639af57eb0c2f883de7a16b7a5 | [] | no_license | LudSkywalker/PythonReactAI | 6849dead7db73833ed584c1df02779f950f37b6c | dc0dc216e99fe77f2ff2ab6a7a0e44c5fee86710 | refs/heads/master | 2023-07-04T02:26:43.610476 | 2021-07-29T18:39:00 | 2021-07-29T18:39:00 | 384,199,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/lud/Desktop/flask_react_AI/server/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ludingnumpaque@gmail.com"
] | ludingnumpaque@gmail.com | |
892fbd06f8f8a270de2eff8e0b8cc19d184a457b | 2b11362f30d7e07fabfb8cd76085cfa4485d12ea | /mysqlite/__init__.py | f051ef662371cb1252bfb783c0c1296b8220777b | [] | no_license | stomer1/Python-Basic | 93e05032d2d7676a197be5a7c59acb18c3cffaed | 74b00bf9a909371bf2dd2f41c2880736c16aadd6 | refs/heads/master | 2023-05-11T05:48:10.523535 | 2021-06-04T08:41:00 | 2021-06-04T08:41:00 | 368,451,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | from .database import *
# __init__.py
# 패키지 임포할 때 초기화 작업을 수행하는 파일
# 없어도 패키지로 인식
# from 패키지 import * : 내부에 있는 모든 객체를 import
__all__ = ["Database"] # 명시된 심볼만 export된다
#__all__ = [] # *로 임포트시 아무 것도 export 안함
| [
"stomer1@naver.com"
] | stomer1@naver.com |
cc247e80135181a627d1df3c82785a5871e3b13c | 255e19ddc1bcde0d3d4fe70e01cec9bb724979c9 | /all-gists/1485023/snippet.py | 55f1081e778224a3121589a27e60a6f8ebd07476 | [
"MIT"
] | permissive | gistable/gistable | 26c1e909928ec463026811f69b61619b62f14721 | 665d39a2bd82543d5196555f0801ef8fd4a3ee48 | refs/heads/master | 2023-02-17T21:33:55.558398 | 2023-02-11T18:20:10 | 2023-02-11T18:20:10 | 119,861,038 | 76 | 19 | null | 2020-07-26T03:14:55 | 2018-02-01T16:19:24 | Python | UTF-8 | Python | false | false | 1,053 | py | # You need gevent 1.0 and pyzmq 3.x
#
# pip install --user git://github.com/SiteSupport/gevent.git
# pip install --user pyzmq
#
import gevent
import zmq.green as zmq
import os, sys
ADDR = 'tcp://127.0.0.1:5555'
def run_parent():
ctx = zmq.Context()
sock = ctx.socket(zmq.PUSH)
sock.bind(ADDR)
for i in... | [
"gistshub@gmail.com"
] | gistshub@gmail.com |
222a24bf377055ea4f4cd7687dc139e8332a4893 | 948a8fe4a46bbdda00f3af5d7a999092fd546808 | /src/QPS_simlearning.py | 01fd2a4dbf239f1fd79955040d1a9cf7af07bda0 | [] | no_license | wencanluo/QuantitativeSummarization | fcaf072566f0a4907f383042af0054ed1c47d82e | 8c34923e3447e517ee99fc00fda2bd81b34e25a0 | refs/heads/master | 2020-12-21T01:07:37.842895 | 2017-05-11T01:06:02 | 2017-05-11T01:06:02 | 56,019,382 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,737 | py | import sys
import re
import fio
import xml.etree.ElementTree as ET
from collections import defaultdict
import random
import NLTKWrapper
import SennaParser
import porter
import annotation
import os
import CourseMirror_Survey
import OracleExperiment
import json
from CourseMirror_Survey import stopwords, punctuations
impo... | [
"wencanluo.cn@gmail.com"
] | wencanluo.cn@gmail.com |
2868e0431b4695d3c0c1bf5f09a50754ff439a4e | 983f77449bbea7ae1993a93d7f4431f0f07193f0 | /lab/agent_exercising/model.py | 3593f4708457d6223c507bb9e459248134d29983 | [] | no_license | johnholl/TDnets | 09d45f2bab138639e3be107d2e44df01533c10c3 | 00afc8a5ad412047c658deed2f487a98f062788b | refs/heads/master | 2020-06-19T06:41:42.159903 | 2017-03-13T13:02:11 | 2017-03-13T13:02:11 | 74,916,539 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,714 | py | import numpy as np
import tensorflow as tf
import tensorflow.contrib.rnn as rnn
def normalized_columns_initializer(std=1.0):
def _initializer(shape, dtype=None, partition_info=None):
out = np.random.randn(*shape).astype(np.float32)
out *= std / np.sqrt(np.square(out).sum(axis=0, keepdims=True))
... | [
"johnholl@umich.edu"
] | johnholl@umich.edu |
3a02692131fd90bae63c99554320c5133209474e | 26126f17914650c004b09013d12866cb4104703e | /Trabalhos/Matheus/ex6.py | 3a64aef85160b5644307109413d78e7785ea36f0 | [] | no_license | rogerroxbr/Treinamento-Analytics | b422c5e20db458186ff2ca475aaea58209b88f17 | a59a1bf0380cb3ce28090330ce293c549a6da5d6 | refs/heads/master | 2023-08-17T01:04:25.700227 | 2021-09-30T11:00:20 | 2021-09-30T11:00:20 | 404,708,898 | 3 | 1 | null | 2021-09-14T11:13:23 | 2021-09-09T12:13:30 | Python | UTF-8 | Python | false | false | 411 | py | typesOfPeople = 10
x = f"There are {typesOfPeople} types of people."
binary = "binary"
doNot = "don't"
y = f"Those who know {binary} and those who{doNot}."
print(x)
print(y)
print(f"I said: {x}")
print(f"I said '{y}'")
hilarious = False
jokeEvaluation = "isn't that joke so funny?! {}"
print(jokeEvaluation.format(hil... | [
"matheus.felipe@brf.com"
] | matheus.felipe@brf.com |
8a7c2bf0d5885b48aeeca6bc47e6a22239786f1d | 42844cba683edbc101fb709a91f63a08a6c11ccb | /next_greater_element_i.py | 1d72b36ddf4aeb63fc2e111e294a21b674773ca1 | [] | no_license | DucksOnFlame/LeetCodePy | 89c6e2cd471f4a8441efc7eb7603f8f6ee39b98a | e364742240c426475e8b7c47c69164838b20fc50 | refs/heads/master | 2021-06-28T03:33:34.591693 | 2017-09-16T09:36:45 | 2017-09-16T09:36:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 548 | py | class Solution(object):
def nextGreaterElement(self, findNums, nums):
results = []
length = len(nums)
for num in findNums:
index = nums.index(num)
found = False
for i in range(index + 1, length):
if nums[i] > num:
resu... | [
"bartlomiej.styczynski@gmail.com"
] | bartlomiej.styczynski@gmail.com |
16fa09d98ae94c03f350ec91e5c2d5e11ab9d306 | c3066292a71288b0b2597e6cc89000603d16412e | /capstone/activity-5.py | 0fcd5f7a7bdef35b58756937d13a76047a427601 | [] | no_license | valleyjo/cs0008 | db6727f02d7543a047bb522ee34c8be4d2a6715f | fa9b0181b268626250c241c7e4c08c99b4483acf | refs/heads/master | 2021-01-01T18:48:48.868221 | 2014-04-17T19:35:26 | 2014-04-17T19:35:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,410 | py | #Email: amv49@pitt.edu
#Name: Alex Vallejo
#ID: 3578411
#Date: 2/19/2014
#Description: This program is the game of craps!
from dice import *
from valid_input import *
def welcome():
user_name = input("Enter your name: "); #Get the user's name
print("\nWelcome " + user_name + "!"); #Print a nice welcome message
... | [
"vallejo.alex@gmail.com"
] | vallejo.alex@gmail.com |
99e8f87d77592c1ee10ddceb41fe07f5fd5cd44d | d8d45938c39b9b51a77264eddb77210a4894bfdd | /kml/io.py | 722a1f07eaf5ac99f8596b75578f98234dca1cf7 | [] | no_license | fiveham/map-tools | f331b4059e6608c7131b67ae5b654d412bff0b32 | 469dc6141d1f07f20bfac025f8e365301564dd05 | refs/heads/master | 2020-05-16T11:22:37.325916 | 2019-12-26T18:32:26 | 2019-12-26T18:32:26 | 183,014,239 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,852 | py | from bs4.element import CData, NavigableString, Tag
from bs4 import BeautifulSoup
_OPEN = open
def open(filepath, encoding=None):
"""Read `filepath` and parse it as a KML document (bs4.BeautifulSoup).
:param filepath: the name of or relative path to a KML file
:param encoding: optio... | [
"noreply@github.com"
] | fiveham.noreply@github.com |
588e197a43161c84c3ccafbfff2892dc41deacec | 9a85c309adab7bd0c13986a5ddb7ebc1136fc5b9 | /globals.py | cdada65722203ad5eb77324e56fa3506ae448d6e | [] | no_license | ivanovsaleksejs/leds_rpi | f32c4541b7d83c3e78ab6e28bc79046f5998c63c | 19f8aec4141b3266a4eccfd8017b63f32269bed6 | refs/heads/master | 2020-03-27T14:14:34.304980 | 2019-07-02T12:21:15 | 2019-07-02T12:21:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 556 | py | import json
# Returns public config
def dumpconf(config):
return json.dumps(readConf()[0])
def readConf():
# Load config file. Put secrets in separate variable
configFile = open('config.json', 'r')
config = json.loads(configFile.read().replace('\n', ''))
secrets = config["private"]
config = c... | [
"ivanovs.aleksejs@gmail.com"
] | ivanovs.aleksejs@gmail.com |
2f211ee9858ffddacd1a6b995f06cd8455450b80 | 4d9ce4ab1f0ce0a857f215edc2ffc99ce3b82623 | /tfx/orchestration/experimental/core/mlmd_state_test.py | 6faacc6cc12f8ce1e987bfdbb57b7de35f8efd41 | [
"Apache-2.0"
] | permissive | vpipkt/tfx | 448fd85a177f7e3a3a6dacf262eb0c93f459f534 | 42f4f4095ff3c3e23fe2ac1076c9a0fdfc631d23 | refs/heads/master | 2023-06-20T12:27:56.083959 | 2021-05-25T18:31:23 | 2021-05-25T18:33:12 | 370,820,614 | 0 | 0 | Apache-2.0 | 2021-05-25T20:31:22 | 2021-05-25T20:31:22 | null | UTF-8 | Python | false | false | 2,934 | py | # Copyright 2021 Google LLC. 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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"tensorflow-extended-nonhuman@googlegroups.com"
] | tensorflow-extended-nonhuman@googlegroups.com |
07369c480633eed0c086cb3990217e6ff4a0c039 | 12ce75fc994395c9eb54c6fe30c0fffc6ee19ee1 | /Algorithms/Implementation/beautiful-days-at-the-movies.py | 89e6156da316e89614692a55390bac58509d5cba | [] | no_license | RobinDeHerdt/HackerRank | aeb8c1f080b9d8a116f66a0fffb6fbdfd4f79076 | b7ce29783845d0edd83e7e196ffe599143005a5d | refs/heads/master | 2021-07-10T13:55:34.099852 | 2020-06-13T13:51:38 | 2020-06-13T13:51:38 | 132,801,390 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | #!/bin/python3
import os
def beautifulDays(i, j, k):
total_amount = 0
for date in range(i, j):
reversed_date = str(date)
reversed_date = int(reversed_date[::-1])
if (date - reversed_date) % k == 0:
# Date is considered beautiful
total_amount += 1
return t... | [
"robindh95@gmail.com"
] | robindh95@gmail.com |
12b8b281870c0126256289845c95a9ce92329691 | 40b977d7657bc735f3705efd790b45d95130e8d5 | /week16homeworkbeyza.py | 82c96065b12fa8cd3e8308f7f651917f223e5aec | [] | no_license | beizaa/16.Hafta-Odevler | 8449f6e8b38a8d3ea3d342b085497e21a406468d | dedaa91aee2f51b0d3e4a87219f012ee3331532c | refs/heads/master | 2020-08-05T19:44:19.031904 | 2019-10-03T20:23:08 | 2019-10-03T20:23:08 | 212,682,277 | 0 | 0 | null | 2019-10-03T21:18:47 | 2019-10-03T21:18:47 | null | UTF-8 | Python | false | false | 2,233 | py | ###################SCHERLOCK'S MATH
def squares():
q = int(input()) #burada birden fazla line icin nasil input alacagim
for q_itr in range(q):
ab = list(map(int, input().split())) #araligin basi a, sonu b olmali so b+1 yapiyoruz asagida
a = ab[0]
b = ab[1]
mylist = [i for i... | [
"beyzaydin007@gmail.com"
] | beyzaydin007@gmail.com |
61568db31e9d7b2d8fa0d2c395d9da0c6d81ca53 | f4b8c90c1349c8740c1805f7b6b0e15eb5db7f41 | /starrez_client/models/transaction_dispute_item.py | d514f910513b38e744435d4c97d3d923c2655c8b | [] | no_license | CalPolyResDev/StarRezAPI | 012fb8351159f96a81352d6c7bfa36cd2d7df13c | b184e1863c37ff4fcf7a05509ad8ea8ba825b367 | refs/heads/master | 2021-01-25T10:29:37.966602 | 2018-03-15T01:01:35 | 2018-03-15T01:01:35 | 123,355,501 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,339 | py | # coding: utf-8
"""
StarRez API
This is a way to connect with the StarRez API. We are not the developers of the StarRez API, we are just an organization that uses it and wanted a better way to connect to it. # noqa: E501
OpenAPI spec version: 1.0.0
Contact: resdev@calpoly.edu
Generated by: https... | [
"fedorareis@gmail.com"
] | fedorareis@gmail.com |
91ce98caf5eb1d00a26968473e60714c1ab4630c | 19125a1bd5b1202ebafe3a26bf4b26de67d824f3 | /greenstreet/utils/sun.py | 943f71c01c0fe7009381d08c17fc983718f60586 | [] | no_license | qubixes/streetview-greenery | 06e1349172a3097628aa55e1d8088ef222f67552 | 0ddc40b646020fcf5c6d0becf433690b41f776a6 | refs/heads/master | 2021-08-16T21:40:18.881801 | 2021-07-12T10:37:03 | 2021-07-12T10:37:03 | 184,270,288 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,692 | py | #!/usr/bin/env python
import math
from datetime import datetime
from dateutil import tz
def degree_to_meter(avg_lat):
R_earth = 6356e3 # meters]
long_fac = math.pi/180*R_earth
lat_fac = math.pi*math.cos(math.pi*avg_lat/180.0)/180*R_earth
return (lat_fac, long_fac)
def fast_coor_to_dist(lat_1, long... | [
"noreply@github.com"
] | qubixes.noreply@github.com |
ebe1d1196f0d572fd31fdb6a921ed3cd5958e996 | a8b0b3c20ea24000dd6820e74808d4ae939ea5b1 | /source/accounts/models.py | 5b55a9687c456144da5a63e7807f6deeb16446fc | [] | no_license | azamat3522/exam-8 | 8ac2ad82e5601d99859e6843e19e69c1ff64df1e | 71d128bbaec02d886f0300de4fa8cf8f32c82902 | refs/heads/master | 2023-04-28T21:46:15.533595 | 2019-11-16T13:21:54 | 2019-11-16T13:21:54 | 222,100,891 | 0 | 0 | null | 2023-04-21T20:40:48 | 2019-11-16T13:08:26 | Python | UTF-8 | Python | false | false | 623 | py | from django.contrib.auth.models import User
from django.db import models
class Profile(models.Model):
user = models.OneToOneField(User, related_name='profile', on_delete=models.CASCADE, verbose_name='Пользователь')
birth_date = models.DateField(null=True, blank=True, verbose_name='Дата рождения')
avatar =... | [
"User@Users-MacBook-Pro.local"
] | User@Users-MacBook-Pro.local |
f7d962573d6c4eeb3ac79b56b3303e17fe27a433 | 8afb5afd38548c631f6f9536846039ef6cb297b9 | /_VSCODE-extensions/vscode-python/pythonFiles/runJediLanguageServer.py | a473bf76b3a84a8c79ff0f8fd1ea6b94dcf2f432 | [
"MIT"
] | permissive | bgoonz/UsefulResourceRepo2.0 | d87588ffd668bb498f7787b896cc7b20d83ce0ad | 2cb4b45dd14a230aa0e800042e893f8dfb23beda | refs/heads/master | 2023-03-17T01:22:05.254751 | 2022-08-11T03:18:22 | 2022-08-11T03:18:22 | 382,628,698 | 10 | 12 | MIT | 2022-10-10T14:13:54 | 2021-07-03T13:58:52 | null | UTF-8 | Python | false | false | 451 | py | import re
import sys
import os
# Add the lib path to our sys path so jedi_language_server can find its references
EXTENSION_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.join(EXTENSION_ROOT, "pythonFiles", "lib", "python"))
from jedi_language_server.cli import cli
# Trick... | [
"bryan.guner@gmail.com"
] | bryan.guner@gmail.com |
ed59af213a3ddd53d04f70db62293d2e5eec2275 | 058aaa6d6ac3b03cf30fb5fccf443ef16aa90453 | /filter.py | ff6ad73fefa0da9d2beb874309b18aeb14acaf77 | [] | no_license | hadyer2/fasttext_embed | 74cd1a78720d37b273aa05151752b77991c4bd54 | c374b928d9e4ee234b09fea1c4f8db932273f8ac | refs/heads/main | 2023-01-09T12:44:04.068564 | 2020-11-05T02:47:30 | 2020-11-05T02:47:30 | 310,170,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | import sys
import os
import json
input_folder = sys.argv[1]
output_file = sys.argv[2]
output_list = []
for file in os.listdir(input_folder):
file_contents = open(input_folder+'/'+file).read()
print(file)
tweet_list = json.loads(file_contents)
for tweet in tweet_list:
try:
if tweet['... | [
"noreply@github.com"
] | hadyer2.noreply@github.com |
0943ae201a1571e0b8c8803d9ed60f43beef1bc7 | 0b358a0d64eb03655c030b36c0ae87880b153951 | /mmdet/models/dense_heads/corner_head.py | 327094bad674975cefd305d5ab08d6505ed45dca | [] | permissive | jshilong/DDQ | db05ff309d63316c62faa59b28c66d65eef973d1 | de9331e4579aaafab4d69e3a9a3c6638efc5392c | refs/heads/main | 2023-06-03T15:02:09.949907 | 2023-05-24T03:32:12 | 2023-05-24T03:32:12 | 498,974,099 | 199 | 6 | Apache-2.0 | 2022-06-02T05:01:53 | 2022-06-02T03:10:25 | null | UTF-8 | Python | false | false | 48,420 | py | # Copyright (c) OpenMMLab. All rights reserved.
from logging import warning
from math import ceil, log
import torch
import torch.nn as nn
from mmcv.cnn import ConvModule, bias_init_with_prob
from mmcv.ops import CornerPool, batched_nms
from mmcv.runner import BaseModule
from mmdet.core import multi_apply
from ..build... | [
"2392587229zsl@gmail.com"
] | 2392587229zsl@gmail.com |
38b90d79ce9d9eedfac0869b24130ae48261dec5 | c8e87ed447ba8e1ac25cf5a1b6e6a9a7bc6f8ca0 | /python/test.py | e5346ad04fac69122c4faa7921581df0f86f3574 | [] | no_license | hernando/libsonata | efd9476ee89fd542bffea620bcb747ccca8df506 | 3567b373529e32ebe9eec7d8a1324a970bbdac53 | refs/heads/master | 2020-04-29T00:05:23.937449 | 2018-11-20T13:56:42 | 2018-11-21T13:51:26 | 175,680,830 | 0 | 0 | null | 2019-03-14T18:47:46 | 2019-03-14T18:47:45 | null | UTF-8 | Python | false | false | 3,632 | py | import unittest
from sonata import *
class TestSelection(unittest.TestCase):
def test_basic(self):
ranges = [(3, 5), (0, 3)]
selection = Selection(ranges)
self.assertTrue(selection)
self.assertEqual(selection.ranges, ranges)
self.assertEqual(selection.flat_size, 5)
... | [
"arseny.povolotsky@epfl.ch"
] | arseny.povolotsky@epfl.ch |
029cf01ff41bacef7626fa5dd1e70da81a945288 | a4f192ae2d8f53061df82d37505a06ebe09903da | /NeuralStyleTransfer/style_transfer.py | 00af79e7abcb065f2b11ff7310b1d24c4a7e2094 | [
"MIT"
] | permissive | MartinBCN/NeuralStyleTransfer | db2a09b9e0ac496c27f2305254f07208a15f0361 | e681257897643e18acefe3dc194551d2b08c2581 | refs/heads/main | 2023-02-27T19:38:52.009954 | 2021-02-06T18:56:25 | 2021-02-06T18:56:25 | 336,191,565 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,436 | py | from __future__ import print_function
import os
from typing import List
import torch
import torch.nn as nn
import torchvision.models as models
from torch import Tensor, optim
from NeuralStyleTransfer.content_loss import ContentLoss
from NeuralStyleTransfer.normalisation import Normalization
from NeuralStyleTransfer... | [
"martin-cleven@gmx.net"
] | martin-cleven@gmx.net |
b986eb7743e180367024e6fec8f37a1dcba074a2 | 192874fd96861ceb1864a71bf6f13932cc017d63 | /hue/desktop/core/ext-py/kombu-2.5.10/kombu/utils/__init__.py | 532fb883b49d9ef2073274f95e24dbbd98bbbd8a | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | OpenPOWER-BigData/HDP-hue | 1de3efc0ac773f1e7b1acd03675f11b65c6f477d | 23719febdaae26c916bdc9d0712645987ae7e0e4 | refs/heads/master | 2021-01-17T17:19:31.157051 | 2016-07-18T19:44:10 | 2016-07-18T19:44:10 | 63,631,863 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,546 | py | """
kombu.utils
===========
Internal utilities.
"""
from __future__ import absolute_import
import importlib
import random
import sys
from contextlib import contextmanager
from itertools import count, repeat
from time import sleep
from uuid import UUID, uuid4 as _uuid4, _uuid_generate_random
from .encoding import s... | [
"afsanjar@gmail.com"
] | afsanjar@gmail.com |
915e34925e1f50d0f7b5af4c7c49bce1281ae603 | 4f0f8990ff83745b9944ee4e06ecfa44874be325 | /test_metrics.py | 87273edddde013dbde2463a48c1155e4381db81a | [] | no_license | cy5e/lm_proj | 300def02e9dc1113fa77e2b9d4d81c8640404847 | af2ae6a38399c8d6d1db2cf8a3b4ceba7badccbb | refs/heads/master | 2020-03-19T13:09:06.762847 | 2018-06-08T03:55:24 | 2018-06-08T03:55:24 | 136,563,815 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,882 | py | import numpy as np
import sys
import copy
probs_file = sys.argv[1]
gts_file = sys.argv[2]
probs = np.load(probs_file) # N*6151 matrix
gts = np.load(gts_file) # N*6151 one-hot matrix
reals= np.argmax(gts,axis=1)
classes = set()
for label in reals:
classes.add(label)
cl_to_label = {} # dict having mapping from in... | [
"32782504+cy5e@users.noreply.github.com"
] | 32782504+cy5e@users.noreply.github.com |
0046028dca7949cbaffeae14736998ad1ac8db95 | d69af4729640549a09d61b4ccef42dd76a0f4a90 | /pyjfuzz/core/pjf_external_fuzzer.py | da901978b63292244d321c502cf496f558bdeaa4 | [
"MIT"
] | permissive | rongqinglee/PyJFuzz | 86266a440df0fe7f15bcc77cb58b13b1f9d2263d | 615e243ef1f1358d8adcd4dfa057c5101cea90a5 | refs/heads/master | 2021-06-18T16:26:56.553846 | 2017-06-22T13:32:04 | 2017-06-22T13:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | """
The MIT License (MIT)
Copyright (c) 2016 Daniele Linguaglossa <d.linguaglossa@mseclab.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation th... | [
"d.linguaglossa@consulthink.it"
] | d.linguaglossa@consulthink.it |
f8cf9963e0fea96f539710e967763d67675c54aa | ec4664e6b14a426bb34808ac40047703872af5f3 | /date.py | 1474e6880ad0f5a79cc30a2f1b85375cf74c60a5 | [] | no_license | djh-sudo/data-visualization | 4ec50afe7dbc79f68fda655f93600145060a7ce9 | 597c49573ceecb334435f6869905e80cb44b07a4 | refs/heads/main | 2023-06-24T16:10:50.846635 | 2021-07-23T14:41:32 | 2021-07-23T14:41:32 | 388,826,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,477 | py | import random
import datetime
import handleExcel as handle
import pyecharts.options as opts
from pyecharts.charts import Calendar,Page
# Page.save_resize_html("render.html",cfg_file='chart_config.json')
def getData():
sh1 = handle.readByIndex('./stepover.xls', 4)
col = handle.readSheetAllContentByCo... | [
"noreply@github.com"
] | djh-sudo.noreply@github.com |
7eaa11fb107f3c92f84e5d9f2af1744a99ffae2b | 0f384dcf55722c664f7dc46c2176c20b97fbafa5 | /utils/metrics.py | 3bbb3cb2b0c822b2b4b3bd92e775f1ffca6ec8ce | [] | no_license | Mingxiao-Li/Modeling-Coreference-Relations-in-Visual-Dialog | a516f7bf6b58a16b24f6ec51932c435511bc7d4a | e45f0a6c98b939ba6371fe5df0a8c231f71385be | refs/heads/master | 2023-04-11T11:18:37.068861 | 2021-04-21T13:02:03 | 2021-04-21T13:02:03 | 332,660,992 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,477 | py | """
A Metric observes output of certain model, for example, in form of logits or
scores, and accumulates a particular metric with reference to some provided
targets. In context of VisDial, we use Recall (@ 1, 5, 10), Mean Rank, Mean
Reciprocal Rank (MRR) and Normalized Discounted Cumulative Gain (NDCG).
Each ``Metric``... | [
"eric.lee.xiao@gmail.com"
] | eric.lee.xiao@gmail.com |
8d5f1d2cdc30cdbc8d5132fb442f67a1249267a4 | 9a1d36b9ec03464de74b4074fc1d70d5cadce73e | /src/both.py | eaab9de003af719e39eaf6deea92d968c9487598 | [] | no_license | birajdahal/PyChat | aba197e4bd5d80f5f89c71606ea2c8ae304f6b0a | fe6cee73dfb7dd6ffef0dee0ddf8d474f7904795 | refs/heads/master | 2021-06-21T18:49:14.821725 | 2017-07-26T20:03:10 | 2017-07-26T20:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,215 | py | import socket, sys, threading, queue, os
from encryption import *
def receive(connection, privk=None):
message = connection.recv(3)
if not message:
raise ConnectionError("Connection ended")
os._exit(0)
remaining = int(message.decode())
message = b''
try:
while remaining > ... | [
"bdahal@g.clemson.edu"
] | bdahal@g.clemson.edu |
59dbd4c1d9bc4461b445620b7ad952709f2b33e1 | 1c54c285e89d668b771554df65dbdc5307d1aa0a | /smallest-multiple.py | 3308096eb8d5b035ecb343e11087728edfce6ab7 | [] | no_license | adamcfro/project-euler-solutions | 2c825d580e9aec3ebe393f6ab05a1ad2ab742131 | 3bc63552619a3d5cc73163b2340ad4e6b0a1a6d7 | refs/heads/master | 2022-09-05T16:07:56.090798 | 2022-08-06T13:20:31 | 2022-08-06T13:20:31 | 153,854,428 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | def smallest_multiple():
'''This program finds the smallest number than is evenly divisible by all of the numbers from 1 to 20.'''
i = 1
num = 1
while i < 10:
if num % i == 0:
i += 1
else:
num += 1
i = 1
return num
print(smallest_multiple())
# ... | [
"adamcfro@gmail.com"
] | adamcfro@gmail.com |
ae1a4e70e93a50b68f9c89b4e9f26d6c8ebb51fd | c9299c10a175a8d925839adc58bbc7f86d4650f5 | /tracker/apps.py | b74e83baa0ca93cb1542d3e047c81241d8fa30c1 | [] | no_license | bartwroblewski/strava_gear_wear_tracker | e2e082a04cfdd226b24f59d64f1a0651224eba68 | e12e3cd559d096668525ce2e0bd6047d3d508c4c | refs/heads/master | 2023-09-04T13:58:42.909991 | 2023-08-20T18:52:06 | 2023-08-20T18:52:06 | 296,386,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 88 | py | from django.apps import AppConfig
class TrackerConfig(AppConfig):
name = 'tracker'
| [
"barti.wroblewski@gmail.com"
] | barti.wroblewski@gmail.com |
b59c150b00f4f258483032fd787f347eff062302 | 229e1e103bc24dda4d8fef54b762009e19045a45 | /configs/nowd/gc/res101_d_gc.py | ad3d4ce5f80de72c915fef67bf6c818a89d6128a | [
"MIT"
] | permissive | yinmh17/CCNet | c0be71919877c0d44c51cd8fd8ad8f644ef618a6 | d5e90fe5ccfa16389fd25bdd3e2160ffe2dfbd22 | refs/heads/master | 2020-06-18T13:03:46.781284 | 2019-11-12T06:26:59 | 2019-11-12T06:26:59 | 196,311,075 | 1 | 1 | MIT | 2019-07-21T19:48:39 | 2019-07-11T03:10:01 | Python | UTF-8 | Python | false | false | 1,097 | py | model = dict(
type='basenet',
pretrained='',
backbone=dict(
type='ResNet',
depth=101,
num_stages=4,
block_num=[3, 4, 23, 3],
),
att=dict(
with_att=False,
type='glore',
att_stage=[False,False,True,False],
att_pos='after_add',
at... | [
"yaozhuliang13@gmail.com"
] | yaozhuliang13@gmail.com |
07d9768285b5f23b8c2bd34060f52da9cea03416 | c2a168ec9e91415eeadd53ba6042e614c3e8460c | /test.py | 47261bc4a60b18fa1e1040628cecc70dc7a3d94c | [] | no_license | LiYanChalmers/BoschProductionLine | 530098a9de0d08332511b24a31cdd4b4ec5473fb | de864e55be0e8cd174ccacb06afc77e3dc9ec42a | refs/heads/master | 2020-03-21T20:29:14.134812 | 2018-09-03T08:10:08 | 2018-09-03T08:10:08 | 139,010,159 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 39 | py | import xgboost as xgb
print('xgboost') | [
"li.yan.chalmers@gmail.com"
] | li.yan.chalmers@gmail.com |
cfce560a7127bc84dcbc5306a488ae7911522e70 | 086a894b060a16adf46f08118f72c85b3861da63 | /music_controller/frontend/apps.py | c46657a9204ae10fb39cdaeeb14b6662b70eb2d6 | [] | no_license | tib-source/House-Party-Fullstack-practice | c650ced51d7f108c3acfed9a51329ae4c4de409f | 80baf8f5893e89eb688a86dc2bdb65d1c692c6fe | refs/heads/master | 2023-08-25T04:52:36.312353 | 2021-11-07T09:29:57 | 2021-11-07T09:29:57 | 413,433,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class FrontendConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'frontend'
| [
"tibebe1234t@gmail.com"
] | tibebe1234t@gmail.com |
4701c0faa1cfafc48a1f8a72ab04e9a4dd53dae9 | def7ce6778e1b03938f82394ff7b800e8bdc37e3 | /web-app/AutoTomato.py | 86dcd44d7c6b17c67d609ca110458fb79e4833af | [
"MIT"
] | permissive | JeremyEudy/AutoTomato | b37059c74156283d87764d3c4079a0e7f714cb2d | 393b5e0cd9e9f6468ed7554087f6e6b7ec655198 | refs/heads/master | 2020-05-01T05:56:44.443895 | 2019-03-25T18:06:06 | 2019-03-25T18:06:06 | 177,316,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296,751 | py | import tensorflow as tf
from tensorflow.keras.models import load_model
from tensorflow import keras
import numpy as np
import pandas as pd
FILENAME = 'files/script.txt'
word_to_id = {'3po': 0, 'disgusting': 1, 'idea': 2, 'jug': 3, 'rafters': 4, 'pants': 5, 'juno': 6, 'noose': 7, 'townspeople': 8, 'sawing': 9, 'n146':... | [
"noreply@github.com"
] | JeremyEudy.noreply@github.com |
7f0d8ddfb5d1865d4d1c3ef2676385f16418ee94 | 332b9de1b4679c95303a36cfa6edb5109b8895d6 | /categories/adminx.py | e8121eb6dac558e0744c19aec26982c43e634944 | [] | no_license | centyuan/centyuan-blog | 3c17bff07c62ce01140367ef9c4522a46beda2f8 | 8911a2308ecbcd838fc07bee5aa18f52bf7c38be | refs/heads/master | 2022-11-26T13:26:52.744820 | 2019-02-28T09:11:46 | 2019-02-28T09:11:46 | 148,744,820 | 0 | 0 | null | 2022-11-22T03:12:46 | 2018-09-14T06:23:30 | JavaScript | UTF-8 | Python | false | false | 352 | py | #-*- coding:utf-8 -*-
#author:centyuan
#@time:18-11-8 下午5:17
import xadmin
from .models import CategoriesModel
class CategoriesAdminx(object):
list_display=['name','created_time','numbers','get_num']
search_fields=['name','numbers']
list_filter=['name','created_time','numbers']
xadmin.site.register(Categ... | [
"centyuan@outlook.com"
] | centyuan@outlook.com |
dd922c4631d1621cba552c04e7a3a18198c51259 | 728ba26a9f26f706211124e8532c839d0fc155b1 | /corpus/apps/user/urls.py | 270c4499c5d56c53a6fe208ce07fc6251aacfd13 | [] | no_license | git00000/corpus | 62eeeac4350ea3ff4706ea61d10d18dfe810c5be | 9341a6d411db27295e3ac60a8308a116dac5fa59 | refs/heads/master | 2023-01-10T02:43:17.987180 | 2019-10-15T15:59:43 | 2019-10-15T15:59:43 | 214,669,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 938 | py | from django.urls import path
from .views import (
UserProfileView,
TranslationTaskUserView,
TranslationTaskNextItemAPIView,
TranslationTaskItemPhraseSavingAPIView)
app_name = "user"
urlpatterns = [
path(
'',
... | [
"mohamedibrahima@protonmail.com"
] | mohamedibrahima@protonmail.com |
e1cb23bb5b50d46abe817c714906c781f2609d32 | dd0de36f03f313efb28cd52dc25a10a7c5c7f10b | /midi_inverter/midi_inverter.py | 61b2f3f97969f8d262f4abbf87115be6dc180105 | [
"ISC"
] | permissive | ebabel-eu/midi-inverter | ae6bfb87dc7ac291b40829a1fae57141b318472d | b1a018e47056e525c77613afb72acd9a42e9fbf4 | refs/heads/master | 2020-12-05T01:17:13.081323 | 2017-02-23T03:06:06 | 2017-02-23T03:06:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,175 | py | import mido, tempfile
def invert_around_middle(note, middle_note):
return note - ((note - middle_note) * 2)
def invert_midi(infile, invert_drums=False):
mid = mido.MidiFile(file = infile)
# Get highest and lowest notes
highest_note = -1
lowest_note = 1000
first_note = None
for track_num, ... | [
"dan@dancusher.com"
] | dan@dancusher.com |
e758c96bcacadac46fa2e1e9c9e97c4040b4e08c | 85163b7a3a7d1e8f5867ef4b0b03a4fb5f8df54c | /control_and_ai/DDPG/train_ddpg_gpu.py | b8f73f1291c3559a49c941df8362c6591ef5459b | [] | no_license | abhinavkssk/rocket-lander | 63a1da6f158905c3e608e61136586cf2e89bf54b | f546f227c2f9d5cdb4cd02f0f1c8999df2a03a20 | refs/heads/master | 2021-05-06T14:24:37.632392 | 2017-08-10T09:41:53 | 2017-08-10T09:41:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,562 | py | from DDPG.ddpg import DDPG
from DDPG.train import set_up
from DDPG.train_third_model_normalized import train as train_third_model_normalized
from constants import DEGTORAD
from control_and_ai.DDPG.exploration import OUPolicy
from rocketlander_v2 import RocketLander
FLAGS = set_up()
action_bounds = [1, 1, 15*DEGTORAD... | [
"reuben.ferrante@gmail.com"
] | reuben.ferrante@gmail.com |
a76ac90843514fd223703c25311d3db82fdcb1d9 | fb86f0dca6e525b8a8ddb63f10b8d220ddd7f7fe | /test/functional/sapling_changeaddresses.py | f8aa5d49517df753cb930c26fe101290083c7303 | [
"MIT"
] | permissive | ORO-mlm/UNO-Core | 14fcdb3c2db4bde256e48ea661ada61579ccf403 | d6e6769ce57466cfc9e7cab681eab880cdb8e3e8 | refs/heads/main | 2023-06-16T08:21:00.808606 | 2021-07-12T07:08:35 | 2021-07-12T07:08:35 | 383,350,655 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,141 | py | #!/usr/bin/env python3
# Copyright (c) 2019 The Zcash developers
# Copyright (c) 2020 The PIVX developers
# Copyright (c) 2021- The UNO developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or https://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework... | [
"brandon2davincci@gmail.com"
] | brandon2davincci@gmail.com |
e71c89dfca11bf541afd663e30de86f024c6fb9e | 33e472f39027ac49a2297b740aff4e5989a15c4b | /pytypo/pytypo.py | 9fffa9e72e0e9b2fcce114a3f5f4bccc1fde6ab9 | [
"MIT"
] | permissive | pombredanne/pytypo | 96617e606ad12c21be3b4c09a9b8ec4d3c364366 | 9d6c3f588f86ec98971807a1037c55c8a4030e8b | refs/heads/master | 2021-01-18T14:42:20.112992 | 2017-11-22T22:49:56 | 2017-11-22T22:49:56 | 62,485,349 | 1 | 0 | null | 2017-11-22T22:49:57 | 2016-07-03T07:05:52 | Python | UTF-8 | Python | false | false | 1,458 | py | # -*- coding: utf-8 -*-
from sys import version_info
import re
from . import _conv_table
re_symbol = re.compile("[^a-zA-Z0-9']{2,256}$")
if version_info < (3, 0, 0):
range = xrange
def cut_repeat(text, threshold):
"""Reduce repeated characters until threshold
Param:
<str> text
<int> thre... | [
"yknikgm@gmail.com"
] | yknikgm@gmail.com |
82b7bb23549063fd6da0b3b4d5e445361ee671fa | 18d74b7044f83f6dfca27f037cb3ad651f100ee1 | /ガウスザイデル法.py | 8a2001236998723768b3edfa8681a537a732a214 | [] | no_license | youngstar152/Numerical-Analysis | 539e02a90f29df2327a0ec9a6d11c11fe8f939f4 | 65d48a2134207a88797cb2de3af0c4acbc6a8a0a | refs/heads/main | 2023-05-29T06:14:07.803221 | 2021-06-13T13:07:42 | 2021-06-13T13:07:42 | 376,480,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 868 | py | import math
def yakobi(a,y):
error = pow(10,-6)
length = len(y)
x = [0] * length
x2 = [0] * length
count = 0
while True:
sum=0
x2[0] = (y[0] - a[0][1]*x[1] - a[0][2]*x[2]) / a[0][0]
x2[1] = (y[1] - a[1][2]*x2[2] - a[1][0]*x[0]) / a[1][1]
x2[2] = (y[2]... | [
"noreply@github.com"
] | youngstar152.noreply@github.com |
97bdd84951ddab4fee9fb5bee69c5773d03d9543 | 39887d6b15bc6227b4fdf2b75ad180ceb5e950d1 | /TestBlog/blog/forms.py | e39295d3a0a488eec4a381157dcbc9d845d40d21 | [] | no_license | vonxar/mycode | 95d060a2d6eecdc72d503ea4fe2ae18a798d41f0 | c848fcc62b4d8005d9509b3a5d85bd1364558d85 | refs/heads/master | 2022-12-05T18:47:56.313598 | 2020-09-01T12:47:39 | 2020-09-01T12:47:39 | 289,490,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | from django.forms import ModelForm, TextInput, Textarea
from django import forms
from django.conf import settings
from django.core.mail import BadHeaderError, send_mail
from django.http import HttpResponse
from blog.models import Comment, Reply
class CommentForm(ModelForm):
class Meta:
model = Comment
... | [
"p02d1108@gmail.com"
] | p02d1108@gmail.com |
c99e55694550686a94afe335dad8b6cf9520cbf2 | 15e668cbbe5751156d9ec7925a94ccb4dea0c472 | /finalexam/urls.py | d2fd409b12f3217e2ac029b84f5fbdb82446c68b | [] | no_license | hamzanawaz31997/exam | b8cab7cb9c90970c4b3d2eedec49f5fb49b830dd | 65c99517cc6e1961731b7d04afb94a49d2bcb696 | refs/heads/master | 2020-05-22T14:54:36.828101 | 2019-05-13T10:24:03 | 2019-05-13T10:24:03 | 186,396,045 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 163 | py | from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path('', include('exam.urls')),
]
| [
"hamzanawaz31997@yahoo.com"
] | hamzanawaz31997@yahoo.com |
88502bd6321b55185ed3f16746ae614c21a1f572 | 83534233897a52087f3758706a63f0c1cf46e79e | /arrays/130_SurroundRegions.py | 5f68755855610da0a31d04d5cd2105d7969c0a38 | [] | no_license | Jayesh97/programmming | 2a2bf1af5689e421774a40b0f1db5f123722f603 | 2b68a9a863207061d44dc50e0fd533e28eb2e010 | refs/heads/master | 2020-04-29T15:10:12.371878 | 2020-01-15T22:32:30 | 2020-01-15T22:32:30 | 176,219,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,184 | py | board = [["X","X","X","X"],
["X","O","O","X"],
["X","X","O","X"],
["X","O","X","X"]]
def surround(board):
if not board:
return
m = len(board)
n = len(board[0])
def expand(i,j):
neighbors = [(1,0),(0,1),(-1,0),(0,-1)]
ans = []
for (x,y) in neighbors:
r = i+x
... | [
"jayesh5397@gmail.com"
] | jayesh5397@gmail.com |
014921c7ff08df286253143df4ec0c42b80ba68d | 70b751bd12645fbcd47adec44b7c2e9dfb96e4c0 | /Twitter_Clustering_Model.py | edefe81a1c3b39ce4544ac74ae61b70879d50ae0 | [] | no_license | pdmnvj/Samples | 39fd4424f9dfbb664d4961edecd402991d934278 | d2c4759bec23dc0a8afe1e4e333f93fac8ed09a6 | refs/heads/master | 2020-03-19T12:26:17.377026 | 2018-06-08T20:54:02 | 2018-06-08T20:54:02 | 136,517,112 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,446 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 25 20:39:16 2017
@author: akshp
"""
import tweepy
from tweepy import OAuthHandler
from tweepy import Stream
from tweepy.streaming import StreamListener
import json
import re
import nltk
from nltk.tokenize import word_tokenize
from nltk.corpus import stopwords
import stri... | [
"padmini@nealanalytics.com"
] | padmini@nealanalytics.com |
9669e42fb9711079f8410219882d8ad76a059912 | 49c872af9455f1e3663b8c250c9375852a28ce29 | /cart/contexts.py | c13f189d474b58fd4a927a9c7e609aca0c0dc461 | [] | no_license | Daanivd/msp4-unicornattractor | 4917a9e8e8188c71f8b0aa148d289b194d250247 | 86ca2d68cecd2f002545e369cf4031bf74126e4c | refs/heads/master | 2022-12-13T05:17:39.872688 | 2019-08-15T15:27:49 | 2019-08-15T15:27:49 | 195,424,511 | 0 | 1 | null | 2022-12-08T05:51:06 | 2019-07-05T14:39:19 | HTML | UTF-8 | Python | false | false | 595 | py | from django.shortcuts import get_object_or_404
from features.models import Feature
def cart_contents(request):
"""
Ensures that the cart contents are available when rendering
every page
"""
cart = request.session.get('cart', {})
cart_items = []
total = 0
for id, contribution in c... | [
"ubuntu@ip-172-31-35-5.ec2.internal"
] | ubuntu@ip-172-31-35-5.ec2.internal |
2ed6f964e8ae60b2213f6ebac2a9ea76990a1b32 | 530deb444cb7ff34368b64cd93f23d480e53902a | /20170913_Googleplace_api.py | 71305064f1ebdefd3c9b3a16437da39c758e7b36 | [] | no_license | kuonumber/crawling | 083b9f21e05f56da74c9884d8e337a893406006f | 8a4572d87526edf154fd203cae144796547a1a47 | refs/heads/master | 2021-05-02T02:06:21.189296 | 2018-02-09T09:21:03 | 2018-02-09T09:21:03 | 120,852,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,370 | py |
# 目前用的python套件:
# Github 頁面:
# https://github.com/slimkrazy/python-google-places
from googleplaces import GooglePlaces, types, lang
import pandas as pd
google_places = GooglePlaces(api_key)
# 輸入自己api_key
radar_result = (google_places.radar_search(language = 'zh-TW',
lat_l... | [
"v7368858@gmail.com"
] | v7368858@gmail.com |
5769fa876cdfe6d70262c3cd07eb71f328ad565a | 9bd632b952e8935eb1bca638ed88a4aae8ba52b5 | /sp_report_invoice/models/account_invoice_line.py | 4bef2b5a9f8d77a1fc39295136965f442ae8a011 | [] | no_license | supercoopbdx/odoo-addons | e8d4e9272d742ffa640ddd25d6f000f5fa0d2b2e | 5107148ac5378fabe45138e539cdc8a134c12062 | refs/heads/master | 2022-05-20T11:51:57.014738 | 2022-03-10T17:45:29 | 2022-03-10T17:45:29 | 239,326,231 | 2 | 5 | null | 2021-02-11T10:59:33 | 2020-02-09T15:23:41 | JavaScript | UTF-8 | Python | false | false | 1,381 | py | # -*- coding: utf-8 -*-
from openerp import models, fields, api
import openerp.addons.decimal_precision as dp
class AccountInvoiceLine(models.Model):
_inherit = 'account.invoice.line'
price_subtotal_tax = fields.Monetary(string=' Total including tax',
compute='_compu... | [
"erivard@vps318408.ovh.net"
] | erivard@vps318408.ovh.net |
e771760e3355c5972d4ce3aa46d6b55a5cda00de | 3e17d21ff07674783981f261557e0803544d381f | /MajorProjectServerEnd/classes/migrations/0001_initial.py | e03aef7e1514f19abb91a768e3e2979cc0d17f7d | [] | no_license | meghalagrawal/minor_project | 46c4e4bf73402202e7cde2ddac5e3f64d0cd1491 | 95b58edac75b055a4216596226abbd47fe5812d3 | refs/heads/master | 2021-09-14T16:44:26.327567 | 2018-05-16T05:07:08 | 2018-05-16T05:07:08 | 113,749,310 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,321 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9.4 on 2018-04-03 15:44
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ClassDa... | [
"meghal.nit@gmail.com"
] | meghal.nit@gmail.com |
68b4c4489787df435861b44a9c27322813ccf918 | e74c7f7b55caf6a23429b66626a9246870e77c60 | /hw06/lab.py | 1efda010baeede137ebd3b32d9708197c6d33e68 | [] | no_license | dlui220/softdev-assignments | b4b7269bf361f99e2b7223d6c3e465a33066185b | 77999d52a55c5a9ad5f45e12e430aa4142f698cb | refs/heads/master | 2021-01-13T00:16:37.622979 | 2016-04-13T16:33:28 | 2016-04-13T16:33:28 | 51,458,144 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,779 | py | # nums = []
# for x in range(8):
# nums.append(x)
# print "nums = " + str(nums)
# squares = []
# for x in range(8):
# squares.append(x**2)
# print "squares = " + str(squares)
# print "list comprehensions = " + str([x for x in range(8)])
# print "list comprehensions with squares = " + str([x*x for x in range(8)]... | [
"derricklui1@gmail.com"
] | derricklui1@gmail.com |
986a98c7a191eded558d64c0115171a971068428 | 42545e522c676789e253c04a7f37d2e56c92529b | /FailedTests/kerasTest.py | 72628723ef812eba81e0681cb83896122c028ec5 | [
"MIT"
] | permissive | esslushy/AbstractArtGenerator | 8abec8bc727008e98767e2b42c609f8e33189b06 | 48ebfee04673bc109fc202c3368dbbc80f0e7021 | refs/heads/master | 2020-03-29T17:43:00.370812 | 2019-05-02T15:42:30 | 2019-05-02T15:42:30 | 150,177,422 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,365 | py | import time
import os
import matplotlib.pyplot as plt
import matplotlib.gridspec as gridspec
import numpy as np
from keras.models import Sequential
from keras.layers import Conv2D, Conv2DTranspose, Reshape
from keras.layers import Flatten, BatchNormalization, Dense, Activation
from keras.layers.advanced_activations im... | [
"ess090502@gmail.com"
] | ess090502@gmail.com |
711e796f08056e19d7c2e63ae6360a8924cd6f5e | 9b6109b1d71bc6c514e38a1b23103df8a115e1da | /binding_energies/c-2.000o-3.375/input.py | 586d9b9dbcb4433acc724de6e8606c6960437441 | [] | no_license | rwest/linear-scaling-tests | 4fd53c50ca9a91023ee9c1b94506155ed32af179 | 9d4678cb1e46786023642fbc28ad00ddff748aa6 | refs/heads/master | 2023-03-07T05:36:40.382146 | 2017-10-31T16:44:33 | 2017-10-31T16:44:33 | 108,619,306 | 1 | 2 | null | 2020-10-17T16:05:18 | 2017-10-28T04:20:42 | HTML | UTF-8 | Python | false | false | 2,903 | py | # Data sources
database(
thermoLibraries=['surfaceThermo', 'primaryThermoLibrary', 'thermo_DFT_CCSDTF12_BAC','DFT_QCI_thermo'],
reactionLibraries = [('Deutschmann_Ni', False)],
seedMechanisms = [],
kineticsDepositories = ['training'],
kineticsFamilies = 'default',
kineticsEstimator = 'rate rules... | [
"r.west@northeastern.edu"
] | r.west@northeastern.edu |
8d7c026f98cc43856dcf74350d178b0b6ea068c0 | 1327667dc39d7fba09b9d98716a0818ff2677ce7 | /contact_list.py | 8c0a774ed412b9d4f48035cdfdae901aa1997afa | [] | no_license | darkwlf/contact_list | 8019564bb8b80b059af2526041ee490b1498bc32 | 17e120fe269e09c1098ec4663eaeabd0ffdb3fa1 | refs/heads/main | 2023-05-04T12:37:40.572511 | 2021-05-24T13:28:20 | 2021-05-24T13:28:20 | 370,361,790 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 154 | py | import sqlite3
con = sqlite3.connect('contacts.db')
cur = con.cursor()
for row in cur.execute('SELECT * FROM contact ORDER BY name'):
print(row)
| [
"noreply@github.com"
] | darkwlf.noreply@github.com |
055feb63859169aa5ad1f36d99b7a8cc679480d0 | 5969684b386d25881e349ff55184c222ea0d6f3e | /vkusnooo_app/views.py | 787a1de959919bb877153bf591bd2d1683e1492d | [] | no_license | BAndonova/Python-Web-Framework-2020-VkusNooo_project | b505af43794e03e8ec0acd7ece383a2678b3e1e5 | f94a877b57610c12280a130e4bd2c7bc4722a3f8 | refs/heads/main | 2023-02-21T15:42:22.847599 | 2021-01-23T09:40:24 | 2021-01-23T09:40:24 | 315,734,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,480 | py | import djclick as click
from django.contrib.auth.decorators import login_required
from django.shortcuts import render, redirect
from recipe_core.decorators import group_required
from vkusnooo_app.models import Recipe, Like
from vkusnooo_app.forms import RecipeForm
from vkusnooo_auth.models import UserProfile
from vkus... | [
"60629112+BAndonova@users.noreply.github.com"
] | 60629112+BAndonova@users.noreply.github.com |
e74a4232dc7fc3b1de106635f6beb9dc191f4f63 | 373e44ad5fba391d86543f28b91a2cdf9a22f874 | /model/TestPar45_60_varydatasize/60/PowerPredEDFA_average.py | d70aad24fd3ba2b6baa9d93a86d69d68d3e1e57a | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | szhu3210/oopt-gnpy | c311fe00b869d3bcfabae4e22366cbc2215eb91d | 83768480eb9aedad560ab9a722493f04cfe80c9c | refs/heads/master | 2020-04-02T00:24:48.608431 | 2019-04-01T18:32:11 | 2019-04-01T18:32:11 | 153,803,494 | 1 | 0 | BSD-3-Clause | 2018-10-19T15:22:16 | 2018-10-19T15:22:15 | null | UTF-8 | Python | false | false | 1,521 | py | # coding: utf-8
# In[171]:
# Ido Michael
import tensorflow as tf
import os, struct
import numpy as np
import matplotlib.pyplot as plt
import ParsePowerEDFA
from sklearn.metrics import mean_squared_error
from sklearn.metrics import mean_absolute_error
import math
import sys
import configparser
import random
print(tf... | [
"szhu@email.arizona.edu"
] | szhu@email.arizona.edu |
a030538c5ca7316deb104f9555029252bad5e681 | 3c40dce2af71dd6216f4b64e5f42d4d6d5bc6b25 | /auto_client/libs/plugins/__init__.py | 02afa5f43fb806ca16c94112950069f750df338e | [] | no_license | huzhou520/cmdb | 1c93ad47d2a5e564c1e8f34ec9015590208fafeb | b6b4aba4184ed316a0a0b5f2b1a876473ec4cdbc | refs/heads/master | 2020-09-11T22:36:31.588900 | 2019-12-27T01:55:40 | 2019-12-27T01:55:40 | 222,212,934 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | from settings import PLUGIN_DICT
def get_server_info(hostname, ssh_func):
"""
:param hostname: 要操作的远程主机
:param ssh_func: 要执行的方法
:return:
"""
info_dict = {}
for key, path in PLUGIN_DICT.items():
# 1.切割settings文件中的字典
"""
例:libs.plugins.board.Board,切割settings文件中的value... | [
"you@example.com"
] | you@example.com |
315dde5190931ae95728751f22a8752b3de8b9e1 | a439ca43178d38cfe6daaee50ea134ca6c52b502 | /thaniya_client/src/thaniya_client/tools/ThaniyaMySQL_native.py | a110c96dca5ffc807f8d9a6352e11b529c08a02e | [
"Apache-2.0"
] | permissive | jkpubsrc/Thaniya | 37ca727abdc6f9f605257813889fe3a033995bba | 4ebdf2854e3d7888af7396adffa22628b4ab2267 | refs/heads/master | 2023-03-05T20:58:59.528746 | 2021-02-15T19:31:06 | 2021-02-15T19:31:06 | 331,318,787 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,503 | py |
import os
import typing
import tarfile
import jk_simpleexec
import jk_utils
from ..ThaniyaBackupContext import ThaniyaBackupContext
from .EnumTarPathMode import EnumTarPathMode
from .ThaniyaService import ThaniyaService
class ThaniyaMySQL_native:
@staticmethod
def mySQLDump(ctx:ThaniyaBackupContext, dbNam... | [
"pubsrc@binary-overflow.de"
] | pubsrc@binary-overflow.de |
d678a6a0cdb4da16ce9b9f35ad49253187d46ab1 | 222abe72fdf538587184c45d819d32363f8c3f13 | /AssignmentAnalysis.py | 504f8d65ac4e8fc01f624ac1ad5c6f17b784d18f | [] | no_license | Vojtech-Sassmann/programmingProblemsAnalysis | 07763b9802eed6d3c61b018a573a8d4dc569e8be | 707aea739a5b2a9b1b937a6e827b3150a47b2013 | refs/heads/master | 2021-09-11T01:45:51.539623 | 2018-04-05T21:48:49 | 2018-04-05T21:48:49 | 103,759,752 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 603 | py | from data import tasks
import codecs
from new_bagOfWords_vector import searched_nodes
import new_bagOfWords_vector as bagAnalysis
def foo():
bagAnalysis.run = False
bagAnalysis.binary = False
bagAnalysis.solution_number = 1
bagAnalysis.submission_limit = 1
bagAnalysis.minimal_vector_size = 1
... | [
"vojtech.sassmann@gmail.com"
] | vojtech.sassmann@gmail.com |
bdb719cc2a2ea4518e62f7168541578a0df9488e | 544d7951fa13346b395499255a9fc2bf7001bbc2 | /Study_API/common/__init__.py | 0a881170bcefad66f7afdd708ffcfdb9633c48ee | [] | no_license | hanfan0510/superme | dea074a4ab29824960836b2ead76930fc9cf3799 | 31600bf189211e909af82d3e6bfd415ef0cd51de | refs/heads/master | 2020-05-24T11:16:51.433542 | 2019-05-21T20:41:28 | 2019-05-21T20:41:28 | 187,244,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | # _*_ coding: utf-8 _*_
# @Time : 2019-04-28 23:32 | [
"2379696379@qq.vom"
] | 2379696379@qq.vom |
9101590f371cd95848d965d2fcdfe6031f0b94b9 | 9945fa3eddbf9e823fedd24544a6435ab3b61a10 | /bronzegaming/migrations/0008_auto_20190301_2308.py | ce51e2dbe055a11c496d0e77648d316b92a52b91 | [] | no_license | cmk112/BronzeGaming | 345552e59c349d8c70ff774fce36d1725b43a062 | aeea7329cbb103f20a240404845513794d093dd1 | refs/heads/master | 2020-04-25T22:53:54.103100 | 2019-08-21T21:54:09 | 2019-08-21T21:54:09 | 173,126,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 796 | py | # Generated by Django 2.1.7 on 2019-03-02 05:08
from django.db import migrations
import sorl.thumbnail.fields
class Migration(migrations.Migration):
dependencies = [
('bronzegaming', '0007_profile'),
]
operations = [
migrations.AlterField(
model_name='game',
name... | [
"cody.kostyak@gmail.com"
] | cody.kostyak@gmail.com |
130b4eb9d1fb8e5a74b3cd23a2e9762ed8b8cffa | 054f45adf45d43f6b8aeecbf7b45793dedaa4255 | /venv/Scripts/pasteurize-script.py | a418e05e3f7f9d47a64868d8a8f973f587516e4d | [] | no_license | PolinaRubinova/rz1_words | 82eb07bdcfac6d540a91a017c0e199a0dc2c1321 | 0dc97c6d4538e618209904ad07be9773e41514e5 | refs/heads/master | 2023-04-10T05:13:45.636368 | 2021-04-17T12:59:33 | 2021-04-17T12:59:33 | 358,879,355 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | #!C:\Users\User\PycharmProjects\rz1_words\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'future==0.18.2','console_scripts','pasteurize'
import re
import sys
# for compatibility with easy_install; see #2198
__requires__ = 'future==0.18.2'
try:
from importlib.metadata import distribution
except ImportError:
... | [
"jerrygonsales@mail.ru"
] | jerrygonsales@mail.ru |
630090193b6e2470241c4ed36f5cebbe2eea7935 | 2002956ea01eec2c71c8f0a3c14b57129c74c04b | /sdk/conf_pb2.py | 67443d473a26f9ec00b098abae0179ef481bc2fa | [
"Apache-2.0"
] | permissive | kjchavez/jarvis | 4cecea353eefc50a4a9692a8e8b751c3d36f6b87 | 56eb65d959d82e5643797ad16cda9d7d378d4385 | refs/heads/master | 2020-05-31T17:36:31.128666 | 2015-08-04T04:38:12 | 2015-08-04T04:38:12 | 39,577,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | true | 7,170 | py | # Generated by the protocol buffer compiler. DO NOT EDIT!
# source: conf.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflecti... | [
"kjchavez@stanford.edu"
] | kjchavez@stanford.edu |
6b9da091c4e7f39403cfd8adbe13a8a58faacb97 | 62605ca9e27cd33a7743dd449e9d2d3232f67e3d | /Ch5 - Python Crash Course/Code/5.6_some_dictionary_operations.py | 5ed2cb7541cb8009b1ce52a3aacc72778d49bbc4 | [
"MIT"
] | permissive | The-Ineffable-Alias/ProgrammingDigitalHumanitiesBook | 70e4488a3aa3893d6359d028a66c848b126a24b3 | 9ce1bef19e28fc3c1775e1135d9d177820e69f08 | refs/heads/master | 2022-12-13T18:03:27.647824 | 2020-09-10T15:56:55 | 2020-09-10T15:56:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 998 | py | # Dictionaries operations
address_book = {
"Alice": "123", # Number as string
"Bob": 231, # This number is an int
"Carl": "312"
}
# Get the value for a certain key
# (and return the default, if provided.)
address_book.get("Alice")
address_book.get("Ann") # Retu... | [
"55744890+1110sillabo@users.noreply.github.com"
] | 55744890+1110sillabo@users.noreply.github.com |
9b9069b00e19b7f1119e5df9d8f405c2e310aae3 | 67635134685261d087653d380b0aeb1475e5286e | /d.py | d4cad3b5951c67ff60c78e7b67b38afb1fa7dc49 | [] | no_license | simgenurcankaya/Network_TP1 | 1d252ca1ee96d29fe9aeaa0e6d664018c92693d2 | ca77f447aa2b58e8f28a02fb88af232eb8e2bd67 | refs/heads/master | 2020-09-10T17:55:45.390295 | 2019-11-22T22:46:43 | 2019-11-22T22:46:43 | 221,786,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,696 | py | import threading
import socket
# SERVER NEEDS TO START BEFORE CLIENT
# IP and Port is the same with client
ip_send_r1 = "10.10.4.1"
ip_get_r1 = "10.10.4.2"
ip_send_r2= "10.10.5.1"
ip_get_r2 = "10.10.5.2"
ip_send_r3 = "10.10.7.2"
ip_get_r3 = "10.10.7.1"
port_r1= 23426
port_r2= 44004
port_r3= 45678
sockR1 = socket... | [
"simgenurcankaya@gmail.com"
] | simgenurcankaya@gmail.com |
697d726a199f108a0730d881badc4c2040eb0a1c | 3027b528e95c10ffe9245bf4421ff1f9155acfd4 | /code/gamescene.py | 2c31a024dccd00a7e17a289a6b5ec9699ad4bb7a | [
"MIT"
] | permissive | prake71/blackandwhite | 4f3d8158d79e04a83fa873e70ae08495da6b92ea | 2f23f4b3dc57080d230a4c423332000fe02b8024 | refs/heads/master | 2020-03-10T23:53:16.846879 | 2018-04-22T01:09:34 | 2018-04-22T01:09:34 | 129,650,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,749 | py | import pygame
import constants
from player import *
from scene import *
from level01 import *
from level03 import *
from level02 import *
from customscene import *
import titlescene
class GameScene(Scene):
scr_w = constants.SCREENWIDTH
scr_h = constants.SCREENHEIGHT
def __init__(self, levelno):
sup... | [
"prake71@gmail.com"
] | prake71@gmail.com |
716ed2177858886621060abad9ac3e5c264f152a | ec0b8bfe19b03e9c3bb13d9cfa9bd328fb9ca3f1 | /res/packages/scripts/scripts/client/gui/Scaleform/daapi/view/battle/shared/timers_common.py | fa0fb189e2e6d1344d6ee8d161432c625338e6e9 | [] | no_license | webiumsk/WOT-0.9.20.0 | de3d7441c5d442f085c47a89fa58a83f1cd783f2 | 811cb4e1bca271372a1d837a268b6e0e915368bc | refs/heads/master | 2021-01-20T22:11:45.505844 | 2017-08-29T20:11:38 | 2017-08-29T20:11:38 | 101,803,045 | 0 | 1 | null | null | null | null | WINDOWS-1250 | Python | false | false | 2,809 | py | # 2017.08.29 21:46:09 Střední Evropa (letní čas)
# Embedded file name: scripts/client/gui/Scaleform/daapi/view/battle/shared/timers_common.py
import BigWorld
from gui.shared.utils.TimeInterval import TimeInterval
class TimerComponent(object):
__slots__ = ('_panel', '_typeID', '_viewID', '_totalTime', '_startTime',... | [
"info@webium.sk"
] | info@webium.sk |
09ab077c784360c58d2374981a7f02a9991ab938 | a301c3a8702fdf39a96e6f0a509a2c90a5969d4a | /framac/codeeditor/admin.py | d2c3e69f950a75451b9672d70a9c00f8544113b7 | [] | no_license | rklimek123/awww1 | fe656bcabad4bbc2682f43d65b64e84c043d39c0 | 972f4ab40ba71dd963cd9f18f3171328b4b37de2 | refs/heads/master | 2023-05-10T15:30:05.814803 | 2021-06-17T21:58:23 | 2021-06-17T21:58:23 | 344,237,433 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 285 | py | from django.contrib import admin
from .models import *
admin.site.register(Directory)
admin.site.register(File)
admin.site.register(FileSection)
admin.site.register(SectionCategory)
admin.site.register(SectionStatus)
admin.site.register(SectionStatusData)
admin.site.register(Prover)
| [
"rafal1klimek@gmail.com"
] | rafal1klimek@gmail.com |
d42c548a74719a1d6a26357b3b649727be0cedff | 6e5c18ff8dc132580defa69128a6195525862e9e | /fizzbuzz.py | 4ae7c0fc1e48744651c5b0ee7a626a5fc6b5ffef | [] | no_license | vukster/python | 9c660c69fdc25b8b6b64ac8dcd6e97def8e3ace1 | 5465f69fbae26818dcac6aa69c2c78c087d8aeb0 | refs/heads/main | 2023-03-12T12:49:04.114165 | 2021-03-07T10:29:07 | 2021-03-07T10:29:07 | 340,090,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 347 | py | input1 = int(input("Select a number between 1 and 100"))
for x in range(0, input1):
check_count = x+1
if ((check_count % 3) == 0) and ((check_count % 5) == 0):
print("fizzbuzz")
elif (check_count % 3) == 0:
print("fizz")
elif (check_count % 5) == 0:
print("buzz")
else:
... | [
"dvukicev@cisco.com"
] | dvukicev@cisco.com |
ef8a75b0ff9cd7873c4b6b19ff53e7782fa3b405 | 5835f580ce78ead9e76d8bddc54a1efb54a51402 | /driver/fixcode.py | 48045486f3556ea711d69cfedccdb6dc57245ee7 | [
"MIT"
] | permissive | SimonLarsen/mmlgb | 82b9f0295f689cbe529a64414c724f865880cf7c | aa0864d4391490057760a2a84dd4ab117f0b04e8 | refs/heads/master | 2023-02-08T04:32:27.052886 | 2019-07-28T19:19:45 | 2019-07-28T19:19:45 | 28,891,338 | 43 | 8 | MIT | 2023-01-28T08:06:38 | 2015-01-07T01:00:14 | C | UTF-8 | Python | false | false | 853 | py | #!/usr/bin/env python3
import argparse
import re
def main():
parser = argparse.ArgumentParser()
parser.add_argument("infile", help="Code file.", type=str)
parser.add_argument("outfile", help="Outfile file.", type=str)
args = parser.parse_args()
infile = open(args.infile, "r")
lines = infile.r... | [
"simonhffh@gmail.com"
] | simonhffh@gmail.com |
852cbc1af2b4d54d3ba0a58bc1812c1ddf7cbe0c | c61283c61442a4413dd13696ff513bfe732cdcdc | /test/test_api.py | a292b58aca87a0c7c71aae5e88b194f6f235d44e | [
"BSD-2-Clause",
"BSD-2-Clause-Views"
] | permissive | quietguoguo/nginx-config-builder | 138a07478518b146ad4b0f3e4c2c70c1af80ead9 | e3030c879b008fbb73033ba639359407038edefc | refs/heads/master | 2021-01-20T03:06:38.988737 | 2017-07-13T19:59:46 | 2017-07-13T19:59:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,418 | py | from nginx.config.api.blocks import Block, EmptyBlock
from nginx.config.api.options import KeyOption, KeyValueOption, KeyMultiValueOption
from nginx.config.helpers import duplicate_options
def test_block_options():
block = Block('test')
assert block.options == {'_owner': block}
assert block.sections == {... | [
"lcarvalho@linkedin.com"
] | lcarvalho@linkedin.com |
295065fa1ab2d76f7cb08c19a6d47d4aa00dda02 | 46e028809514ab7dcdac97e370f15fee85d9fb22 | /vappio-twisted/vappio_tx/credentials/ctypes/nimbus.py | 252dd9aa1d500998d92921d140580043378e3aee | [] | no_license | carze/vappio | c26c1f07511ad0dd6041c540651c4e6397569e61 | 23d85308ec51299233ade086e1f3df86d3452a4f | refs/heads/master | 2021-01-21T00:08:12.685666 | 2014-11-19T12:36:12 | 2014-11-19T12:36:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,035 | py | import os
import urlparse
from twisted.internet import defer
from twisted.python import log
from igs_tx.utils import commands
from igs_tx.utils import defer_utils
from igs.utils import functional as func
from igs.utils import config
from vappio_tx.credentials.ctypes import ec2
##
# This module wants to go by
NAM... | [
"orbitz@gmail.com"
] | orbitz@gmail.com |
1e2101b0b45013b2cd6d6af25611d357c69532db | 035c466890f0daf424acb5b59a1ab2f470bc9ab5 | /check_data.py | bdce0cc5453893f9b5955d9afa52c9dcf2c5bbc6 | [] | no_license | poastertoaster/NBA-Twitter | 75d12f576e542c634d41a2f9da68c10a3be8af70 | a2e8ed863c56de3461c86cee3160b61899eb964d | refs/heads/master | 2020-11-24T15:19:06.052964 | 2020-01-13T21:56:36 | 2020-01-13T21:56:36 | 228,212,825 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,497 | py | import datetime
from nba_api.stats.endpoints import scoreboardv2
from nba_api.stats.endpoints import boxscoretraditionalv2
#Classes
from image import image
from set_data import set_data
from tracker import tracker
from update_twitter import update_twitter
class check_data():
def check_game(self, game_index, games_li... | [
"46764889+poastertoaster@users.noreply.github.com"
] | 46764889+poastertoaster@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.