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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
18985a0d86acf9f4457a29259d308272548229f8 | 07c7bfb2cf8b07479649950bb49d11557d768a72 | /admin_login.py | 608154347ec20e0f541a762799668233a6e5cb9b | [] | no_license | pranavgarg1506/book_reco | e023bda73b551627a08e1093069483980b044ae5 | d9160c42d043376f4ee182b0946a4ccbbed3987b | refs/heads/master | 2021-10-22T13:51:19.131838 | 2019-03-11T09:23:42 | 2019-03-11T09:23:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,029 | py | #!/usr/bin/python3
from flask import Flask,render_template,request,session
import mysql.connector as mariadb
def admin_login_page():
flag = 0
mariadb_connection = mariadb.connect(user='pranav', password='funny', database='major', host='localhost')
if mariadb_connection.is_connected():
cursor = mariadb_connectio... | [
"pranavfunny1@gmail.com"
] | pranavfunny1@gmail.com |
b44970847be66e57049cdc280227b08fe13d0679 | e686397dfb9d3b7e3f110574301d73e4c5842a43 | /reverse.py | 190a54bd7f26c63e0dcf17c26591b5086f157462 | [] | no_license | prateeknepaliya09/Python_practice- | 0e8b5339b0a22b869b3248796118b91e9a864c04 | 5d3df91376a871700566b7a5b5e1cb323a998ea0 | refs/heads/master | 2020-12-31T06:24:08.405573 | 2017-03-25T18:50:57 | 2017-03-25T18:50:57 | 56,138,245 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 439 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Apr 20 00:41:12 2016
@author: Prateek
"""
"""Please write a program which accepts a string from console and print it in reverse order.
Example:
If the following string is given as input to the program:
rise to vote sir
Then, the output of the program should be:
ris etov ... | [
"prateeknepalia9@gmail.com"
] | prateeknepalia9@gmail.com |
4650529c02e1e986a15bfe5d891a76206bc8f872 | ea83d08a8ec09968b14c0d62e09c3e0b8decf209 | /AhStyle/settings.py | 05860e335e88b1621f08663744fa263104747e7b | [] | no_license | jagger909/AhStyle | ade85e58e79da4902ead279a843c0e17afb641be | 85581ef45172c7316633487f36df8cd7c07aa9ae | refs/heads/master | 2020-03-18T04:42:55.062047 | 2018-05-21T19:48:37 | 2018-05-21T19:48:37 | 134,301,984 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,935 | py | """
Django settings for AhStyle project.
Generated by 'django-admin startproject' using Django 2.1a1.
For more information on this file, see
https://docs.djangoproject.com/en/dev/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/dev/ref/settings/
"""
import os
#... | [
"jagger909@gmail.com"
] | jagger909@gmail.com |
999284239d86884a34e9ffc8425ff72b13006d84 | 9391662ee9fc1d45fcdecb8b09f07c4101013bba | /becca_test/grid_1D_noise.py | 625a8833c563344e64cf5d68179ddd4e47e84bc7 | [] | no_license | automenta/beccapy3 | 88179cdd5bbc011dc1a64b722ee3ffdf5766c60d | 53a773de70d7599e9c959e79e134a162cda7cdb3 | refs/heads/master | 2020-04-18T14:49:41.087893 | 2016-08-19T05:01:08 | 2016-08-19T05:01:08 | 66,053,950 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,892 | py | """
One-dimensional grid task with noise
In this task, the agent has the challenge of discriminating between
actual informative state sensors, and a comparatively large number
of sensors that are pure noise distractors. Many learning methods
make the implicit assumption that all sensors are informative.
This task is i... | [
"seh999@gmail.com"
] | seh999@gmail.com |
5b6d5e796aa35788250c17aa14808559a36e5c1d | a3b306df800059a5b74975793251a28b8a5f49c7 | /Graphs/LX-2/molecule_otsu = False/BioImageXD-1.0/ITK/lib/InsightToolkit/WrapITK/lib/itkCannyEdgeDetectionImageFilterPython.py | 5b48b0c6d95f111348c8b5f16df1963f18580000 | [] | no_license | giacomo21/Image-analysis | dc17ba2b6eb53f48963fad931568576fda4e1349 | ea8bafa073de5090bd8f83fb4f5ca16669d0211f | refs/heads/master | 2016-09-06T21:42:13.530256 | 2013-07-22T09:35:56 | 2013-07-22T09:35:56 | 11,384,784 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 44,738 | py | # This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.40
#
# Do not make changes to this file unless you know what you are doing--modify
# the SWIG interface file instead.
from sys import version_info
if version_info >= (3,0,0):
new_instancemethod = lambda func, inst, cls: _itkCannyE... | [
"fede.anne95@hotmail.it"
] | fede.anne95@hotmail.it |
2c39fc7e775773fb936563d11e5573ec6ede2ac0 | b112e6e802b1904ef19e41980b65295972a64931 | /telisar/languages/base.py | e2665ac7c5ef88a0605e7b1964662d3773d49c09 | [
"Unlicense"
] | permissive | evilchili/telisar | 137ca30bdc28c397983be15a1ee5ddb65d4db158 | 4152de28ed03afecb579c6065414439146b8b169 | refs/heads/master | 2021-08-30T11:56:45.118298 | 2021-08-09T02:22:42 | 2021-08-09T02:22:42 | 136,788,696 | 1 | 1 | Unlicense | 2021-04-20T20:42:07 | 2018-06-10T07:31:41 | Python | UTF-8 | Python | false | false | 6,666 | py | import random
import logging
from collections import namedtuple
grapheme = namedtuple('Grapheme', ['char', 'weight'])
class LanguageException(Exception):
"""
Thrown when language validators fail.
"""
class SyllableFactory:
def __init__(self, template, weights, prefixes, vowels, consonants, suffixe... | [
"greg@automagick.us"
] | greg@automagick.us |
6e33bdb52df70a1d3f34b66cbe70b041167f2189 | 3fbfabfaaada7b9b77e8a1df8fed4de444070d49 | /session_10/Employee.py | ab419235cf5bb43b1a9bf7a2b7ac1bb3742016d0 | [
"MIT"
] | permissive | dravate/spark_python_course | df36a561ab2cf8f763dd02655319cd6bf5b7876c | 519389fdb21d78cd6d19e1ad2f7c782bc1449a83 | refs/heads/main | 2023-07-08T06:53:27.635106 | 2021-08-03T14:44:55 | 2021-08-03T14:44:55 | 385,127,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 732 | py | class Employee:
'Common base class for all employees'
empCount = 0
def __init__(self, name, salary):
self.name = name
self.salary = salary
Employee.empCount += 1
def displayCount(self):
print ("Total Employee {}".format( Employee.empCount))
def displayEmployee(self):
p... | [
"sopan.shewale@gmail.com"
] | sopan.shewale@gmail.com |
bd360494b3878fc03ec61fa166235858fdda2145 | 8072c1cf03f82fd1891536e93b6c28f16df82ea4 | /metamorphosys/META/meta/DesignDataPackage/lib/python/avm/__init__.py | 547231adf5bb6d039dc95b4fd07a3cd812a38db4 | [
"LicenseRef-scancode-other-permissive"
] | permissive | 15831944/metamorphosys-desktop | 90a26c6700c444accd58358c457d675eb2fdd59f | 4adb71c18f7811289fc4ba4dcb465e99e93d8e60 | refs/heads/master | 2021-05-30T13:34:07.037424 | 2015-09-24T22:09:05 | 2015-09-24T22:09:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297,086 | py | # .\_avm.py
# -*- coding: utf-8 -*-
# PyXB bindings for NM:8c3bce54577a879cd94d42789711c9f5d444aa71
# Generated 2015-08-13 10:01:46.170000 by PyXB version 1.2.3
# Namespace avm [xmlns:avm]
import pyxb
import pyxb.binding
import pyxb.binding.saxer
import io
import pyxb.utils.utility
import pyxb.utils.domutil... | [
"adam.nagel+git@gmail.com"
] | adam.nagel+git@gmail.com |
e767b0c814710a8f2188e1884bc1afcf5ad5e72e | 5ddde028e35ec453288b50d7d995bca0fc7b8e7a | /learn/test/run.py | 731cd3791cefa718254eb151f7fbada30cc46c9b | [] | no_license | LiuJianwen219/codewithfun | d351698837f1114aeba0fe95c33de462e2470cd1 | 669f92d59b9b2e0a5c20432156c18525a42a39f8 | refs/heads/master | 2021-04-04T00:08:53.513453 | 2018-06-16T06:40:53 | 2018-06-16T06:40:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | import sys
import subprocess
if __name__ == "__main__":
try:
executable = sys.argv[1]
input_filename = sys.argv[2]
output_filename = sys.argv[3]
tl = sys.argv[4]
except IndexError:
sys.exit(-1)
input_file = open(input_filename, "r")
output_file = open(output_fil... | [
"yunanlong@126.com"
] | yunanlong@126.com |
64b6585d094e9eaea8fa48d6951b2b3527536534 | 87bc489842317e1af7da7d8f12fc00b48f050228 | /Solutions/PE024_lexicographic_permutations/test_lexicographic_permutations.py | 5b326adbf165ecd38a70a9a98a6e62e122d974e3 | [] | no_license | mike006322/ProjectEuler | 1c9da8d60bed3e50a7cf24e8b09eb122f18da723 | 51382187c551f648cf77c090ace26c271b6a7b9f | refs/heads/master | 2022-11-08T06:27:23.313214 | 2022-10-26T04:32:29 | 2022-10-26T04:32:29 | 151,336,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,125 | py | import unittest
import lexicographic_permutations
class Test(unittest.TestCase):
def test_find_largets_factorial(self):
self.assertEqual(lexicographic_permutations.find_largest_factorial(120), 5)
self.assertEqual(lexicographic_permutations.find_largest_factorial(121), 5)
self.assertEqual(l... | [
"mike006322@gmail.com"
] | mike006322@gmail.com |
fe9e7ae36613eddbc9b67fab34ddea53b95cc7bc | baf3b9e0f80a545ba1e087d54e4de7a9fe10f279 | /滑动窗口/209_长度最小的子数组.py | 6f00de24476ca4c1e8c21ef53268ba5989b0febb | [] | no_license | llin0420/Leetcode_in_python3 | 5e0755c9b6bb5fe92fd1e0bd7d563e8a3a20f88a | 41684ff99b2f881304b08c3c753b0df48e0a6b40 | refs/heads/master | 2022-12-15T16:23:39.991920 | 2020-09-09T08:05:55 | 2020-09-09T08:05:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,402 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Jul 12 13:17:24 2020
@author: leiya
"""
'''
0712
这道题在滑动窗口中稍微有些特殊
我们说过,尽量将对输出的更新放到小循环外面,即尽量不要在缩小窗口的时候更新输出,以防特殊情况
但是这道题需要将更新放入小循环中,因为只有在小循环中才能找到需要更新的精确数值,一旦出了小循环,就不是如何要求的输出值了
在这道题里就是出了小循环,该滑动窗口和<s,不满足更新输出值的要求,这道题可以和904水果题类比
水果题进入小循环是不符合要求,这道题是进入小循环符合要求,要在符合要求的基础上看看有没有最优解,因为我们是... | [
"792412589@qq.com"
] | 792412589@qq.com |
c8e9b081e858301b29e1c6383672ddd04c28df20 | 5b35c2c0650429444c488d57e4ff6ee5dada93c3 | /server.py | 244710a27152b7b60ed14f1b15dc898d6dffe9f6 | [] | no_license | pratikpatelx/HttpServer | 9f0631669f0608ca5048adbce6dd5329b44ba16b | c2265c34e00eed9f71fe21080928e5e5b180440f | refs/heads/main | 2023-02-20T18:00:12.648530 | 2021-01-25T13:08:02 | 2021-01-25T13:08:02 | 332,747,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,451 | py | #!/usr/bin/python
import os, sys, subprocess, socket
class Server:
#Intiailize server parameters port and hostname
def __init__(self):
self.theHost = socket.gethostname()
self.port = 15086
self.addr = ("", self.port)
#startServer(self)
# Method called to create t... | [
"noreply@github.com"
] | pratikpatelx.noreply@github.com |
654dbba88e2831a8e3846f76e24c007f97c22063 | c8b32c8e92d1e49e01ef73140274537fb260e91f | /tests/knn_test.py | 2dd61ef1295f2e37f46e7d20d8126e5bd830a434 | [
"Apache-2.0"
] | permissive | DuraQ/flexmatcher | f6f9a3dcc57c7dda922eaef963710b0bf905c155 | 562ba1e701fbed0fc242c57b9eaf8923b38dc2e1 | refs/heads/master | 2023-03-20T08:51:59.713782 | 2018-01-11T18:32:06 | 2018-01-11T18:32:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,430 | py | import pandas as pd
import unittest
import random
import flexmatcher
class KNNTest(unittest.TestCase):
def setUp(self):
self.target_class = ['California', 'Hawaii', 'New Hampshire',
'Colorado', 'Maryland', 'Oklahoma',
'Oregon', 'Tennessee', 'Wash... | [
"behzad@recruit.ai"
] | behzad@recruit.ai |
11afb2097557a079a32cacfe6b88c491fcde8492 | 6a3290caa2b4167023c66db67067f4b4b67755be | /src/exceptions/not_a_list.py | 382838f6881474b989fb5c197f93d57128d96f63 | [] | no_license | luizth/bottlepy_test | ba6b9dd00376bff92cf883656b49ab8ee1d7407e | c905c95790ce73f9d77eecd7e3785b2f393be392 | refs/heads/master | 2022-12-05T10:49:16.422786 | 2020-08-27T18:00:23 | 2020-08-27T18:00:23 | 287,348,206 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 41 | py | class NotAListError(Exception):
pass
| [
"luizthomasini@gmail.com"
] | luizthomasini@gmail.com |
32c67fb98d65d7bc2fc22ad8d8dc086a723ec0a4 | 7274829ce493655b990448ed530eb3cadf4e1cc3 | /500ETF/alldataprcess_V2.py | 2fc2caf370d9e7687932f49e558f4c3a1d897730 | [] | no_license | wp92/MLearning | 41389007a07fc49027aa9c49545ba479348be97c | 79eb9e74c7097372067fead30a3aba142979e8ba | refs/heads/master | 2020-07-24T03:54:32.001532 | 2019-09-26T02:56:15 | 2019-09-26T02:56:15 | 207,794,277 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,461 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Jun 20 18:03:03 2019
使用Y_V2进行全数据生产
"""
import gc
import time
import copy
import numpy as np
import pandas as pd
def Math_Delay(data, delayparam=3):
"""
根据输入数据计算T-k期的因子,根据iloc进行数值计算
delayparams为延迟期数k,默认3
输出值为date,独立于输入
2019.04.12
"""
if not isinst... | [
"noreply@github.com"
] | wp92.noreply@github.com |
ae7809f3604c6604f22ba1fa70a1e9c3ed5f2c69 | 57d978b0ba29c745cf409e819f2f7e42e98516dc | /ibs/_input.py | ce3078f28411719e86def04fdd019b03afda1c2e | [
"MIT"
] | permissive | lnls-fac/lnls | 26564b9bdaf0602e2f50d67e294d0d8ba5cc0f82 | 91299d84ce7628d33c46861687d17a574428bc85 | refs/heads/master | 2023-02-09T00:26:47.298350 | 2022-11-25T19:25:50 | 2022-11-25T19:25:50 | 33,893,299 | 5 | 2 | MIT | 2022-11-25T19:25:51 | 2015-04-13T20:51:15 | Python | UTF-8 | Python | false | false | 2,116 | py | import numpy as _np
import copy as _copy
def read_energy_acceptance_file(fname, eRF):
# reads raw data from file
lines = [line.strip() for line in open(fname)]
# processes raw data
accp, accn = [], []
for line in lines:
if not line or line[0] == '#':
continue
values = ... | [
"xresende@gmail.com"
] | xresende@gmail.com |
bf10c5772f31298525eb55957cf0421f17ad7983 | 87cac4166f07729f1c94066259996c8b752c1202 | /examples/calc/calc_distance.py | dc0d473aceccd019cbfe3f28a154c888c08db7e6 | [] | no_license | danielsocials/bbox | 068238a15880468d214109a23017a19e70fc13ec | 292e350b1cefbbab987baf8c946d4021abd211ea | refs/heads/master | 2020-03-16T06:25:47.907369 | 2018-05-08T04:42:45 | 2018-05-08T04:42:45 | 132,554,332 | 0 | 0 | null | 2018-05-08T04:36:35 | 2018-05-08T04:36:35 | null | UTF-8 | Python | false | false | 589 | py | import asyncio
from aiobbox.cluster import get_cluster
from aiobbox.client import pool
from aiobbox.handler import BaseHandler
class Handler(BaseHandler):
def add_arguments(self, parser):
parser.add_argument('--a',
type=float)
parser.add_argument('--b',
... | [
"superisaac.ke@gmail.com"
] | superisaac.ke@gmail.com |
4ee410d5c7f6b681335288dc9f6c8e5f38ddbd6a | 9dc371429c3c7f04fab9f6f0862571c4ab78e2c2 | /fizzbuzz.py | 98d15cb37ed45987e5b6ab0c901b17be7571c8a2 | [] | no_license | hemepositive/fizzbuzz | 0afc500e35bb76fd163b78bd1bf4a2bda7ef9215 | 6593cb10611f0d79c7229c64363bf10ce46882bf | refs/heads/master | 2016-09-05T14:26:42.408488 | 2014-06-21T09:04:42 | 2014-06-21T09:04:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,821 | py | import sys
import random
"""Make sure you have 4 total functions that are named appropriately.
Add docstrings to each. Make sure all your tests pass. Then PUSH your code to Github. .
version 13.
"""
# changelog
# 1. using xrange
# 2. more verbose variable names
# 3. intimation that user is a moron if a whole number no... | [
"hemepositive@gmail.com"
] | hemepositive@gmail.com |
d833ffb26027d40dedc45a2ec03f45677de7a485 | f82ada6f47d69b458e61ecc9ff72289f2cebcf8d | /Agents/agent.py | efe9b85d9484bb692274793f48f04a0fb13d8044 | [
"MIT"
] | permissive | RUSCZAK/Lunar-Lander | d1c35291fb5cd473608e12fd9afe8154cbd84e45 | 509bc895934bd68be35953462eb08977fafd555c | refs/heads/master | 2020-04-21T23:05:55.396438 | 2019-04-18T03:57:51 | 2019-04-18T03:57:51 | 169,934,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,134 | py | import numpy as np
import copy
import random
from Model.model import Actor, Critic
from Support.replaybuffer import ReplayBuffer
from Support.per_tree import proportional
#from Support.per.rank_based import Experience
#from keras import backend as K
#from Task.SoftLanding import SoftLanding
# Constants from paper: ... | [
"jrrusczak@gmail.com"
] | jrrusczak@gmail.com |
d94e9908d780a1f89ba5a1ec767f2f5773287edf | aa45bd9383b7ed07144ab38ffea1a853c19ce2a0 | /zipline/utils/calendars/exchange_calendar_ice.py | 511fae0181b274c981144a945ac9b730ff4da32d | [
"Apache-2.0"
] | permissive | yingchi/zipline-astock3 | 3322b8d5f72375dce7e7777f2d99cf22e2cd081d | 266cf46f717ad2423a8985306cb8bccac5c17970 | refs/heads/master | 2022-11-22T11:41:46.001016 | 2018-03-29T09:48:22 | 2018-03-29T09:48:22 | 127,266,703 | 1 | 2 | Apache-2.0 | 2022-11-02T23:02:22 | 2018-03-29T09:10:05 | Python | UTF-8 | Python | false | false | 2,021 | py | from datetime import time
from itertools import chain
from pandas.tseries.holiday import (
GoodFriday,
USPresidentsDay,
USLaborDay,
USThanksgivingDay
)
from pandas.tslib import Timestamp
from pytz import timezone
from zipline.utils.calendars import TradingCalendar
from zipline.utils.calendars.trading_... | [
"yingchi.pei@gmail.com"
] | yingchi.pei@gmail.com |
c26c22a572fc6788014f0e253f267b21cc87a9dd | 1d928c3f90d4a0a9a3919a804597aa0a4aab19a3 | /python/statsmodels/2016/12/test_tsaplots.py | 91616d7673599e86c8dfeba8b0c28021f08f1d27 | [] | no_license | rosoareslv/SED99 | d8b2ff5811e7f0ffc59be066a5a0349a92cbb845 | a062c118f12b93172e31e8ca115ce3f871b64461 | refs/heads/main | 2023-02-22T21:59:02.703005 | 2021-01-28T19:40:51 | 2021-01-28T19:40:51 | 306,497,459 | 1 | 1 | null | 2020-11-24T20:56:18 | 2020-10-23T01:18:07 | null | UTF-8 | Python | false | false | 4,803 | py | from statsmodels.compat.python import lmap, map
import numpy as np
import pandas as pd
from numpy.testing import dec, assert_equal
import statsmodels.api as sm
from statsmodels.graphics.tsaplots import (plot_acf, plot_pacf, month_plot,
quarter_plot, seasonal_plot)
import stat... | [
"rodrigosoaresilva@gmail.com"
] | rodrigosoaresilva@gmail.com |
96df20298ac9dc1fdaca45b61783c50aaaad575f | 219d7694180482e0b9944deb6dee11dcf7bf0e23 | /morecvutils/connectedComponents.py | 58ed9279dc1b6fef5516c8a7b21f18623978e5ce | [
"MIT"
] | permissive | Aresthu/morecvutils | 5e3bfcba2b5c48ec022e641f19b40e2836d2d6bd | 4856d98c45dbd6bcfb86c87f7ec9987c378e244c | refs/heads/master | 2021-04-09T16:03:01.956218 | 2018-02-18T07:14:41 | 2018-02-18T07:14:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | import cv2
try: #OpenCV 2.4
from cv2 import SimpleBlobDetector as SimpleBlobDetector
except ImportError: #OpenCV 3
from cv2 import SimpleBlobDetector_create as SimpleBlobDetector
from numpy import asarray
def doblob(morphed,blobdet,img,anno=True):
"""
img: can be RGB (MxNx3) or gray (MxN)
http://do... | [
"scivision@users.noreply.github.com"
] | scivision@users.noreply.github.com |
71ae2a5380a5dac7a539c945d44e63ada72a53ba | bf4f4731f099dcdc964509b51ffc6ce8875f6041 | /ll.py | c48d2277a0c507a6b81eae89b47f552294de014e | [
"MIT"
] | permissive | YanglanWang/squad | 8c9b98d3bd4ff0fe824bc08fc2a314fb45936b38 | 1019e4c7bf1a90c049d16ed1b48553964468c790 | refs/heads/master | 2020-06-19T19:02:30.891520 | 2019-08-02T15:53:15 | 2019-08-02T15:53:15 | 196,834,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py |
# import torch
# import torch.nn.functional as F
# import torch.nn as nn
# # input is of size N x C = 3 x 5
# m = nn.LogSoftmax(dim=1)
# input = torch.randn(3, 5, requires_grad=True)
# print(input)
# print(F.softmax(input))
# print(F.log_softmax(input))
# print(m(input))
# # each element in target has to have 0 <= val... | [
"yanglan-17@mails.tsinghua.edu.cn"
] | yanglan-17@mails.tsinghua.edu.cn |
f367ae099d06118e59ac2cc5cb40d64e4b8d0999 | 5d2375119c263b8f9643755e61d779711291c3b7 | /AJ_function_4_analysis.py | 9f369c493d554484ae6411bb40695d8e65da862f | [] | no_license | witec-rep/web_pattern_generator | a15644651fa4f94cb4f9b4767475343b055531c5 | 04475f6b3973ccd31d2272ed2b5e502398b83878 | refs/heads/master | 2023-03-07T21:13:44.051649 | 2021-02-23T17:54:19 | 2021-02-23T17:54:19 | 327,000,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,900 | py | import numpy as np
class size_manipulator:
"""
class to manipulate the array dimensions
:param data: the original matrix
"""
def __init__(self, data):
self.data = data
def rescape(self, column_selected):
"""
create a new matrix with the selected columns
:para... | [
"witeclab@gmail.com"
] | witeclab@gmail.com |
96ae2ade34cfafc76e52d53e066c37ceb7eab860 | e0be6d234cb78be64909d83c5d7e698f40e091f1 | /day_4/task1.py | f377e9f5a6930dde204d40b3964b3d03964d8007 | [] | no_license | nagybalint/advent-of-code-2020 | 00e9beb87f2f547ba9ffce975a3ed102dbe8bef1 | bc023f9a3b69951b6a41b43140d3ef7e6a0c00fe | refs/heads/master | 2023-02-03T02:30:23.801136 | 2020-12-20T11:22:45 | 2020-12-20T11:22:45 | 317,672,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | import os
from typing import Dict, List
PASSPORT_FIELD = ["byr",
"iyr",
"eyr",
"hgt",
"hcl",
"ecl",
"pid",
"cid"]
def parse_passports(file_path: str) -> List[Dict[str, str]]:
passports = []
with open(file_path) as f:
passport_details = []
for line in f.readlines():
... | [
"bnagy@cloudera.com"
] | bnagy@cloudera.com |
818a6404248346ef4bcc70ea941cc25a5cc2006c | 1b7b13984a90b5d11331966fe1b1bb88f2b85dd7 | /modeling/test.py | b583abada1374a6055aa896f3d6fcaa16e67abe6 | [] | no_license | yekeren/VCR | 23cf6b17ce7adcc057a531182898900dcd75727b | 6a573edf3183e9a8ef2056449c53865d8e27125d | refs/heads/master | 2023-04-06T05:41:09.851825 | 2020-04-14T18:26:42 | 2020-04-14T18:26:42 | 232,395,848 | 0 | 0 | null | 2023-03-24T23:35:46 | 2020-01-07T19:01:27 | Python | UTF-8 | Python | false | false | 2,259 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from absl import app
from absl import flags
from absl import logging
import os
import numpy as np
import tensorflow as tf
from google.protobuf import text_format
from protos import pipeline_pb2
from modeling i... | [
"yekeren.cn@gmail.com"
] | yekeren.cn@gmail.com |
46db86e79771ab26fcdc605bdf0ce05b8ed2ab07 | 2735c5f1a9b1f1a3d2468f0838fc0f20725cbe31 | /usr/lib/pymodules/python2.7/numpy/core/tests/test_ufunc.py | 43f4f539e4e53be8feb7e24a89b82b135eb556ca | [] | no_license | sanyaade-iot/rpi-sysroot | f202b9188fd99c372d28b59ebe1b8fcabbfb7a67 | 6e13f05b5b2b44b29ead66c96230a17f077d5198 | refs/heads/master | 2020-04-08T16:14:25.745147 | 2014-03-21T06:27:54 | 2014-03-21T09:47:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50 | py | /usr/share/pyshared/numpy/core/tests/test_ufunc.py | [
"weitjong@gmail.com"
] | weitjong@gmail.com |
3ccecf38f10a7e46ce67f926342ffa8267003ee3 | 89bd6447e357ab59f285052d9dccbafd8a0b48ca | /Python day 3/month.py | 7322113a1a3f5870bcb7273c49d4bca1f3041ce0 | [] | no_license | pallavininawe/sample_repo_arpit | 51bb8abaaba72d12fc44c3dc2f46c0e265fe6bef | 28ed89ef5d937307e5f21b099e1c3d424fbbacab | refs/heads/master | 2021-01-01T18:20:13.121422 | 2017-07-17T11:31:03 | 2017-07-17T11:31:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | month = ['january',
'february',
'march',
'april',
'may',
'june',
'july',
'august',
'september'
'october',
'november',
'december']
m = raw_input("Enter the month ")
print("Number of the month is " + str(month.index(m.lower())+1))
| [
"arpit.tejan@quantiphi.com"
] | arpit.tejan@quantiphi.com |
3a5912957350ed986573050c9f331ab000478692 | 5d0e8ac83fc0e39adb1b031cc01187bcdeb3a452 | /h2o-py/tests/testdir_javapredict/pyunit_javapredict_irisDRF.py | dde1d997ffd534e4322911996f0d558a268813e9 | [
"Apache-2.0"
] | permissive | xxushans/h2o-3 | f466a3faebb7342c7e41266b5d8ba0a40a2d1cff | 1567366c926b932acf8051a9ef579b966133f5f8 | refs/heads/master | 2021-01-14T08:56:24.477570 | 2015-10-20T20:25:23 | 2015-10-20T20:25:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py |
def javapredict_iris_drf():
# optional parameters
params = {'ntrees':100, 'max_depth':5, 'min_rows':10}
print "Parameter list:"
for k,v in zip(params.keys(), params.values()): print "{0}, {1}".format(k,v)
train = h2o.import_file(pyunit_utils.locate("smalldata/iris/iris_train.csv"))
test = ... | [
"eric.eckstrand@gmail.com"
] | eric.eckstrand@gmail.com |
7a302195e046d6479c47e3e8e3ce7e4766a114df | 05f8abf023ad1d35ba32a11cb71d348544efd6ae | /python/literature.py | d1da8c23dcf295bb488944c096cc45779963c80f | [] | no_license | robinsonaj/robinsonaj.github.io | 3233588f05c85166d6a1f1a4acb0ac89e32cd9cf | b755d0549cffa35cc41e10339f374ac3fc43986f | refs/heads/master | 2020-05-31T02:00:42.615493 | 2019-06-06T19:49:38 | 2019-06-06T19:49:38 | 190,057,936 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | texts = {"Jane Eyre":1847, "Cane":1923, "Wide Sargasso Sea":1966, "Citizen: An American Lyric":2014}
for title, date in texts.items():
print(str(title) + " was published in " + str(date))
| [
"robinson.a@wustl.edu"
] | robinson.a@wustl.edu |
f004405fef2fdf69649331b17e36bc392d5c02ba | 32eeb97dff5b1bf18cf5be2926b70bb322e5c1bd | /benchmark/wikipedia/testcase/pwpreferencecases/PW_pre_8.py | 59c846093a4300d149fa46929cd4e09dfe78d39a | [] | no_license | Prefest2018/Prefest | c374d0441d714fb90fca40226fe2875b41cf37fc | ac236987512889e822ea6686c5d2e5b66b295648 | refs/heads/master | 2021-12-09T19:36:24.554864 | 2021-12-06T12:46:14 | 2021-12-06T12:46:14 | 173,225,161 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,018 | py | #coding=utf-8
import os
import time
import traceback
from appium import webdriver
from appium.webdriver.common.touch_action import TouchAction
from selenium.common.exceptions import NoSuchElementException, WebDriverException
desired_caps = {
'platformName' : 'Android',
'deviceName' : 'Android Emulator',
'platformVer... | [
"prefest2018@gmail.com"
] | prefest2018@gmail.com |
c8dd1a5fd5d1e0c0be705d36c08d93864591af1b | 967b7022158daacc77604bf650bd79303a669994 | /solutions/ThirtyMusic/stabr_history_aslm.py | d1c1d737f36cf6b5b08ae661a0a1eb42b76040ac | [] | no_license | x775/skips-recommender | 2653d9b20c970b294fa0120e62e3e8b3279ef4a4 | 6ef3ee448895e5b05111deb9a01c455a12e299cc | refs/heads/master | 2023-02-17T23:30:57.143248 | 2021-01-21T22:56:53 | 2021-01-21T22:56:53 | 331,425,286 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,774 | py | import tensorflow as tf
import tensorflow.keras.layers as layers
import tensorflow.keras.backend as K
class GRUSkipCell(layers.Layer):
def __init__(self, units, **kwargs):
super(GRUSkipCell, self).__init__(**kwargs)
self.units = units
self.state_size = self.units
self.output_size =... | [
"x775@users.noreply.github.com"
] | x775@users.noreply.github.com |
df595c77d73ecc81233488dc652b38172a935850 | d86c52f4098fd9c1a102c2d3f5630556e0610fa2 | /fitle/myenv/Lib/site-packages/django/urls/base.py | 0caa424c33ca350337f9994d131b8e12e6d6d6ca | [] | no_license | makadama/bitbucket | 24f05c4946168ed15d4f56bfdc45fd6c0774e0f2 | cabfd551b92fe1af6d9d14ab9eb3d9974b64aa79 | refs/heads/master | 2023-06-19T19:04:03.894599 | 2021-07-15T12:10:39 | 2021-07-15T12:10:39 | 385,203,791 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | version https://git-lfs.github.com/spec/v1
oid sha256:b1fa9d73dc9c6873504ab270b4646eb91e5cd202f9f0a9fffff2342e2183d8ab
size 5587
| [
"adamamakhtarsow@gmail.com"
] | adamamakhtarsow@gmail.com |
875a44e60ea4e59601168d9d7f65ea708ca57074 | 51cbb3ecd3041e39f9bf1f02db1bc9d1b9fd7c46 | /api/views.py | cd7d62156dcb85bef2c20c5c59619395a280709f | [] | no_license | kbonna/cog-hack-2021-backend | 487d8b1bc546692dbbd10ac3366882c38167519e | 0bd897be206cbc94e3827f130e694d9762882f47 | refs/heads/master | 2023-02-17T23:48:29.547539 | 2021-01-16T21:31:52 | 2021-01-16T21:31:52 | 330,255,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | import matplotlib.pyplot as plt
from django.shortcuts import render
import os
from fer import FER
from rest_framework import status
from rest_framework.parsers import FormParser, MultiPartParser
from rest_framework.response import Response
from rest_framework.views import APIView
from .models import Face
from .seriali... | [
"kongokou@gmail.com"
] | kongokou@gmail.com |
80eeafcfe49a8c11c95469514b944e39cb3d1d72 | 28de04457e8ebcd1b34494db07bde8a3f25d8cf1 | /easy/merge_strings_alternately_1768.py | 6fe5922a1b727e8804d12c5ee7a5e010c4426ba1 | [] | no_license | YangXinNewlife/LeetCode | 1df4218eef6b81db81bf2f0548d0a18bc9a5d672 | 20d3d0aa325d79c716acfc75daef32f8d4f9f1ad | refs/heads/master | 2023-08-16T23:18:29.776539 | 2023-08-15T15:53:30 | 2023-08-15T15:53:30 | 70,552,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 629 | py | # -*- coding:utf-8 -*-
__author__ = 'yangxin_ryan'
"""
Solutions:
题意是给定两个字符串,然后依次进行拼接
处理逻辑就先先找出来公共的长度,然后将非公共的部分补充在里面即可。
"""
class MergeStringsAlternately(object):
def mergeAlternately(self, word1: str, word2: str) -> str:
result = ""
min_len = min(len(word1), len(word2))
temp_index = 0
... | [
"yangxin812716131@163.com"
] | yangxin812716131@163.com |
d7fee4d710b12ded07914ad58487c609451641e1 | 62e2e6de3256a0d84c46467b7876bb3da419209d | /stat133/info.py | dae9c2770a5c50c7eae7593bc2cdcc23b2a3ef83 | [] | no_license | yuchengzhang/Final-Repository | 2f8b5a7e1638a75c19af2743df4b63bd41aa2402 | 4032cfd6646fadbd48dc4f475755921341aba287 | refs/heads/master | 2021-01-15T10:47:13.727130 | 2014-05-11T05:42:01 | 2014-05-11T05:42:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | name = "Yucheng Zhang"
email = "frank.zhang@berkeley.edu"
github_name = "yuchengzhang" | [
"frank.zhang@berkeley.edu"
] | frank.zhang@berkeley.edu |
b3429a00c7860031b55b2fb9286af5147d34865a | 4d6d64ca207ea061ed082359ed331e992464fbc4 | /3面向对象编程/1继承和多态.py | dfac9db61e1ead06644527544d4995913f40b05a | [] | no_license | joeyFuck/joeyPython | 70679a4a4b3eb926b996f2a42061083f91d8755c | b1d75fd1c0e30800e81f5c8668190375fea8e113 | refs/heads/master | 2021-01-02T09:46:16.009103 | 2017-08-23T13:41:21 | 2017-08-23T13:41:21 | 99,296,399 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,035 | py | class Animal(object):
def __init__(self,name):
self.name = name #这里相当于新增了一个属性name
def run(self):
print(self.name+' is running')
class Cat(Animal):
pass
class Dog(Animal):
pass
a = Cat('cat')
a.run()
# 对于一个变量,我们只需要知道它是Animal类型,无需确切地知道它的子类型,就可以放心地调用run()方法,
# 而具体调用的run()方法是作用在Animal、Dog、C... | [
"747161601@qq.com"
] | 747161601@qq.com |
836335f484bebddd4802c41ac8b479769d96c4ff | 9512f6eea340cd00559659d2fbba5b4fe4668a55 | /JeuCartes.py | cb023e06e80b0ce67187e2316d22e8851d0d13d2 | [] | no_license | Mehdi-SIO/card_game | 0af98d792c88dad0d9e2f8f143bc304887f38b07 | 67ddcb1156d4abc8122a6204e9bb8cb874b23cd1 | refs/heads/master | 2021-01-23T12:11:14.327571 | 2016-08-20T10:20:23 | 2016-08-20T10:20:23 | 62,459,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | from Carte import Carte
import random
class JeuCartes:
def __init__(self):
self.__cartes = []
for val in range(2, 15):
for coul in range(4):
self.__cartes.append(Carte(val, coul))
def __str__(self):
carte_du_jeu = ""
for carte in self.__cartes:
... | [
"mouaghlani@octo.com"
] | mouaghlani@octo.com |
d9825bd0406daa4dcd70caa1d43d3f111bac09b7 | 5dcf3bfa331d4c2f61be93c80dbc672c78e5e07d | /untitled0.py | e9cda6b52dc0d0a046dc3e8bb9ed85f9e2f6b203 | [] | no_license | sangaselu/Forecast-predicciones | 6a7cc6a0d17c8924d93a06269560ed4953c93841 | 8a8236a291c3e479c0cca8705319dfb4eda81d39 | refs/heads/main | 2023-03-22T09:30:30.275947 | 2021-03-20T17:29:43 | 2021-03-20T17:29:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | # -*- coding: utf-8 -*-
"""Untitled0.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1zppAK7b_-wsBIv-Z7-zYhxlCtppDOTan
"""
# Commented out IPython magic to ensure Python compatibility.
#importar dependencias de librerías
import numpy as np
import... | [
"noreply@github.com"
] | sangaselu.noreply@github.com |
b52273a1e19daac8b6173e5b3287d5a6ad803d06 | 4bfdb3ad5b44044113d3d6b586e10281d3987c9e | /infra/bots/recipe_modules/upload_dm_results/api.py | 3005f3e77790c38666ee47a5e9b661f92619102c | [
"BSD-3-Clause"
] | permissive | imxiangpeng/skia | dcdca3538564f2707fde10b43bdcaa6d9b5e0103 | 3e7cddaf32e280fe9f32eec5bfdd8168ca4941b6 | refs/heads/master | 2021-01-23T02:40:18.169644 | 2017-03-23T20:24:50 | 2017-03-24T01:24:57 | 86,016,340 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,932 | py | # Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
# Recipe for uploading DM results.
import calendar
from recipe_engine import recipe_api
DM_JSON = 'dm.json'
UPLOAD_ATTEMPTS = 5
VERBOSE_LOG = 'verbose... | [
"skia-commit-bot@chromium.org"
] | skia-commit-bot@chromium.org |
a2572c5daff36a8bb21decc52a7cb7a2cc07b318 | 106c0579e1d4b43b6fa1fd993ba7c3d18348b899 | /ATMGUI/__init__.py | 1bc3b95f9ce8320b88cc347869d7d9788d190b09 | [] | no_license | cookesd/RandomDev | 479593759de8f11b4a282cf3b76ba56c0dc88840 | 83c56267ce122dfe80744d845d234dc5246d55f9 | refs/heads/master | 2022-12-30T23:54:58.422723 | 2020-10-25T19:53:42 | 2020-10-25T19:53:42 | 295,150,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | # import tkinter as tk
# import pandas as pd
# from.classes import * | [
"stuart.d.cooke@gmail.com"
] | stuart.d.cooke@gmail.com |
0acfde7d97b1eac2a57d64732752fa8041dc7477 | 777abc58651ae149b812b3eb2f6da286f0f5dd19 | /new_report.py | 14d92c85dec059e195520d7fd07f9a7f8dfd2337 | [] | no_license | Pythonov/Qt | e4796982320981ec2193a6115e699dd54ed48545 | 6c5dcfa85e68dc66932439827bb5b731a37d939a | refs/heads/master | 2023-08-20T02:28:31.943085 | 2021-10-20T09:19:04 | 2021-10-20T09:19:04 | 402,314,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,956 | py | class Report:
def __init__(
self,
include_error_data: bool = False,
max_count_error_data: int = 1000,
):
self.include_error_data = include_error_data
self.max_count_error_data = max_count_error_data
self.success_dict = 0
self.success_data = 0
... | [
"grringo3@gmail.com"
] | grringo3@gmail.com |
bbc09ec48ac312da5af351b94a2e18769a2ac677 | c867e0d5102d2eb0bfbffb6255a16b2ce3fda339 | /src/localEnv/agent.py | 496a1e537671637070a639e58cef28ef4711d017 | [] | no_license | dufourc1/SemesterProjectMA3 | 54329db72125e83c594320f7790b1b90907dcc19 | 9717cbd1b37b07b16ca2a081d363e7821c19efdc | refs/heads/master | 2020-07-21T08:25:29.969488 | 2020-03-10T13:50:03 | 2020-03-10T13:50:03 | 206,796,125 | 2 | 0 | null | 2020-04-28T18:23:47 | 2019-09-06T13:08:13 | Jupyter Notebook | UTF-8 | Python | false | false | 2,718 | py | import numpy as np
class AgentStatic():
def __init__(self, EnvAgent):
self.initial_position = EnvAgent.initial_position
self.position = EnvAgent.position
self.initial_position = EnvAgent.initial_position
self.direction = EnvAgent.direction
self.target = EnvAgent.target
... | [
"ed.ghaleb@gmail.com"
] | ed.ghaleb@gmail.com |
334b108ede915f2978c4c60ecab922e2db736edb | 8dc84558f0058d90dfc4955e905dab1b22d12c08 | /third_party/catapult/catapult_build/js_checks.py | 78cc745ebd8c0a9d391d4f7b6b80392c3d74fce2 | [
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"MIT",
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"BSD-3-Clause"
] | permissive | meniossin/src | 42a95cc6c4a9c71d43d62bc4311224ca1fd61e03 | 44f73f7e76119e5ab415d4593ac66485e65d700a | refs/heads/master | 2022-12-16T20:17:03.747113 | 2020-09-03T10:43:12 | 2020-09-03T10:43:12 | 263,710,168 | 1 | 0 | BSD-3-Clause | 2020-05-13T18:20:09 | 2020-05-13T18:20:08 | null | UTF-8 | Python | false | false | 3,390 | py | # Copyright (c) 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import eslint
from py_vulcanize import strip_js_comments
from catapult_build import parse_html
class JSChecker(object):
def __init__(sel... | [
"arnaud@geometry.ee"
] | arnaud@geometry.ee |
e8aa6f13db12e6079697b3754a63bb24bcc8c34c | 279f415dd1e06c594c6c87deda57e201c73c4542 | /test/espnet2/schedulers/test_noam_lr.py | 1e34d4684444b4b4dde33466d11137fe8f499a5a | [
"Apache-2.0"
] | permissive | espnet/espnet | f7ba47271c1a6b1ed606dbbfb04a7f14220bb585 | bcd20948db7846ee523443ef9fd78c7a1248c95e | refs/heads/master | 2023-08-28T23:43:34.238336 | 2023-08-23T02:51:39 | 2023-08-23T02:51:39 | 114,054,873 | 7,242 | 2,244 | Apache-2.0 | 2023-09-14T08:01:11 | 2017-12-13T00:45:11 | Python | UTF-8 | Python | false | false | 313 | py | import torch
from espnet2.schedulers.noam_lr import NoamLR
def test_NoamLR():
linear = torch.nn.Linear(2, 2)
opt = torch.optim.SGD(linear.parameters(), 0.1)
sch = NoamLR(opt)
lr = opt.param_groups[0]["lr"]
opt.step()
sch.step()
lr2 = opt.param_groups[0]["lr"]
assert lr != lr2
| [
"naoyuki.kamo829@gmail.com"
] | naoyuki.kamo829@gmail.com |
0e5c913c9e66bd341d881efab50b0f851b780515 | 01a2f1838e6794b8ab238266b6217c95b6534f2b | /run_dynesty_multipole.py | 18af48b0777313fbc2327e733dc7f6df5119d930 | [] | no_license | SandyYuan/BOSSfits | 5e8e5f5dcb3ff31dea6263908da9df8a793835e5 | 1323009ee34c4a9111b52a4810d8e9d0b0bc62ee | refs/heads/master | 2023-08-17T13:34:46.992776 | 2021-09-29T22:16:39 | 2021-09-29T22:16:39 | 411,844,461 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18,782 | py | #! /usr/bin/env python
import os
import time
import sys
import numpy as np
import argparse
import yaml
import dill
from scipy import stats
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as pl
import matplotlib.cm as cm
from matplotlib import gridspec
from matplotlib.lines import Line2D
import matpl... | [
"sihan.yuan@cfa.harvard.edu"
] | sihan.yuan@cfa.harvard.edu |
270aaddedb72e83d89edde7860500e85380b8b0d | 4dd695521343d56ff943e8c1768343d7680714e3 | /experiments/scripts_auto_crossdataset_ynoguti_braccent/config_SVM_1024_crossdataset.py | 70cd8e2343abb6a9b2f80d3d2b006aed092d244f | [] | no_license | natharb/environment | ea659ee541f6473e92b5b30c549e52b66f47b280 | 86e6cee6e01d2370abeb7c55a2c8a15001735919 | refs/heads/master | 2021-09-28T02:39:02.222966 | 2018-11-13T12:03:34 | 2018-11-13T12:03:34 | 139,762,646 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | #!/usr/bin/env python
# vim: set fileencoding=utf-8 :
#Nathália Alves Rocha Batista (nathbapt@decom.fee.unicamp.br)
import sys
sys.path.insert(0, '.')
import bob.bio.spear
import bob.bio.gmm
import numpy
import scipy.spatial
temp_directory = './results/crossdataset_ynoguti_braccent/SVM/1024/temp/'
result_directory =... | [
"nathbapt@decom.fee.unicamp.br"
] | nathbapt@decom.fee.unicamp.br |
b4a8729faabf00c3c189209fa6f19dfa2580a827 | 06b45f01890b1a08e708859120926c1291c6160d | /pedido_compra/pedido_compra.py | 55f18e1a58de1a2e681e25b7bf4d23b2a6d4f30e | [] | no_license | LFer/compras_estatales_uy | 384874aa675fbf065e4121961534af0889f4d77a | 1f003389f63dee16a76701669ff02d12095a3bce | refs/heads/master | 2020-04-14T14:27:37.717871 | 2014-03-24T19:53:02 | 2014-03-24T19:53:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,220 | py | # -*- coding: utf-8 -*-
from osv import osv
from osv import fields
import openerp.addons.decimal_precision as dp
LISTA_ESTADOS = [
('nuevo', 'nuevo'),
('pendiente_de_aprobacion', 'Pendiente de aprobación'),
('aprobado', 'Aprobado'),
('rechazado', 'rechazado'),
('afectado', 'Afectado'),
('provee... | [
"root@felipe-OEM.(none)"
] | root@felipe-OEM.(none) |
667f0de301eedc9bc5b6e173a05384d6bf47718f | a887feb33f350eb59c3184db7ddcaabe5119fc3e | /better_implementations.py | 679abea8fbb0a8f00e9368b6fbe463f9da1a18d7 | [] | no_license | Adirlou/Project1-ML | a2bd3cb1747c6a61b6cc2ea7bb9d481abbc1193c | 6ff65d2afebc0e29b0cbe645193a0f19782d486f | refs/heads/master | 2020-04-04T16:49:59.879808 | 2018-11-04T16:18:07 | 2018-11-04T16:18:07 | 156,095,503 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,811 | py | from helpers import *
import numpy as np
def accelerated_least_squares_GD(y, tx, initial_w, max_iters, lambda_=0):
"""Gradient descent algorithm."""
#Define parameters to store w and loss
ws = [initial_w]
losses = []
w = initial_w
#Parameters for AGD
yw = w
#Compute the eigenvalues to... | [
"adrien.vandenbroucque@gmail.com"
] | adrien.vandenbroucque@gmail.com |
68c238c689b8854bee9f2f7b9feb5cd12b6e2b4d | 7af69099d27f9e13dd500d38f38f16ebb5fd5dc6 | /Accessibility.py | 4d978e1cc117447d7514b5a18a298494f8d3b931 | [
"BSD-3-Clause"
] | permissive | lrayle/accessibility | 60bead93a70fd094b45bcdf87f84228f15fed110 | 427f90e1e2a6557f31aac67fd5cded373c0850f4 | refs/heads/master | 2021-01-21T17:23:20.796772 | 2017-03-23T05:03:55 | 2017-03-23T05:03:55 | 85,274,771 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,988 | py | #!/usr/bin/env python
# coding: utf-8
# Accessibility.py
#
"""This module calculates accessibility scores given sets of travel time data and land use data.
Make sure the names of input data files are correct.
Also specify the land use activities wanted.
There is the option use a cumulative opportunitie... | [
"lrayle@gmail.com"
] | lrayle@gmail.com |
e2a69d46068149b397105390ea1ba7d512b7b66f | 6c816c8f38167f52ed2ba5a675fb04ddf4c44e81 | /problem1.py | 8d76e46879dcd721175cf5b9ab58466587ae1105 | [] | no_license | pjrenzov/project_euler | 9ca26482c458c166db85fdec358468c09ccef183 | 7c98603badbdffe6256c131dc42d3c083aaefe38 | refs/heads/master | 2023-03-30T06:56:24.440800 | 2021-04-07T10:17:45 | 2021-04-07T10:17:45 | 290,428,893 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | import numpy as np
arr = []
for i in range(1,1000):
if i%3==0 or i%5==0:
arr.append(i)
sum = np.sum(arr)
print(sum) | [
"parasjadiya@icloud.com"
] | parasjadiya@icloud.com |
e78a09ac831a30a2e4fdb4142c9147696173cb4b | 01dc1e061450c8ef64a68aba17c7a9cf3e12e10d | /sorting/quick_sort.py | f2e4c66df278b8abae3f43067ffaf8ed76599094 | [] | no_license | Omarfos/Algorithms | 28617766084b29d951a01c52b4685bfb351c59aa | 01982eaa9a29ea8c67b6d02aa4fc7b7c6cf62e0d | refs/heads/master | 2022-10-14T06:00:06.451496 | 2020-06-14T00:22:03 | 2020-06-14T00:22:03 | 271,339,287 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,008 | py |
class Solution:
def quick_sort(self, nums, low, high):
if low < high:
q = self.partition(nums, low, high)
self.quick_sort(nums, low, q-1)
self.quick_sort(nums, q+1, high)
return nums
def partition(self, nums, low, high):
key = nums[high]
i = ... | [
"omaramin4@gmail.com"
] | omaramin4@gmail.com |
4693d026ff3eb51517ea1524650b2119fb6af8db | 77c4ca9b33e007daecfc4318537d7babea5dde84 | /tensorflow/python/keras/mixed_precision/experimental/keras_test.py | 498077829da14e10358b297127d0a5d1b268ac03 | [
"Apache-2.0"
] | permissive | RJ722/tensorflow | 308eede8e911e2b6a6930fef3e24a493ab9a2a61 | 6c935289da11da738f2eaed18644082f3a6938d6 | refs/heads/master | 2020-12-20T16:51:12.767583 | 2020-01-25T06:46:50 | 2020-01-25T06:51:20 | 236,138,137 | 2 | 3 | Apache-2.0 | 2020-01-25T07:12:41 | 2020-01-25T07:12:40 | null | UTF-8 | Python | false | false | 46,076 | py | # Copyright 2019 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... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
ea578155edc28e2faf16b6489123349cb41a4afa | 949df7aa5f768c6da29dc1fdce482157758967a3 | /guns.py | fa08d491bfcce549dccfd25e08e028639d09649f | [] | no_license | datMen/Guns-Plugins | 905dad1027e69dcf9404a74822651cba2463fbe8 | 78646f0f2c668910d6ab279e09f8db9d7213158f | refs/heads/master | 2021-01-20T07:52:36.093050 | 2014-02-23T18:10:44 | 2014-02-23T18:10:44 | 14,366,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,394 | py | __author__ = 'LouK'
__version__ = '3.0'
import b3, random, time, thread, threading, re, string
import b3.events
import b3.plugin
#--------------------------------------------------------------------------------------------------
class RandomGuns:
weapons = ['G', 'H', 'D', 'S', 'J', 'E... | [
"8thelouk8@gmail.com"
] | 8thelouk8@gmail.com |
48e912e81203c08aaefee933541c2bd678f7560b | 955f9d3fb34af54de2f046d17bbac11c1474819e | /arc040/a/a.py | d3497651c70b1e270f5ae7749f72b8504c1d40f0 | [] | no_license | shimewtr/AtCoderPracticePython | 5bb4c28119fced2d111bd1810e0e290f25b6a191 | f3c22ec1f7a36a27848070c5c6ca4e1717b04ac6 | refs/heads/master | 2023-01-12T17:28:44.770138 | 2020-11-19T22:50:22 | 2020-11-19T22:50:22 | 204,830,292 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | n = int(input())
r = 0
b = 0
for i in range(n):
s = input()
r += s.count('R')
b += s.count('B')
if r > b:
print('TAKAHASHI')
elif b > r:
print('AOKI')
else:
print('DRAW')
| [
"shime@shimewtr.me"
] | shime@shimewtr.me |
1e7328c18fccb044add7d31e77fb870e9b28968b | 7bdf525510bd42f35c72d6d232d6534b156cf68d | /scrapers/coca_cola.py | 962d3ba7e60228c717f8d5b2a7448ad7e4beb1f6 | [
"Apache-2.0"
] | permissive | spendright/scrape-companies | 81af39e9aef44d1e722f6820b1c6277028865fe1 | 1b4b63be3b39c89fc2c954e63497d37519a95dd6 | refs/heads/master | 2021-01-21T05:01:18.007866 | 2016-06-07T22:00:59 | 2016-06-07T22:00:59 | 39,039,897 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,950 | py | # -*- coding: utf-8 -*-
# Copyright 2014 SpendRight, 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 b... | [
"dm@davidmarin.org"
] | dm@davidmarin.org |
dd4532867225260b493c78ccb86707a010c68f3e | 412b0612cf13e9e28b9ea2e625975f3d9a2f52b6 | /2022/16/pressure_release.py | 450cad8ba653b096a272d2898024b05e9b964992 | [] | no_license | AlexClowes/advent_of_code | 2cf6c54a5f58db8482d1692a7753b96cd84b6279 | d2158e3a4edae89071e6a88c9e874a9a71d4d0ec | refs/heads/master | 2022-12-24T19:02:07.815437 | 2022-12-23T17:35:53 | 2022-12-23T17:35:53 | 225,618,394 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from collections import defaultdict
import functools
import heapq
from itertools import combinations, pairwise, permutations
import re
from tqdm import tqdm
def main():
pat = r"Valve (\w+) has flow rate=(\d+); tunnels? leads? to valves? ([,\s\w]+)"
flow_rate = {}
graph = defaultdict(dict)
with open... | [
"alexclowes@gmail.com"
] | alexclowes@gmail.com |
3050965c64c5dfae7c9d9c36d91d10ca83bbb00f | 0891265c435e189ac67b77510416c5d883af7c73 | /KerasUtils/KerasUtils.py | f0943a7ac6caeaa199e9c1e1671cca95fadf6915 | [
"MIT"
] | permissive | pietromosca1994/PyTools | 71c36386ccdf2bf552b05af04eca02344fc6e1cc | 37974246b984d4b4024ec1439990107fadc0494a | refs/heads/master | 2023-01-03T21:47:54.191899 | 2020-10-25T13:38:25 | 2020-10-25T13:38:25 | 267,836,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,632 | py | import os
from DataExport import SaveData
from DataExport import LoadData
from tensorflow.keras.models import load_model
from tensorflow.keras.models import load_weights
#######################################################################################
# save model
################################################... | [
"pietromosca1994@gmail.com"
] | pietromosca1994@gmail.com |
2be734b805eb9d572246ff46fab40157e94edfef | 6de5767c575b738ba945969f0072dd2c54106e47 | /journile/urls.py | 820f2f4a2f17771d227c296683573623c6645e88 | [] | no_license | safwanrahman/journile | 254d39e2dd05df91a99e3e97ae1d8a64ba465516 | efc46061a8eb3fa97d90431e683f9f605c9964a0 | refs/heads/master | 2022-12-17T16:00:48.229056 | 2017-06-24T22:28:31 | 2017-06-24T22:28:31 | 95,325,982 | 0 | 0 | null | 2021-06-10T19:37:45 | 2017-06-24T22:26:49 | HTML | UTF-8 | Python | false | false | 765 | py | """journile 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... | [
"safwan.rahman15@gmail.com"
] | safwan.rahman15@gmail.com |
378055851595a6f4509513667890d3915c1def51 | 3b504a983f1807ae7c5af51078bfab8c187fc82d | /client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py | d55efec79392f37f2e6fbd53db0997fa8ae8c1b0 | [] | no_license | SEA-group/wowp_scripts | 7d35fd213db95ea6b3dbd1ec6d3e0f13de86ba58 | 2fe54a44df34f2dcaa6860a23b835dcd8dd21402 | refs/heads/master | 2021-09-07T23:10:13.706605 | 2018-03-02T17:23:48 | 2018-03-02T17:23:48 | 117,280,141 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,245 | py | # Embedded file name: scripts/client/gui/HUD2/features/AttitudeIndicator/AttitudeIndicatorSource.py
from gui.HUD2.core.DataPrims import DataSource
from gui.HUD2.hudFeatures import Feature
class AttitudeIndicatorSource(DataSource):
def __init__(self, features):
self._model = features.require(Feature.GAME_M... | [
"55k@outlook.com"
] | 55k@outlook.com |
e95a67c2ef831b25407aa869be369412d2cfe3fd | 9d7a903c2374e1c57fdb7ac3331f82e3c1e4485c | /eventex/subscriptions/tests/test_admin.py | 67bb5e0358df5b9b7599d8661820d64f7f0b1afc | [] | no_license | rafagitaccount/eventex | f844fa996db271aa3f0d6ab351970fdbc8ff7452 | 36fc5462d09c0512985ff5ed9ffb8b116b6201c5 | refs/heads/master | 2023-06-03T23:49:28.909219 | 2021-06-23T15:05:54 | 2021-06-23T15:05:54 | 374,220,249 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,411 | py | from unittest.mock import Mock
from django.test import TestCase
from eventex.subscriptions.admin import SubscriptionModelAdmin, Subscription, admin
class SubscriptionModelAdminTest(TestCase):
def setUp(self):
Subscription.objects.create(name='Henrique Bastos', cpf='12345678901',
... | [
"consultoria@tekplus.com.br"
] | consultoria@tekplus.com.br |
2dbeed1dcdd89e81a9c6703e2d459c3d9b55a577 | ba46f774793ff06ae12cbed51a024142d2b0f63e | /topiary/cli/outputs.py | a4d26ea8ba21e21749e38ca4d7e35b53b424729f | [
"Apache-2.0"
] | permissive | Saintyven/topiary | 05fe9eb9b0a9bbb851564d0d835d967bf1fce6ab | 04f0077bc4bf1ad350a0e78c26fa48c55fe7813b | refs/heads/master | 2021-09-07T17:21:56.267182 | 2018-02-26T19:56:58 | 2018-02-26T19:56:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,255 | py | # Copyright (c) 2017. Mount Sinai School of Medicine
#
# 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 o... | [
"alex.rubinsteyn@gmail.com"
] | alex.rubinsteyn@gmail.com |
71e773b39092734bd965a8cebf1ca7f7beedcadd | 59fde82e6506f682087ac579473d30cf3641ddc0 | /aoc2020/day12/__init__.py | 34c5ee817eb8a5708c7892c6c2b805340963ce2f | [] | no_license | meznak/advent-of-code-2020 | 4f8d595c83b356e54db752c03881d9a4b950d4e5 | 381d02e22eadd8391453d577738e006f309dcb9b | refs/heads/master | 2023-02-16T17:04:34.651738 | 2023-02-16T04:34:17 | 2023-02-16T04:34:17 | 317,687,641 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,803 | py | '''
Advent of Code Day 12
Rainy Risk
'''
SAMPLE_SOLUTIONS = [25, 286]
class Ship(object):
'''A ferry'''
def __init__(self, position = (0,0)):
self.x_pos = position[0]
self.y_pos = position[1]
self.direction = 90
def turn(self, action: chr, value: int) -> None:
'''Turn the... | [
"nplamondon@gmail.com"
] | nplamondon@gmail.com |
9c299c08db951c0e5066a5ebdddf5a809aa00da1 | 54da2be33c1015dcb3b4bbb92c9d99a4995ffa4e | /uebung1.py | 498ba4eb1476c9e47b0f8bc38126b982f1582d74 | [] | no_license | OlleSocke/project1 | 32a8b8a8ea5f95104e29ce0d8bff9fd0d459318a | d778832bf8a8f1c5bab3c44723af658f839413e4 | refs/heads/master | 2022-10-05T19:23:46.091340 | 2020-06-05T12:46:03 | 2020-06-05T12:46:03 | 269,623,363 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | en_de = {
"house" : "Haus",
"cat":"Katze",
"black":"schwarz"
}
print(en_de) | [
"julia.vonundzu@gmail.com"
] | julia.vonundzu@gmail.com |
935b23e2e67d4e100687a4969ef5f57533078a41 | fd9b292cc7a00b73fc9b0e6a9cd9d87ecdc9d74d | /SkillChecker/test/api_test.py | 428e8c3b011a3df445e0f6f462159703945fcfb7 | [] | no_license | KathLevi/SE_Website | 3148443365d46c1c6b5f75c68dc4f352eca6787b | 34c4da584551d6f27b586ac4943d63c493fa1b97 | refs/heads/master | 2021-04-26T23:45:03.381321 | 2018-05-18T03:41:28 | 2018-05-18T03:41:28 | 123,849,220 | 0 | 0 | null | 2018-05-03T22:16:38 | 2018-03-05T01:47:06 | JavaScript | UTF-8 | Python | false | false | 303 | py | import subprocess
import json
def apiListSkills():
output = subprocess.check_output(args=['ask','api','list-skills'],shell=True)
return output.decode()
out = apiListSkills()
out = json.loads(out)
for skill in out['skills']:
print(skill['skillId'])
print(skill['publicationStatus'])
| [
"andrew.gazeley@gmail.com"
] | andrew.gazeley@gmail.com |
f0cfc11ac7bdbd46f6556b49a3637218927f3cb7 | b7f3edb5b7c62174bed808079c3b21fb9ea51d52 | /build/android/gyp/jinja_template.py | ba335a248b06620e7b8f9d1dac8dfd6b516e3ac5 | [
"BSD-3-Clause"
] | permissive | otcshare/chromium-src | 26a7372773b53b236784c51677c566dc0ad839e4 | 64bee65c921db7e78e25d08f1e98da2668b57be5 | refs/heads/webml | 2023-03-21T03:20:15.377034 | 2020-11-16T01:40:14 | 2020-11-16T01:40:14 | 209,262,645 | 18 | 21 | BSD-3-Clause | 2023-03-23T06:20:07 | 2019-09-18T08:52:07 | null | UTF-8 | Python | false | false | 6,456 | py | #!/usr/bin/env python
#
# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Renders one or more template files using the Jinja template engine."""
import codecs
import argparse
import os
import sys
from u... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
6cdc14c3b39b2c84ee1c69365e5af44d126486f8 | c54cec9ae2870352de38e3bca80155443fa844a9 | /conduit/apps/core/exceptions.py | 4b98944655dfd0d2937643692685a6a1082221d9 | [] | no_license | graphael7/conduit-django | 6bd2a1b99828d00f8dd97f305d9be9f7bab23343 | eef870c940ae71f1cc89eb8bdcfcfd38ab58ae7b | refs/heads/master | 2021-07-23T12:30:14.841145 | 2017-11-02T14:02:52 | 2017-11-02T14:02:52 | 106,417,912 | 2 | 1 | null | 2017-10-10T13:02:35 | 2017-10-10T13:02:35 | null | UTF-8 | Python | false | false | 1,006 | py | from rest_framework.views import exception_handler
def core_exception_handler(exc, context):
response = exception_handler(exc, context)
handlers = {
'NotFound': _handle_not_found_error,
'ValidationError': _handle_generic_error
}
exception_class = exc.__class__.__name__
if exceptio... | [
"graphael@Norths-MacBook-Pro.local"
] | graphael@Norths-MacBook-Pro.local |
9755d4fc53185fffaae4ee7a77d41a8749a08667 | 3e9b13346084696d589b9a856db82b5fc4d1cd68 | /accounts/models.py | 495ba2743d9ae37eed30b7b37039a4880c7ec14a | [
"BSD-3-Clause"
] | permissive | subhailams/pycharm_django_ecommerce_app | 4a23d0324dd7d31c67f09da2b9636fa4c6650eba | 64e006470b4a9afb33a86498c7e6e0bfb5bde172 | refs/heads/master | 2023-01-19T12:16:05.244832 | 2020-11-23T19:07:55 | 2020-11-23T19:07:55 | 315,253,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,715 | py | from datetime import timedelta
from django.conf import settings
from django.db import models
from django.urls import reverse
from django.core.mail import send_mail
from django.db.models.signals import pre_save, post_save
from django.db.models import Q
from django.template.loader import get_template
from django.utils im... | [
"subhailams@gmail.com"
] | subhailams@gmail.com |
d0af2d4e14fdd021b73ea515fbf12eec2fb44871 | 8c0a13fed1cde3c148f59edaff65378ec917105c | /zhihu_crawler/zhihu_crawler/settings.py | f2137800e0f19331df4af62f293671ebc6eec032 | [] | no_license | XUranus/zhihu-public-opinion-analysis | 8e497582ac051e8beb5607d2f82ee2ce7c7d3efe | f7496ccd9304d44a1e7709dae7e233fc8dbebe32 | refs/heads/master | 2022-12-09T22:39:05.823886 | 2020-09-06T12:29:37 | 2020-09-06T12:29:37 | 293,271,928 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | # -*- coding: utf-8 -*-
# Scrapy settings for zhihu_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# https://docs.scrapy.org/en/latest/topics/settings.html
# https://docs.scrapy.org/en/late... | [
"2257238649wdx@gmail.com"
] | 2257238649wdx@gmail.com |
27097f66d339d9255ee5e4b322f8d4404dfa3274 | ad0d5f0c161ba5624a42b8128a2cbe9b47a48c50 | /2017/day05/solve.py | 513c2644e2c327703f0a54e59bc8ee21c20bdd92 | [] | no_license | jlescher/aoc | 75d5aac1ff76bdb235ce70c7637bcc04fe9a9191 | c0d704b90c25ac4dac9c5b6dc018943f442dbe7b | refs/heads/master | 2022-04-17T03:57:18.649182 | 2020-04-19T21:20:11 | 2020-04-19T21:20:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 636 | py | #!/usr/bin/env python3
def simple_increase(steps):
ix = 0
cnt = 0
while 0 <= ix < len(steps):
cnt += 1
inc = steps[ix]
steps[ix] += 1
ix += inc
return cnt
def not_so_simple_increase(steps):
ix = 0
cnt = 0
while 0 <= ix < len(steps):
cnt += 1
... | [
"jblescher@gmail.com"
] | jblescher@gmail.com |
e9efec337c980a999a72131b97ffb0caae8b4eb5 | b1e958f90059cd97b8c1cb62abb34948fa867569 | /Mini-projects/7 - Spaceship/mini-project - Student 5.py | 9968fe6bacc39a38cfc68711ff7b017b3ec4e1d5 | [] | no_license | deltaworld/python-programming-coursera | ff756f3522a79f9b2101607f8156adc8d256db10 | 740ef3b02c05323e8da691ccbaa17337deb32db7 | refs/heads/master | 2021-01-23T03:04:25.476645 | 2015-07-15T13:25:22 | 2015-07-15T13:25:22 | 39,136,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,476 | py | # http://www.codeskulptor.org/#user16_7BY7hy435a_16.py
#This game was designed to run in Chrome browser
# program template for Spaceship
import simplegui
import math
import random
# globals for user interface
WIDTH = 800
HEIGHT = 600
ROTATION_VEL = 0.2
FORWARD_VEL = 1
SPACE_DEBRIS_FRICTION = 0.925
score = 0
lives = 3
... | [
"itrainit@gmail.com"
] | itrainit@gmail.com |
20faeb6e0aaeded085a9b74e0096cda53876ccb9 | 06fc0d78be8df25d0beedfba3b1944b3b0c980a7 | /backend/tests/backend_test.py | a3b2f19ec3eb62fae0868853726c63eb08e47eb6 | [] | no_license | uKev/pastee | 10b185fbebf58392820a596f03754c5b0225833c | f8dc0d7de3d2a357e85fd3c04d743aa4977f5c81 | refs/heads/master | 2020-04-08T22:43:43.385069 | 2011-09-06T05:26:32 | 2011-09-06T05:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,168 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from nose.tools import *
import json
import os
import subprocess
import sys
import time
import urllib
import urllib2
# Global instance of pastee backend process.
PASTEE_PROC = None
# Path to pastee.py, the backend.
PASTEE_PATH = os.path.join(os.path.dirname(__file__),
... | [
"ms@quadpoint.org"
] | ms@quadpoint.org |
3c2ef61a517ea23a19b6ea35102c794294a02536 | c6b33f9cb6048d4fe8d1c16713ed4dba63f804aa | /recursive_fibbonacci.py | f79aa8a759ae99ea4dcdb5bda11b11ac2e8ff180 | [] | no_license | Regul777/Trading_Algos | 80d4eedff11024679620c2d33bc116690375e798 | e44780212589bbd80241edc663e1ef791a400e74 | refs/heads/main | 2023-03-05T23:37:57.510277 | 2021-02-15T06:28:09 | 2021-02-15T06:28:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 718 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon May 11 15:39:10 2020
@author: kieranodonnell
"""
import numpy as np
import time
#Fibbo
def fibonacci(n):
if n <=1:
return n
else:
return (fibonacci(n-1)+fibonacci(n-2))
#Main
def main():
num = np.random.randint(1,25)
... | [
"kieran.j.odonnell@gmail.com"
] | kieran.j.odonnell@gmail.com |
446c51902ff2d2eaba0a2eb86d08da348892252c | 5351ad2613349410868f4df7552f55e656826e47 | /project/dia_pckg/__init__.py | bbb367885a9d57bd2c6e2caab3531756a5d08a40 | [] | no_license | damiano1996/DataIntelligenceApplications | b861a5b4143bca1ded9eeb253db0f93405463168 | 125147257fb8d7bbbe0deef070b0c3c0bddeffe0 | refs/heads/master | 2023-06-12T23:46:56.193956 | 2021-07-09T06:04:46 | 2021-07-09T06:04:46 | 250,608,258 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | name = 'dia_pckg'
| [
"damiano.derin@gmail.com"
] | damiano.derin@gmail.com |
c703cfd1d7f105989082d8a7e3dd3a29d2c13653 | 6e2c028dcf2753234ea06e78efb98721268f05c0 | /imageupload/extract_cnn.py | 54263e3764fe470c12c50eacbe459d9ba3241061 | [] | no_license | Muhongfan/Medical-images-retrieval-system | 293ff172aee8d2c3df8506cda9333d4d69afd53c | 593a4635b4f3ed1d7f5a263f15c7b36bf45179ac | refs/heads/master | 2023-04-19T01:48:32.475487 | 2023-03-28T17:38:22 | 2023-03-28T17:38:22 | 180,872,607 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,285 | py | # -*- coding: utf-8 -*-
import numpy as np
from numpy import linalg as LA
#from keras.applications.vgg16 import VGG16
from keras.applications.resnet50 import ResNet50
from keras.preprocessing import image
from keras.applications.resnet50 import preprocess_input
#from keras.applications.vgg16 import preprocess_input... | [
"amber1216@live.cn"
] | amber1216@live.cn |
01e37d72a54fb67fc279b8a9d7469470c7d54586 | ec2b3b8b61cef4e94447ad70e543b690d70050e5 | /order-1_voronoi/core/fortune/arc_tree/Arc.py | 69579dc3f9bf92572ce60e9e24790faf3580a891 | [
"MIT"
] | permissive | bzliu94/algorithms | d6e491f6d3c68c50a37bab504501a73362b9a94d | 43ccefd7ea1fd88339bf2afa0b35b0a3bdf6acff | refs/heads/master | 2021-01-17T02:22:26.044478 | 2020-08-02T01:13:59 | 2020-08-02T01:13:59 | 36,104,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,170 | py | # from BeachLineItem import *
import math
# class Arc(BeachLineItem):
class Arc:
# focus is a (x, y) pair
# def __init__(self, focus, arc_tree):
"""
def __init__(self, focus, insert_l_y):
self.focus = focus
# self.arc_tree = arc_tree
self.insert_l_y = insert_l_y
""... | [
"bzliu94@gmail.com"
] | bzliu94@gmail.com |
24f7a855b2bfe631459fccaa7db80583160ea706 | c31b6590dadc3383c8a09150f703240a40c74686 | /lists/tests.py | 63883493d563df5e60bb53f575d51e7dff7319ff | [] | no_license | MtzwOsk/TDD | 1be652380416379cd9ddfadc501ce755237e1f1a | 2dd1de57dde84cac92db7a1b2fd6ad02778d9c0c | refs/heads/master | 2021-01-17T08:04:14.344637 | 2016-07-20T17:45:32 | 2016-07-20T17:45:32 | 61,835,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | py | from django.core.urlresolvers import resolve
from django.test import TestCase
from django.http import HttpRequest
from django.template.loader import render_to_string
from lists.views import home_page
from lists.models import Item
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
... | [
"tomaszgaj80@gmail.com"
] | tomaszgaj80@gmail.com |
38bb806085f83c9f2e467791d7d0f916a662d9f8 | 12fd73b5e92684756a921f12b4c1e10d3c325c11 | /sample/handlers.py | f895fd3afdd60a41d49a6f417cd1dd7489fd8764 | [] | no_license | techmaxsolucoes/airy-sample | 12207ecffcd75c2e2065a57a8111bea55759be8f | 27dba234153eaec27f372b2430e85831f170ce1e | refs/heads/master | 2021-09-08T15:33:57.753083 | 2012-04-30T16:11:51 | 2012-04-30T16:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # Create your handlers here
from airy.core.web import *
class SampleHandler(AiryHandler):
def get(self):
#some logic here
variable = 'assign data'
self.render('#content', 'sample/index.html', variable=variable)
| [
"oleg@oleg-VirtualBox.(none)"
] | oleg@oleg-VirtualBox.(none) |
c23cfe53e55fba034a83f79fbd851b19f36b0956 | 9620dd7eb34b9cfd9b8b3c653d962e0dd3fe15a4 | /setup.py | 22678495759d3cd86419a42f05ae6dc9be71a934 | [
"MIT"
] | permissive | jakublala/LatticeDNAOrigami | 920494d61f43856c5329968b8820547e5babf377 | efd1147deea534f1c9cd0ab22bc3c5dec89c3c52 | refs/heads/master | 2022-12-20T05:34:17.629326 | 2020-09-28T07:16:57 | 2020-09-28T07:16:57 | 288,698,440 | 1 | 0 | MIT | 2020-08-19T10:10:06 | 2020-08-19T10:10:06 | null | UTF-8 | Python | false | false | 219 | py | """Setup script for analysis module and related scripts LatticeDNAOrigami"""
import glob
from setuptools import setup
setup(
name='origamipy',
packages=['origamipy'],
scripts=glob.glob('scripts/*/*.py')
)
| [
"alexandercumberworth@gmail.com"
] | alexandercumberworth@gmail.com |
34cb2b4b02b23893a122f73ed94d8cb0a7fcab44 | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/njschafi/Lesson03/mailroom.py | d969848a3bfb272458eebb4f2ec9b5aaefc96976 | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 4,132 | py | #!/usr/bin/env python3
# NEIMA SCHAFI, LESSON 3 Assignment - mailroom part1
#Using lists as the data structure since they are mutable (can change the contents).
donors = [
['Leon Dechino',200.43,30.23,1.50], ['Rupert Everton',23.99],
['Zordon Lagasse',400.00, 500.00, 600.00],
['Kavinsky Mega', 23.... | [
"njschafi@gmail.com"
] | njschafi@gmail.com |
2f167b5a9bd0dc459aa87415a30c103af343f999 | 28bdfca0131db38323fc28f6178425dc2c86e6ca | /contactApp/__init__.py | d5c7ce7bab4ecaf90d75d91a360af75fe5d769d5 | [] | no_license | my-xh/hengDaProject | d8879d6755b24f230361b25d0e88d205fec98a1d | 45aa43aabc798652a0f05d4e93d1c2c7ae819e4c | refs/heads/master | 2023-04-20T07:04:57.424269 | 2021-05-13T11:46:48 | 2021-05-13T11:46:48 | 345,997,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | default_app_config = 'contactApp.apps.ContactappConfig'
| [
"2435128850@qq.com"
] | 2435128850@qq.com |
d041ac4f1d2db52cd6f610107af054aa806f1e9e | 593bdfb9c7ed5bdcd3b4f67cc88c55a7b1507a84 | /env/bin/pip-2.7 | c3fc832e27425918e86f6669249e6b2c1080bbc1 | [] | no_license | megapunk/tutorial | 586d7058554c89a30ab25cc3c10aba00d60f566e | 59253ce06a9e53e8c6b6aa1cb5980a4c357946ca | refs/heads/master | 2016-09-01T20:43:38.636171 | 2014-03-03T16:58:57 | 2014-03-03T16:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | 7 | #!/home/neptune/Documents/Tutorial/env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.1', 'console_scripts', 'pip-2.7')()
)
| [
"simon.szatmnari@twelvecubes.com"
] | simon.szatmnari@twelvecubes.com |
867cd817aec62728f6657bc87f203efa55746fb4 | 350c96dc9322722f146e618f6fda8b53012e8cfa | /python3/thinkcs-python3/14.8.py | b0855382bd117d0e9ade86689b11ab5074035177 | [] | no_license | jhn--/sample-python-scripts | a5f896b0ad78eee6fe6ea51b4d5f695275a7cc5f | 980724da60372a31e23aff902dcead3a03efcc6f | refs/heads/master | 2021-01-25T06:06:12.717869 | 2020-01-03T19:55:40 | 2020-01-03T19:55:40 | 22,878,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | #14.8. Eight Queens puzzle, part 1
from unit_tester import test
bd1 = [[0,0,0,1,0,0,0,0],
[0,0,0,0,0,0,1,0],
[0,0,1,0,0,0,0,0],
[0,0,0,0,0,0,0,1],
[0,1,0,0,0,0,0,0],
[0,0,0,0,1,0,0,0],
[1,0,0,0,0,0,0,0],
[0,0,0,0,0,1,0,0]]
bd2 = ["a6", "b4", "c2", "d0", "e5", "f7", "g1... | [
"john.hoe@gmail.com"
] | john.hoe@gmail.com |
1857e98731a98fbbf1200a924206070e99daf9c6 | bb853b657537eca893032ad08e4c843b5195fa35 | /dateandtime2.py | ff50587bccebcdb78c87b2dd95e50b62bff026b6 | [] | no_license | PrathameshDhumal/Artificial-Intelligence-Assistant-With-Python | 584064e5219479576244d74aafb6f4e4dcbd16cc | 6afcdf792a2e0e1d6168dfb732add3d63158f38d | refs/heads/main | 2023-05-31T01:31:19.202678 | 2021-06-30T19:57:53 | 2021-06-30T19:57:53 | 379,478,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import pyttsx3
import datetime
engine = pyttsx3.init()
def speak(audio):
engine.say(audio)
engine.runAndWait()
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(Time)
time()
def date():
year = int(datetime.datetime.now().year)
month= int(datetime.datetime.... | [
"noreply@github.com"
] | PrathameshDhumal.noreply@github.com |
b8448b1acc86241fe7715f5a372de9475512adc0 | 3559d052c69a4d70be089a491f44da9afd735835 | /app/user/model.py | 84d01da30fcfd536d523817ca4cce4c4574d5bfe | [
"MIT"
] | permissive | Hanaasagi/Ushio | 0a039204317d548ba6adf586ad759b43269e50b6 | 007f8e50e68bf71a1822b09291b1236a1a37c515 | refs/heads/master | 2020-05-21T10:09:36.173122 | 2017-03-26T04:03:19 | 2017-03-26T04:03:19 | 69,733,823 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,802 | py | # -*-coding:UTF-8-*-
from ushio._model import Model
class UserModel(Model):
__rules__ = {
'username': {
'label': '用户名',
'required': True,
'type': unicode,
'max_length': 36,
'min_length': 1,
'pattern': ur'^[a-zA-Z0-9_\-\u4e00-\u9fa5]... | [
"949241796@qq.com"
] | 949241796@qq.com |
6b70b1f70767410eacbb50d2f7d0f47e775fec35 | b8ead9d297fe504789f2ac2db50baddf7c1858a6 | /python/main.py | 39701e4688ce675f634f35112ea005ef873ecab0 | [] | no_license | SiweiWang/learning | ae94b9210c02091633eaab0934a646c584a8d5b4 | 313be41262264885bfbbe89d7df844a7cbd74da7 | refs/heads/master | 2021-01-12T02:11:01.595400 | 2018-11-16T21:26:42 | 2018-11-16T21:26:42 | 78,483,986 | 0 | 0 | null | 2017-08-11T19:01:27 | 2017-01-10T01:04:00 | Python | UTF-8 | Python | false | false | 112 | py | import reader
r = reader.Reader("./test.bz2")
print(r.read())
r = reader.Reader("./test.gz")
print(r.read())
| [
"wangsiwei2003@hotmail.com"
] | wangsiwei2003@hotmail.com |
2349ed1324f02177bd079c2dff3d764d6855d135 | a7c5fdacfb4db3496dbf86c3f6ae096db2b8c39e | /howiseverybodydoing-solution.py | a58f3dc64d505606770154ef1561c0fa5e461425 | [] | no_license | chloenh/Codecademy-Python | 125bac49b2ece480710cd91e3867d48df208356b | 49d4cd4af93d15855c3cdb607dbc89dae04ca6e6 | refs/heads/master | 2020-04-15T02:55:54.410161 | 2019-02-03T11:37:17 | 2019-02-03T11:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | #Find the average grade of the class. Print this numerical grade to the terminal.
#Finally, determine the letter grade for the class's average and print it to the terminal.
lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name"... | [
"noreply@github.com"
] | chloenh.noreply@github.com |
770681d3dbbe5a567c39708a2f499a677b0b69a4 | c6ce21e5b8a906b0bf95cfcac9d84e243c876723 | /PARALLAX/CODE/resnet_train.py | c41dca46d825c0b593e8b6d0f4d047ab9e5385a9 | [] | no_license | yuchanmo/cloud_class | 6450b08017fbe72dde810620365a87cda7ae8abd | b3d2c6589f7a9b8c0340e00487f610a097373ec6 | refs/heads/master | 2020-06-01T06:48:19.669550 | 2019-06-07T04:04:51 | 2019-06-07T04:04:51 | 190,685,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | #Copyright 2016 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 applicab... | [
"mojjijji@gmail.com"
] | mojjijji@gmail.com |
4cdc6b4d468c8ce11e8f6bafbe4e091e22cf7685 | 80642a9db76d98e1b956ed447ca29fe1f448394b | /tsoc/signal_dependent_offset_analysis.py | ffb4a4727fa99c1b8992cd0e69a6311a3d685f42 | [] | no_license | nischalmishra/tempo | 4af5f699535d209a2e8c1e7655abd689faf6a90d | cddb489de999edf6963e87a74ed58ff1a208d474 | refs/heads/master | 2021-05-15T16:02:19.033202 | 2017-10-18T16:42:37 | 2017-10-18T16:42:37 | 107,434,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,334 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 9 13:22:55 2017
@author: nmishra
"""
import os
import numpy as np
import pandas as pd
#from scipy.io.idl import readsav
import matplotlib.pyplot as plt
from scipy.io.idl import readsav
from outlier_detection import identify_saturation,\
rej... | [
"nischal.mishra@gmail.com"
] | nischal.mishra@gmail.com |
8e9d02bdcc56d37c2e27a895f040ac1a479244c1 | 07701558c05e6de90819b24110b8f886d035a2a3 | /src/api/views/trip.py | 57a7067302042642b4ec009cb842359a53d3f67a | [] | no_license | mobiliwatch/backend | c8061a29508828567fa7fc9eb019f283af58deac | ce09c0faf872c1168a186ca895bc37e61c64aeff | refs/heads/master | 2022-12-13T05:11:25.161625 | 2017-06-13T18:26:00 | 2017-06-13T18:26:00 | 225,344,395 | 0 | 0 | null | 2022-11-22T01:22:43 | 2019-12-02T10:11:31 | Python | UTF-8 | Python | false | false | 597 | py | from rest_framework.generics import RetrieveAPIView
from users.models import Trip
from django.http import Http404
from api.serializers import TripSerializer
class TripMixin(object):
"""
Load trip from id in url
"""
def get_trip(self):
try:
return self.request.user.trips.get(id=self.... | [
"bastien@nextcairn.com"
] | bastien@nextcairn.com |
eb659c5c2bffe18f96a114decc814cc9d84a4cba | 5006ff31deb9a8c33d877113db9997ebeed3c969 | /P2C12Ex1-readCensusExcel.py | e40caa57f248192813a93ce2336ef0fb0e38f19c | [] | no_license | vinothpandian/atbswp-refreshing-python | 15cc1dc442af3c24957241e6875ead52c8d1e9de | 8e853bd43c9d444aeb9d2f0a51ea63a1aa4fb040 | refs/heads/master | 2022-12-14T03:18:39.391002 | 2017-10-18T00:23:59 | 2017-10-18T00:23:59 | 99,948,081 | 0 | 0 | null | 2022-12-08T00:37:48 | 2017-08-10T17:20:22 | Python | UTF-8 | Python | false | false | 904 | py | #! python
import openpyxl, os, pprint
FOLDER_NAME = "./P2C12/"
os.makedirs(FOLDER_NAME, exist_ok=True)
os.chdir(FOLDER_NAME)
print("opening the workbook.............")
workbook = openpyxl.load_workbook("censuspopdata.xlsx")
sheet = workbook.get_sheet_by_name("Population by Census Tract")
countyData = ... | [
"vinothpandian@live.com"
] | vinothpandian@live.com |
bdf98cdeef8805f129ae8cb389f5f5b033dde4ad | 551984f784df2f7e1c5bb6d62e58902bf0d54e44 | /pi/FileHelper/__init__.py | 6432b86afaaedd20956140c5ba861eb18c42d971 | [
"Apache-2.0"
] | permissive | sammyhaq/gaitmate | 4724ceff08110536d317f456cfa93c8927624cff | 2f172ef81473eea1fe8aacd544c24eac0b1f64cd | refs/heads/master | 2020-03-19T12:04:35.012163 | 2019-01-25T20:12:43 | 2019-01-25T20:12:43 | 136,493,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | import LoadFileHelper
import SaveFileHelper
| [
"sammy.haq1@gmail.com"
] | sammy.haq1@gmail.com |
f59f42e965c722ec562962ce4a16473199bd7913 | c75adb5dd35224017afe9dc669db06a850d026b1 | /posts/migrations/0024_auto_20210421_1847.py | 47663de87825e6b4220bc25d6664e941f7aef23a | [] | no_license | bobrolevv/hw05_final | fd74358c1bc23f9c65ff2ae6a015a2b832e869b0 | 263f6de2a617d49f1c7a09fa22274117a3f37ab4 | refs/heads/master | 2023-08-23T18:16:59.657035 | 2021-10-23T15:59:11 | 2021-10-23T15:59:11 | 359,149,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # Generated by Django 2.2.6 on 2021-04-21 11:47
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('posts', '0023_auto_20210421_1839'),
]
operations... | [
"bobrolevv@yandex.ru"
] | bobrolevv@yandex.ru |
9d452f69e846718fd2cc84f675566da6c840c37e | 791b790ce8a4ad93ab88cf9a2aea3b2dd70652dc | /Competitions/Codechef/MARCH17/Xenny and Alternating Tasks.py | b6e1e5fcced9841b3dcdab65f1ad2f9859b3d986 | [
"MIT"
] | permissive | Debasmita-01/Competitive-Programming | 16d8778db5ff225519404e88afa4cccf830006b7 | 547859d6ded88a0d3977c2f6e747d80235c054cd | refs/heads/master | 2022-12-25T11:14:55.129524 | 2020-10-01T05:22:01 | 2020-10-01T05:22:01 | 300,511,195 | 3 | 1 | MIT | 2020-10-02T06:06:30 | 2020-10-02T05:32:52 | null | UTF-8 | Python | false | false | 361 | py | t = int(raw_input())
for i in xrange(0, t):
n = int(raw_input())
x = [int(j) for j in raw_input().split(" ")]
x.sort()
for j in xrange(1, n-1):
if x[j-1]+1 != x[j] and x[j-1]+2 != x[j+1]:
print x[j-1]
break
elif x[j-1]+1 != x[j] and x[j]+1 != x[j+1]:
print x[j]
break
elif x[j-1]+2 != x[j+1] and x[... | [
"manish.bisht490@gmail.com"
] | manish.bisht490@gmail.com |
c7677d6c0cf51b99c6017e582606debfc63f5c01 | 9bc6179be0043b541a0db39c79118c3a9def94da | /shutterbug/home/models.py | e8a92d518ed363a5fc44fbe83f8258159ddcee04 | [] | no_license | rajkumar-009/shutterbug | 70013702297c58ce29412050016245ea17bca9af | 0266d76e09ab6146398f1ab189dde16b31fe17b9 | refs/heads/master | 2023-06-20T03:16:10.736714 | 2021-07-17T22:21:54 | 2021-07-17T22:21:54 | 387,045,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.db import models
from django.db.models import base
# Create your models here.
| [
"rajmummies@gmail.com"
] | rajmummies@gmail.com |
7d9c1c37687134af6b5864674dbd42ead9ea5025 | c4a32dc9fb26d72721864982b52578e2aea31db4 | /7.SEPTIMA EXPOSICIÓN/FOURIER-PRESIÓN.py | a4c7034b8db9d72cd8fd750fa9c00fd12905510d | [] | no_license | yordanarango/CODE_TRABAJO_GRADO | 30eee8778bf4d61706fd5e7dc26b609ad1214fd3 | 5eb55e90b864359942e40ac8d4672c28dea1e1de | refs/heads/master | 2021-04-15T12:18:33.032433 | 2018-03-22T14:19:35 | 2018-03-22T14:19:35 | 126,347,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,361 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 12 21:59:37 2016
@author: yordan
"""
from mpl_toolkits.basemap import Basemap
import matplotlib.pylab as pl
import numpy as np
import netCDF4 as nc
import matplotlib.pyplot as plt
from scipy import linalg as la
import pandas as pd
#from FuncionesFourier import consulta_m... | [
"yuarangoj@unal.edu.co"
] | yuarangoj@unal.edu.co |
2723f05ae52166fd49c226cbe286bdf68ac57e8e | c5085e4c8194134fd31521e506109c57d721e992 | /py/py-redis-cluster.py | ac5fc728b694895124ed216869790656e53057b5 | [] | no_license | younglinuxer/awesome-yuan | f18901b8f2df30dc11e774c051ccdb8cad5bc252 | 2cdbd9803a207b4066a42a9255feba8401d4d5c1 | refs/heads/main | 2023-04-02T03:20:00.278259 | 2021-04-12T14:23:14 | 2021-04-12T14:23:14 | 343,272,894 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python
#-- coding:utf8 --
from rediscluster import RedisCluster
import redis,uuid
# r = redis.Redis(host='192.168.123.151',port=6380,db=0,password='yuan',retry_on_timeout=60) #单机redis连接
startup_nodes = [{"host": "192.168.123.151", "port": 6380}]
r = RedisCluster(startup_nodes=startup_nodes, password="yu... | [
"a52419589"
] | a52419589 |
f4850aed962c3460094182316ff7933229ed1cb1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/310/97316/submittedfiles/minha_bib.py | d6b2c61dad7783f3393a133c2502721a863c2a10 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
import random
def solicitaSimbolodoHumano(a):
a = input('Simbolo que quer jogar: ')
while a!='O' and a!='X' and a!='o' and a!='x':
a = input('Simbolo que quer jogar: ')
return 1
def sorteioPrimeiraJogada(a):
a = random.choice((0,1))
if a ==1:
print('Vencedo... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
d147f9ef58fd331ae6390cd02761d31653517218 | 0faaa33d091e7f79b055948d4ce1c2d88e77f348 | /jobs/app.py | a164cb4356888131ae095b475509237ea916b71a | [] | no_license | Rock-sa/PythonFlask-JobBoard | a563e787cd4b915ab0b21e9c7e940d75e961ce12 | eeb23a00555c1ab3b24baf14c8769bd45d373c36 | refs/heads/master | 2023-05-12T22:07:32.629999 | 2021-06-05T14:42:59 | 2021-06-05T14:42:59 | 370,082,146 | 0 | 0 | null | 2021-05-30T12:14:53 | 2021-05-23T15:00:33 | Python | UTF-8 | Python | false | false | 2,780 | py | #app = flask.objects(__name__)
from flask import Flask, render_template, g, request, redirect, url_for
import sqlite3
import datetime
PATH = 'db/jobs.sqlite'
app = Flask(__name__)
def open_connection():
connection = getattr(g, '_connection', None)
if connection is None:
connection = g._connection = sq... | [
"shakshi103103@gmail.com"
] | shakshi103103@gmail.com |
a34c95589899f412fad66ad53b16e11918bdcf84 | 3c70d878ab4cda8550a8bd181d4b15f551b54bcb | /LED_Button_test.py | 3765d608b2725591165750e9533a91d2365e94dc | [] | no_license | rfair404/WP-REST-RASPBERRY-PI | 6926efb1524b2fab307882690e98ea6c7a1dd891 | 967ccde0c4a178067795aaebcdeccfe2d057c525 | refs/heads/master | 2021-01-10T05:04:25.106406 | 2016-03-18T11:37:38 | 2016-03-18T11:37:38 | 54,196,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode (GPIO.BOARD)
GPIO.setup (12, GPIO.OUT)
GPIO.output (12, 0)
GPIO.output (12, 1)
time.sleep(10)
GPIO.cleanup()
| [
"rfair404@gmail.com"
] | rfair404@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.