blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65f54d01c9ea1fbb547071a01e1e7a3c0eb52797 | da579bb55743314e135c6c876a39cb866c284f77 | /projectdb/config.py | 45b3474dc95f01754332ba84f544511c093d7232 | [] | no_license | ITPNYU/projectdb | 0b4e2f5a152c703ed623720ed4fa31e1416bb15a | 9d1b2522afd0b782a7e098ea1107880a9dca7bd7 | refs/heads/master | 2016-08-02T22:40:27.385666 | 2014-05-14T02:15:50 | 2014-05-14T02:15:50 | 19,279,944 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | from ConfigParser import SafeConfigParser
from os.path import abspath, join, normpath
config = SafeConfigParser()
config_path = normpath(join(abspath(__file__), '..', '..', 'projectdb.cfg'))
config.read(config_path)
| [
"karl@ghostghost.net"
] | karl@ghostghost.net |
a9ddbf2a6fc03616e4b538fba7b3f3d747f01215 | 85fe014253fd6852c4b72d633c132d2d8406e70f | /Image/simple_function.py | d34c050ea9e67079477f7ed98efca9b74b6857e9 | [] | no_license | mtsj279github/Hornet | e4e1809ca198852fef7800bff5f6c284e29bb678 | a31bcbceceb499f4a70e7a48fb890d73ecc6887c | refs/heads/main | 2023-03-02T04:43:03.816576 | 2021-02-08T17:25:46 | 2021-02-08T17:25:46 | 337,153,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | import time
import torch
import torch.nn as nn
import torch.nn.functional as F
class Mean(nn.Module):
def __init__(self):
super(Mean, self).__init__()
def forward(self, x):
return x - x.mean()
class Flattenlayer(nn.Module):
def __init__(self):
super(Flattenlayer,... | [
"noreply@github.com"
] | noreply@github.com |
bf29aac5c207544133fb68b24af753d74d7b9796 | a3746020cf091f433beb41bde1b62818b4de569b | /new_rule/ticket-rules/oracle/SQL_TO_CHANGE_TYPE.py | 1109b2501f3b147a116f67fc69a8723297cb7134 | [] | no_license | kk71/sqlaudit | 59bab5765a67f56f1dd2f3103812051c5acbbc49 | 747aaa02573a9c2b46a9e14415d27c0ab8e6158c | refs/heads/master | 2023-02-04T18:38:46.125746 | 2020-06-05T09:49:46 | 2020-06-05T09:49:46 | 323,559,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import re
def code(rule, entries, **kwargs):
sql_plan_qs = kwargs["sql_plan_qs"]
plans = sql_plan_qs.filter(
filter_predicates=re.compile(r"(SYS_OP|TO_NUMBER|INTERNAL_FUNCTION)", re.I)
)
for x in plans:
return -rule.weight, [
x.statement_id,
x.plan_id,
... | [
"kai.fang@kirintech.cn"
] | kai.fang@kirintech.cn |
ee412e07be6268a16d56184e2efbf2b79ef71dae | 6747394d5ab9eb4c3c6ce7552320562f628bd868 | /task1.py | 6d4898ad5b28770aa2a9ad67c3c5f3242eeb3412 | [] | no_license | nastiakh1301/hw7 | 958efdbae3509e38e0953338b8eeab3b4d649c37 | 29c17dcf0e5e734ab561fa248a05dcd90145b8bd | refs/heads/main | 2023-03-08T21:57:17.534261 | 2021-02-27T22:26:41 | 2021-02-27T22:26:41 | 341,272,205 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,308 | py | """
Написать функцию, которая принимает список строк,
и возвращает другой список, содержащий все самые длинные строки.
Например:
[in] ['a', 'asd', 'bd', 'q', 'dsq']
[out] ['asd', 'dsq']
"""
import re
def main():
list_in = input("Enter string: ")
words = re.findall(r"\w+", list_in)
longe... | [
"nastia.1092.ch@gmail.com"
] | nastia.1092.ch@gmail.com |
614ce4ae7a8e1bdca93744679296e4b7228793ef | cae6bd1bd20086d0e6605036b2671f74f812c85c | /saliency_map_pointnet.py | 6cd959c1452d363eca4eaa8428a0138c9ddd7122 | [
"MIT"
] | permissive | LIDONGgittt/saliency-map-pointnet | d1c5a70677335c7be5665a4d2e5170e244be6a65 | 8d1b4b6d89873b04c60475f1ea60a16d7940501b | refs/heads/master | 2023-05-12T20:10:46.997745 | 2023-04-25T22:13:41 | 2023-04-25T22:13:41 | 208,053,654 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,863 | py | import tensorflow as tf
import numpy as np
import argparse
import socket
import importlib
import time
import os
import scipy.misc
import sys
BASE_DIR = os.path.dirname(os.path.abspath(__file__))
sys.path.append(BASE_DIR)
sys.path.append(os.path.join(BASE_DIR, 'models'))
sys.path.append(os.path.join(BASE_DIR, 'utils'))
... | [
"noreply@github.com"
] | noreply@github.com |
4f1b2919c80f653aa68187546666dfbbeb759cfa | 2aa728e3de9916673995a2a5df3c6ec2a802ea70 | /Twitter/checkTime.py | eb011a43c85bbf061a8f075ac92edc2b98483880 | [] | no_license | jains8844/Tweezy | fdfe1d2d5e76aff6b0d4846162cf89c346089ac6 | 143f4f7f7b44ba31feee66d6a3b6dec448acfb80 | refs/heads/master | 2020-04-11T00:07:13.648978 | 2018-12-08T08:14:44 | 2018-12-08T08:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import re, math
from collections import Counter
import urllib, sys, bs4
from pyshorteners import Shortener
try:
from .url import fetch_url
except:
from url import fetch_url
def findTimeDiff(dataset,pos1,pos2):
t1 = str(dataset[pos1])
t2 = str(d... | [
"iit2016106@iiita.ac.in"
] | iit2016106@iiita.ac.in |
36ba72b8e2dc8428ec0a35ebe93544c8fc8b6db5 | 4cc851fb713176e197679492fb1d0f420ea018fa | /Valid_Perfect_Square.py | a73e20fe0981aa0186a21b69c2e317fad8882b1b | [] | no_license | supriya1511/May-LeetCoding-Challenge | 4c5b1d6a60941aeb599bcc14039940f13ad0f1a8 | 309a21394e78cb90de7f7c6a4e7c81146fcfb47a | refs/heads/master | 2022-07-01T01:38:24.311590 | 2020-05-09T11:21:40 | 2020-05-09T11:21:40 | 261,738,303 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 509 | py | '''
Given a positive integer num, write a function which returns True if num is a perfect square else False.
Note: Do not use any built-in library function such as sqrt.
Example 1:
Input: 16
Output: true
Example 2:
Input: 14
Output: false
'''
import math
class Solution:
def isPerfectSquare(self, n: int) -> boo... | [
"noreply@github.com"
] | noreply@github.com |
615af758d32d2c1268ec81eea7298e8b8de7ef55 | 576cc83449e10fd3f98281970c46016ea7a5aea2 | /demo01/demo04-resize.py | 7fe6931b6b3219fd8402aa1089ff29d446980c6a | [] | no_license | HotView/PycharmProjects | 215ab9edd341e3293daebcf86d97537f8cd28d75 | 61393fe5ba781a8c1216a5cbe7e0d06149a10190 | refs/heads/master | 2020-06-02T07:41:53.608742 | 2019-11-13T08:31:57 | 2019-11-13T08:31:57 | 191,085,178 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 334 | py | from matplotlib import pyplot as plt
import numpy as np
import cv2
img = cv2.imread("book01-.jpg")
img_cut = img[1000:,:]
img_resize = cv2.resize(img_cut,(600,600),interpolation=cv2.INTER_CUBIC)
#cv2.imwrite("book01resize-.jpg",img_resize)
cv2.imshow("origin",img)
cv2.imshow("reszie",img_resize)
cv2.waitKey()
cv2.destr... | [
"864773190@qq.com"
] | 864773190@qq.com |
6bbef2f719c183b0899b7d6797cb8d76084219e7 | 035aa984d2dcc08789b5e0db8f3c836cab6bcfa5 | /Cell.py | 5bab40681fbc5ed55794a9a2451bd06eec5466d4 | [] | no_license | eduardolagobatista/academic-research-project | e73ad04bbea822dfd2016dbc052f3dd843764850 | 6fa2680c6fc99c4ecf7f3548f3a35500e465eb20 | refs/heads/master | 2020-09-30T02:50:26.874904 | 2020-01-19T19:44:49 | 2020-01-19T19:44:49 | 227,183,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 26,795 | py | from abaqus import *
from abaqusConstants import *
from caeModules import *
from driverUtils import executeOnCaeStartup
def cell(tipo, fraction, matrix, meshsize):
if tipo == 'CCC':
sime = float(meshsize)
sizemesh = 7.2e-05/(sime)
if fraction == '15':
a = 955.8... | [
"noreply@github.com"
] | noreply@github.com |
cfafb9217db78151b5a5e9cbfc97c4607fa65912 | 3f5e65f59d5325d90fe4f59876f57f313aa36226 | /items/pipe_case.py | 549f900f3e0fe357a873e88b962a99ad10b5ebf8 | [] | no_license | enygma/text-etp-s04e03 | 99b3bbbc8dd9f016a59cecf19c43301b65c78c5c | 3033580dfc5f918c4866aa2adc2b167cd4049f34 | refs/heads/master | 2022-03-08T11:39:37.258558 | 2022-03-02T22:08:37 | 2022-03-02T22:08:37 | 173,448,339 | 0 | 0 | null | 2022-03-02T22:08:37 | 2019-03-02T12:59:44 | Python | UTF-8 | Python | false | false | 1,144 | py | from detail_item import *
from inventory import inv
from items.pipe import Pipe
import formatting
import room_list
class PipeCase(Detail_Item):
def __init__(self, name, *aliases):
Detail_Item.__init__(self, name, *aliases)
self.takeable = True
self.locked = True
self.descr... | [
"enygma@phpdeveloper.org"
] | enygma@phpdeveloper.org |
e2e43bc43591ab3a69f36a5bce40f473957e54cc | e4569342fb0383b5089a3b0ca2a4d2054f95a835 | /scientific_expedition/common-words.py | 73645874afca977a3dc9ca1c40c3e11fed252dea | [] | no_license | BEricDavis/checkio | 52b1dd9d9bfcc8bbab0c09ee6751baeee3184682 | 88feaf53ddfb465ef6a9603f79c18e83ef59ade4 | refs/heads/master | 2020-04-10T21:06:28.039515 | 2016-11-12T00:35:57 | 2016-11-12T00:35:57 | 68,023,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 966 | py | # Let's continue examining words. You are given two string with words separated by commas. Try to find what is common between these strings. The words are not repeated in the same string.
# Your function should find all of the words that appear in both strings. The result must be represented as a string of words separa... | [
"feralmonkey@gmail.com"
] | feralmonkey@gmail.com |
dda541645b65bae338d51ba3d7edacf8282aa3b3 | 2676a277a6ea495efb1c087657d258393326994a | /music_controller_project/urls.py | 59eab4c839292ee2203a7b198906a99c50baa271 | [] | no_license | Equinox-13/music-controller | acf9e892a3978644bfc3b08f55af3f8a028a3a0e | 3e62702933785cb45b747d5c988e169fdf308245 | refs/heads/main | 2023-02-16T11:19:30.756252 | 2021-01-10T16:17:56 | 2021-01-10T16:17:56 | 326,447,389 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 813 | py | """music_controller_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"quaid.johar33@gmail.com"
] | quaid.johar33@gmail.com |
17059cb95953bb9c36e27fd72be7ff935fa8af11 | 8d281724890c0e487e1b38c77fe6acd066e650d3 | /evaluate_server.py | 8d047b338e852f6093f4f8591852a959e92fdd8b | [] | no_license | devopsmi/facial_recognition | 1801e3d12cd14dc8c1dbd05aec38f522678678d0 | 10316d82abff441d3b84e48bbdd1f81dfea9950d | refs/heads/master | 2020-03-18T18:36:17.326113 | 2018-05-17T01:44:19 | 2018-05-17T01:44:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 850 | py | from http.server import BaseHTTPRequestHandler, HTTPServer
# HTTPRequestHandler class
class TestHTTPServer(BaseHTTPRequestHandler):
# GET
def do_GET(self):
# Send response status code
self.send_response(200)
# Send headers
self.send_header('Content-type', 'text/html')
... | [
"shreyas.niradi@gmail.com"
] | shreyas.niradi@gmail.com |
57fb16f675c90793cb94976541599e42a70eb327 | 267c1baa46fb9b65992012634a6ce9b6b0a6396a | /løsningsforslag/S2/S2_16V/figs/oppgave2_c_del2.py | 237dd2e1baf624ceb8de106f9df770f755441e85 | [
"MIT"
] | permissive | matematikk/vgs_eksamener | 24510de9fd297689fd0914835d29a5db65704af9 | b2d9b70804bf811e0f1e7a63e38cd6c7430418f1 | refs/heads/master | 2021-06-14T07:04:36.569350 | 2019-05-23T19:41:58 | 2019-05-23T19:41:58 | 125,091,197 | 5 | 10 | MIT | 2019-05-23T19:41:59 | 2018-03-13T17:42:11 | Jupyter Notebook | UTF-8 | Python | false | false | 1,056 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Jan 6 13:16:53 2017
"""
import numpy as np
import matplotlib.pyplot as plt
import matplotlib
matplotlib.rcParams['text.usetex'] = True
matplotlib.rcParams['text.latex.unicode'] = True
years = [2, 4, 6, 8, 10, 12]
data = [197, 1888, 8950, 21530, 31440, 38350]
da... | [
"tommy.odland@gmail.com"
] | tommy.odland@gmail.com |
2529f7135379a1999beb057ea49aeddf6e6e70ae | 644b153f8020cc99c99e8347efb6b475124e9dd9 | /TravelBook/urls.py | ee2c2f6c282b51c3b804a9c7f3eb32466db5f239 | [] | no_license | zaher-abb/Travell20-Booking-Webseit-with-Django | a5ace430ff1f316e5b284b6f3b93b5472e4db54d | 14ed1a018cdd8a7e32adad733ca589534a43b604 | refs/heads/master | 2023-01-15T18:39:34.118390 | 2020-11-25T11:00:07 | 2020-11-25T11:00:07 | 265,588,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 233 | py | from django.urls import path
from . import views
app_name = 'Booking'
urlpatterns = [
path('', views.index,name='index'),
path('contect', views.contactus,name='contect'),
path('search',views.fetchdata,name='search'),
] | [
"52354101+zaher-abb@users.noreply.github.com"
] | 52354101+zaher-abb@users.noreply.github.com |
9137f27ec4c8f050a41a19a14e938c78fb1cd0e9 | 3dd43ff0dab514a39f611487ab421256b3b5b13b | /scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py | 048d8fce65aedbf46febbd1c5c6f3b312913163c | [] | no_license | kusaku/wotscripts | 04ab289e3fec134e290355ecf81cf703af189f72 | a89c2f825d3c7dade7bc5163a6c04e7f5bab587d | refs/heads/master | 2023-08-20T00:17:36.852522 | 2018-02-26T14:53:44 | 2018-02-26T14:53:44 | 80,610,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,222 | py | # Embedded file name: scripts/client/gui/Scaleform/daapi/view/lobby/hangar/carousels/ranked/carousel_data_provider.py
from gui.Scaleform.daapi.view.lobby.hangar.carousels.basic.carousel_data_provider import HangarCarouselDataProvider
from gui.Scaleform.locale.RANKED_BATTLES import RANKED_BATTLES
from gui.shared.formatt... | [
"kirill.a@aggrostudios.com"
] | kirill.a@aggrostudios.com |
bdc12326541f19286f05a186e038b786ae9ec5ae | a20aef53a24f70acba96dccf4c234c372a2fd89a | /32th.py | 8225a6050261bee9624f6db75360ea0cefffc2bb | [] | no_license | myishh/python | da880b201983ea3bc51f7f4d03f8316c25e64e72 | 55fe58d04e3f1cb842432311a2aae245a9a84f17 | refs/heads/master | 2021-08-23T06:40:02.310841 | 2017-12-03T23:32:49 | 2017-12-03T23:32:49 | 109,615,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 286 | py | def complain():
print('-'*30)
print('Life is short, You need Python!')
print('-'*30)
complain()
def myinfo():
print('-'*30)
print('Name: \t', 'Rose Dorsen')
print('Age :\t', '26')
print('Gender: \t', 'Male')
print('Addr: \t', '105 5th St, Lowell, MA')
print('-'*30)
myinfo()
| [
"myishh@qq.com"
] | myishh@qq.com |
1318b066a0be3871e6ea6ddbc2fb81e2242f38cc | c21c7dbdb05f6781ceec79870d2a662f2e9b01bd | /python/exercises/weave/main.py | 521f19d8c35ee586d15bc36a71ed333fe2a1ba89 | [] | no_license | SheaMeyers/udemy-algorithms-datastructures-course | 5ab8581d3a4857f1e5de26d0019e8ad7ea34a2c9 | d508ad6a51716232a627535760c5088696ebb4b3 | refs/heads/master | 2022-01-13T22:51:19.817789 | 2022-01-12T17:37:45 | 2022-01-12T17:37:45 | 236,154,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 610 | py | class Queue:
def __init__(self):
self.queue = []
def add(self, item):
self.queue.append(item)
def remove(self):
if not self.queue:
return None
return self.queue.pop(0)
def peek(self):
if not self.queue:
return None
retu... | [
"shea.meyers@gmail.com"
] | shea.meyers@gmail.com |
d26d7be46fc2085d459c9f277a3f48b981d6c434 | 25728ed127a43b8a7dea7ddccfc8231ef0aea139 | /my_blog_/article/urls.py | dee500ec074aef0f4a574f1d4882a9a418bc1b05 | [] | no_license | bestarMing/django_example | 77f4b75e78327f6ef616ae1500c820760df99681 | 2d267aedecd7085ba40af03f3de4ef0d0c708037 | refs/heads/master | 2021-05-20T01:09:38.627908 | 2020-04-04T03:47:51 | 2020-04-04T03:47:51 | 252,122,027 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 752 | py | # 引入path
from django.urls import path
from . import views
# 正在部署的应用的名称
app_name = 'article'
urlpatterns = [
path('article-list/', views.article_list, name='article_list'),
# 文章详情
path('article-detail/<int:id>/', views.article_detail, name='article_detail'),
# 写文章
path('article-create/', views.arti... | [
"2605645264@qq.com"
] | 2605645264@qq.com |
46e06ceb771bf80a1eaf7123dd0113daeeeff3a3 | d4ed7e3c2b4607d004d69f8bbe0505aace5fb932 | /silverstrike/tests/models/test_models.py | e20f8dcf86a0ac96cc3aa6f1deccfdb23416cbeb | [
"MIT"
] | permissive | denhartog/silverstrike | 086998ed36cf0e64f3a6fe0e8f2495432ab2b9ac | 82a63f43d9d786dd8a971e9677f30c0348ad9053 | refs/heads/master | 2021-05-14T02:26:50.844619 | 2018-01-04T22:59:51 | 2018-01-04T22:59:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,582 | py | from django.contrib.auth.models import User
from django.test import TestCase
from django.urls import reverse
from silverstrike.models import Account, Category, Split, Transaction
class ModelTests(TestCase):
def test_account_str_method(self):
account = Account.objects.create(name="some_account")
s... | [
"simhnna@gmail.com"
] | simhnna@gmail.com |
2b5dca7db0f58ee69e6318f2c079d184c1943643 | e6dab5aa1754ff13755a1f74a28a201681ab7e1c | /.parts/lib/python2.7/UserList.py | 873357b193bd393a87bea69e9ef416b43aad7303 | [] | no_license | ronkagan/Euler_1 | 67679203a9510147320f7c6513eefd391630703e | 022633cc298475c4f3fd0c6e2bde4f4728713995 | refs/heads/master | 2021-01-06T20:45:52.901025 | 2014-09-06T22:34:16 | 2014-09-06T22:34:16 | 23,744,842 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 68 | py | /home/action/.parts/packages/python2/2.7.6/lib/python2.7/UserList.py | [
"ron.y.kagan@gmail.com"
] | ron.y.kagan@gmail.com |
de5c19238be861c5823a384f3a86168a55063130 | b295128ed1c946a82d594c768a607eb6f5656a97 | /AV_BlackFridayHack/prepData.py | aa2009947dec8b231c14c2590e4db0c8de881926 | [] | no_license | letthedataconfess/ML | c1a5d0ea6f791d63c484c51922d58e3e15184841 | 0228963c60fc67ea18fba916a774ba3c7a10f092 | refs/heads/main | 2023-04-23T12:02:36.227187 | 2021-05-02T06:00:33 | 2021-05-02T06:00:33 | 363,578,016 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,606 | py | import sys
import pandas as pd
import numpy as np
from sklearn.cross_validation import KFold
from sklearn import ensemble
from sklearn import metrics
from sklearn.preprocessing import LabelEncoder
sys.path.append("/home/sudalai/Softwares/XGB_pointfour/xgboost-master/wrapper/")
import xgboost as xgb
gender_dict = {'F':... | [
"noreply@github.com"
] | noreply@github.com |
6ec84121b18afcd8d9182c28abb5c236cb7119de | 249f7e8bf23bf7298b6d51b5abb3c053da3a19e1 | /Solutions/MinStack.py | c776d58839a2a3491b2fc39a5b86420bf0ac88d8 | [] | no_license | sherld/LeetCodeForPython | 0e82174ec68fbc96cac2dff61afa3ca0f9ae9b87 | be2bf7c78aaf2628419be4a6ff34817dac719a57 | refs/heads/master | 2020-03-23T00:33:58.431390 | 2019-06-26T16:28:19 | 2019-06-26T16:28:19 | 140,870,623 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 866 | py | class MinStack:
def __init__(self):
"""
initialize your data structure here.
"""
self.stack = []
self.min = 0
self.max = 0
def push(self, x):
"""
:type x: int
:rtype: void
"""
curMin = self.getMin()
if cur... | [
"sherld@163.com"
] | sherld@163.com |
c1601820adbb4161f62a9aae0887e3f8a08e1626 | 6d8a338ed0ae052bb9335a506402a5ae5ca4d808 | /OmaxHelp.py | 965b6e90f203217fe6403d641171ed93959cfd02 | [] | no_license | jacob9706/OMAX_Sublime_Plugin | ee618a6899ce546d3b4461b6136bf90748af2c76 | bec6326bff2abc06e925c7db41c6a5205acdede1 | refs/heads/master | 2020-05-05T00:55:06.647568 | 2013-10-16T00:07:42 | 2013-10-16T00:07:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,990 | py | import sublime, sublime_plugin, re, os
# This is a TextCommand. It operates on the selected text (in this case) and looks up documentation.
class OmaxHelpCommand(sublime_plugin.TextCommand):
def run(self, edit):
view = self.view
# Get selected text and convert to lowercase
selection_region = view.sel()[0]
wo... | [
"jacob.o.ebey@gmail.com"
] | jacob.o.ebey@gmail.com |
dc55733617c4e5bc4d11e56ea9624c383e2807c2 | d713207e0570b54c86d983bbb11ab7873e66fa27 | /ZERO/run.py | d4b14e69025c35aeb8ed5189b4de2a3533d432fd | [] | no_license | jiuguai/qhj | 5a2508f47872c27160c047e0653d4842081412a3 | 71d2f9467cfc74e48e74e6981e1d4d6a51e8fdf1 | refs/heads/master | 2020-09-11T01:56:04.208308 | 2020-04-22T16:44:51 | 2020-04-22T16:44:51 | 221,592,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | import sys
import platform
if platform.node() == "zero_PC":
sys.path.append(r"F:\QHJ\qhj\ZERO")
else:
sys.path.append(r"D:\往期\QHJ\ZERO")
import warnings
warnings.filterwarnings('ignore')
# import app
import importlib
select_map = {
'describe': '奇货居事务处理',
'func': None,
1: {
'describe': '[%... | [
"jijiyezero@163.com"
] | jijiyezero@163.com |
c2118a697fa638d428706d238ad08eea8edbdb58 | 92433c3ff647e7bb168a7514d01974471b3b186d | /blog/urls.py | dc11bd1a75470ae0619fec24030ac9d36fd90f2e | [] | no_license | abhi40308/code-stamper | c709b0e7a5c5963df1e6ab8bbeab382f1d6bc103 | 3c810f2609028fead05d37c5aba4780a3c508bea | refs/heads/master | 2021-09-24T01:41:53.887618 | 2018-10-01T09:33:06 | 2018-10-01T09:33:06 | 108,854,589 | 3 | 1 | null | 2018-10-01T09:33:07 | 2017-10-30T13:27:02 | JavaScript | UTF-8 | Python | false | false | 786 | py | from django.conf.urls import url
from . import views
# Import settings if not imported
from django.conf import settings
# Import static if not imported
from django.conf.urls.static import static
urlpatterns = [
url(r'^$', views.home, name='home'),
url(r'^home$', views.home, name='home'),
url(r'^news$', vie... | [
"abhijeetsinghkhangarot@Abhijeets-MacBook-Air.local"
] | abhijeetsinghkhangarot@Abhijeets-MacBook-Air.local |
1d3550d8edb492366aaa46dc4b67d248aca4bbae | c7c72c2fa169bfd47aaff9b111ea751019e39848 | /Pyton_Codes/Using Databases with Python/Teste_SQL_BDP.py | ac0b0175d61bb6f7f50e0ad35a9dd231fe2bbc57 | [
"MIT"
] | permissive | Bombjack88/Python-for-Everybody--PY4E- | 88bfdcf704d9d99902b893f73835928b0ef9754f | 0dee57e015ed0c773bdb11e841ed4b2b639b5eca | refs/heads/main | 2023-08-11T22:24:12.209353 | 2021-09-26T15:34:56 | 2021-09-26T15:34:56 | 384,496,200 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 380 | py | import pyodbc
import pyodbc
conn = pyodbc.connect('Driver={SQL Server};'
'Server=sipo-dba06\wrap1;'
'Database=DL_DDEMC;'
'Trusted_Connection=yes";')
cursor = conn.cursor()
cursor.execute('SELECT TOP 100 * FROM DL_DDEMC.CQ.ComparacaoCRCEMF_CRCDetalhe or... | [
"cash-flow@hotmail.com"
] | cash-flow@hotmail.com |
b9bcf777f1ec9d994241c5981eb240d6b53388b9 | dabc3a52976633425991a4f8f55b0735070461c9 | /django_project/urls.py | c4892d000990bf7fa1f70e14d13823179f61999b | [] | no_license | nievadev/django-blog | a08418cd223f18bde083e42e9f25eedd7f013a8e | b9202d10f667b550f5c33f156dfbd27a9fbe5a9b | refs/heads/master | 2022-11-30T13:58:16.999056 | 2020-03-04T05:39:02 | 2020-03-04T05:39:02 | 244,799,049 | 0 | 0 | null | 2022-03-12T00:17:50 | 2020-03-04T03:31:56 | Python | UTF-8 | Python | false | false | 2,236 | py | """django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"martinjafactor@gmail.com"
] | martinjafactor@gmail.com |
3dc4fcb72c535bd5635233808c4b20178c15fe20 | c2849586a8f376cf96fcbdc1c7e5bce6522398ca | /ch39/interfacetracer.py | 033591fd7329b9bc42e2527b180411b9735c1e96 | [] | no_license | freebz/Learning-Python | 0559d7691517b4acb0228d1cc76de3e93915fb27 | 7f577edb6249f4bbcac4f590908b385192dbf308 | refs/heads/master | 2020-09-23T01:48:24.009383 | 2019-12-02T12:26:40 | 2019-12-02T12:26:40 | 225,371,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,033 | py | def Tracer(aClass): # @ 데코레이션할 때
class Wrapper:
def __init__(self, *args, **kargs): # 인스턴스 생성할 때
self.fetches = 0
self.wrapped = aClass(*args, **kargs) # 유효 범위 이름 사용
def __getattr__(self, attrname):
print('Trace: ' + at... | [
"freebz@hananet.net"
] | freebz@hananet.net |
fae3f02c3e6f93306f8cb17d12ebc3a8cf77305c | 7330013473ee9c7d17f58981faeb24f5db067a4a | /messaging/urls.py | 8b7fc214ed471cc38c7fc645105be4cadbce8d78 | [] | no_license | beb97/django-messaging | 41d6c1a9704a3a3b657589a365ca8efc014bd142 | 1210de2b858fc66deef2e8c1a3edee266f0961a4 | refs/heads/master | 2021-05-10T19:25:23.118880 | 2018-01-28T20:50:42 | 2018-01-28T20:51:37 | 118,152,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | from django.urls import path
from messaging.views import UserDetailView
from . import views
app_name = 'messaging'
urlpatterns = [
# messages/
path('', views.index, name='index'),
# messages/1
path('<int:question_id>/', views.detail, name='detail'),
# messages/1/answer/
path('<int:question_id>... | [
"beb97@hotmail.com"
] | beb97@hotmail.com |
1c81b2bd183a9a7791036d9e9598859e2390441c | 4264dee318c99acead4f9e4012469a9083215fe7 | /Week 6 - Python/dna/assignments.py | 3654cc3144c5b7571724440089a93a21bad6087c | [] | no_license | haileykr/CS50 | 269603a727d80d891539e4c31e7587eaeb08af36 | 2702f33645367b9376c6cf775b5377d5e889447b | refs/heads/main | 2023-05-04T01:46:59.482273 | 2021-05-21T01:28:49 | 2021-05-21T01:28:49 | 311,566,116 | 0 | 0 | null | 2021-05-21T01:30:38 | 2020-11-10T06:26:07 | null | UTF-8 | Python | false | false | 1,293 | py | import csv
from sys import exit
from sys import argv
def get_max_num_repetition(s, sub):
# calculate the maximum number of times a substring is repeated
# s: [ATATATTATATTT]
# ans: [302010201000] - starting at that index how many times does the substring repeat in s
# sub: AT
ans = [0]*len(s)
... | [
"41278804+haileykr@users.noreply.github.com"
] | 41278804+haileykr@users.noreply.github.com |
4f31427a7b83dc75c42614a44e4a0ce4a1eb258d | 834211271a58c0bd4f91c820d44fd3ea5a7eda4a | /src/propagation.py | 38beb3e903b06ca171b661346e60e93bd46b0d0d | [
"MIT"
] | permissive | Thefalas/disksMD | 2f01277ebab8c9015c747f6b804280e6d0293611 | 1f3a0a1814baf1fd8905da2e88d2244de90d14ec | refs/heads/master | 2021-04-27T05:43:39.506723 | 2018-07-02T10:31:32 | 2018-07-02T10:31:32 | 122,599,573 | 0 | 0 | MIT | 2018-03-07T17:52:18 | 2018-02-23T09:19:59 | Python | UTF-8 | Python | false | false | 1,764 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Feb 28 13:58:14 2018
@author: malopez
"""
import numpy as np
class Propagator():
def __init__(self, size_X, size_Y, periodicWalls, periodicSideWalls):
self.size_X = size_X
self.size_Y = size_Y
self.periodicSideWalls = periodicSideWalls
sel... | [
"malopez00@gmail.com"
] | malopez00@gmail.com |
a0adb96467c96dad6dd4c36cc41e36636bc0d50b | b2625b1a1ef4a3a255ae88b6d77c425727187eeb | /.dev_scripts/github/update_copyright.py | 74320198598ed850edad4f2404605c54f1b4e17f | [
"Apache-2.0"
] | permissive | wojiazaiyugang/mmpose | acd4083d142c5c4c2dd87e6be94a5891a42d2797 | 8947b39294b037e8272c6cf2f53ae4aa7d22193b | refs/heads/master | 2023-09-01T23:45:43.857657 | 2021-11-23T03:03:02 | 2021-11-23T03:03:02 | 356,105,054 | 0 | 0 | Apache-2.0 | 2021-09-16T06:36:44 | 2021-04-09T02:08:50 | Python | UTF-8 | Python | false | false | 2,928 | py | #!/usr/bin/env python
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import os
import os.path as osp
import re
import sys
HEADER = 'Copyright (c) OpenMMLab. All rights reserved.\n'
HEADER_KEYWORDS = {'Copyright', 'License'}
def contains_header(lines, comment_symbol, max_header_lines):
for line ... | [
"noreply@github.com"
] | noreply@github.com |
c8b154dab2281801b43e48a85feba5d9d2e98787 | b082d1f780cba54b2e5f1055b46e76d4b5ba0d0d | /theano_mnist_logistic_sgd.py | be16483a3424163b58d50b55ba7c75aed1a2cc3b | [
"MIT"
] | permissive | sjqgithub/GetHandsDirty | 3b361cb00687e43bc6d9bced5a47d762ebddddba | 0e3f52a3c48d2bfe46ccdb9307ab1fb6d6d2f21a | refs/heads/master | 2020-03-07T06:19:18.757832 | 2018-04-25T16:58:32 | 2018-04-25T16:58:32 | 127,318,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,174 | py | """
This tutorial introduces logistic regression using Theano and stochastic
gradient descent.
Logistic regression is a probabilistic, linear classifier. It is parametrized
by a weight matrix :math:`W` and a bias vector :math:`b`. Classification is
done by projecting data points onto a set of hyperplanes, the distance... | [
"835973050@qq.com"
] | 835973050@qq.com |
76884be84b73cffc74cbf5157ec534df610216e9 | 6a5ce7d885db1baa5a9d43b26f0ae623a5ef0f01 | /azure-mgmt-web/azure/mgmt/web/models/web_site_management_client_enums.py | fcb642b79aa76c81394fb900d1b60c22ede03d1c | [
"Apache-2.0"
] | permissive | JammyBrand82/azure-sdk-for-python | 333af194ff9143ec77f49203a5a71f15c399f278 | c65e189cd41bd3464556b17bfcdee1303867996c | refs/heads/master | 2021-01-17T18:31:10.661151 | 2016-03-17T21:03:08 | 2016-03-17T21:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,118 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft and contributors. 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 ... | [
"lmazuel@microsoft.com"
] | lmazuel@microsoft.com |
c5f7f3a99a2f6436767faff364d076e4e0b239e7 | 2416fa60d44c96e933e698eeb35bbcc52f8ad0cc | /python/[E]26.Remove-Duplicates-from-Sorted-Array.py | 93dfed9d2a87cb0f844520a797b533a37dd1a060 | [] | no_license | AlbusPicus/leetcode-practice | c76515e5af91cf4a1f291c83d1b728a6c3e2a621 | 0050996d8c947c374f89b04e3ba5987793140791 | refs/heads/main | 2023-04-08T20:07:46.348240 | 2021-04-11T18:01:16 | 2021-04-11T18:01:16 | 318,795,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 600 | py | # Runtime: 80 ms, faster than 82.51% of Python3 online submissions for Remove Duplicates from Sorted Array.
# Memory Usage: 15.8 MB, less than 82.79% of Python3 online submissions for Remove Duplicates from Sorted Array.
class Solution:
def removeDuplicates(self, nums: List[int]) -> int:
if not nums: 0
... | [
"noreply@github.com"
] | noreply@github.com |
9d5151cef330de7b05badd2e73eca0ceb680c32d | 545f633f49653a63dbbd0588ac517ee1fba047fd | /birdcollector/birdcollector/urls.py | 9e9d0bde1a13adf82edcd4c784ca8ff28f793329 | [] | no_license | AndreykaVSR/Finch-Collector | cb76a3553912a9c848fe2f6d0db8762ed545fc63 | 854c0747f04ba549e9f69565edcea0ee60a9f964 | refs/heads/master | 2020-04-29T05:54:52.715745 | 2019-03-15T22:29:44 | 2019-03-15T22:29:44 | 175,898,995 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | """birdcollector URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class... | [
"andreykasokolov@gmail.com"
] | andreykasokolov@gmail.com |
c866c0b937c88c9c60b2b8d936a5f752ae5a99a8 | ca6738eb385edba05261288a0f9f72897e54b8d5 | /nptel/joy_of_computing_using_python/w3_pa1.py | 444cb97ef8b3a2f1e1638f1acaecff7b3c2f5ae6 | [] | no_license | adarsh-av13/courses | 58eea742557ac4aec06f16a4b7bd0259da6777fe | 0a2b4ed50ab0c9dc441cf2ebc439b7f21d56d119 | refs/heads/master | 2020-08-27T11:26:30.680074 | 2019-10-24T14:52:04 | 2019-10-24T14:52:04 | 217,351,185 | 0 | 0 | null | 2019-10-24T17:05:16 | 2019-10-24T17:05:16 | null | UTF-8 | Python | false | false | 674 | py | '''
24-08-2019
Given a list of numbers (integers), find second maximum and second minimum in this list.
Input Format: The first line contains numbers separated by a space.
Output Format: Print second maximum and second minimum separated by a space
Example: Input: 1 2 3 4 5
Output: 4 2
Solution:
... | [
"hishamalip@gmail.com"
] | hishamalip@gmail.com |
c3cf1eb15c5eb1f9af46fd2a29648c44e7ebd2b9 | 47fd05726a04a09bc7b6ec0043519bc3c1b82d89 | /blog/models.py | 52224bef9d7b0fa8a62d9fffcf9bd2205e84aeed | [] | no_license | KiWiChoco/my-first-blog | 2bda917136d281d7478bd6e749042025ba5a8ce9 | 44c9483201f9a905f6b28b85810f0908a48271f4 | refs/heads/master | 2021-07-16T23:30:15.974951 | 2017-10-24T07:32:49 | 2017-10-24T07:32:49 | 107,497,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | # -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User')
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
publis... | [
"qmopla@naver.com"
] | qmopla@naver.com |
3403301ee31e239b15a3083f41239f9a1b5f7aa7 | 7bbb78524392ea08f3ceb3424299cd711c590567 | /LSTM_fix/attention_test.py | 7cae4c9be3db834d1b0d60e0b43dcc5892080502 | [
"MIT"
] | permissive | FudanNLP/Attn-KGE | 3ce7677fc6402a043e52b8c8d25a40371b33653d | dbd198a33abcc9b5473c2bb9de3cf53bf85806e1 | refs/heads/master | 2021-08-26T08:39:21.951258 | 2017-11-22T17:31:02 | 2017-11-22T17:31:02 | 111,765,615 | 2 | 1 | null | 2017-11-23T05:05:09 | 2017-11-23T05:05:08 | null | UTF-8 | Python | false | false | 1,922 | py | import os, numpy, theano, time
import cPickle as pkl
from util import *
import getopt
import sys
# from lstm_launch import *
# from lstm_att_launch import *
from theano import config
def test(
):
attention_path = 'att_new.pkl'
import cPickle as pkl
e2i, i2e, w2i, i2w = None, None, None, None
with ope... | [
"noreply@github.com"
] | noreply@github.com |
6313278bd2a18530a6dfe65f6e6b70c95af42f7b | d7913fb7e1ef8c00a428680c93dd571699116281 | /stegaware_front.py | c622a838dd65a786f48763891b9a2a064fc1b667 | [] | no_license | UoK424/RAMSES_StegAware | d2b6460e3ce8fb49a16ae311d241aab68ccb0995 | 76c585ed1ce5c5f53592381fa22d8d744bed0e67 | refs/heads/current | 2022-07-13T07:42:16.216205 | 2019-09-16T11:22:03 | 2019-09-16T11:22:03 | 145,890,626 | 0 | 2 | null | 2019-10-29T21:25:45 | 2018-08-23T18:10:34 | Java | UTF-8 | Python | false | false | 190 | py | from PyQt5 import QtWidgets, uic
import sys
app = QtWidgets.QApplication([])
win = uic.loadUi("main_menu.ui") #specify the location of your .ui file
win.show()
sys.exit(app.exec()) | [
"d.hurleysmith@gmail.com"
] | d.hurleysmith@gmail.com |
f01c9f4cb6e578f40f952d27a77dbdab38e9b181 | 0b5ab7349485da4ea40ca343bc50f4cab74c917c | /week09/tutorial/snippets/urls.py | 2dcc6decba1a0c26454d9a83c0f3e37011525c86 | [] | no_license | workherd/Python006-006 | 9bf2782ccda037de9af98eb7daa87fd1edeb3caf | 7aa176c3cf4effd015802b550edfb70f859e94d9 | refs/heads/main | 2023-04-29T14:37:43.545376 | 2021-05-16T04:13:08 | 2021-05-16T04:13:08 | 323,247,475 | 1 | 0 | null | 2020-12-21T06:13:42 | 2020-12-21T06:13:42 | null | UTF-8 | Python | false | false | 2,227 | py |
from django.urls import path, include
from rest_framework.routers import DefaultRouter
from snippets import views
# Create a router and register our viewsets with it.
router = DefaultRouter()
router.register(r'snippets', views.SnippetViewSet)
router.register(r'users', views.UserViewSet)
# The API URLs are now dete... | [
"1330430077@qq.com"
] | 1330430077@qq.com |
040989beec30c94ff693704650c5a6eb9b0e2bbe | 8d1ed2b2dcf0101f05a032a84fa268cfcf0f1d9b | /app/controllers/points_controller.py | 08ddb16baf6a1e7b0cbb3d9502e0aa7f4c123d77 | [] | no_license | gitter-badger/pgis | 747015237caa110c7e05003191d2d7747024f9e4 | 491f92063cb8253ed55bc58a232b950c8dfbc3c8 | refs/heads/master | 2021-01-21T00:56:58.794867 | 2015-08-11T22:51:48 | 2015-08-11T22:51:48 | 40,593,860 | 0 | 0 | null | 2015-08-12T10:02:13 | 2015-08-12T10:02:13 | null | UTF-8 | Python | false | false | 2,883 | py | from app.models.point import Point
from flask import render_template, flash, redirect, abort, session, url_for, request, g, json, Response
from geoalchemy2 import Geometry, func
from geoalchemy2.functions import GenericFunction
import app.helpers.point_form
import base64
import sys
import os
from app import db
class P... | [
"shotabakuradze@gmail.com"
] | shotabakuradze@gmail.com |
c4a9a95662f27866ed86d3e6eae6b0ded9da7270 | 135e60a01581b2b321c3a1fb2105d7d1fdb7b431 | /venv/bin/gunicorn | 751c1e2e92d1e55518998e74c7dbfbbff75dbe1a | [] | no_license | bryan0578/dynamic-site | 749712b38a8328c123e5ca3e7028c49c37ffbd9d | bb1ff31c85f6da9ad3f6ca41ce42cf77248555a7 | refs/heads/master | 2023-02-19T15:18:04.038142 | 2019-08-21T21:37:41 | 2019-08-21T21:37:41 | 76,591,594 | 0 | 0 | null | 2023-02-15T21:34:00 | 2016-12-15T19:58:36 | Python | UTF-8 | Python | false | false | 253 | #!/Users/bryancash/Desktop/Python1/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from gunicorn.app.wsgiapp import run
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run())
| [
"bcash0578@gmail.com"
] | bcash0578@gmail.com | |
27686a5573582bba05fe1c037ddb797cb55f040b | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0216_Combination_Sum_III/solution.py | e332183e542f99042b9b4fe0e2ddce1af912459b | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 139 | py | class Solution:
# @param {integer} k
# @param {integer} n
# @return {integer[][]}
def combinationSum3(self, k, n):
| [
"romain_li@163.com"
] | romain_li@163.com |
8d0a0b0dec63a2130b9ada6f938cfbddbaeeb4a8 | 10920b11a22a20f9a7f63157818327f3c4e41888 | /jibby_opencv/Object Recognition/two.py | 10e258ca8fedf5c5342ee07ae449937c19975227 | [] | no_license | dsall/computerv | e331b3d025c8cec0119b789107d1fef18d08f02a | 40671d618c31ad9d9b20fc902a218a8e281098bc | refs/heads/master | 2021-09-15T09:33:08.495580 | 2018-05-29T23:41:42 | 2018-05-29T23:41:42 | 135,363,332 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,172 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Apr 5 00:23:15 2018
@author: djibrilsall
"""
import numpy as np
import cv2
# multiple cascades: https://github.com/Itseez/opencv/tree/master/data/haarcascades
#https://github.com/Itseez/opencv/blob/master/data/haarcascades/haarcascade_frontalface_de... | [
"djiby45@outlook.com"
] | djiby45@outlook.com |
90ca74b0d292bd39c8f14bc47cfc1b3cc42337c7 | 8148b00b8fc3824509cc54ac02160395a487be91 | /get_patent_id.py | bf11a1ba3922e02cfc8595b9cd264cd69ddad4c7 | [] | no_license | wangchaoqiang/SIPO | e278353fc36d04dd72c8188aa2791d7fa41a7004 | 9372d45ea5355c010d837fd08bdbaa13afbc8ba8 | refs/heads/master | 2020-05-17T01:40:30.246378 | 2019-04-25T12:50:01 | 2019-04-25T12:50:01 | 183,433,264 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | import requests
import json
import time
class Get_Patent_Id(object):
# def __init__(self):
# self.id_list = self.get_id()
def get_id(self,num):
url = 'https://www.hongjianguo.com/public/apns/?authorization=CpqueryIsABadGuy&count='+str(num)
patent_id_str = requests.get(url)
patent... | [
"forthespada@foxmail.com"
] | forthespada@foxmail.com |
bee5464c4d179c22011d84101b2bc96fc2cb49a7 | 55b89b8ae2c9fdf7b78ee922863bcc6acaa5ff83 | /sql.py | a3b2c84595aa0e621053aaba1331a98955497baf | [] | no_license | ostrbor/nikita | 8de6beaeaa5a97cab1f809ab0bd05b4b4a6c2d9a | 0d7a9c31186be14f3f33c877cc77281ff250f730 | refs/heads/master | 2021-01-10T06:02:37.580632 | 2015-12-03T13:45:37 | 2015-12-03T13:45:37 | 47,254,547 | 0 | 1 | null | 2015-12-02T16:36:57 | 2015-12-02T10:40:28 | Python | UTF-8 | Python | false | false | 1,942 | py | sql_keys = ('StartDate', 'FinishDate', 'No_Disp')
sql_template = 'SELECT `calldate` AS `calldate`, `dstchannel` AS `dstchannel`, ( SELECT COUNT( `disposition` ) FROM `asteriskcdrdb`.`cdr` WHERE `calldate` >= "%(StartDate)s" AND `dstchannel` LIKE "SIP/%(No_Disp)s%%" AND `billsec` BETWEEN 40 AND 80 AND `disposition` = "A... | [
"saries@yandex.ru"
] | saries@yandex.ru |
0c8f1252d16457b362332243f6d849d204916bac | c0fd5f68b575641f4ca4b6d777f85c13d3f12e12 | /page_online/module_main/module_motor.py | c7d9873941215ebae7d91a781a4127a0dcd7de78 | [] | no_license | whkwss/Online-monitoring-of-motor-faults | 080cdb22b9daba4dca918b355124e18d4f169db7 | 3090c6fb3c2729f1a7ba0c9ed21b90501193c5b1 | refs/heads/master | 2023-07-23T09:04:13.286119 | 2021-09-04T06:25:35 | 2021-09-04T06:25:35 | 402,981,552 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | class MyMotor():
def __init__(self):
# 机器当前运行状态
self.status_list = ['正常','故障','停机']
# 机器当前故障状态
self.status_fault_list = ['正常','开路','匝间短路']
# 机器当前故障处理状态
self.status_hold_list = ['无','已处理','待处理']
#机器编号
self.id = '001'
# 加载数据地址
self.data_... | [
"1162041294@qq.com"
] | 1162041294@qq.com |
3cbe7cecaa1650dfa773d3b8cc27cba330609ff2 | b465f88e2dad7012a06252c675db561d6de7f847 | /qa/rpc-tests/fundrawtransaction.py | e48980068ab5333e9a36e071fd548fdef6eca5d3 | [
"MIT"
] | permissive | bulletcore/xbullet | 750d5125b87d70bce202a64f5318d365fcb0a175 | 450f07709d51b0bbbe1a82c9c72ef9f319a32d1f | refs/heads/master | 2021-04-12T12:02:17.434802 | 2018-03-22T10:27:25 | 2018-03-22T10:27:25 | 126,307,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25,303 | py | #!/usr/bin/env python2
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
from test_framework.test_framework import BitcoinTestFramework
from test_framework.util import *
# Creat... | [
"32610984+karanjchavda@users.noreply.github.com"
] | 32610984+karanjchavda@users.noreply.github.com |
4d4fa4d95d6b0e2d819c40e250b7941f2d805da8 | 7ac506e9890ff3295541bdd00bc3c40a13b23826 | /sr/imsitu_scorer.py | 122bbe01b33b7def418dc9ba864a9d0f3ba9df79 | [] | no_license | thilinicooray/CARN | dd64cde17e5c9f0e68e94b340c9271ae2a79f58a | 7f5e85c98d3178a3fe9b9f1b5a93a39ace01ccc5 | refs/heads/master | 2020-07-25T05:42:38.988848 | 2020-04-07T03:43:01 | 2020-04-07T03:43:01 | 208,182,591 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,433 | py | import torch
import json
class imsitu_scorer():
def __init__(self, encoder,topk, nref, write_to_file=False):
self.score_cards = []
self.topk = topk
self.nref = nref
self.encoder = encoder
self.hico_pred = None
self.hico_target = None
self.write_to_file = writ... | [
"thilinicooray.ucsc@gmail.com"
] | thilinicooray.ucsc@gmail.com |
07272b8cbacf3ce9f0e35dc3f1f33321829249ac | b5ab8d266984a4eb27feb19baa075c23da03e59d | /print_left_right_node.py | 828976a77116da143ef95ea17bb20d9be4f1c96c | [] | no_license | solivier/algo | 70e566c72b55565ab55ae8cd1cd05d9648ffb276 | d1750785386fdb8da460ff5fef88fa962ded59b7 | refs/heads/main | 2023-04-21T16:50:12.723956 | 2021-04-20T17:11:27 | 2021-04-20T17:11:27 | 343,557,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | class Node:
def __init__(self, value):
self.left = None
self.right = None
self.value = value
self.path = []
class Graph:
def bfs(self, root):
queue = [root]
while len(queue) > 0:
n = len(queue)
for i in range(n):
node = ... | [
"olivier.soulet@anyti.me"
] | olivier.soulet@anyti.me |
57804adfbca916f555d07126448c1cdd84899b11 | 1c611977439d4fbc2d758d2343b022825fd1d44c | /code/src/app/init.py | a243f930546fa1a9ad8409db4adc7ca3478d98d4 | [] | no_license | Xinrea/Location-Privacy-Preservation | 60ce96ef121cddcafcfc64b3177c1f1e29e0d995 | 0b71c01514ea392ce14042c8611125e51648690a | refs/heads/master | 2022-04-23T16:48:23.269804 | 2020-04-30T02:45:58 | 2020-04-30T02:45:58 | 232,025,374 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,546 | py | import sys
import os
sys.path.append("..")
from flask import Flask,render_template,request,redirect,json,send_file
from os import path
import hashlib
import MainProcess
import threading
import time
import csv
app = Flask('Feature-base LPP')
@app.route('/',methods=['POST','GET'])
@app.route('/index',methods=['POST','G... | [
"s11s@vip.qq.com"
] | s11s@vip.qq.com |
0ef3a3afbb0a5ad1f607d1f4fa56b8207a2c978d | 857a9e588a04b40a66b6ca115063cb67ef0427ea | /timemachines/skaters/glu/glusimple.py | 45f7a1894d2d9f43387ba47e6408b68c40771bb8 | [
"MIT"
] | permissive | rambam613/timemachines | 81b88357498871f77efed0faf9c25b4c408d822c | cd243d4606b4ad9c1d419988fc6c04b0964af2e6 | refs/heads/main | 2023-07-03T07:06:24.421114 | 2021-08-07T17:42:40 | 2021-08-07T17:42:40 | 393,793,785 | 1 | 0 | MIT | 2021-08-07T21:13:35 | 2021-08-07T21:13:34 | null | UTF-8 | Python | false | false | 1,092 | py | from timemachines.skatertools.utilities.conventions import Y_TYPE, A_TYPE, R_TYPE, E_TYPE, T_TYPE, wrap
from typing import Any
from timemachines.skatertools.components.parade import parade
from timemachines.skatertools.utilities.nonemath import nonecast
from timemachines.skatertools.ensembling.ensemblefactory import pr... | [
"peter.cotton@microprediction.com"
] | peter.cotton@microprediction.com |
d7184be83f3504e54bb4a2a7dd18d56a038eba05 | 1901aaee0574fdcc158fab4481630956841cf317 | /EntregaOrdinaria/ProyectoOrdinaria/ProyectoOrdinaria/urls.py | a74d6b030275926aabdbab44359ba6fdf10a8fbd | [] | no_license | Jkoroso2000/RepositorioProyectoOrdinaria | 775b2edc829c5655096aaa6fef8472cafdd38d05 | 8dce9620ed63902c3777f9b5f2f41da582d2378c | refs/heads/master | 2022-08-28T07:19:44.184210 | 2020-05-27T18:29:05 | 2020-05-27T18:29:05 | 267,383,889 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 849 | py | """ProyectoOrdinaria URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='h... | [
"noreply@github.com"
] | noreply@github.com |
4f5051b736e5d738c659f61b16ec0fcb360ef749 | 55b3b942183b50565ea5f557a8de6a5fc9c09741 | /inactive/discord_bots/moosterybot/character_classes.py | bd46f81f7d2edb926c01f5c5c4a6e72eb0633cad | [] | no_license | weakunix/python_git | e29b3fdaed58f1951718cc412db0007a4183dad9 | a2bfa0365d66e607a952f1b86b734cea0fba020f | refs/heads/master | 2023-09-01T07:13:45.134448 | 2023-08-21T18:03:47 | 2023-08-21T18:03:47 | 190,823,760 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,456 | py | import json
import main
import actual_game
import random
import discord
import asyncio
class Game:
_classInstances = []
def __init__(self, id, containerFilledWithKids):
self.id = str(id)
self.date = 1
with open("games.json", 'r') as brr:
ppl = json.load(brr)
self.... | [
""
] | |
07c914c2a2e30aa455a696aa3c59849a1f3c5a2b | e70c75a33244e82de3ad1bd5b340bb0aa6b22ae9 | /task8/model1/reducer3.py | 4c4fc026009c1aa8faac42ec210cf49f1911cc7e | [] | no_license | joansanchez/MapReduce | e4ecb532f567a4e03241ff673e57332f96429445 | 91cda920cc4a5b5bd27b0a1f8c78b8d122bea4f5 | refs/heads/master | 2020-03-31T02:48:46.700098 | 2018-10-23T18:57:09 | 2018-10-23T18:57:09 | 151,840,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 86 | py | #!/usr/bin/env python2
#reducer3.py
import sys
for line in sys.stdin:
print(line)
| [
"jsanchezgarcia13@gmail.com"
] | jsanchezgarcia13@gmail.com |
da02426eede343a0743cc6699dfb3ce30e803dca | 2f19930569eabc80385043a052554a57f46dec15 | /authenticate/authenticate/urls.py | a79832d336c12850696bc2f5a7fe77e85bc50875 | [] | no_license | rohitjain064/django-practise | 96cad5d4f358a3a4316ef1ce6cb4e6ec8b880532 | 961e794cd7f5866288ca285aa1a56ddead0564b8 | refs/heads/master | 2020-04-20T06:17:47.826566 | 2019-02-01T09:59:27 | 2019-02-01T09:59:27 | 168,678,836 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | """authenticate URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-... | [
"rohitjain064@yahoo.com"
] | rohitjain064@yahoo.com |
40bb024cf0dbbaeda58d55135ff50b22d44a513a | a7080659a287db954afc18541df215a794ec6604 | /moringa_flask/post_review/app/models/model.py | d544183e8896bd67697028f410812c9428296e8f | [
"MIT"
] | permissive | Gomax-07/quote2 | 1867911493e6d5ef15c748b869ebfcf4ec5e0585 | 7996d379c92853d88018f08659aa6f2de0f1b268 | refs/heads/master | 2023-07-19T17:23:53.312127 | 2021-08-26T07:04:31 | 2021-08-26T07:04:31 | 388,769,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 221 | py | from . import db
class User(db.Model):
__tablename__ = 'users'
id = db.Column(db.Integer,primary_key = True)
username = db.Column(db.String(25))
def __repr__(self):
return f'User {self.username}' | [
"johnmetry17@gmail.com"
] | johnmetry17@gmail.com |
053268d50f9a65e8001c987503ff42a13676f1a3 | 0291c9e05080c7f3b4c580c1725b7f93190aec70 | /simulation/mainInterfaceGL.py | 38d129bead3e59986e974cea7f4f708bae16676d | [] | no_license | Spellsucre/Robot7M | 03f5178b8999b6f202d7ae32cdf415ea868d2353 | a44d6370add59cebd22cf539aa76911c5ba12f1c | refs/heads/dev | 2021-05-05T07:56:07.686659 | 2018-04-05T12:15:56 | 2018-04-05T12:15:56 | 118,896,946 | 5 | 9 | null | 2019-05-11T00:08:16 | 2018-01-25T10:13:19 | Python | UTF-8 | Python | false | false | 834 | py | import random
from interface.featuresGL import *
from structures.robot import *
from basiques.cube import *
from structures.arene import *
from save.saveJson import *
from save.csvToJson import *
"""Pour modifier les valeurs, allez dans save.csv"""
CsvToJson("save") #convertit le fichier .csv en .json
a1 = loadFic("s... | [
"marc-antoine.g@outlook.com"
] | marc-antoine.g@outlook.com |
b724bcbc0f48350e219dd33a7658609f205d332b | d7e064a1ea1b813084f57d30fd3b813cf4025dca | /213-Rob.py | ca00b21f08d6d9c9704784a2214d99fd71e5f8a6 | [] | no_license | Searcher408/Basic-programming-projects | bd2abc180b90d762a3dc9094ca07a67973fd7fad | 11483bce8b0ba37a1a8fedadae74c92784113487 | refs/heads/master | 2023-08-16T22:02:17.790848 | 2021-09-25T13:27:31 | 2021-09-25T13:27:31 | 71,346,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,600 | py | # Python3
from typing import List
class Solution:
def rob(self, nums: List[int]) -> int:
def robRange(start: int, end: int) -> int:
first = nums[start]
second = max(nums[start], nums[start + 1])
for i in range(start + 2, end + 1):
first, second = second, ... | [
"searcher408@gmail.com"
] | searcher408@gmail.com |
934f67f81b86395614fd004ce49354ba78b96c7a | 528139dad48bef4caae461912187cb5bd91494bb | /python_base/lesson6/task1.py | 981c6784702d2ab83aa018ba905bd3f9f58bb1ff | [] | no_license | vilmagsumov/vmgeekbains | 3fb698d3e75010118ed55e99338448b4e6ca84c9 | d2324f55c35f0055112190425277db8b77c7cba0 | refs/heads/master | 2022-12-27T13:55:28.674149 | 2020-10-09T12:05:00 | 2020-10-09T12:05:00 | 289,893,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 570 | py | # Задание 1 из домашней работы №6
import time
class TrafficLight:
__color = ["Red", "Yellow", "Green"]
def running(self):
for i in range(3):
if (i == 0):
print(TrafficLight.__color[0])
time.sleep(7)
elif (i == 1):
pr... | [
"vilmagsumov1993@gmail.com"
] | vilmagsumov1993@gmail.com |
aa6b69303ced3be6049f1960ff1b9a0bfecc918d | ac1dc07755a7644bd2af77de53ef26c7956f1344 | /oneGo/apps.py | ddb74cc60ab354e7ad61ff7385f45b8f7366c5cf | [] | no_license | yu874721995/onesPro | 5483324cc99bcafa0847bb189cac8d24a956f4c9 | 384e83b266e61baf51c63a9b85074cd63d713bd4 | refs/heads/master | 2022-12-21T03:19:04.855909 | 2021-11-24T12:15:28 | 2021-11-24T12:15:28 | 204,904,033 | 1 | 0 | null | 2022-07-29T23:27:38 | 2019-08-28T10:15:35 | HTML | UTF-8 | Python | false | false | 83 | py | from django.apps import AppConfig
class OneConfig(AppConfig):
name = 'oneGo'
| [
"yubei874721995@163.com"
] | yubei874721995@163.com |
7378476f005f5e3ba8c29c7800879bb39b7c6cf8 | c7cce7752ccfa3c5687cd427160af3da7950b2bc | /Mundo - 2/Ex 49 - Tabuada for.py | 8237d621fec1838425a38c9dec5c8f70edb78599 | [] | no_license | lucas-silvs/Curso-Guanabara | cea05768374bb6a9d0295deb6d17d1da4c13646b | 42f62d518eecce7f2bbc6794ad424d7f7218c81e | refs/heads/main | 2023-01-24T07:07:35.757243 | 2020-12-05T01:08:51 | 2020-12-05T01:08:51 | 315,467,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | n = int(input('Digite um número:\n'))
for i in range(1,11):
print(f'{n} X {i} = {n*i}') | [
"lucas.parkl@outlook.com"
] | lucas.parkl@outlook.com |
6905a76fa9d908c60e0a3389cde1a91c0b1d3eae | 6e9a34ebd784d729d2f59a18e6b2a677541d9d6b | /resume/models.py | d25ecde538eef8011c24dd6e30e33e751c1a8f24 | [] | no_license | kennycai0/job-posting-app | 7a373fd6ecc5dacb9d8131da855bbe1949ab1b9d | 9a2b157c3a58085ec96c0fce9220772dab00ca83 | refs/heads/main | 2023-06-14T14:37:00.877338 | 2021-06-27T22:14:36 | 2021-06-27T22:14:36 | 380,847,717 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | py | from django.db import models
from django.contrib.auth.models import User
class Resume(models.Model):
objects = models.Manager()
description = models.TextField(max_length=1024)
author = models.ForeignKey(User, on_delete=models.CASCADE)
| [
"[jc2545@cornell.edu]"
] | [jc2545@cornell.edu] |
396dcfca2e0055288c638df5e334f9ce9e511181 | 8f2246d1837ddf51f56e86d4b0b176bd834fd3e5 | /old_version/VSAE.py | 2a35dd06be0313628de20cee8b7b255f471868a3 | [] | no_license | ehsansiddiqui/ICDE2020_GMVSAE | 34d79cb3b7932cd3086d71195af18a32293e68fc | c329a6884e5abeef3f6d30da04d733b190906602 | refs/heads/master | 2023-03-17T11:47:14.233539 | 2021-02-16T14:48:34 | 2021-02-16T14:48:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,031 | py | import os
import sys
sys.path.append("../")
import time
import argparse
import numpy as np
import tensorflow as tf
from data_generator import DataGenerator
from sklearn.metrics import precision_recall_curve, auc
def auc_score(y_true, y_score):
precision, recall, _ = precision_recall_curve(1-y_true... | [
"noreply@github.com"
] | noreply@github.com |
3d84a3bc073fa559a8bce5310f25ab1ccc2b72db | 1b6da6feaeeaa3801279781ab8421e7294c5b393 | /c_plus_plus/lljz_disk/output/py_client/py_download_file.py | 2107a3f6694fa304c32b6404eaae038f0987669f | [] | no_license | doorhinges0/my_projects | 703bbc92425e6c0604088d546b84be6dca37c0cd | f981ca0bfd79c3a119cd52155028f3f338378690 | refs/heads/master | 2021-01-13T12:00:06.992906 | 2015-12-28T12:00:42 | 2015-12-28T12:00:42 | 48,828,883 | 0 | 1 | null | 2015-12-31T02:24:37 | 2015-12-31T02:24:37 | null | UTF-8 | Python | false | false | 1,956 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
import time
import datetime
import json
import py_client
def RunTest():
#print(help(py_client))
if not py_client.Init():
print("init fail")
return
#连接文件服务器
conn_id=py_client.Connect("tcp:127.0.0.1:10030",True)
print("conn_id=%d" % conn_... | [
"1060887552@qq.com"
] | 1060887552@qq.com |
2e7b654450b9caafc37657b08934fc2fba37ec17 | 5c02ad7af1f5e53ec349cbbf27812b4b03aa7588 | /example/wsgi.py | f09276c59cc7f26e429a3e47f58830b3797e876f | [] | no_license | Misaghlb/django-phone-login | e9057ab52618726c4b5c8bab962b9e013cee8b81 | 8e61144389981c0839f042212a05ae968f06b60c | refs/heads/master | 2021-01-19T17:36:39.739960 | 2017-04-06T23:35:34 | 2017-04-06T23:35:34 | 88,335,904 | 0 | 1 | null | 2017-04-15T09:01:15 | 2017-04-15T09:01:15 | null | UTF-8 | Python | false | false | 391 | py | """
WSGI config for django_otp_auth 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("DJAN... | [
"i@iraycd.com"
] | i@iraycd.com |
4febe8ed7ba4ae0ec44e162ddac26a0a35201331 | e73761fd861010f4dd2e2be09507d86bd905f4f5 | /scud/main/migrations/0002_sessionstouser.py | 78e5450bb8e12f64aa092230e4fccdbb5aac8446 | [] | no_license | BakdauletBolatE/rfid-system | a57ca2fbb3518f9df6683bf899be1d9455e55c2a | 24f023cc801dc0d24dedb4e7ecd27091c439c068 | refs/heads/main | 2023-03-13T05:14:37.043832 | 2021-02-22T06:12:31 | 2021-02-22T06:12:31 | 341,097,047 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | # Generated by Django 3.1.6 on 2021-02-18 17:40
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('main', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='SessionsToUser',
... | [
"bakosh21345@gmail.com"
] | bakosh21345@gmail.com |
8ec6366440b0bb3ae76392f6fa5eb70b0fbb7db4 | fb98092bb4218cab62354371dbc1d74ddfac7143 | /make_pred_new.py | 9f254edd1c3f0c16dd1138989efb8d6255f87c42 | [] | no_license | dovvakkin/gridsearch | da3dc7eea162a15058c2cfe78aa0549930152398 | 5911f3e5861993bb4014911218ed65c66c80dc44 | refs/heads/master | 2021-03-19T19:57:32.785759 | 2020-03-29T19:28:59 | 2020-03-29T19:28:59 | 247,142,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,106 | py | import argparse
import numpy as np
import pandas as pd
from scipy.stats import spearmanr
from scipy.spatial.distance import cosine
from collections import defaultdict
from sklearn.feature_extraction.text import CountVectorizer, TfidfVectorizer
def make_vocab(word_dict, low_threshold, high_threshold):
words = list... | [
"zhikov_n1@mail.ru"
] | zhikov_n1@mail.ru |
8162e759a06dfe2f82be1edfe4b67e8addbbef42 | 819d96d4c7ad46139233223cfe1b8f541634dfdb | /graphv5.py | 14e545629d4ecb42548ea759d7372230a024aa76 | [] | no_license | krishnakpatel/Summer2017 | baf1befd347cb6037fb9b3e72b7bb927ebf8eb3c | 80450c7bfeb4224e5b16b2adafb5347124783ddf | refs/heads/master | 2020-03-08T11:34:35.092450 | 2018-05-14T20:16:26 | 2018-05-14T20:16:26 | 128,102,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,262 | py |
#add functionality: modifying values
import matplotlib.pyplot as plt
import networkx as nx
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import ElementTree, Element, SubElement, tostring
# as soon as the program loads
circ = nx.MultiDiGraph()
node_num = 1
key = 0
def click(type):
circ.add_node... | [
"krishnapatel@DN0a1f6108.SUNet"
] | krishnapatel@DN0a1f6108.SUNet |
de41905ee008a0a8004b2f583f9b16d0ab569823 | 95e9ec4b3b0d86063da53a0e62e138cf794cce3a | /python/Django/20190523/test01/test01/settings.py | 199c6f60e7fba053de9340c0fb1a68759f7ad78a | [] | no_license | wjl626nice/1902 | c3d350d91925a01628c9402cbceb32ebf812e43c | 5a1a6dd59cdd903563389fa7c73a283e8657d731 | refs/heads/master | 2023-01-05T23:51:47.667675 | 2019-08-19T06:42:09 | 2019-08-19T06:42:09 | 180,686,044 | 4 | 1 | null | 2023-01-04T07:35:24 | 2019-04-11T00:46:43 | Python | UTF-8 | Python | false | false | 4,057 | py | """
Django settings for test01 project.
Generated by 'django-admin startproject' using Django 2.2.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
# Bu... | [
"18537160262@qq.com"
] | 18537160262@qq.com |
527097bd985029d5e609829ca081c80c915a6703 | 4da34a6afbe7f52a19f766e4c582b6f79e2b13ef | /raspberry/moniteur/dmon.py | 8b11c3dc6278445d3c7ff8cc401c7bfdb161c923 | [] | no_license | angebouabre/web | 440dfdf5b4726fd68022710ebfc186262aaa94b9 | bb60ff39295245727fe5627b3c5ed31fc1fd8ded | refs/heads/master | 2021-01-01T18:29:21.302124 | 2014-06-27T20:24:21 | 2014-06-27T20:24:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,153 | py | #!/usr/bin/python
import os, sys
path = os.path.abspath('..')
sys.path.append(path)
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "raspberry.settings")
from django.core.wsgi import get_wsgi_application
application = get_wsgi_application()
import time
import subprocess
import nmap
from datetime import datetime... | [
"angebouabre@gmail.com"
] | angebouabre@gmail.com |
80407c4a82c4921f6a06b23f334f0b92981e8e2e | fcd779fa8b64a964f010b06596ecc60e6a024530 | /Mosh-youtube/Lessons/tuples.py | ea1b55e116e46128fd1e4d3d3ceb53c2faf9015a | [] | no_license | tylertamalunas/MoshYoutube | a5d3858f37c32c734a6ba7dea6165e4c9c6eebda | 957d6d2e18080005eca845f43271721213060831 | refs/heads/master | 2020-09-14T23:11:05.087157 | 2020-01-21T23:06:08 | 2020-01-21T23:06:08 | 223,288,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 204 | py | # tuples are like lists, but you cannot change them at all
numbers = (1, 2, 3)
print(numbers[0])
# below gives error
numbers[0] = 10
# tuples are better if you do not want to accidentally change a list
| [
"tylertamalunas@gmail.com"
] | tylertamalunas@gmail.com |
55fd556c898ec9a961e758cd6ade0046c3bc26ae | a14eaa4e2e48863595a7c41de91448f79f28bbec | /Tutorial1/Slider.py | b8edebf49a9ac5f0e7edb2d1943fa0bf3a21cf2b | [] | no_license | LibertAntoine/Pyside_Training | f4d9deb0c01efba6d8d9b7a6aab40b2951c696de | 58602b8eb2c333ae131087805405ba40fc5452b4 | refs/heads/master | 2023-03-29T23:44:22.275871 | 2021-03-30T12:09:13 | 2021-03-30T12:09:13 | 337,487,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,589 | py | import sys,os
import PySide2
from PySide2.QtWidgets import QApplication, QWidget, QHBoxLayout, QLabel, QSlider
from PySide2.QtGui import QIcon
from PySide2.QtCore import Qt
from PySide2 import QtGui
# Allow to find plugins needed for PySide2
dirname = os.path.dirname(PySide2.__file__)
plugin_path = os.path.join(dirnam... | [
"duncan-arrakis@hotmail.fr"
] | duncan-arrakis@hotmail.fr |
a4f1eb5a73bb211daab14e6aac02273d7a07b9c7 | 093b9569be9d1c4e5daf92efbebc38f680917b2d | /.history/base/models_20210829142734.py | 4c98bfd01c1d244a8078fbe1666e967e01960773 | [] | no_license | Justin-Panagos/todoList | 95b1e97ff71af1b0be58e7f8937d726a687cea4d | 10539219b59fcea00f8b19a406db3d4c3f4d289e | refs/heads/master | 2023-08-04T13:27:13.309769 | 2021-08-29T14:06:43 | 2021-08-29T14:06:43 | 400,827,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class Task(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE, null = True, blank=True)
STATUS= [(,'P1'),(1,'P2'),(2,'P3'),]
priority = models.CharField(max_length=5, choices=STATUS... | [
"justpanagos@gmail.com"
] | justpanagos@gmail.com |
108c74e482d8976c15cfa6cec8281b9740d2c27f | d9ba3e91985b6efd6bed24728ef5b72f12fab49e | /python-fundamentals/day-1-Operators/basic-operators.py | 55c999b4388669b7903b6e8d0ce2ffc3a76d229a | [
"MIT"
] | permissive | laminsawo/python-365-days | be8fe86ff23f04bf8f81b1e645f89ab52bdb32a3 | 7d63e88ad2bbaa7b9bd0475f078e0164cc9b485c | refs/heads/master | 2021-06-18T19:47:40.136399 | 2021-01-04T22:56:43 | 2021-01-04T22:56:43 | 142,359,117 | 0 | 1 | MIT | 2020-07-31T12:55:14 | 2018-07-25T22:13:38 | Python | UTF-8 | Python | false | false | 764 | py | # This Python file exhibits basic Python Maths operators
"""
Operators and usage:
+ = addition of numbers
* = multiplication of numbers
- = subtraction of numbers
/ = division of numbers
"""
# Examples:
#x = 50
#y = 10
# Improvements: Make the variables dynamic in the sense that the user gets asked to inpu... | [
"laminsawojadama@outlook.com"
] | laminsawojadama@outlook.com |
d5e9907f68e94605a65490944912b0dd9253ec83 | 7656ff7211028f749ea7b15b78d06104d2800db5 | /bob/bio/video/test/test_annotators.py | 62188429a8b96716263aa5f6db35fb00b2905ef8 | [
"BSD-3-Clause"
] | permissive | nixworks/bob.bio.video | 50aaba0b76b4b002db5ca5ae7bf771b9e962118d | c27ad8eb6026981067a260edefe84961acfc180b | refs/heads/master | 2020-03-17T18:35:23.034716 | 2018-04-13T19:20:01 | 2018-04-13T19:20:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,421 | py | import os
import collections
import bob.io.base
import bob.io.image
import bob.io.video
import bob.bio.video
import pkg_resources
from bob.bio.video.test.dummy.database import DummyBioFile
from bob.bio.face.test.test_annotators import _assert_bob_ip_facedetect
class FailSucessAnnotator(bob.bio.base.annotator.Annotato... | [
"amir.mohammadi@idiap.ch"
] | amir.mohammadi@idiap.ch |
d78fab6e48b62cb573c47b02573d64c0cc38210f | 612d705ef9977f37325ffbbcbb10ee7dda2955fc | /software engineering - project/H3/get_modules_structure.py | ac6226e7e5737c653916b94baca15c42e1384b56 | [] | no_license | HubertSiewior/Python-AGH-Projects | 9e0c653a0e8ad3498927953fa3023282cfb3df6a | 2438a3d9c75db8ec8a7fc9a8ab554399ab083cef | refs/heads/master | 2023-06-11T04:41:10.767350 | 2021-06-28T13:53:14 | 2021-06-28T13:53:14 | 314,554,583 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,189 | py | import os
from modulefinder import ModuleFinder
import importlib
from inspect import getmembers, isfunction, getsource
from H2 import get_function_usage as gfu
from H3 import get_paths as gp
from H3 import Function as F
from H3 import File as file
def get_modules_structure(path):
directories_array = gp.get_mod... | [
"hubert-4321@wp.pl"
] | hubert-4321@wp.pl |
aca6239bb1902abcf69c2fa4ab44b62d104cc3ee | 78f43f8bd07ae0fc91738a63cd7bbca08ae26066 | /leetcode/interval/least_interval.py | b5418240bed39df4bf2a1b61baecf70e18b8cf95 | [] | no_license | hanrick2000/LeetcodePy | 2f3a841f696005e8f0bf4cd33fe586f97173731f | b24fb0e7403606127d26f91ff86ddf8d2b071318 | refs/heads/master | 2022-04-14T01:34:05.044542 | 2020-04-12T06:11:29 | 2020-04-12T06:11:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | class Solution(object):
def leastInterval(self, tasks, n):
"""
:type tasks: List[str]
:type n: int
:rtype: int
"""
LETTER_NUM = 26
freqs = [0] * LETTER_NUM
for c in tasks:
freqs[ord(c) - ord('A')] += 1
freqs.sort() # in-place sort
... | [
"dofu@ebay.com"
] | dofu@ebay.com |
2a9e9802447908d58003fa193d073049e0c0eb00 | 41b33801e22613ea2d22c04a79ef5e34d6b1eba8 | /python_assignment/problemset03/qn10.py | de41f7035038e6d05ce9d92d23b529a3d23e3a82 | [] | no_license | jamunadevi-murugan/GraduateTrainingProgram2019 | 3f7f0021efb4ba3fb74f2b3cf48483db8bc210fb | 7fc5f6cafe5e16926f56ffe529b3d42ab500f0b8 | refs/heads/master | 2020-07-08T00:20:10.486911 | 2019-11-15T06:03:07 | 2019-11-15T06:03:07 | 203,516,083 | 0 | 0 | null | 2019-08-21T05:55:40 | 2019-08-21T05:55:39 | null | UTF-8 | Python | false | false | 367 | py | def is_anagram(str1,str2):
count = 0
s1 = sorted(str1)
s2 = sorted(str2)
if len(str1) == len(str2):
if s1 == s2:
return True
else:
return False
str1=input("Enter the 1st string : ")
str2=input("Enter the 2nd string : ")
if is_anagram(str1,str2)==True:
prin... | [
"A08019DIRP_C2E.03.06@accenture.com"
] | A08019DIRP_C2E.03.06@accenture.com |
95ff3bb84c235c112feae2ac5244798db31603a5 | b11f99f8b19b91ad0f340a980ea800923b6e8965 | /blog_tech/apps.py | 2a7f380a1690931ac35bdaf86ea78bed80f5ee91 | [] | no_license | Shobhit-Mishra-02/blog_django | 61170af2f11012d78a0c515581d0de1b0dfcfe4c | ce2c62a11fd2d35626c617df3598c5d5803fb429 | refs/heads/master | 2023-06-17T14:59:32.615832 | 2021-07-15T13:43:07 | 2021-07-15T13:43:07 | 386,303,931 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 149 | py | from django.apps import AppConfig
class BlogTechConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'blog_tech'
| [
"shobhitmishra2002@gmail.com"
] | shobhitmishra2002@gmail.com |
971c2ffbca4a34780ade10323533263d25a7b580 | bff2cdc6dc104d21154accaa7a83685c5b8db855 | /networking_odl/tests/unit/test_base_db.py | 296359ae0a62648d7aa685188e3bcee49ae2e998 | [
"Apache-2.0"
] | permissive | Jordonchen/kolla-ansible-openstack | cfd5d158afd88e56d7727e46b0534b913bb0cecb | c71c1f9a23da5df9745d751a9b3a6f212712a12c | refs/heads/master | 2020-06-11T00:25:42.763028 | 2019-07-11T03:12:35 | 2019-07-11T03:12:35 | 193,803,387 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,571 | py | # Copyright 2016 Intel Corporation.
# Copyright 2016 Isaku Yamahata <isaku.yamahata at intel com>
# <isaku.yamahata at gmail com>
# All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the Licen... | [
"549802631@qq.com"
] | 549802631@qq.com |
1dff835b45b4ae2e497622ecb444d5826903bf9e | 8dc4816bc478b816191145c1ebe9948766ea0895 | /demo/final-demo/html-stuff/html-file-creation.py | 495ced49c260b642581c98e7be9e5ae543634cee | [
"MIT"
] | permissive | the-browser/recommending-interesting-writing | 11c5e446a2d28bc6aabeb84c50bfaadef5235c44 | 9ff4771d3f437d33c26d2f306e393b5a90a04878 | refs/heads/master | 2023-06-05T00:52:36.073956 | 2021-06-09T17:12:19 | 2021-06-09T17:12:19 | 268,459,647 | 6 | 1 | null | 2020-06-01T10:13:42 | 2020-06-01T07:57:44 | Jupyter Notebook | UTF-8 | Python | false | false | 2,345 | py | import argparse
from pathlib import Path
import os
# get arguments for script and parse
def expand_path(string):
return Path(os.path.expandvars(string))
parser = argparse.ArgumentParser(
description="Train model on article data and test evaluation"
)
parser.add_argument(
"--header", default=Path("header... | [
"rohan2003bansal@gmail.com"
] | rohan2003bansal@gmail.com |
4f3263662cabaccdfc48ac0ed504715b2151b97e | 8df235ef8a168f7dbd9846f1f608ad7e51ef25ef | /secrets.py | d95f424fab04a7a6d9fea3909368ca935c8b057e | [] | no_license | sofialo14/lec10si206 | 06aaaa5205ca589403c58ddbe6a0821daefc5bfc | bdd0a8cce520d379a72d830f62c3a50839626801 | refs/heads/master | 2021-05-03T15:08:43.275291 | 2018-02-06T14:54:03 | 2018-02-06T14:54:03 | 120,470,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 110 | py | client_key = 'd8eOld8DmFzFEpngyuuL9up1O'
client_secret = '6LTy1Qoq7OPTGQgCgmccQlyPlF4PMYcAHiExGZvcUbfFbwivo8'
| [
"sofialo@umich.edu"
] | sofialo@umich.edu |
434f2a4e5d4c626ba4768123e191fc6823872f15 | c9f1cc3a6715917d658a6e525b7c2d35b0380f9f | /Non_canonical_introns/Analisys/Join_final_tables_seq.py | cf7f3dde6d7fa321b0e71a9c47f123d3081f1b1d | [] | no_license | geparada/my_src | 4f84887130b985e84aad3d0d35e85911087d9b4f | 8d64f7ef51e1f74303ca88beb0ee964f546d8301 | refs/heads/master | 2021-01-17T01:50:50.414690 | 2017-03-14T10:01:50 | 2017-03-14T10:01:50 | 20,638,727 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,188 | py | import sys
import csv
def main(hg19, SJ_hg19, hg19_reads_seq_tags, GM12878, SJ_GM12878_paternal, SJ_GM12878_maternal, GM12878_reads_seq_tags_paternal, GM12878_reads_seq_tags_maternal, TOTAL_final_table):
csv.field_size_limit(1000000000)
reader1 = csv.reader(open(hg19), delimiter = ' ')
reader2 = csv.reader(open... | [
"geparada@omics.(none)"
] | geparada@omics.(none) |
3fdea1ed28d82a773de42cb6859f5ce3fa0ceefd | aab2f6f5f673bf16424d592142ba3af414423adb | /kafkaconsumer.py | 5b972353177ac3b7eef951403c753ffb888eaab2 | [] | no_license | ashishjsharda/KafkaUsingPython | 75f46ba4df25f264e853615c8fde73ed59aa620e | cbd9aff94b9d896736e14befcb42dfa64efc1562 | refs/heads/master | 2020-12-19T11:07:08.891269 | 2020-01-23T03:22:39 | 2020-01-23T03:22:39 | 235,715,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | '''
Created on Jan 22, 2020
@author: ashish
'''
from kafka import KafkaConsumer
consumer=KafkaConsumer('sample')
for message in consumer:
print(message)
| [
"noreply@github.com"
] | noreply@github.com |
ccaed32da76f2205a2202e7d175dbe2d49ab92d6 | eca01589c688a5b3d20c4f729dcc028d7ef78330 | /Cellular_Automaton_color.py | aa8bef64ec8070d30fa722349342d31fafbd0cfe | [] | no_license | ycanerol/network-sim | 86d465e15e4e2ca8cfbeaa6ef4494bab13f13295 | aa03fb9e55ecef2669e3ebbd873970d5bb81e8f7 | refs/heads/master | 2021-01-11T21:02:45.613923 | 2017-03-06T10:57:39 | 2017-03-06T10:57:39 | 79,233,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,502 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Mon Dec 5 10:36:18 2016
@author: zhoulinn
"""
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Cellular Automaton trial 1
with rule
Created on Fri Dec 2 18:25:55 2016
@author: zhoulinn
"""
import numpy as np
import matplotlib.pyplot as plt
import c... | [
"zhoulinn@yahoo.com"
] | zhoulinn@yahoo.com |
1e858d1f1a1b84d9742f64cbd02376e70c24ddb6 | fa97dd53acbded543ce3a75e619bb3ccee3ce1fd | /spatialpandas/geometry/__init__.py | 6c7c9572bd5654a883b281546d16a969a22373a0 | [
"MIT",
"BSD-2-Clause"
] | permissive | thuydotm/spatialpandas | 67d56338da0afb3d391c298598ea117bc293ba5d | 8168caa31e6b180dfd4901110d3c979cc333184b | refs/heads/master | 2022-11-30T01:57:56.313500 | 2020-08-16T01:21:51 | 2020-08-16T01:21:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 575 | py | from .polygon import Polygon, PolygonArray, PolygonDtype # noqa
from .multipolygon import ( # noqa
MultiPolygon, MultiPolygonArray, MultiPolygonDtype
)
from .line import Line, LineArray, LineDtype # noqa
from .multiline import ( # noqa
MultiLine, MultiLineArray, MultiLineDtype
)
from .multipoint import ( # n... | [
"noreply@github.com"
] | noreply@github.com |
0ff9ad60521e1984e0ec6b613ca8d92b81b2dd1a | c79ed36daebd727557abfa06031df9643789a066 | /src/models.py | dda9caa78ebdba7ae85f6fd8fe453bd7a23ee8db | [
"CC0-1.0"
] | permissive | rohitkuk/Brain_Tumour_Segmentation_3D_MRI | a22339969a8a3990f5687311a29d1f4d84fa8c0d | 37ea34776ba863d85ce2101be561a2ad0e51209d | refs/heads/main | 2023-07-17T12:31:08.952378 | 2021-08-30T07:04:23 | 2021-08-30T07:04:23 | 399,367,338 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,489 | py | # This will contain the Segmentation Model structre
import torch.nn as nn
import torch
import torch.nn.functional as F
# The Below implementation is based on 3D U-Net: Learning Dense Volumetric Segmentation from Sparse Annotation Research Paper
class conv_block(nn.Module):
def __init__(self, in_channels : int ,... | [
"rohit.kukreja01@gmail.com"
] | rohit.kukreja01@gmail.com |
26c1c48c488785c157c5890f12d3f02597325cf0 | 0fa7a9be8d18210ca37120a4e9eea902db55014a | /config.py | c47c4ee34821c786550c48a70c5d6d15292e161a | [
"Unlicense"
] | permissive | georgeyjm/Connect | 96376ae9d6f685abcf22ff875b75e8ad3ad94494 | d6eb97310fece8f329920d614406810c7d0dd72a | refs/heads/master | 2021-09-08T16:00:37.370650 | 2017-03-17T01:16:19 | 2017-03-17T01:16:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 909 | py | ## Define Fundamental Color Values
BLACK = '#000000'
WHITE = '#FFFFFF'
RED = '#FF0000'
GREEN = '#00FF00'
BLUE = '#0000FF'
YELLOW = '#FFFF00'
PURPLE = '#FF00FF'
AQUA = '#00FFFF'
skins = ['Hacker','Night']
choice = 'Night'
#appearances = {i:j for i,j in zip(skins, ({} for j in range(len(skins))))}
for skin in skins:
... | [
"noreply@github.com"
] | noreply@github.com |
09905fca985dec0cd722c242256b69eee8fc3ec9 | 70654475a67af66acbe8dbfa42c5a6d5eeaadb3c | /stud_projects/func.py | 03d079c0fa0477a1b1f8aca60e2b36eb89f7081b | [] | no_license | Vanechkash/Stud_materials | 7a4aae3ca3a36b98eb2fb896e6aa789b303e7e65 | bcaa88d474d7417777e67fea66ba77c668f57bef | refs/heads/master | 2020-07-24T17:35:40.825468 | 2019-09-12T09:03:34 | 2019-09-12T09:03:34 | 207,998,031 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,767 | py | def mysum(x, y):
return x + y
res = mysum(3, 5)
print(res)
%%time
def f():
limit = 10 ** 4 # 2.75 | 2.56 | 2.42 | 1.2 | 0.6
y = [2]
for digit in range(3, limit, 2):
for i in range(3, digit // 2 + 1, 2):
if not digit % i:
break
else:
y.append(di... | [
"vanechkashevtsov@gmail.com"
] | vanechkashevtsov@gmail.com |
d80801280c1165d313a63a8fbad8fa873bc4ae86 | 6097f2a31f1cf90bc5f2795e0ebfcdbc78fad3b1 | /train_derm.py | 035cb6b044b7098c2e97f9710aac17e0b1819dab | [
"MIT"
] | permissive | rajathsoans/fan | b35264df92ed07f575854de90060d85580a96290 | 5dc1a5ea5ced0f284ca7b967d1469dcecdfc5ca0 | refs/heads/master | 2020-04-28T02:33:25.439341 | 2019-03-11T15:58:35 | 2019-03-11T15:58:35 | 174,903,155 | 0 | 0 | null | 2019-03-11T01:20:13 | 2019-03-11T01:20:13 | null | UTF-8 | Python | false | false | 47 | py | from stainnorm.models import fan
model=FAN()
| [
"rajath@proscia.com"
] | rajath@proscia.com |
0d7c3cc6491bf482131fbbb00556b7368044d75d | 391d648132c1a05e7da575205eef89a7208a892a | /compare.py | 311165b27e102d591a5f36b47d2bd374e0a1c43b | [] | no_license | michaelbateman/DemographicInference | c3ceaf69f8b554f3973473607d6b5201cca423f9 | b1e2529b1ce0710f82d2867d08588ae4a6c72bb2 | refs/heads/master | 2021-01-10T06:28:43.698581 | 2015-10-06T18:25:45 | 2015-10-06T18:25:45 | 43,770,029 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,089 | py | import sys
import matplotlib.pyplot as plt
import numpy as np
import subprocess
import time
import pylab
from scipy import stats
num_haps = int(sys.argv[1])
num_times = int(sys.argv[2])
def readfire(s): # reads the output of a fire file and
# returns the time vector and the population vector
# input file sh... | [
"bbeeefcake@gmail.com"
] | bbeeefcake@gmail.com |
31012c36efe1adf3e32c6e9600220d6f672511ec | 027f52cbbd4e9ccd52b73dcf9ed523137ec78815 | /python_language/Day_Base_Code/Day_07/lambda_function_2nd.py | b0b5df2ea3a317f5bc58267771c1524dd860305c | [] | no_license | Jade2290/bigdata_class | 0c851440852857ee44496b7112db580cf9b60d57 | 380ad58d56ea4fbcea81f78f9648b1edf27e0554 | refs/heads/master | 2022-04-11T05:05:25.429853 | 2020-03-27T14:30:36 | 2020-03-27T14:30:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,789 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Oct 14 11:48:50 2019
@author: sundooedu
"""
list1=list(range(0,10))
list2=list(filter(lambda x:x%2==0,list1))
list2
list3=list(filter(lambda x:x%2==0 and x%3==0,list1))
def factorial(s):
factor=1
for i in list(range(1,s+1)):
factor *= i
... | [
"noreply@github.com"
] | noreply@github.com |
4ec6b633118eb520f10ea0b08200abaee0f0c853 | a7a968c270d193e8c5b35af5f1743be8c9eaa81d | /AllWISE/processor_AllWISE.py | e130a2455652e3fe40c6b11bae8949009bfafa09 | [] | no_license | rameez3333/catana | 56479adfbac422a976f2c22ea45ccebc3884ea13 | d786ddcc789c55e941a85b247433eeac672a40d4 | refs/heads/master | 2020-09-22T15:31:48.133456 | 2019-12-08T09:12:45 | 2019-12-08T09:12:45 | 67,131,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,389 | py | import numpy as np
import healpy as hp
import sys
import astropy import units as u
from astropy.coordinates import SkyCoord
scanres = int(sys.argv[1])
scanfile = sys.argv[2]
gallatcut = int(sys.argv[3])
jlcutyn = int(sys.argv[4])
sgallatcut = int(sys.argv[5])
npix = hp.nside2npix(scanres)
print "Loading file"
def... | [
"mrameez@fend05.cluster"
] | mrameez@fend05.cluster |
c8ef2e7798953aa2231f6ae172d6891809e33e43 | c155d27bf74255b8315603518c5ab76d0638dfea | /uv/serpens/profiles/3sigma_cn_3.py | f6f8c1ebbcce36349089a536d0cded0167ff74b4 | [] | no_license | amirocha/doktorat | 406c2e4476a5a22c863c37eb5f581a369800e936 | 22c90228f6bca9d0b116c73457b7e86ae4462167 | refs/heads/master | 2021-07-05T14:18:26.324886 | 2020-08-03T19:28:50 | 2020-08-03T19:28:50 | 152,316,686 | 0 | 0 | null | 2020-04-03T20:22:37 | 2018-10-09T20:28:29 | Python | UTF-8 | Python | false | false | 7,857 | py | #-*-coding: utf-8-*-
'''
DESCRIPTION: This script displays the averaged and resampled spectrum (0.5 km/s)
DESCRIPTION: for a given region on map and plots 3*RMS and 1*RMS levels
DESCRIPTION: and shows X ranges for flux calculation
The averaged region is consistent with HCN 1-0 beam size after convolution (27.8"... | [
"mirochagnieszka@gmail.com"
] | mirochagnieszka@gmail.com |
5a61ea0145a79555e2cb7c065a46853cc1badeba | c48cf70d0ea48bc82222cec23f1e21da99a863ea | /src/basic-c3/list-enumerate2.py | 1928a274231cbf3f0cfc8684f6e665bc1a5624f9 | [] | no_license | n18006/programming-term2 | 623c8922c1bf0be11814443dc29aeaa480283227 | 1ff42337e1bdf2baedbfac3f0a5b71ad815e530b | refs/heads/master | 2020-03-22T08:59:29.025367 | 2018-08-30T02:06:00 | 2018-08-30T02:06:00 | 139,806,122 | 0 | 0 | null | 2018-07-05T06:42:08 | 2018-07-05T06:42:08 | null | UTF-8 | Python | false | false | 99 | py | # enumareteの動作を確認する
fruits = ['apple', 'orange', 'banana']
list(enumerate(fruits))
| [
"=n18006@std.it-college.ac.jp"
] | =n18006@std.it-college.ac.jp |
e7a8418352066f3eed19be985f235c9b0cc592b5 | f4da6ed4506070f4ad9038d26d70636421c849b9 | /42_Trapping_Rain_Water.py | 417307145c4b6abc2b0426304866c24ce5f9691f | [] | no_license | priyabdas/arrayQuestions | ba87918daf4aaa126f25415f075015d86178d9ec | 9163d1011aa274ff967df28e45dbbc60a2519ac7 | refs/heads/main | 2023-06-13T05:09:00.019528 | 2021-07-05T12:22:12 | 2021-07-05T12:22:12 | 381,608,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 915 | py | def trap_rain_water(array):
#left = 0
#right = len(array)-1
maxLeft = array[0]
maxRight = array[len(array)-1]
res = 0
leftArray = [array[0] for i in range(len(array))]
rightArray = [array[len(array)-1] for i in range(len(array))]
#build the left array heights
for x in range(1,len(a... | [
"pbrt.das@gmail.com"
] | pbrt.das@gmail.com |
6ec9dc8e0c0834377071827dfc5e217d63e4ebff | b391494955ca4e7b2f2d9b52e79fbefac989ad9f | /convent.py | e2b2fe12fbbfb7efed457ae28e6ad9f49cd74aef | [
"MIT"
] | permissive | maniksejwal/MineRL | 398361323b2503f0ecca7a1f7b82c2e0029e4575 | 145eb8018e7dded395bd237e0daf47dbbd5027ee | refs/heads/master | 2020-08-21T18:38:59.379850 | 2020-04-03T07:23:02 | 2020-04-03T07:23:02 | 216,219,971 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,476 | py | #!/usr/bin/env python
# coding: utf-8
# In[ ]:
import tensorflow as tf
import random
class ConvNet:
def __init__(self, params, trainable):
self.shape = [None, params.width, params.height, params.history_length]
self.x = tf.placeholder(tf.float32, self.shape)
self.in_dims = self.shap... | [
"maniksejwal@gmail.com"
] | maniksejwal@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.