blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
060f10758bfcb331a66450e8db88623b3e7a7376 | 57068b73b78602a4a8ea1c2c677b2c9867d7f208 | /examples-code/queue/queue-example.py | a0d53000d4f1aa74397ccd83465830088280b20b | [] | no_license | firewood1996/MELINDA | 2f158d1942224b1cb7ef72d46a5f510229f54e87 | a090cea086e6b2502ea4f910008f9daf50e464d6 | refs/heads/master | 2023-02-22T11:40:44.350351 | 2021-01-21T22:35:22 | 2021-01-21T22:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import threading, queue
# q = queue.SimpleQueue()
q = queue.Queue()
def worker():
while True:
# get the first item queued. It's blocking
# until there is an item on queue
item = q.get()
print(f'Working on {item}')
print(f'Finished {item}')
# remove item from queue ... | [
"aluiziorocha@gmail.com"
] | aluiziorocha@gmail.com |
cb448cc57982cd1d11cc353decfa6f00bac6d2d2 | 35e6605da2d105158d4ce3aa8230f650ba965651 | /v7/meta_template/meta_template.py | b1eb9b573778b911af44b802b56501e7968fc974 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause",
"LGPL-2.0-or-later",
"LicenseRef-scancode-free-unknown",
"GPL-1.0-or-later"
] | permissive | getnikola/plugins | 8a24d00d9ca17ef075c49925d9945b059eeed849 | 9de663884ba5f15153d37e527ade6f55e42661a3 | refs/heads/master | 2023-08-29T23:38:25.184763 | 2023-08-06T12:58:33 | 2023-08-06T12:58:33 | 13,049,233 | 62 | 104 | MIT | 2023-08-06T12:55:44 | 2013-09-23T22:50:59 | Python | UTF-8 | Python | false | false | 2,442 | py | # -*- coding: utf-8 -*-
# Copyright © 2016 Manuel Kaufmann
# 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
# the rights to use, copy, mod... | [
"humitos@gmail.com"
] | humitos@gmail.com |
a50ae6b909d4e4d6b2dca21b7718ab1a9afa6bbe | 599dc43dd052cfa8dac9b4aad5d998ae2cee3b0c | /chapter4/printf_random.py | 308214e62fe85ed6d9f8946bacb4c91844a2335d | [] | no_license | giantbranch/gray-hat-python-src | e43357c366264b87e1a523ab1fe8af4845032211 | ab7df49e03e4b5b9847089c700f588a5abcc0917 | refs/heads/master | 2021-12-02T15:14:52.746391 | 2021-11-25T06:14:19 | 2021-11-25T06:14:19 | 65,379,828 | 82 | 46 | null | null | null | null | UTF-8 | Python | false | false | 1,294 | py | # -*- coding: utf-8 -*-
# @Date : 2016-08-14 10:04:29
# @Author : giantbranch (giantbranch@gmail.com)
# @Link : http://blog.csdn.net/u012763794?viewmode=contents
from pydbg import *
from pydbg.defines import *
import struct
import random
# 这是我们定义的回调函数
def printf_randomizer(dbg):
# 用esp索引count局部变量的值
parameter... | [
"=493254599@qq.com"
] | =493254599@qq.com |
58c348c0b4943156e36e5373bd6acf2fe6843fcf | 95b4260f2a31ced1b461e494dac59df5e55982b7 | /run.py | 21a82d802a4d5f173679a3b1c3fb0effb72aeb08 | [] | no_license | seymasa/turp | 94c2af68701c912db75334f2e9461a16fe24bcfb | b8a4ab469bbbd5652bff78e604f63deae6c322b6 | refs/heads/master | 2020-04-06T07:06:00.086572 | 2016-09-11T13:20:41 | 2016-09-11T13:20:41 | 63,932,444 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | import os
from social import app
app.secret_key = os.urandom(24) #uygulama şifreleme (rastgele 24 karakterlik)
app.run(debug=True, port=1453) #uygulama balatıcı
| [
"seymas@kariyer.net"
] | seymas@kariyer.net |
e420f5cf1074f33c3e64be805813b80e247bc6fc | 457a6dd6c68dd949631d90b681d8a8bb8139e0b3 | /analyze/similarity.py | df4a0b3fb5e6c8a78cb7f39bedadd9414f9f7cc8 | [] | no_license | KarlPineau/EuropeanaEvaluationRecommendations | 84f7f83df1b4bfe1ffbe8ada6ec4340391647ee6 | 16e14490dfeb9d4b82e9510b1f0afd1a7f21fecc | refs/heads/master | 2020-05-21T02:01:15.598783 | 2017-04-25T15:38:10 | 2017-04-25T15:38:10 | 84,555,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,664 | py | import re
import math
import json
import operator
from collections import Counter
import collections
WORD = re.compile(r'\w+')
def get_cosine(vec1, vec2):
intersection = set(vec1.keys()) & set(vec2.keys())
numerator = sum([vec1[x] * vec2[x] for x in intersection])
sum1 = sum([vec1[x]**2 for x in vec1.ke... | [
"karl.pineau@ens-lyon.fr"
] | karl.pineau@ens-lyon.fr |
3e4aa0aeea3933abf58ac44971aef4a9f8a8fc46 | 5fdcca337ebb9453bfefe4b2573ade9c7d9ea7c3 | /trivial/alwaysA.py | 458dfbe791289b0f57ed0015e6a87e43954e2e08 | [] | no_license | sauermar/Turnaj-M-M | 5926cfdcbe62eb11a0b1e4331b17b38cdf4ac3f0 | c36bd904fdb7f65996ac7922604d4baaee73f890 | refs/heads/master | 2020-11-26T03:44:25.270152 | 2020-03-21T21:13:41 | 2020-03-21T21:13:41 | 228,956,592 | 1 | 3 | null | 2020-03-21T21:13:43 | 2019-12-19T02:11:37 | Python | UTF-8 | Python | false | false | 249 | py | from player import Move, Player
class AlwaysA(Player):
def __init__(self):
pass
def author_name(self):
return "AlwaysA"
def next_move(self):
return Move.a_safe_way
def reward(self, result):
pass
| [
"martin.dvorak@matfyz.cz"
] | martin.dvorak@matfyz.cz |
76f08bd039e7f9cd96b4b7c9980e33eeb48a6fb5 | 63bd9c4e51456e6ad0afb3c302fa63a72ffcc01e | /leetcode_py/BalancedBinaryTree.py | b59a438ecb0bb5889d4251524f43570abfde0201 | [] | no_license | vicai/cci-py | 3400d55b767e865e40af944dab87f3f2a2fb5ade | 672fa2d13a0e0f45e1f0479738f2d9e65c63b499 | refs/heads/master | 2016-09-05T23:17:03.557500 | 2014-04-14T02:18:19 | 2014-04-14T02:18:19 | 11,820,289 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,538 | py | class TreeNode(object):
def __init__(self, val, left, right):
self.val = val
self.left = left
self.right = right
def maxDepth(root):
if(root==None): return 0
leftHeight = maxDepth(root.left)
rightHeight = maxDepth(root.right)
return leftHeight+1 if (leftHeight>rightHeight) e... | [
"caiweiqi@gmail.com"
] | caiweiqi@gmail.com |
331738fad02249b27fc2e6347fa40be18cbd74a5 | 0c025fb1a913b263bfbf2dda7a455192d10c891d | /ProjectEuler/Problem2.py | 07b32322444d33409b7dc833d162f9c34aed02e2 | [] | no_license | Pseudooo/CompetitiveProgramming | 49cb82dd20fd6d3e7eddced06b637da27b0f4240 | 2679ceaa339460c7a9b51ddee6530d453cbbb909 | refs/heads/master | 2020-04-05T09:59:39.136181 | 2018-11-12T22:16:22 | 2018-11-12T22:16:22 | 156,783,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,303 | py | import math as m
import time
# Values of phi precalculated for iteration approache's speed
PhiCubed = 2+5**.5
NegPhiNegCube = 2-5**.5
Root5 = 5**.5
Phi = (1+5**.5)/2
# Get the nth term of the fibonacci sequence
def getTerm(n:int): # This function is used for closed form
return int((Phi**n-(-Phi)**(-n... | [
"mitchell.wright877@gmail.com"
] | mitchell.wright877@gmail.com |
5c2d87475cf36d642fef62c191a68bf27f8c22cd | 734a67c1a9c4a578d200b26022ae2a8d9c1c3f70 | /TensorLayerNorm_pytorch.py | a89cae7538c44b8e5c69b01fbcf74f9b669ab5d2 | [] | no_license | xifengbishu/predrnn-_pytorch | 9f42e1cf80f6f9eafa6958ec39d218772bc5bcc4 | fba78476db663ad6523daca3b858cc2761760a8a | refs/heads/master | 2022-06-19T20:15:05.458084 | 2020-05-09T04:38:57 | 2020-05-09T04:38:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | #coding=utf-8
import torch.nn as nn
# 返回归一化层
def tensor_layer_norm(num_features):
return nn.BatchNorm2d(num_features)
| [
"noreply@github.com"
] | xifengbishu.noreply@github.com |
8576195f4e3562968d1079a98bd717aa291c555c | 9c3de0e3718d06408419460af8a934db3dc9736c | /mysite/settings.py | 6c70476a88d7a32f5e280e45f5bf7b35c17b340f | [] | no_license | daecsa/my-first-blog | 5cfb1b223583b600c5266e2e5eeb121655f65f95 | bb117e801c76c862c07826ae9e87c3c256bd42ae | refs/heads/master | 2022-11-26T01:58:50.635342 | 2017-07-04T00:22:31 | 2017-07-04T00:22:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,199 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.10.7.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import os
... | [
"dpecheverria48@misena.edu.co"
] | dpecheverria48@misena.edu.co |
0f88316bf11c35e936d8f86e044b31b12973dbe9 | 43f0c93802ef62c03388006cdae18c62de4d3295 | /setup.py | 524d362968902bc8a4e648bf8419ebe2c4b0c37a | [
"MIT"
] | permissive | pombredanne/qtstyles | e05f67f4d0f58284ae5b5c50909f23090f5bf278 | de962879e36be305572b0c5fb5c4ddcfeda5afe0 | refs/heads/master | 2020-04-27T00:58:55.044676 | 2018-10-20T05:19:33 | 2018-10-20T05:19:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | from setuptools import setup, find_packages
setup(name="qtstyles",
version="0.0.2",
install_requires=[
"QtPy>=1.4.1"
],
description="A collection of Qt style sheets and helpful classes for applying them.",
long_description=open("README.md").read(),
# https://setuptools.... | [
"gatman946@gmail.com"
] | gatman946@gmail.com |
eb203f331f71efebb29ec76a81bf0313ff3dae36 | 225cc869e8ed7b70751f25b66e54d6072525268b | /bootstrap_comp/wsgi.py | b581a5e02071754b8515cf0281135eb4339b8288 | [] | no_license | benhigh22/bootstrap_comp | 978f0128ef7a386714d0f274387dfc94e92c714e | 582f8bd64f93fc5f6ced2a40662e206bf4dbc61c | refs/heads/master | 2021-01-10T14:06:53.770955 | 2016-02-25T01:32:22 | 2016-02-25T01:32:22 | 52,463,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | """
WSGI config for bootstrap_comp 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("DJANG... | [
"benjaming.high@gmail.com"
] | benjaming.high@gmail.com |
61b7547ed5510ee1d2ee0d78be17f4572f61d01e | 1d717c797e93b451f7da7c810a0fb4075b1050d5 | /src/preprocessors/naive_preprocessor.py | 246a888db14a6870701bf64b6726d191337ee985 | [] | no_license | jessie0624/nlp-task | 32338b08051a3ea192db2bf74c9c969bdff1f6ad | aaeeed86341356d9fd061664f6f7bccf2ac353d0 | refs/heads/master | 2023-01-24T12:06:13.323646 | 2020-12-10T08:38:23 | 2020-12-10T08:38:23 | 292,151,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,565 | py | '''
@description: 最简单的预处理
'''
import pandas as pd
from tqdm import tqdm
from src.base import BasePreprocessor, units
from src.preprocessors import apply_on_df_columns
from src.tools.build_unit import build_vocab_unit, chain_transform
tqdm.pandas()
class NaivePreprocessor(BasePreprocessor):
"""Define Naive prepr... | [
"jessie_lijie@126.com"
] | jessie_lijie@126.com |
9661c0b6a486308bbd7bfcb7a762c8cb3fd4e62e | c32295597807a6cc11283e0679b73be4cabd3a86 | /app.py | 66b9b2fdb6ccc5dadcabdf23814cec4df5942fbe | [] | no_license | ThongDeee/tongline | b1667c9e9ddb5e09bd391b3fdcc6146841842bd4 | aa909206f286444c3a14dd915e5fe186a3ed9ffe | refs/heads/master | 2023-02-26T06:21:15.118056 | 2021-01-28T19:10:40 | 2021-01-28T19:10:40 | 333,869,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,776 | py | # -*- coding: utf-8 -*-
# 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,... | [
"68993830+ThongDeee@users.noreply.github.com"
] | 68993830+ThongDeee@users.noreply.github.com |
31507f806c59b4954e842e4fbeaa86f8d6aa4e61 | d907469cde3a8e326dba1eaa41c55faf8f04f550 | /tests/test_debug.py | a66816ecda43ce90f29c76f1f4409a332fc8e1a8 | [
"BSD-3-Clause"
] | permissive | yahoo/redislite | 0acd8e52b2dbeda0695f4c387f9c91262c12a463 | e2377bdd7c886c432255a2429dc60a28561fe259 | refs/heads/master | 2023-08-30T11:40:33.442002 | 2023-04-25T02:06:22 | 2023-04-25T02:06:22 | 31,572,652 | 613 | 90 | NOASSERTION | 2023-07-06T20:05:00 | 2015-03-03T01:15:53 | Python | UTF-8 | Python | false | false | 689 | py | # Copyright (c) 2015, Yahoo Inc.
# Copyrights licensed under the New BSD License
# See the accompanying LICENSE.txt file for terms.
"""
Tests for `redislite.debug` module.
"""
from __future__ import print_function
import logging
import redislite
import unittest
logger = logging.getLogger(__name__)
# noinspection Py... | [
"dhubbard@yahoo-inc.com"
] | dhubbard@yahoo-inc.com |
99cd86f3d8ff4704dcb4b37bf6424a04ccda5c61 | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/4c0889e8fcee6c8be9fef33887480747c227725d-<cmd_build>-bug.py | 435761d91c7ec686f1c2a16c517b74393ddf97ed | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,173 | py | def cmd_build(self):
result = dict(changed=False, actions=[])
if (not self.check_mode):
for service in self.project.get_services(self.services, include_deps=False):
if service.can_be_built():
self.log(('Building image for service %s' % service.name))
old_image... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
9aec99b27be9399d927a634df2ffeffa12bdcb3e | 185b63f708319f7fcb6a3ef3ad7036d4a2ee169d | /l10-example-10b.py | 08efb613efe4f18d3583a9de97c6b1a302ac1775 | [] | no_license | yipeichan/Numerical_Ananlysis_and_Programming | 222cdcaf62281ad0c3348b304c6f3addb53e2353 | 13175dbc3e30a376f1c5c94f1b54df6fad3f0aa6 | refs/heads/master | 2020-04-02T03:48:29.523292 | 2018-10-21T08:04:24 | 2018-10-21T08:04:24 | 153,985,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | py | import numpy as np
import scipy.optimize as opt
import matplotlib.pyplot as plt
xmin, xmax, xbinwidth = 101.,182.,3.
vx = np.linspace(xmin+xbinwidth/2.,xmax-xbinwidth/2.,27)
vy = np.array(
[3., 2., 1., 3., 3., 1., 6., 6.,14., 5.,
3., 3., 1., 4., 7., 4., 2., 5., 1., 3.,
4., 3., 0., 1., 3., 1., 5.])
vyerr = vy**0.5 ... | [
"noreply@github.com"
] | yipeichan.noreply@github.com |
bf4982002906ae86e1635f54c477279e2d6a1d35 | 3ff0ade8a92196f25970fad2af57e3e769e144df | /reprap_python_beanshell/skeinforge_tools/analyze_plugins/comment.py | 51cec27b5c1542a6eadf1c4d225163f35cf60c68 | [] | no_license | TeamTeamUSA/SkeinFox | 7f4af60e2c7e04a9eeacacda69e464760837eddc | 9e24dabbca21e67fecda1ed55a5af45dce41bfe2 | refs/heads/master | 2021-01-16T20:59:06.454382 | 2010-01-22T07:39:42 | 2010-01-22T07:39:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,946 | py | """
Comment is a script to comment a gcode file.
The default 'Activate Comment' checkbox is on. When it is on, the functions described below will work when called from the skeinforge toolchain, when it is off, the functions will not be called from the toolchain. The functions will still be called, whether or not the... | [
"peptides@benchscience.org"
] | peptides@benchscience.org |
cbf89758423235fd06dc09aeaeafaaf9ca76080f | f1e2ad41e5dd95dd49aa169cf8a6a24d9c6f769d | /apps/monitor/urls.py | d08b5495a87720e9bb332288131eb5ea38b5d7ff | [] | no_license | TerryMarszr0/AutomatedMonitor | fa2e0d087a77f84f3ee2dccdd24431533aa63d48 | 345f914c8eba75b17e082231bf015fb2c796e3ce | refs/heads/master | 2021-01-01T16:48:55.478028 | 2017-06-17T13:57:52 | 2017-06-17T13:57:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 179 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
__author__ = "BIGNI"
__date__ = "2017/4/29 16:37"
from django.conf.urls import url,include
#appurl
urlpatterns = [
# url('')
] | [
"laonivv@163.com"
] | laonivv@163.com |
3601f4e2573a2360abcd097a10b3b39fe487ba38 | 3496588e6cc763a429184b55db6d401095a59229 | /chapter17/hn_submissions.py | 92665bd8b28799499cd6c06bb8232f89dbf364e0 | [] | no_license | DamonTan/Python-Crash-Course | c1f63c19f5c2c476baec015c39d09facd21977d1 | 49a35426467288ed1dfd823ef409c234ad22675f | refs/heads/master | 2020-03-14T06:12:20.998384 | 2018-05-10T14:23:33 | 2018-05-10T14:23:33 | 130,567,227 | 0 | 0 | null | null | null | null | GB18030 | Python | false | false | 227 | py | #encoding=utf-8
import requests
from operator import itemgetter
#执行API调用并存储响应
url = 'http://hacker-news.firebaseio.com/v0/topstories.json'
r = requests.get(url)
print("Status code:", r.status_code)
| [
"noreply@github.com"
] | DamonTan.noreply@github.com |
b60cc31e27434ff4445604dadf8c22cc278af01c | 4b77c3592883f69430b54fb0718516608d8e1a10 | /randInt.py | 2857207837073de1f073a0345950095f89c27075 | [] | no_license | arcSlayer85/random_python_bits | e9c1db72e15421408c1d41cb600ca0d842946060 | 4cd63521e426d9ff8d669d6877216b43824f5992 | refs/heads/master | 2021-06-08T15:44:42.402991 | 2016-12-24T00:54:31 | 2016-12-24T00:54:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 235 | py | import random
# create an index of numbers
index = [6,5,4,3,2,1];
# generate a random number from 0, 5
rand = random.randint(0, 5);
# use the random number to choose a number to print from the index
print (index[rand]);
| [
"noreply@github.com"
] | arcSlayer85.noreply@github.com |
ae916270eb9b2f7f8ebceb7ea0d707e7e1ae4b29 | 0f25a9709ba2cff06ccca65445001d155a5c7c24 | /nlp/call_to_nlp_api2.py | 4851c9c111a6c8c6330280b00c98513f4c492146 | [] | no_license | brianjeong-lab/category_keyword | e608b90bfb1ddf04536f01833e5b0f9aba75e71d | d5d79b865c197c245b64cfd117d2862cbd9c9444 | refs/heads/master | 2023-03-24T07:59:19.440619 | 2021-03-22T06:21:31 | 2021-03-22T06:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,291 | py | import apache_beam as beam
from apache_beam.options.pipeline_options import PipelineOptions, StandardOptions
from apache_beam.io.gcp.internal.clients.bigquery import bigquery_v2_messages
import sys
import json
import time
import googleapiclient.discovery
from oauth2client.client import GoogleCredentials
project_id = ... | [
"taigeun.kang@gmail.com"
] | taigeun.kang@gmail.com |
c38ed9c586dd3058877ef5cd39bc646678f1d6e6 | 9c81978aa4947ad4f7c777e7850b86c70fd9d593 | /Proyecto1_Compi2_py/ServidorWeb/Semantico.py | 6e8270cce0a496d802074d93e694f3b2b5ebebec | [] | no_license | Dannek1/Proyecto1_Compi2_py | 3092610c4e8edbe561e4a5d7100d319231bd6460 | 217bdd06df3ffbfe75f7c6e408def0d33f7f4c2c | refs/heads/master | 2021-01-16T18:55:11.317317 | 2017-09-15T10:48:51 | 2017-09-15T10:48:51 | 100,126,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,031 | py |
class Nodo():
pass
class programa2(Nodo):
def __init__(self,son1,name):
self.name = name
self.son1 = son1
def imprimir(self):
son1 = self.son1.imprimir()
return son1
class programa3(Nodo):
def __init__(self,son1,name):
self.name... | [
"mdannek@outlook.com"
] | mdannek@outlook.com |
8e8e8e8a445c03a8134b7b89f9a80a88862292ed | b998c41893f931b48252d91e6b2fe424f9236739 | /manage.py | b7b17fa3bf5c9f8b026d6b8e9d2507b3bb4c78d5 | [
"MIT"
] | permissive | scottprovost/django-back | 7bfe6a76c0f54405fe3c2945cde207dbb142abda | 7c3f181a6658c771e155393736909f176db878c4 | refs/heads/main | 2023-03-18T09:49:39.963375 | 2021-02-19T20:01:31 | 2021-02-19T20:01:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 664 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'dbackend.settings')
try:
from django.core.management import execute_from_command_line
except Imp... | [
"ian.campbell.92@gmail.com"
] | ian.campbell.92@gmail.com |
5a0dd8e704c37e1fffbc9fae20d35dadfbd3bdf8 | 99e0afb26b44ee135e54f2679ec60240c723f155 | /producers/models/producer.py | 3e20e7fdacd97b3cc6f001c1aa414e8e49ebdb3a | [] | no_license | EmilaineBorato/optimizing_transport_public | 5d9256dfbdaa8daf74f8a681edea538e38b3a1e6 | e8eb1c181c42b89dcb25aef91c3f6ff3d220db60 | refs/heads/main | 2023-05-26T03:13:10.898929 | 2021-06-10T18:21:14 | 2021-06-10T18:21:14 | 372,068,333 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,660 | py | """Producer base-class providing common utilites and functionality"""
import logging
import time
from confluent_kafka import avro
from confluent_kafka.admin import AdminClient, NewTopic
from confluent_kafka.avro import AvroProducer
logger = logging.getLogger(__name__)
class Producer:
"""Defines and provides co... | [
"emilaineborato@gmail.com"
] | emilaineborato@gmail.com |
e39e0386e9c207b8225c5e37313477e5a69d8156 | 24382b7739e687a527c8a5061676d6efea11aa42 | /src/game.py | b0edf4db2760a5b0e9b2d7f44cc296114aac6453 | [
"Apache-2.0"
] | permissive | kyleyarwood/the-resistance | 552b066c0f256482d3a07609087e088a0183eb97 | 6d36104fc036408446af39628451bd2e41bafc77 | refs/heads/main | 2023-01-22T11:14:59.197278 | 2020-11-29T20:59:12 | 2020-11-29T20:59:12 | 316,886,772 | 0 | 0 | Apache-2.0 | 2020-11-29T22:46:00 | 2020-11-29T05:59:17 | Python | UTF-8 | Python | false | false | 101 | py | class Game(object):
def __init__(self, num_players: int):
self.num_players = num_players
| [
"yarwoodkyle@gmail.com"
] | yarwoodkyle@gmail.com |
7811a92ec72ab24ddeb7726e87642608b75d9e19 | 8ac9b0cd5087855f36e59f9685f9fa40270d9ce5 | /coreutils/kwiztunn/fuzzer.py | 57c9467e688417925b3fffa1d241d3d9f6015abb | [] | no_license | soarlab/cs5959-f15-shared | e90440d094b4fd825960b34d75fbf7b72dbca103 | a53c445cc5f126ef9fce1d76b361701965d9a756 | refs/heads/master | 2016-09-05T20:42:18.527892 | 2015-12-11T06:35:25 | 2015-12-11T06:35:25 | 41,323,146 | 2 | 5 | null | 2015-12-09T21:05:51 | 2015-08-24T19:37:24 | C | UTF-8 | Python | false | false | 3,033 | py | #fuzzer.py
# fuzzes: 1) add word, line, and/or byte
import random
import string
import subprocess
expected_word_count = 0
expected_line_count = 0
expected_byte_count = 0
logged_errs = 0
def set_zero():
global expected_byte_count
global expected_word_count
global expected_line_count
expected_word_count = 0
expec... | [
"kwiztunn@gmail.com"
] | kwiztunn@gmail.com |
72c1be6bcfb8580304d1dc0d10de7f18699c9b28 | ec19603130dddeb4b8298ee020965030d66edc81 | /src/networkService/servicos/informacao/informacaoQt.py | 19fd21829654effa14a3be1fdce01111d7712a16 | [] | no_license | tassio/NetworkService | 9a5f08c0e3b92cbe34fc99c36e80f57fcbd258f0 | f800d48d8af94bf8d927fd440eab7a1c40296066 | refs/heads/master | 2016-09-09T23:33:14.584056 | 2012-12-13T15:06:24 | 2012-12-13T15:06:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,885 | py | #-*- coding: utf-8 -*-
from PyQt4.QtNetwork import QNetworkCacheMetaData, QHostAddress
from PyQt4.QtGui import QColor, QBrush, QCursor, QFont, QIcon, QImage, QKeySequence, QListWidgetItem, QMatrix, \
QPainterPath, QPen, QPicture, QPixmap, QPolygon, QPolygonF, QQuaternion, QRegion, QSizePolicy, QStandardItem, \... | [
"tassio@infox.com.br"
] | tassio@infox.com.br |
dff2c4c6b24ea68093845fe8c8cc96b6c0b00eb6 | 4f7962d02254ab6e5cf692648c933394ff41c79d | /component_sdk/python/tests/google/bigquery/test__query.py | 06d91a42747f7c24d3454014f3d87a395c35ebae | [
"Apache-2.0"
] | permissive | yebrahim/pipelines | 5414131f5ab176aa7607114e3a0d23db73f5c8c8 | 77df6c2438f4cf6b81c97ecf4dac9fdbac0e3132 | refs/heads/master | 2020-04-08T13:23:50.628537 | 2019-03-01T18:35:47 | 2019-03-01T18:35:47 | 159,389,183 | 1 | 0 | Apache-2.0 | 2018-11-27T19:37:57 | 2018-11-27T19:37:56 | null | UTF-8 | Python | false | false | 2,545 | py | # you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIE... | [
"k8s-ci-robot@users.noreply.github.com"
] | k8s-ci-robot@users.noreply.github.com |
7ca9ac0a216728a647c1da58e0b311e1690ce6e1 | 922a4f63f71e8833ecb240387d675ddfddf13845 | /PythonProgrammingAssignmentsII/Q20.py | 042c6100010d3493d297cb3fed73f20a55511bfb | [] | no_license | asmitbhantana/Insight-Workshop | 0ed9e6de49dc15f0447166227f404f108ffaad2e | 54f9ce92fe47a01b08440d20aa850dfc97fa0423 | refs/heads/master | 2022-11-19T19:14:56.557014 | 2020-07-24T07:32:12 | 2020-07-24T07:32:12 | 275,709,809 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | """
20. Write a Python class to find the three elements that sum to zero
from a list of n real numbers.
Input array : [-25, -10, -7, -3, 2, 4, 8, 10]
Output : [[-10, 2, 8], [-7, -3, 10]]
"""
if __name__ == '__main__':
usr_list = [-25, -10, -7, -3, 2, 4, 8, 10]
required_result = 0
usr_list.sort()
require... | [
"bhantanasmit@gmail.com"
] | bhantanasmit@gmail.com |
f43c45ddc970d151dfd3d0a8ab6b0bf730583634 | beab31cd46c1ff0c434c8dcb2b6c309f5eb1829d | /teach_learn/exams/migrations/0005_auto_20201219_1603.py | 7b8f36733f4af5036d403fff1b310762fb6facc5 | [] | no_license | hack-learn/backend | 3c7180a261ad10292381b966c74935434584eab2 | c91d88844d3b921fbcb05158e259d0b471542e68 | refs/heads/main | 2023-02-02T15:00:53.472925 | 2020-12-19T19:16:15 | 2020-12-19T19:16:15 | 322,457,778 | 0 | 0 | null | 2020-12-19T03:19:50 | 2020-12-18T01:38:34 | Python | UTF-8 | Python | false | false | 495 | py | # Generated by Django 3.1.4 on 2020-12-19 16:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('exams', '0004_auto_20201219_1552'),
]
operations = [
migrations.AlterField(
model_name='answer'... | [
"cristhianeduardo03@hotmail.com"
] | cristhianeduardo03@hotmail.com |
b80a73a476dcb65ccb5cd974f2e19631cb2baa68 | c0699f810005e1e9cb3aa09c6e08e55e10b27d5d | /libDep.py | d39c4f37b45ab8280f00f4481b2167d271367281 | [
"MIT"
] | permissive | iamunr4v31/Automatic_switchOff | d94019b66e02b881d17e5440c9d25927204cfc92 | 7ae27a712a5702536bc51257374c7649375d6d92 | refs/heads/master | 2022-04-16T05:13:56.348673 | 2020-01-09T14:22:40 | 2020-01-09T14:22:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import os
import platform
if(platform.system() == 'Windows'):
FILENAME = 'terminateFile.bat'
elif(platform.system() == 'Linux'):
FILENAME = 'idle.sh'
TIME = 900
PATH = os.getcwd()
# print(platform.system()) | [
"noreply@github.com"
] | iamunr4v31.noreply@github.com |
814d27bcabba4baf23d28d692bd0f91556ee95c4 | 5e35005a59ccd02988932356e73ca73b452e25f1 | /8.跳台阶.py | 1c7d3e0a36a95463bf094871de7d64f13d8e72e1 | [] | no_license | foxzyxu/offer | 9887030137c20e1aedcb5c0e00f8866e4dfa0842 | 4fb0d9f9fc6308967415ad4e6708b03919bfe191 | refs/heads/master | 2020-05-31T05:37:09.493630 | 2019-06-04T03:31:43 | 2019-06-04T03:31:43 | 190,121,553 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | class method:
def jumpbox(self,n):
if n==0:
return 0
if n==1:
return 1
if n==2:
return 2
if n>2:
fibo_list=[1,2]
for i in (3,n+1):
fibo_list[0],fibo_list[1]=fibo_list[1],fibo_list[0]+fibo_l... | [
"noreply@github.com"
] | foxzyxu.noreply@github.com |
129863d00cccb8a19b5adbe2d12eaf8deed86c74 | bebe65ae5ea5d15eca9a388ddf86ca5b352762a6 | /bin/bubbles | 5b12642f3e732cd6140f54e107df357d82c1eebb | [
"MIT",
"LicenseRef-scancode-saas-mit"
] | permissive | biswapanda/bubbles | f65aa11b129cf272be1205ef1fd8f885b215216d | 6c6bd7b378e53bc0edcbbb35c2211922e1cb2100 | refs/heads/master | 2021-01-17T19:16:58.100977 | 2013-12-08T21:31:21 | 2013-12-08T21:31:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,839 | #! /usr/bin/env python3
#
"""
Bubbles command line tool
For more information run: bubbles --help
Paths:
* /etc/bubbles:~/.bubbles:.bubbles
Config:
* config.ini
Author: Stefan Urbanek <stefan.urbanek@gmail.com>
"""
import argparse
import json
import sys
import configparser
import os.path
import argparse... | [
"stefan@agentfarms.net"
] | stefan@agentfarms.net | |
fc1d3edf73b0a1b62a6d8040a5fa74216a84dd72 | f8c42e61fcd7cd8cb2baaed79b06ce147b09efab | /PE/PE3/interleave.py | 3b25abd86eb558c65d9cdf02882c0ae3759360a4 | [] | no_license | NunationFL/FPRO | 31bbba0a2a80d8fdec5c66353726c96fd17cfaa7 | ed3436148759ab8065e06eac3cee849aa2eb7f92 | refs/heads/master | 2021-02-05T12:18:16.814184 | 2020-02-28T14:40:01 | 2020-02-28T14:40:01 | 243,779,473 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 765 | py | def interleave(alist1, alist2):
out2=[]
if len(alist1)<=len(alist2):
for i2,elem2 in enumerate(alist1):
if type(elem2)==list:
out2+=connect(alist1[i2],alist2[i2])
else:
out2+=[alist1[i2],alist2[i2]]
else:
for i2,elem2 in enumerate(alist... | [
"oliveiranunopt@gmail.com"
] | oliveiranunopt@gmail.com |
5a1ad840edc1d0ca68d0087d4ec58a1799c74647 | 6843258fe430c67ffa01e909d1650df390369d93 | /errata_tool/__init__.py | d0efa742971710c04b6bc0d10dfd7c1f99727682 | [
"MIT"
] | permissive | ralphbean/errata-tool | 86df0c5a5bdd65d62e01653f003ac2ecf3e2f092 | d7f999a34ef2780e5218b071a4cd99b35b8702de | refs/heads/master | 2021-05-15T05:34:04.761851 | 2017-11-18T03:59:38 | 2017-12-14T21:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | from .exception import ErrataException
from .connector import ErrataConnector
from .erratum import Erratum
__all__ = ['ErrataException', 'ErrataConnector', 'Erratum']
__version__ = '1.9.0'
| [
"kdreyer@redhat.com"
] | kdreyer@redhat.com |
d0ba4f994ab771e8998110d9fece77dcff45f646 | 9d59e5bc0e34acf5b16e8355131ae12d3c2a8f86 | /venv/bin/pip-2.7 | 57e8cfb64136543d3b2d50b9a5045f2c05deb27d | [] | no_license | JesseYan/ShareTool | f94ba9f22943a9bc072d940fb88cac1fe74dd12e | d7eb3918cee6d41f12e8e9c078d2ac14225e17ed | refs/heads/master | 2021-01-01T05:24:00.193385 | 2016-06-07T09:21:20 | 2016-06-07T09:21:20 | 56,979,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | 7 | #!/Users/jesse/workspace/mycode/ShareTool/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.4.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.4.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.4.1', 'console_scripts', 'pip-2.7')... | [
"jiayi.yan@kanche.com"
] | jiayi.yan@kanche.com |
6ab0aa8a329c0385ffa2d4c352ccbc4be14a74f1 | 82c00912ea586a974c33f746244face03c422ee0 | /hydrogen.gyp | 8f804576bd4e424a247ae3ee159023c5f0efcb5f | [] | no_license | aspectron/hydrogen | da10831c5d6d9faec73145071217ab7458bf7b68 | c07c4e1ee22a25c44f6c042a0e1e7010cbfda94a | refs/heads/master | 2021-01-23T02:23:23.013770 | 2014-11-06T09:37:26 | 2014-11-06T12:32:17 | 15,977,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,261 | gyp | {
'conditions': [
['OS=="win"', {
'variables': {
'gl_include_dirs': ['extern/glew/include'],
'gl_libraries': ['-lopengl32', 'extern/glew/lib/$(ShortPlatform)/glew32.lib'],
},
}],
['OS=="mac"', {
'variables': {
... | [
"pmedvedev@gmail.com"
] | pmedvedev@gmail.com |
fb1f056afbe9e8936043b8f4c7fc35797965523c | 77bfea5e07888ba3e5333d520db9cb87d98bc3b5 | /odd numbers.py | 7dfaba9b1dde01926b707d86c30e132f443fee8e | [] | no_license | terryproctor/python_stuff | 51624c394bf923cc795641fe6b4d311cc16de478 | aa806ba3fa46d88ebaf28515f7cc8ecc03b24d31 | refs/heads/master | 2022-12-01T19:49:13.960312 | 2020-08-22T19:49:24 | 2020-08-22T19:49:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | odd_numbers = list(range(1,20,2))
for number in odd_numbers:
print(number)
| [
"noreply@github.com"
] | terryproctor.noreply@github.com |
8f9c22241b044235deef58939384d919f47f95cd | 69cefe8f6a840340da8f59dae30530f2374a2fec | /get_name_and_delete.py | 324921bf3954d237a773e5eaa36b2f18041596d6 | [] | no_license | sofiamay/aws-server-naming | cfb2e82cac4467785d9e3b1e50d4fc8055acf3a9 | f864fcaf1b02a1a43acd03175fe443dbf30f8c80 | refs/heads/master | 2020-04-07T04:12:04.112953 | 2019-05-22T23:41:56 | 2019-05-22T23:41:56 | 158,044,340 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,585 | py | import json
import boto3
from botocore.exceptions import ClientError
#When starting a new EC2 istnace: a
# ) retrieve a name from the database b) assign it to the new EC2 instance c) delete that name from the database
client = boto3.client('ec2')
ec2 = boto3.resource('ec2')
dynamodb = boto3.resource('dynamodb', region... | [
"sofiamberlin@gmail.com"
] | sofiamberlin@gmail.com |
b38b46fd26f5a49bcaa3e1b5de0b4f3f25a2e70a | d272b041f84bbd18fd65a48b42e0158ef6cceb20 | /catch/datasets/gyrovirus_gyv7-sf.py | 5cf9a7265da81fb03c45e238b7ce53b151c9e6c3 | [
"MIT"
] | permissive | jahanshah/catch | bbffeadd4113251cc2b2ec9893e3d014608896ce | 2fedca15f921116f580de8b2ae7ac9972932e59e | refs/heads/master | 2023-02-19T13:30:13.677960 | 2021-01-26T03:41:10 | 2021-01-26T03:41:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | """Dataset with 'Gyrovirus GyV7-SF' sequences.
A dataset with 1 'Gyrovirus GyV7-SF' genomes.
THIS PYTHON FILE WAS GENERATED BY A COMPUTER PROGRAM! DO NOT EDIT!
"""
import sys
from catch.datasets import GenomesDatasetSingleChrom
ds = GenomesDatasetSingleChrom(__name__, __file__, __spec__)
ds.add_fasta_path("data/g... | [
"hmetsky@gmail.com"
] | hmetsky@gmail.com |
4cdaaf90d80f35a781594c71803367c8567fadc9 | 8db979435e9d13ae6f473eef39f8d7c38f324992 | /Python Course Programs/Hads Game/HadsByYou.py | fff440217b63c53a90e1d456e72d7d3c968be8c1 | [] | no_license | m-nemati/Programming-Course-Codes | 2a2265373f150325e28f9e68bd0bfc3f2eb6f32e | fb285ffec0b0a82460d4a343a4e4360f53ed5a04 | refs/heads/master | 2020-05-30T12:12:50.704892 | 2019-06-02T06:15:16 | 2019-06-02T06:15:16 | 189,724,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | import random
javab = random.randint(1, 99)
hads = input('Hads Bezan: ')
hads = int(hads)
while hads != javab:
if hads < javab:
print ('Lower Than Javab')
else:
print ('grater than Javab')
hads = input('Hada Bezan Dobare: ')
hads = int(hads)
print ("WOOOOOOOWW!!!") | [
"m.nemati2002@gmail.com"
] | m.nemati2002@gmail.com |
8a3de5ed32f6755687dc77858aa6898715c57094 | 4cca59f941adce8a2d71c00c0be5c06857f88dcc | /snisi_epidemiology/migrations/0002_auto_20141008_1439.py | 4dd9a51d66cf927b3667f0698d7d55c83299de1f | [
"MIT"
] | permissive | brahimmade/snisi | 7e4ce8e35150f601dd7b800bc422edec2d13063d | b4d0292b3314023ec9c984b776eaa63a0a0a266f | refs/heads/master | 2023-05-07T19:04:04.895987 | 2017-12-29T18:58:22 | 2017-12-29T18:58:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,137 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('snisi_epidemiology', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='aggepidemiologyr',
... | [
"rgaudin@gmail.com"
] | rgaudin@gmail.com |
5f196eb90ca10b6903110c65d766c4ffb8637b75 | 7d68415da1352cb323b4a0ceb94ae50bef071f6f | /sales_prediction.py | 9e2d1a46c361c7aef4bb067b46420aab50c5ef46 | [] | no_license | Jayashree24/machine_learning | d5bae05cffbb9e2767fd45eac013616d3f8dc28e | bec919bc89df01eead881a696ac53722cda9e753 | refs/heads/main | 2023-02-17T11:17:47.633114 | 2021-01-20T18:47:32 | 2021-01-20T18:47:32 | 331,363,569 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,262 | py | import pandas as pd
import seaborn as sns
import statsmodels.formula.api as smf
from sklearn.linear_model import LinearRegression
from sklearn import metrics
from sklearn.model_selection import train_test_split
import numpy as np
import matplotlib.pyplot as plt
import quandl as Quandl, math
from sklearn import preproce... | [
"jayashreemanipal@gmail.com"
] | jayashreemanipal@gmail.com |
15ce5417ce2ff1fbb58eb3546b3bbb5e36e91223 | 06df5da2cbafb484ffa616eeb702e79b7f84b837 | /SSL_Classifiers/SC3MC.py | c7492204cb4b8730da8c3fb6f2c87ec9cad107d5 | [] | no_license | SamFangshan/EnsembleSSLProject | bc74397d9fb4cd1992cf98f916fcf33954dcf100 | 3b8a283a20cffd9851150f31a55a926c824a6b0d | refs/heads/master | 2022-07-24T04:44:59.218447 | 2020-04-29T05:27:42 | 2020-04-29T05:27:42 | 252,693,199 | 1 | 0 | null | 2022-06-22T01:49:12 | 2020-04-03T09:52:50 | Python | UTF-8 | Python | false | false | 7,241 | py | from sklearn.base import clone
from sklearn.model_selection import train_test_split
from sklearn.metrics import accuracy_score
from scipy.spatial import distance
import numpy as np
import pandas as pd
import statistics
class SimpleVotingClassifier:
"""
A weighted voting classifier that uses already trained bas... | [
"fjiang003@e.ntu.edu.sg"
] | fjiang003@e.ntu.edu.sg |
735cbb7dfb9b821b50fe2b7be81fe9770ca3d8d1 | ef16d4d796588cbf0d5cb0f84727812e7866f92e | /myvenv/bin/symilar | e547e7e0d4da4224aa8441aff9d3b4c6c945a143 | [] | no_license | shortnd/django_blog | 5b24f4c40cd79181a946de6f7edecc9490279839 | aaa8c92e3281924b2e2ece54338899c0879ee7b2 | refs/heads/master | 2020-05-03T17:19:54.363860 | 2019-03-31T21:04:23 | 2019-03-31T21:04:23 | 178,742,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | #!/Users/kortr/code/python/djangogirls/myvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"ococncol@gmail.com"
] | ococncol@gmail.com | |
7994b7e85ed04864d97b10a003a6fc9bb03af5b3 | 0d2aeff23eb19e92a6d5ca1b198b98afa81e2bcc | /Python/LIS.py | d7a8cb1b62e440ddd07b344f15ae782a6231015a | [
"MIT"
] | permissive | prasadshirvandkar/Algorithms | 542259932a564834e24a1f2cadd9c7e01446d2d6 | c3f524d2e75fb9a16b6ced631bd4450ce3383332 | refs/heads/master | 2021-06-06T12:45:16.110329 | 2016-11-24T07:22:37 | 2016-11-24T15:44:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 952 | py | # LIS (Longest Increasing Subsequence) Problem:
# Find the length of the longest subsequence of a given sequence:
# such that all elements of the subsequence are sorted in increasing order.
# For example, length of LIS for { 10, 22, 9, 33, 21, 50, 41, 60, 80 } is 6 and the LIS is {10, 22, 33, 50, 60, 80}.
# This is ... | [
"abhishek.r.divekar@gmail.com"
] | abhishek.r.divekar@gmail.com |
d19a6a301dd28e927ff9f73db2c76e0e2020eb60 | bcc7cfbf950e142bf232c399e88932b3e4ce909d | /leetcode/746-MinCostClimbingStairs.py | 2593139d9b0a71313bdf121306fa415c875db605 | [] | no_license | TommyCpp/AhaMoment | 2bcca68d1f227a478d2c67fbee851725cd69bf26 | b91c7bf5085d493379f95c883ce9f0c022ee4538 | refs/heads/master | 2023-03-12T13:22:17.143423 | 2023-03-12T04:29:37 | 2023-03-12T04:30:10 | 106,988,933 | 0 | 1 | null | 2023-02-10T03:28:25 | 2017-10-15T06:22:54 | Rust | UTF-8 | Python | false | false | 501 | py | class Solution:
def minCostClimbingStairs(self, cost):
"""
:type cost: List[int]
:rtype: int
"""
cost.append(0) # Add the destination
target = len(cost)
d = [0]*(target+1) # Add start
for i in range(1,target+1):
if i == 1:
... | [
"noreply@github.com"
] | TommyCpp.noreply@github.com |
5fbc5980a9f1ac2a3ee9fab656090ecd0cbfdd7b | 0c919fc7c66272e6b7ceb0f10bf20ef8d508c21d | /torch_0.3.1/Others/statistics.py | a63a4f243d4413c10da45c3454a6f08bb09be588 | [] | no_license | yinizhizhu/MOT_GN | b4eab12a3030dab8cf1f560425f030061e737441 | f2781431cc6e57bdd1a0c3bf93f87292576a31b8 | refs/heads/master | 2020-03-27T21:18:26.849046 | 2019-12-19T09:01:30 | 2019-12-19T09:01:30 | 147,133,888 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,344 | py | from PIL import Image
def load_img(filepath):
img = Image.open(filepath).convert('RGB')
return img
class statistics():
def __init__(self, cuda=True):
self.trainDir = 'MOT16/train/'
self.testDir = 'MOT16/test/'
self.label = ['', 'Pedestrian', 'Person on vehicle',
... | [
"lijiahe19941013@sina.cn"
] | lijiahe19941013@sina.cn |
e7a420ebd01d89bb9fabbab48f9557d38d07051a | dc65c877f1753126c43dd9dab242f327e4f7fbf4 | /Twitter Sentiment Analysis/Model Testing/Twitter_API/Prediction.py | cfb21a90eb4baeb572720ad858e971aae25c903b | [] | no_license | AkankshaKaple/ML_Problems | 97d9c11924b46d6823dde7d31de76de81cf1915a | 944e83a52f5bb9b151516380df44b9cb8a18c8d8 | refs/heads/master | 2023-01-10T05:56:38.382527 | 2021-02-27T11:14:09 | 2021-02-27T11:14:09 | 177,715,030 | 4 | 1 | null | 2023-01-07T18:56:48 | 2019-03-26T04:30:05 | Jupyter Notebook | UTF-8 | Python | false | false | 2,294 | py | from flask import Flask, render_template, request
import re
import nltk
import pickle
app = Flask(__name__, template_folder='template', static_folder='style')
"""
Import model for prediction
"""
path = 'model/logistic_model.pkl'
with open(path, 'rb') as file:
bow_obj = pickle.load(file)
model = pickle.loa... | [
"akankshakaple@gmail.com"
] | akankshakaple@gmail.com |
7c727f1ec6f724583bb0db286d2e4b3d3f61860a | 87b6333398fd79a4e5352be87b413368daec3c8d | /pygame/color.py | d48cb357ff23491402da6cf1c7319f5c9b1de7f8 | [] | no_license | karagdon/pypy | 65a8c8ec622cf9ca163e6c1cdac57dea7a408ee4 | 998347dc5d4b66d5372f1df793beeb13fd3dd51d | refs/heads/master | 2021-01-20T10:38:53.032975 | 2015-06-12T05:07:00 | 2015-06-12T05:07:00 | 22,055,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | import pygame
from pygame.locals import *
from sys import exit
r=min(255, input("Enter the red colour intensity :"))
g=min(255, input("enter the green colour intensity : "))
b=min(255, input("enter the blue colour intensity :"))
screen=pygame.display.set_mode((640,480),0,24)
pygame.display.set_caption("colour testi... | [
"karagdon@gmail.com"
] | karagdon@gmail.com |
066a1c5df73dd3d29347781664c88fc58a2ca994 | 019c78e21f861b6a56800877082a9c155dd8fb5f | /niveau-02/chapitre-4-fonctions/02-deux-codes-secrets-obligatoire.py | f63d0032b5d7f7e7b581e0a0a96d1af4008a9cd2 | [] | no_license | donnerc/oci-prog-exos | 0c0bd50a93896826251e343baa9836e6d09fc9fd | de5da49fb8a3df56ef12c4f9ea284d476e999434 | refs/heads/master | 2021-01-23T13:16:59.304820 | 2015-01-13T15:57:22 | 2015-01-13T15:57:22 | 13,173,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py |
##################################
# fichier 02-deux-codes-secrets-obligatoire.py
# nom de l'exercice : Deux codes secrets
# url : http://www.france-ioi.org/algo/task.php?idChapter=509&idTask=0&sTab=task&iOrder=3
# type : obligatoire
#
# Chapitre : chapitre-4-fonctions
#
# Compétence développée :
#
# auteur :
######... | [
"cedonner@gmail.com"
] | cedonner@gmail.com |
a538af6a464fa56591c72692d25ab74aa2ef4463 | 7857b4f02001c3e0ac0317fa501a4bacc8ea335b | /logic_tutorial.py | 20c0ea7cc1dc5ceb8e4405692f0ade77a4859382 | [
"MIT"
] | permissive | twtrubiks/leetcode-python | 65a2035fe2c9e4a65b09f5d65df7b24be385d6fc | e46b32f6de4c0711ef44b7f2a482dc59657aa5e5 | refs/heads/master | 2022-01-12T01:34:50.628413 | 2022-01-10T06:30:21 | 2022-01-10T06:30:21 | 55,111,802 | 25 | 18 | null | null | null | null | UTF-8 | Python | false | false | 759 | py |
def trunk_1(arr_1, size_1):
result_1 = []
while arr:
pop_data = [arr_1.pop(0) for _ in range(size_1)]
result_1.append(pop_data)
return result_1
def trunk_2(arr_2, size_2):
arrs = []
while len(arr_2) > size_2:
pice = arr_2[:size_2]
arrs.append(pice)
arr_2 = ... | [
"twtrubiks@gmail.com"
] | twtrubiks@gmail.com |
4a3277991c8950a4b4f7aee0b4cac9c9931f719d | cdafb14fe1f4e334960c91b2f53bc7e48b40a93c | /tv/create.py | 0621256e21c56a58e8eccfc975b7470b6d04afd5 | [] | no_license | alireza-E/alireza- | b15801d8c194fd82990f602d2759d2b67f1d5ec6 | b577ff8a6d81672ce9126e1bdd4ee603458f3207 | refs/heads/master | 2022-12-24T05:41:12.098687 | 2020-10-04T13:40:30 | 2020-10-04T13:40:30 | 301,139,516 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 779 | py | from term4.person.connect import Connect
class Create():
def __init__(self, name, family, age, phone):
self.name =name
self.family = family
self.age = age
self.phone = phone
def create_data(self):
try:
conn, cursor = Connect().do_connect()
query ... | [
"Rominash@gmail.com"
] | Rominash@gmail.com |
ee47897b3d2630911853caed750cf9a019d5752d | e5985aec3e40fa36caddf92471309dae19d9e7de | /6_replace_snp.py | c45860e0005571df2cb2153f3c562abe01d9f09f | [] | no_license | jingjingzhai/DeepTFBS | 55e232a8c8e7ec256403ec7fb1a5a7b73ad765ee | ad78e270ccdc5379ca3e696c786daccbccd124e3 | refs/heads/master | 2020-09-30T14:20:24.470474 | 2019-12-11T07:50:10 | 2019-12-11T07:50:10 | 227,305,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,670 | py | from Bio import SeqIO
import numpy as np
import sys
'''
Usage:
python 6_replace_snp.py intersectSNP.txt peakSequence.fa peakMatrix.txt output.fa
'''
intersectSNPDir = sys.argv[1]
peakSeqDir = sys.argv[2]
peakDir = sys.argv[3]
outDir = sys.argv[4]
SNP = np.loadtxt(intersectSNPDir, dtype="str")
#peakName = "/home/mal... | [
"zhaijj@dijingjingdeMacBook-Pro.local"
] | zhaijj@dijingjingdeMacBook-Pro.local |
bc370ab02f4412d3115dff750ed79fd6ada8e58e | 0e1e643e864bcb96cf06f14f4cb559b034e114d0 | /Exps_7_v3/doc3d/I_w_M_to_W_focus_Zok_div/ch096/wiColorJ/Add2Loss/Sob_k25_s001_EroM_Mae_s001/pyr_Tcrop255_p20_j15/pyr_4s/L8/step10_a.py | 6e74bc48fa90b826fdfd8e45ba9c7b2b91a824a4 | [] | no_license | KongBOy/kong_model2 | 33a94a9d2be5b0f28f9d479b3744e1d0e0ebd307 | 1af20b168ffccf0d5293a393a40a9fa9519410b2 | refs/heads/master | 2022-10-14T03:09:22.543998 | 2022-10-06T11:33:42 | 2022-10-06T11:33:42 | 242,080,692 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270,666 | py | #############################################################################################################################################################################################################
##################################################################################################################... | [
"s89334roy@yahoo.com.tw"
] | s89334roy@yahoo.com.tw |
3274140fd519bcfb914bcc7d3ab60abe303a783e | 780395c4e0041458a2a8f757e64c80c54f7d8077 | /tcp_proxy/config.py | 5d9c471ecac92013c0c360528190990b1e07a69d | [] | no_license | StevenDavidWD/BHP | f9a2efcc399df200a3a45e9898acd52e63e56521 | e8753372e12452022186edd37044e27f02e7e0e5 | refs/heads/master | 2021-01-15T21:44:43.147398 | 2015-08-28T10:55:29 | 2015-08-28T10:55:29 | 41,530,163 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | remote_host = ""
remote_port = 0
local_host = ""
local_port = 0
receive_first = False | [
"1059761126@qq.com"
] | 1059761126@qq.com |
d8b391464352a1590a34fd098cf5e860f1b9e13f | d4dd5212750acef9780c6611e173b662000917f0 | /articles/admin.py | 1504f409f4a4947c863aa78a1f086345a44bd51a | [] | no_license | aayushgupta05/Newspaper-App | c31c659eacba50b88c33159e31220b79e0631050 | 01b26dee35d12cdfa0f513445ea22d5eaf483755 | refs/heads/master | 2023-03-29T18:34:09.415348 | 2021-02-22T11:33:20 | 2021-02-22T11:33:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | from django.contrib import admin
from .models import Article, Comment
class CommentInline(admin.TabularInline):
model = Comment
class ArticleAdmin(admin.ModelAdmin):
inlines = [
CommentInline,
]
admin.site.register(Article, ArticleAdmin)
admin.site.register(Comment)
| [
"aayushgupta92780@gmail.com"
] | aayushgupta92780@gmail.com |
ff727242d23fca55111f70f4ea04897f20f13b39 | 3edc08a698e1271e9b9dfa9881392035916aac90 | /QuotesSpiderYield.py | 0e0e29afd3ca388a42e289a490f821cdd279c69c | [] | no_license | xiaofang168/scrapy_coll_site | 45db733c6e2c10cc4043ecfc6bccc59b71b6cd92 | 9eb6d39a8904748b4a78bc73781d8e46812be767 | refs/heads/master | 2020-03-26T21:20:34.787140 | 2018-08-20T07:28:48 | 2018-08-20T07:28:48 | 145,382,116 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import scrapy
class QuotesSpider(scrapy.Spider):
name = "quotes"
start_urls = [
'http://quotes.toscrape.com/page/1/',
'http://quotes.toscrape.com/page/2/',
]
def parse(self, response):
for quote in response.css('div.quote'):
yield {
'text': quote.css('span.text::text').extract_first(),
'author':... | [
"fangjie@etouch.cn"
] | fangjie@etouch.cn |
1c08aa5b00a39ce7bf7e99c24827a058692f536f | 186eee222e82e85006fbb29cfd6f7234de78afa0 | /ex_1.py | 95a766dbf449f63c7218180872c23c8c43634346 | [] | no_license | muraveev/lab_4 | 34953e9629b30c02baa951e446f8048b1fbc4fe5 | 617fbeeb998d0d30fef5286bceb41e8bfa21bb9b | refs/heads/master | 2021-08-22T22:45:10.299156 | 2017-12-01T14:08:44 | 2017-12-01T14:08:44 | 111,106,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 561 | py | #!/usr/bin/env python3
from librip.gens import field
from librip.gens import gen_random
goods = [
{'title': 'Ковер', 'price': 2000, 'color': 'green'},
{'title': 'Диван для отдыха', 'price': 5300, 'color': 'black'},
{'title': 'Стелаж', 'price': 7000, 'color': 'white'},
{'title': 'Вешалка для оде... | [
"noreply@github.com"
] | muraveev.noreply@github.com |
b9e253eb4923d77fa65f69cba6d777165b3931bd | a4c40355d05f6ba148fcdd45ca940275747d3d67 | /code/extraction/normalize_wdi.py | 527162b206ae5fa84c270a82cb06dd20ef99775e | [] | no_license | johanneshoetter/Health-Data-Integration | a0011548cc91dbf923556ebf947c59a02b48c8b8 | b9ae991eba8d5794396b826cfaaf75e175dfd56e | refs/heads/master | 2020-09-15T13:55:07.580371 | 2020-01-27T17:04:59 | 2020-01-27T17:04:59 | 223,467,598 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 831 | py | import pandas as pd
from code.utils.dataframe_utils import df_to_sql
from code.config import mapping_cols
def normalize_wdi(engine):
df = pd.read_sql_table('wdifootnote', con=engine)
mappings_description = {}
descriptions = list(df['DESCRIPTION'].unique())
for idx, description in enumerate(description... | [
"57453680+johanneshoetter@users.noreply.github.com"
] | 57453680+johanneshoetter@users.noreply.github.com |
17c5c6d54d9f9ebe29665ce5dbc86b6901bc42a9 | 108f582e55a787280d165db14fa9b82d60756a29 | /pyqt-calculator/hello.py | 5077a85ad5a6b8808be5cb8077dbb1b68631b727 | [] | no_license | dabrygo/tutorials | c6abcb6c1450979630b44412543f36ad14ff9243 | 8c3b83ccded5c9f80db3e8f8bb2055cbac6090be | refs/heads/master | 2023-06-23T16:13:23.652928 | 2019-12-27T02:52:31 | 2019-12-27T02:52:31 | 122,142,982 | 0 | 1 | null | 2018-03-24T02:58:05 | 2018-02-20T01:33:27 | TeX | UTF-8 | Python | false | false | 686 | py | # Filename: hello.py
'''Simple Hello World example with PyQt5.'''
import sys
# 1. Import `QApplication` and all the required widgets
from PyQt5.QtWidgets import QApplication
from PyQt5.QtWidgets import QLabel
from PyQt5.QtWidgets import QWidget
# 2. Create an instance of QApplication
app = QApplication(sys.argv)
#... | [
"dbgodfrey89@msn.com"
] | dbgodfrey89@msn.com |
18f02fbb87e0b8fd189b96c2bfff0e71823e04a0 | 964389493dafe5ae0ba5fde55238dc6be6fec968 | /code/common/dynamo_manager.py | 2ce2c048b5eb4088a929307f081bfc716bed5849 | [
"MIT"
] | permissive | TrendingTechnology/hawking | e60a5f192f7c1dc24d0701f3dcfe3eb76c73bcd8 | 1496fedfd6c03c2f8eec7da3ad800549f2fdb989 | refs/heads/master | 2023-06-16T18:04:32.743668 | 2021-07-19T04:23:22 | 2021-07-19T04:23:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,869 | py | import os
import base64
import time
import logging
import uuid
import boto3
from boto3.dynamodb.conditions import Key
from common import utilities
## Config
CONFIG_OPTIONS = utilities.load_config()
## Logging
logger = utilities.initialize_logging(logging.getLogger(__name__))
class CommandItem:
def __init__(self... | [
"naschorr@gmail.com"
] | naschorr@gmail.com |
c05a70e9932fbcaa42a87f675ca3394bb5e028b4 | 0a745c5e79f77489770b3c123b6406b81f1a7085 | /tests/datasets/test_dataset_item.py | 15de7e865b13202ff8fe7ffce1e3335a6dcc9e1f | [
"Apache-2.0"
] | permissive | abeja-inc/abeja-platform-sdk | 83434ead1413a7565489751dfd51ba3d3bd2fd23 | 80665d689e47307997c0190008b0ae55f04ebdee | refs/heads/develop | 2023-09-05T08:26:03.076846 | 2023-08-23T04:55:01 | 2023-08-23T04:55:01 | 253,412,585 | 3 | 1 | Apache-2.0 | 2023-08-23T04:47:04 | 2020-04-06T06:23:26 | Python | UTF-8 | Python | false | false | 21,070 | py | import unittest
from mock import MagicMock, patch
from parameterized import parameterized
from abeja.datalake.file import DatalakeFile
from abeja.datasets.dataset_item import DatasetItem, DatasetItems, DatasetItemIterator
DATASET_ITEM_SOURCE_DATA_DATALAKE = [
{
'data_type': 'image/jpeg',
'data_u... | [
"noreply@github.com"
] | abeja-inc.noreply@github.com |
d1ddd85cbc64448548a583fa32a3ab476f8b2d95 | 09d80d6cdb398d16cd3deb774a8a8d93ca7b9fad | /products.py | 503d8cea4378ea6e20993319b1fba55e02461bff | [] | no_license | willpennell/product_scheduler | 2da76c381d109350580bbbcca5cf6022803a4c0b | 9e23aa3d6dc9c81e0c63df58fca489adf9af76cf | refs/heads/main | 2023-03-31T07:38:47.133125 | 2021-03-28T21:03:28 | 2021-03-28T21:03:28 | 352,419,210 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,371 | py | import openpyxl, os, shutil
from directory import FileLocations
class NewProduct:
""" class for product input """
def __init__(self):
""" Initailise new product object """
self.labels = { 'apollo sound': 'Apollo Sound', 'delectable records': 'Delectable Records', 'element one': 'Element One', 'g... | [
"will.phanta@gmail.com"
] | will.phanta@gmail.com |
f3e21ce178f17c391639362e8f9e45cebf65c299 | 83b53bdfd3e5d92fa95dd3abd6b1eb6f75e9f1d5 | /scripts_my/myScript_Participation.py | 5d005b19283a5360f7e5be6ab5cf8902779d7a9e | [] | no_license | romantix74/test_git | 0f4e7e0a24ff2f3dfa629bc3c9ff2782378a218a | daa26029718050be1bdba1ed59feb9a300b8c32d | refs/heads/master | 2021-01-17T05:43:03.264605 | 2016-09-20T08:11:52 | 2016-09-20T08:11:52 | 68,681,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,882 | py | # -*- coding: utf-8 -*-
import os
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Raduga02.settings')
import django
django.setup()
from app.models import CommonModel, Member, Place_departure_choices, Residing, Participation , Director, News
from app.forms import UserRegistrationForm, MemberForm , ParticipationFor... | [
"romantix74@list.ru"
] | romantix74@list.ru |
5bfa209a4f79d662f43645f47a2ec0a39649e5cc | 446d36469025ad2365cbde18e511207b2eec9a4b | /maze/main.py | 7d04f6d8429d141387627e7206489d9d9bc22025 | [] | no_license | Synedh/genetical_exit | 3a52eeecb71803e7642662f0683e7309c0b8fd93 | 8ed09875ba354493260794a7f4e03e8ccb168fcd | refs/heads/master | 2021-01-18T22:29:37.379833 | 2017-04-05T15:26:23 | 2017-04-05T15:26:23 | 87,057,899 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 294 | py | from maze.map import Map
def main():
map = Map()
map.print_map()
print()
map.use_key("s")
map.print_map()
print()
map.use_key("p")
map.print_map()
print()
map.use_key("c")
map.print_map()
def test():
pass
if __name__ == "__main__":
main() | [
"ddekeyzer@aspaway.fr"
] | ddekeyzer@aspaway.fr |
368fc3c3976548ae22256b3d62fcda67d49c52e1 | e36823de86b3161976f0c4dc2fbf6060a53c1ad5 | /apps/funcionarios/migrations/0004_auto_20190610_1020.py | 44b6651241e73f808b1d0fe84275cd7ada608351 | [] | no_license | AQSNVF/spwm | ed74d4e2e41dbab0c0b42eb5c1f55e583ac8fd35 | 3c4ad01368a26992f76a513c770349d9ef4ad759 | refs/heads/master | 2022-12-03T20:38:15.217911 | 2019-08-08T22:07:58 | 2019-08-08T22:07:58 | 190,908,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | # Generated by Django 2.2.2 on 2019-06-10 13:20
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('funcionarios', '0003_auto_20190607_1449'),
]
operations = [
migrations.AlterField(
model_name='... | [
"nelson Viana Freire"
] | nelson Viana Freire |
e2f5e0517a145fe3d6fb36d662023b7b2c5c9b94 | 68709668d94e914fd6e1ee2011a5291cf8d07fca | /scripts/condense_data.py | f450303708f483f00d7c62e13073f1362926099f | [] | no_license | dukererenst/Coin-Prediction | 387256c3f9be9634f73e27c6f0ca83529bf8799a | 28dce6ce03d2a1d23e4a93f2dfa4244c85417e1c | refs/heads/master | 2020-03-27T18:28:32.157717 | 2017-11-20T04:59:04 | 2017-11-20T04:59:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,962 | py |
class TimePoint(object):
def __init__(self, time):
self.time = time
self.data = []
def add(self, data_point):
self.data.append(data_point)
def print_line(self):
line = self.time
for i in self.data:
line += ","
line += i
return line
class PriceDatabase(object):
def __init__(self):
good_data... | [
"xenophon.of.athens@gmail.com"
] | xenophon.of.athens@gmail.com |
abfcdd9efdf4c14c321d3f17b0bf9daed890f073 | 9e69ddfe14aff7b3e4c046e49ae955cdc0d6c2fa | /app/forms/party_form.py | e10738fc37429d3f62313e38718233b60134f6e5 | [] | no_license | lanejohns/Call-of-Adventure | 61d6fbb0d0c71bf9c35003b41b30994b6013aa0a | 748e894faac9e0b5a4e7413de4d235b257f5e81b | refs/heads/main | 2023-03-24T23:42:28.459110 | 2021-03-25T23:04:05 | 2021-03-25T23:04:05 | 343,853,129 | 7 | 0 | null | 2021-03-25T23:04:05 | 2021-03-02T17:15:12 | Python | UTF-8 | Python | false | false | 421 | py | from flask_wtf import FlaskForm
from wtforms import StringField, IntegerField, BooleanField
from wtforms.validators import DataRequired
from app.models import Party
class PartyForm(FlaskForm):
party_name = StringField("party_name", validators=[DataRequired()])
party_size = IntegerField("party_size", validators... | [
"lanedaltonjohns@gmail.com"
] | lanedaltonjohns@gmail.com |
d50e53baa68a0d97117c9b201777dc4fccbbb1a3 | d627a394ab3599d680eb9ee52c675653cfb62dc6 | /nexabots-master/src/envs/hexapod_trossen_terrain_all/assets/heightmap_generation.py | 733b52a5d409bf925a7634472053dd73f8d64651 | [] | no_license | i7CDrAlfAc/grewRL | e98b0b1cd189f04faf648688532448a19e5236fd | 387d8f205380b94a88c076f61aaae60c413b926d | refs/heads/master | 2023-01-02T05:31:33.672202 | 2020-10-26T09:46:46 | 2020-10-26T09:46:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,932 | py | #%%
# @author alessandro
# Original perlin noise library by:
# Copyright (c) 2008, Casey Duncan (casey dot duncan at gmail dot com)
# see LICENSE.txt for details
### Start of perlin noise library
"""Perlin noise -- pure python implementation"""
__version__ = '$Id: perlin.py 521 2008-12-15 03:03:52Z casey.duncan $'... | [
"69282697+junpilan@users.noreply.github.com"
] | 69282697+junpilan@users.noreply.github.com |
af30001153143516bb60447c5a6baee10e8ce452 | 8d3713030d02e34eb37b149d0bc2a8fd25fec7f7 | /problem111.py | d028894946ae341863fed4e2ca6ad0ba8893cf7f | [] | no_license | GlenHaber/euler | cd3a34550a0c6189a17fbc26991393ee6a4ab8d6 | cb3259f375c1f21af7daf79ab19532518765bbc8 | refs/heads/master | 2021-01-19T13:06:52.579227 | 2017-06-09T21:07:33 | 2017-06-09T21:07:33 | 100,825,188 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,010 | py | """
Primes with runs
Considering 4-digit primes containing repeated digits it is clear that they cannot all be the same: 1111 is divisible by
11, 2222 is divisible by 22, and so on. But there are nine 4-digit primes containing three ones:
1117, 1151, 1171, 1181, 1511, 1811, 2111, 4111, 8111
We shall say that M(n... | [
"GHaber@BehaviorMatrix.com"
] | GHaber@BehaviorMatrix.com |
cb34e53104a8f4d1ac3db1d5794268000b408779 | 488dfcae589f6386d1ccc3544e31c127154cf140 | /puzzle_venv/bin/easy_install-3.9 | 9f2a05d2c3da4a2060da62ea701e0fed70c7ad4d | [
"CC-BY-2.5",
"MIT"
] | permissive | tlwilliams895/log_puzzle_py | fffc4fb199fed830ad88cf8e33313be37680eda3 | 6504c40bb92197c93d2a988abc9320e453439a8e | refs/heads/main | 2023-06-10T08:49:57.058489 | 2021-06-21T18:09:44 | 2021-06-21T18:09:44 | 365,044,511 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 302 | 9 | #!/home/tlwilliams895/se_Q3_Nov2020_Kenzie/log-puzzle-tlwilliams895/puzzle_venv/bin/python
# -*- 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())
| [
"tlwilliams895@gmail.com"
] | tlwilliams895@gmail.com |
cbb1fc6301940401b020a676152a2dd636acf9ef | 5dd47abf7061201d9378e73e51f08fbb314ba2fd | /envdsys/envcontacts/migrations/0074_auto_20210227_1830.py | 129e1c19b1364390a394fc2a8aa7265a96484ea8 | [
"Unlicense"
] | permissive | NOAA-PMEL/envDataSystem | 4d264ae5209015e4faee648f37608d68a4461d0a | 4db4a3569d2329658799a3eef06ce36dd5c0597d | refs/heads/master | 2023-02-23T22:33:14.334737 | 2021-07-22T01:09:16 | 2021-07-22T01:09:16 | 191,809,007 | 1 | 0 | Unlicense | 2023-02-08T00:45:54 | 2019-06-13T17:50:03 | Python | UTF-8 | Python | false | false | 1,175 | py | # Generated by Django 3.1.7 on 2021-02-27 18:30
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('envcontacts', '0073_auto_20210227_1819'),
]
operations = [
migrations.AlterField(
model_name='person',
name='email1_... | [
"derek.coffman@noaa.gov"
] | derek.coffman@noaa.gov |
3f52c6c176cf4be0f4a9196e0800895d96945866 | d7ceddbc91ab9b614f885ed060057a4d599f6aef | /GuliStore/db_tools/category_insert.py | 409d0525ea119e4366bd0896252dfdb209130a95 | [] | no_license | SozzZZ/Store | e9f91dc78fe383e7f6ed1fef37bb8cda2278f882 | a452bc25034bc959451bf23ed4b705cd7039781e | refs/heads/master | 2020-04-16T12:24:15.014998 | 2019-01-15T13:04:17 | 2019-01-15T13:04:17 | 165,577,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import os,sys
file_path = os.path.abspath(__file__)
dir_path = os.path.dirname(file_path)
sys.path.append(dir_path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "GuliStore.settings")
import django
django.setup()
from goods.models import GoodsCategory
from db_tools.data.category_data import row_data
for item1 in ro... | [
"zj32032@outlook.com"
] | zj32032@outlook.com |
d9b09bb0cf291926c4a433f61951a20ee91f4542 | 0e88f8a182e8520d6322be082119eb0f111eb76e | /data_utils.py | 77494af3c1ecaac43b513db11530ed685c0736df | [] | no_license | srishti-56/seq2sql | 04daac3f1f4a62b12969214b98f08c9b2eda206d | ce2c08de8ff4aac3dcda48ae59ab63bd857d4810 | refs/heads/master | 2020-03-13T21:45:49.411112 | 2018-04-27T13:59:55 | 2018-04-27T13:59:55 | 131,303,349 | 0 | 0 | null | 2018-04-27T13:57:13 | 2018-04-27T13:57:12 | null | UTF-8 | Python | false | false | 17,316 | py | # Copyright 2015 The TensorFlow Authors. 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 applica... | [
"persistingsun@gmail.com"
] | persistingsun@gmail.com |
e82dcd7e2c42de6224abe59e0b0800eb2ca85e3e | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-roma/huaweicloudsdkroma/v2/model/export_asset_response.py | 105871097c009b0aa7c5f4c4354c87308f05e410 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 3,344 | py | # coding: utf-8
import six
from huaweicloudsdkcore.sdk_response import SdkResponse
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class ExportAssetResponse(SdkResponse):
"""
Attributes:
openapi_types (dict): The key is attribute name
and the val... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
95ffbe82ce5cc5381187d18bf59d6700598338b6 | 12582f27081adb60a36926d5a7a6522745d509ce | /leetcode/DFS/90_subsets_2.py | a9a3ae23790d65fbd7136075fb66322000200940 | [] | no_license | yzheng21/Leetcode | bfbfe89a0edb4adbe98b567e479791e9e22fc6bf | c5484a357f338e72a1fd8db76e9c7c8b4bde8b68 | refs/heads/master | 2020-03-09T04:17:40.147820 | 2018-06-26T20:23:43 | 2018-06-26T20:23:43 | 128,584,016 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | '''
Given a collection of integers that might contain duplicates, nums, return all possible subsets.
Note: The solution set must not contain duplicate subsets.
For example, If nums = [1,2,2], a solution is:
[ [2], [1], [1,2,2], [2,2], [1,2], [] ]
'''
def solution(nums):
def dfs(nums, index, path, ans):
... | [
"zhengyufan94@gmail.com"
] | zhengyufan94@gmail.com |
9ce4ded2a310fc3a1a48f757dc92d7958f20082e | d53d16a14a63e8351cae0abd7c344e54a807cdf4 | /mail/test_case/page_ui_object/login_page_ui.py | 77d8a0592380216e3c139e5e39120b8418026d47 | [
"MIT"
] | permissive | hekaiyou/po-sample-python | f8b65b80ffe8f5be2e6e02ece478ced54cdf6f11 | 49dc73a00f5ff601ad06a845d422b1f3821cecde | refs/heads/master | 2021-05-12T06:05:14.100674 | 2018-01-12T10:44:07 | 2018-01-12T10:44:07 | 117,209,579 | 5 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | # -*- coding:utf-8 -*-
from base import Base
class LoginPageUI(Base):
"""
页面UI对象(PUO): 登录页面UI
"""
def username_input_loc(self):
"""
定位到登录用户名输入框
:return: WebDriver对象
"""
return self.selector({
'ios_by': 'xpath',
'ios_value': '//XCUIElemen... | [
"hekaiyou@qq.com"
] | hekaiyou@qq.com |
f03af2a7915d3835033777ee323af7c7ddf60627 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03049/s862641058.py | d26e8c01dc0350e1428c4fbcbbbc4791d8acc382 | [] | 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 | 233 | py | n,*s=open(0).read().split()
a=0;b=0;ba=0;ans=0
for s_i in s:
b+=(s_i[0]=='B')*(not s_i[-1]=='A')
a+=(not s_i[0]=='B')*(s_i[-1]=='A')
ba+=(s_i[0]=='B')*(s_i[-1]=='A')
ans+=s_i.count('AB')
print(ans+ba+min(a,b)-(ba>0)*(a+b==0)) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
ce75d1de0433ee47a4be62f4fc9e76ae2ca88c74 | 9410824be12c04d57273d89995892a2be878550d | /mm_dst/gpt2_dst/scripts/make_token_dict.py | 53e0d4264c373364d64db6bb7013a8f40d04965a | [
"MIT"
] | permissive | inkoon/simmc | 684287c262041e44b349d5fd06e43bb45fa1a791 | f5bc22e31e160eb4246176e8c5ff0ab8216c20c8 | refs/heads/master | 2023-01-10T16:31:54.638393 | 2020-11-12T12:29:58 | 2020-11-12T12:29:58 | 288,914,509 | 0 | 1 | MIT | 2020-10-12T18:19:43 | 2020-08-20T05:27:17 | Python | UTF-8 | Python | false | false | 2,682 | py | import json
import argparse
# Step1 : get tokenlist
parser = argparse.ArgumentParser()
parser.add_argument("--domain", type=str,
help="choose domain {furniture|fashion}")
args = parser.parse_args()
domain = args.domain
f = open(f"gpt2_dst/data/{domain}/special_tokens.json", 'r')
act_w = open(f"gpt2_dst/data... | [
"md98765@naver.com"
] | md98765@naver.com |
103e50d4711bcf8d35aaa30ebfcba07010b15081 | dd8dacc128cc013c64f1bb204429fdfaf51d7b74 | /Chess/client/python/BaseAI.py | e03474568227fefaa725ce0f1c051f00bbe5b9a0 | [] | no_license | jamesthesnake/CS347-Rush-Hour-Project | a216ad47e0cc185c1fcb73fb2ccef592f9eac54d | c8e2f508ab9e796d1e442f7544f062f08cf7cb8d | refs/heads/master | 2020-12-25T16:03:04.567690 | 2011-11-12T18:27:35 | 2011-11-12T18:27:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,647 | py | # -*- python -*-
from library import library
class BaseAI:
"""@brief A basic AI interface.
This class implements most the code an AI would need to interface with the lower-level game code.
AIs should extend this class to get a lot of builer-plate code out of the way
The provided AI class does just that.
""... | [
"admkbd@rc01xcs213.managed.mst.edu"
] | admkbd@rc01xcs213.managed.mst.edu |
74985979f124e089a3a7012fbcfff832451e0a48 | 7b83dada42bfcea443415e6fa5faea77bd04fdad | /rfassistant/scanners_wrapper.py | 79bab1f4fda1ca5f322116503fe2dfa518fa5e6d | [
"MIT"
] | permissive | stephenfin/sublime-robot-framework-assistant | 7e5a156b93ebe0d19024242e5b906b6fc76365ff | afd97ce4849ab2e3651653c2823b50ea00d6cf6c | refs/heads/master | 2021-01-21T08:33:33.005323 | 2014-03-02T10:27:08 | 2014-03-02T10:27:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,617 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# No sublime imports here.
# This module should be used with system python interpreter (outside of Sublime's python interpreter).
# Python imports
import os
# Plugin imports
from mixins import is_python_file
def get_modules(dirname):
modules = set()
for f in os... | [
"ahrytskiv@gmail.com"
] | ahrytskiv@gmail.com |
ccadf51ea06ea13387ab2c4085caaed98e426aaf | 525f5ba86e1476d5f0dc396e225d544beb43cd3b | /nomenklatura/query/builder.py | 65e44f59be0c769551f83140ad62fed9b1e909cb | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | he0x/nomenklatura | bb47cd9103b03893832b4bda4bd69cba80473976 | b2e0a989de7aa4a08a63e22982c4904b255dc04a | refs/heads/master | 2021-01-15T08:18:29.257815 | 2015-03-28T20:15:52 | 2015-03-28T20:15:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,177 | py | from sqlalchemy.orm import aliased
from nomenklatura.core import db, url_for
from nomenklatura.schema import attributes
from nomenklatura.model.statement import Statement
from nomenklatura.model.context import Context
# from nomenklatura.model.type import Type
class QueryBuilder(object):
def __init__(self, data... | [
"friedrich@pudo.org"
] | friedrich@pudo.org |
abef2cb274ed65989d3ca39589e5a560860bd612 | 1eed1b2d9b03aea520a370851efeff8e6819b47b | /rl/urls.py | 301479caffa78cc64ee0e968e4ed9723c64f00b9 | [] | no_license | smartbrainsakshi/augmenter | 318a700980055c3360599f7fc4117e9d03e714ee | 81990805bdc86df83d96f47037268deb83f681b7 | refs/heads/main | 2023-06-16T06:12:14.632655 | 2021-07-18T22:24:10 | 2021-07-18T22:24:10 | 387,283,072 | 0 | 0 | null | 2021-07-18T22:45:37 | 2021-07-18T22:45:37 | null | UTF-8 | Python | false | false | 268 | py | from django.conf.urls import url
from django.conf.urls.static import static
from django.conf import settings
from . import views
app_name='rl'
urlpatterns = [
url(r'^index', views.my_form_post),
]+ static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
| [
"princesharzeel.10@gmail.com"
] | princesharzeel.10@gmail.com |
7513925253a66cc70f5beecea3c0f10b4a6e8682 | b6a353d33362b9e13e2679ded55855b3a4b668da | /URI_1042.py | dc6678c81f3597270cd81670803302e0def76a62 | [] | no_license | dho619/URI | 988e5c2ae890ad9b0784a83aa0c750f6d3689d0c | 022a21bff7f9244f77155d98ba83e45cbd0cc9d2 | refs/heads/master | 2020-05-20T09:00:26.671919 | 2019-05-08T14:13:36 | 2019-05-08T14:13:36 | 185,489,039 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 107 | py | lista = list(map(int,input().split()))
[print(x) for x in sorted(lista)]
print()
[print(x) for x in lista] | [
"geovanebarbosacc@users.noreply.github.com"
] | geovanebarbosacc@users.noreply.github.com |
d0514286e882b2b9ccea6917e542ed17d5dcc3ed | ea39e9586a585daa1852998ebbeb3b4c16cf9c6b | /venv/Scripts/pip3.7-script.py | be3e21862f6f6c5bfd6ced260333d34f20874d78 | [] | no_license | lrssnn/lyrical | 5973657cca994fde30a5a64dff1e03038ea4a2fa | d0df9558c14941b1c7b053df7512696381e1108b | refs/heads/master | 2020-06-02T01:07:44.436049 | 2019-06-10T11:18:58 | 2019-06-10T11:18:58 | 190,988,143 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 416 | py | #!C:\Users\nikla\PycharmProjects\speech\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip3.7'
__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... | [
"niklaslarsson95@gmail.com"
] | niklaslarsson95@gmail.com |
8358602e69b3372bacd7a45ddadd7849c1ccf792 | 650b3dd4cc74f32db78f7d99cef9907aec78a222 | /dialogs/Report/fPettyCashReport_data.py | d224b848def8260b8a4ae4863468aef52b0886ab | [] | no_license | mech4/PKTrx | 29b871ab587434e7c208175c248f48d9b6c80a17 | cf01bc5be8837d632974786d2419c58b94a0381d | refs/heads/master | 2020-03-29T19:55:07.331831 | 2012-09-18T20:22:52 | 2012-09-18T20:22:52 | 6,289,691 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 228 | py |
import sys
def CetakData(config,parameters,returns):
ret = returns.CreateValues(
['IsErr', 0],
['ErrMessage','']
)
try:
except:
ret.IsErr = 1
ret.ErrMessage = str(sys.exc_info()[1])
| [
"wisnu27@gmail.com"
] | wisnu27@gmail.com |
e78093701de327b6a6d098469195e5498d9d4897 | c6366edb2b2cd4804d566c7087365a3851b1dc9c | /sorted_arry.py | 7afa4f86456d9ec4d5daadbb58c8774845aa88e3 | [] | no_license | sharmilasharu/guvii | 093e4261f7a09114279244db9c102afac3172352 | f804fcb21e243bf8cfa009f0721fc3ab3dabcb91 | refs/heads/master | 2020-05-26T02:32:51.861133 | 2019-07-10T13:53:09 | 2019-07-10T13:53:09 | 188,076,851 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81 | py | number=int(input())
N=list(map(int,input().split()))
temp=sorted(N)
print(*temp)
| [
"noreply@github.com"
] | sharmilasharu.noreply@github.com |
68bfda635daa1e717968818931ef863405f5ba8a | 78125eab78398588b646747056eddee6b75a3b44 | /LCD_Screen.py | 68b4572c886e1e3836f04ad0356d3ea2df3d6470 | [] | no_license | Scollie86/CircuitPython | 72808ec4043bbca71b480d3bce9f140dec86333e | f61a78ad0be83ba302d78eb95e8bf7a4cd02ce55 | refs/heads/master | 2020-08-05T14:38:41.915529 | 2019-11-14T15:35:04 | 2019-11-14T15:35:04 | 212,582,750 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import board
import time
from digitalio import DigitalInOut, Direction, Pull
from lcd.lcd import LCD
from lcd.i2c_pcf8574_interface import I2CPCF8574Interface
from lcd.lcd import CursorMode
button = DigitalInOut(board.D2)
button.direction = Direction.INPUT
button.pull = Pull.DOWN
switch = DigitalInOut(board.D3)
switc... | [
"scollie86@ccs.local"
] | scollie86@ccs.local |
d562c454c33e7d1de5b64e3d465d60fa667e1f22 | d4722d631ed1e137073bec767ea2af208e60f09b | /utilities/doxy-coverage/doxy-coverage.py | 69df8b218cee9631b1758d86943c59f84cbba107 | [
"BSD-2-Clause",
"Apache-2.0"
] | permissive | RoboJackets/mjackets-api | 6c701f0955099bd5867cf76dc9a6d452ab1e5e9a | 587600e6496461dca042dfee3b19192ef609dab6 | refs/heads/master | 2023-06-30T23:25:16.073509 | 2020-10-22T23:16:15 | 2020-10-22T23:16:15 | 274,287,907 | 1 | 0 | Apache-2.0 | 2021-07-05T21:17:51 | 2020-06-23T02:17:43 | CMake | UTF-8 | Python | false | false | 5,377 | py | #!/usr/bin/env python
# -*- mode: python; coding: utf-8 -*-
# All files in doxy-coverage are Copyright 2014 Alvaro Lopez Ortega.
#
# Authors:
# * Alvaro Lopez Ortega <alvaro@gnu.org>
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following c... | [
"akeener@outlook.com"
] | akeener@outlook.com |
151f5b040ea2f06c60e0d8eb26aed3b49555b1af | a62127105b45751fc23d62c83cc5e6fc26ac0bba | /FEMSolver/test.py | 8825b86a40bca57f93d0e51efe769d652bb0d067 | [] | no_license | CloakMe/MyStuff | d4be758f543242802fda6163b94cbc6d5db4ae98 | ccd29bbc002ca26dab9e8874a4c64601ab64f2f6 | refs/heads/master | 2022-10-15T16:37:28.728167 | 2022-10-13T07:10:07 | 2022-10-13T07:10:07 | 16,573,913 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 173 | py | import numpy
from numpy import *
domainNodes = numpy.genfromtxt( "coordinates.dat", delimiter=" ")
size = domainNodes.shape
print size
a = 4
b = 3
xx = a + \
b
print xx | [
"angelow@math.bas.com"
] | angelow@math.bas.com |
151f8401dd23cc073bf7bb3fbb5cbf94fb035bc6 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/nouns/_greyhounds.py | b30dc2d9386d20b4a85bd14ebe73422e2417bc96 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py |
from xai.brain.wordbase.nouns._greyhound import _GREYHOUND
#calss header
class _GREYHOUNDS(_GREYHOUND, ):
def __init__(self,):
_GREYHOUND.__init__(self)
self.name = "GREYHOUNDS"
self.specie = 'nouns'
self.basic = "greyhound"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
45791f8780d3d0fcf36794f07c8f0c0341846d4c | e7c576fadb4ee05e3a7dfa4594c0c7ef3e6e258e | /week2_basic_math_operations.py | 4290f7de8511390932c9bb0e0bf91de1203debd0 | [] | no_license | fhcwcsy/python_practice | 9c3d559279c9d6d2fcc5f875110421137eead28d | a8b2e0bdf05cc372aa992058bc43949dbd99755d | refs/heads/master | 2020-09-10T01:43:54.066192 | 2019-12-11T00:35:17 | 2019-12-11T00:35:17 | 221,618,373 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 625 | py | import math
def basic_math( input_list ) :
summation , maximum , minimum , _sqsum = 0, input_list[0] , input_list[0] , 0
for item in input_list :
summation += item
_sqsum += item ** 2
if maximum < item :
maximum = item
if minimum > item :
minimum = item
... | [
"fhcwcsy@gmail.com"
] | fhcwcsy@gmail.com |
ed32f58e9cc613022cfac9a88c40175bd3ff5d6d | 37ddd56edefcc293e4549ca8a6dd5eb784c5ef6e | /citizen/apps.py | 4f9feac07cc2b3b3521e910171663478cdccb875 | [] | no_license | prabhanjan1996/Citizen-Seva-Application | 201eafe50bd03a23f26af39dc04528a39b6d389e | 248f73936f1ca07c5ab82d3a9c33ea47c8c7aeeb | refs/heads/master | 2022-11-15T18:32:24.020882 | 2020-06-28T07:30:03 | 2020-06-28T07:30:03 | 272,720,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.apps import AppConfig
class CitizenConfig(AppConfig):
name = 'citizen'
| [
"desaiprabhanjan05@gmail.com"
] | desaiprabhanjan05@gmail.com |
dfabfbb7eef76a04289682868648631a818c208c | 198ac210d70c865367fb73fb3c8f99b06cdd91d0 | /tests/integration/steam_simulator.py | 82382ec24aaef6653b83a506c43439f19fc0d0c8 | [
"BSD-3-Clause"
] | permissive | gutomaia/steamer-py | 0f2bc6a81bfab6986470b03b370ccf53941432ff | 7175fb1d79fe6ffc0c31b3e74f62805629e457b2 | refs/heads/master | 2021-01-10T19:30:50.429652 | 2013-04-29T13:38:30 | 2013-04-29T13:38:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 870 | py | import threading
from time import sleep
import web
import requests
urls = (
'/id/(\w+)/stats/(\w+)', 'game_page'
)
class game_page(object):
def GET(self, user, game):
f = open('fixtures/%s-%s.xml' % (user, game))
xml = f.read()
f.close()
web.header('Content-Length', len(xml))... | [
"guto@guto.net"
] | guto@guto.net |
ffc2db6a28f8f25eb29a73ea013b1675185c9ce6 | f7de4cf5fde0a673c410da8de33dffdb3825cd84 | /test_boggle.py | cf72b8b747ce16a4ab37444873acd18f6b59e5bb | [] | no_license | luigilangella/Boggle-Game | 6489431b04d5ca0568134975fd3fd5259cdc3920 | 3c2e94e0c2c0f8ab41358cccde8f41cfa68e33c5 | refs/heads/master | 2020-06-12T18:19:23.739898 | 2019-07-01T13:25:02 | 2019-07-01T13:25:02 | 194,385,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,621 | py | import unittest
from string import ascii_uppercase
import boggle
class TestBoggle(unittest.TestCase):
"""
Our test suite for boggle solver
"""
def test_can_create_an_empty_grid(self):
"""
Test to see if we can create an empty grid
"""
grid = boggle.make_grid(0,0)
... | [
"luigi76langella@gmail.com"
] | luigi76langella@gmail.com |
1315c06485dbe71eaa8760926e634df200ee5689 | 818d9d99823fb1e087368849a23bdc2b83e29d00 | /数据采集_内网版_2017_9_4/源码/dns.py | ccbd99ff74895c80eebda82eccdb05ac41982b61 | [] | no_license | jiangyt2112/Web-Data-Collector | 17ea2d3b1e2f905cfeabdab74522b0aac88b64b1 | 1f4161cc305925ec3810712b5d9c09f9207332bd | refs/heads/master | 2020-04-01T13:52:12.812023 | 2018-10-16T11:12:56 | 2018-10-16T11:12:56 | 153,270,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# 清理系统的dns缓存
from subprocess import Popen, PIPE
#proc = Popen(['tracert','www.baidu.com'], stdout=PIPE, stderr=PIPE)
#proc = Popen(['ping','www.baidu.com'], stdout=PIPE, stderr=PIPE)
#ipconfig /flushdns
def clear_dns():
#return_code = -999
proc = Popen(['ipconfig', '/flushdns'], stdou... | [
"946692706@qq.com"
] | 946692706@qq.com |
f679801522b6aebb31331aa94e42930f3a44703b | 1f0ce573ed9fc539c01865e89bf148b9628c0174 | /train_4c_HNN.py | e835dc3f44d2498c8dc91a28f8a53acbd50ad783 | [] | no_license | SonwYang/building-extraction | cfd304dbeeca93363ff0dbfe8d09d5477d519051 | 3cacc547eb6fab8150cfa7407a1144e5e80a0fe1 | refs/heads/master | 2023-08-21T03:54:10.215846 | 2021-10-26T00:19:08 | 2021-10-26T00:19:08 | 263,852,200 | 13 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,759 | py | #!/usr/bin/env python
# coding: utf-8
import collections
import torch
import torch.nn
import torch.backends.cudnn
import argparse
from utils.datasets import build_loader
from weight_loss import WeightedBceLoss
from utils.metrics import Metrics
import segmentation_models_pytorch as smp
from models.YpUnet_AG_hnn234 impor... | [
"yp1995@qq.com"
] | yp1995@qq.com |
0dee9403c606c115e210e6b3f137273ecb325dac | 696c21dce5b61e65284144d4e37839c5f310e9b2 | /src/work/sinobiological/sinobiological23.py | 930d966150995b79590a7dad92d7f1065e88e025 | [] | no_license | Just-Doing/python-caiji | 6e379ec7742e1b5a168f4f0a6a4fb23fc99c65df | e5b80cb1faa6f2176dfacfb01640c35023bee527 | refs/heads/master | 2023-01-28T05:47:56.263966 | 2023-01-17T06:51:35 | 2023-01-17T06:51:35 | 213,672,397 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 5,437 | py | from urllib.request import urlopen
import urllib
from selenium import webdriver
from bs4 import BeautifulSoup
import http.client
from openpyxl import Workbook
from openpyxl import load_workbook
from openpyxl.writer.excel import ExcelWriter
import json
import re
import copy
import string
import ssl
ssl._create_default_h... | [
"969502899@qq.com"
] | 969502899@qq.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.