blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d95f0b89899c28fd7e790e02a64cba46aff3d59d | 1ad2ae0383341f2b92fe38173612be5d9c4970e8 | /polls/models.py | 75a460d4f5e68fc9d5052737ed7677900239b83f | [
"MIT"
] | permissive | pizzapanther/ppp | 9b0df90ddf2e52ffdaf43394026613dbd884c0e9 | 3286f39f8e90f3473841a154ff7189a3efd9ca94 | refs/heads/master | 2021-09-23T03:52:27.915606 | 2020-03-04T18:04:08 | 2020-03-04T18:04:08 | 222,154,111 | 0 | 0 | MIT | 2021-09-22T18:10:01 | 2019-11-16T20:16:27 | Python | UTF-8 | Python | false | false | 1,400 | py | from django.conf import settings
from django.db import models
from django.contrib.postgres.fields import ArrayField
class Presentation(models.Model):
title = models.CharField(max_length=100)
slug = models.SlugField(max_length=100)
def __str__(self):
return self.title
def current(self):
return self.po... | [
"paul.m.bailey@gmail.com"
] | paul.m.bailey@gmail.com |
70e87e1fb732bfc445b50e28f7b074420ad1f86b | 9eabceb375a96b5b87b4e2a59a89a71bfa577db1 | /AutomateTestSiteWithSelenium/GetLinkFromPage.py | 01761028303efd3a36b510c29505229ba0f385a3 | [] | no_license | fitriKimmy/ScriptingWithPython | 67463e9b8085bf13450c93c3370d52e29cac131e | c51b0463b574902fbf9a600cb76b0a7da90e8d1c | refs/heads/master | 2022-12-14T04:21:55.760126 | 2020-09-07T11:20:44 | 2020-09-07T11:20:44 | 293,294,949 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 657 | py | from selenium import webdriver
driver = webdriver.Chrome()
driver.get("https://sites.google.com/site/httpwwwseleniumhqorg/")
element = driver.find_element_by_xpath('//*[@id="sites-canvas-main-content"]/table/tbody/tr/td/div/div[2]/div[2]/table/tbody/tr/td[1]/center/a[1]/img')
element.click()
driver.back()
search_el... | [
"fitri.manurung@go-jek.com"
] | fitri.manurung@go-jek.com |
97b53eda25175c28fc9aca24c186c191c00e164a | 3c5e7e507baca827a367be2c4e85655c7c590162 | /jogos.py | 1e37db040c39233b65dd2c910ac6eb719f915bc4 | [] | no_license | devlaurindo/jogos-em-python | 7608c3aa7c124fedd8f395e9181fa1b778515095 | e8409d81c702aeed633f8fbffec94049561f1f63 | refs/heads/master | 2023-04-10T18:13:22.146064 | 2021-04-28T17:48:42 | 2021-04-28T17:48:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 512 | py | import adivinhacao
import forca
def escolhe_jogo():
print ("***********************************")
print ("******* Escolha o seu jogo! *******!")
print ("***********************************")
print ("\n (1) Adivinhação (2) Forca ")
jogo = int (input ("\n Qual jogo? "))
if (jogo == 1):
... | [
"user-t00r@hotmail.com"
] | user-t00r@hotmail.com |
79ee635884d6023dadd4796ad9c195a3da5940f9 | ab084a1775574955c4a46a0fdad00d70cdfa8839 | /DEAR/main.py | d9b861a9ab1e3be0d2460cf6feec78e27de40da2 | [
"Apache-2.0"
] | permissive | autofix2021icse/AutoFix-2021-ICSE | eaa926125dc62e74ccf0853d2664275d21fd931c | cbad6d6d58fcb88b1c3986d2f7e738aa035a65d1 | refs/heads/master | 2023-01-21T23:16:03.114859 | 2020-11-21T11:12:43 | 2020-11-21T11:12:43 | 290,268,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 497 | py | import os
import time
import subprocess
rq = "1"
path = os.getcwd()
start = time.process_time()
if os.path.isdir(path + "/sbfl/ochiai/") and os.path.isdir(path + "bert_model/bert_output/"):
try:
subprocess.call("python3 " + path + "run_exp.py " + rq, shell=True)
except:
print("Running Error!"... | [
"autofix2021icse@outlook.com"
] | autofix2021icse@outlook.com |
37ded26c5f8eb43d97bf060b3afc87241f198359 | 8cd5c8d035b292caacb4d5aeb4bce0ca19ee3061 | /DataScience/Python/scripts/analyzeLT1Data.py | 26a0c0ca34c8c8282df8f396a739d7724288e03a | [] | no_license | toddjm/projects | 33be8c753d24a1ba1f719d661fed36d264957c45 | 709497603a6dcfb43feabfc812b3ad8bb3f183c9 | refs/heads/master | 2023-02-19T03:13:46.538278 | 2023-02-07T22:33:00 | 2023-02-07T22:33:00 | 47,042,227 | 1 | 1 | null | 2015-12-01T00:01:22 | 2015-11-28T22:44:22 | Python | UTF-8 | Python | false | false | 2,334 | py | import glob
import matplotlib.pyplot as plt
import numpy as np
import os
import sys
# Set data directory. Are we on Linux or Mac OS X?
if sys.platform == 'linux':
data_dir = '/home/todd/data/lt1_dmax/clean/LT1/running'
elif sys.platform == 'darwin':
data_dir = '/Users/todd/data/lt1_dmax/clean/LT1/running'
# S... | [
"todd.minehardt@gmail.com"
] | todd.minehardt@gmail.com |
b36520204abceb7ea228c6496db2a9d6c5a07791 | a15f288c00d1fd280c327263dd1c608d85cce2ac | /ganarcrm_django/team/migrations/0002_auto_20210514_0455.py | f822abd8f6fe37dd00623ccb5cd693dbf4bf2f23 | [
"MIT"
] | permissive | mburaksoran/ganarcrmExample | 721c018a907cef16c1916bf529253be50c084bd8 | 5b2561a73a49abe608d695cf50bf516c7d08b124 | refs/heads/main | 2023-06-09T00:55:05.987826 | 2021-07-01T05:19:06 | 2021-07-01T05:19:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 959 | py | # Generated by Django 3.2 on 2021-05-14 04:55
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('team', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Plan',
fields=... | [
"codewithstein@Steins-MacBook-Pro.local"
] | codewithstein@Steins-MacBook-Pro.local |
2b24ec034a34c513b9c6b1bd086580ec9964d106 | a5a99f646e371b45974a6fb6ccc06b0a674818f2 | /Geometry/HcalEventSetup/python/CaloTowerGeometryDBWriter_cfi.py | dc75ba33a6cedd5c4191026f97719656397c89c3 | [
"Apache-2.0"
] | permissive | cms-sw/cmssw | 4ecd2c1105d59c66d385551230542c6615b9ab58 | 19c178740257eb48367778593da55dcad08b7a4f | refs/heads/master | 2023-08-23T21:57:42.491143 | 2023-08-22T20:22:40 | 2023-08-22T20:22:40 | 10,969,551 | 1,006 | 3,696 | Apache-2.0 | 2023-09-14T19:14:28 | 2013-06-26T14:09:07 | C++ | UTF-8 | Python | false | false | 531 | py | import FWCore.ParameterSet.Config as cms
CaloTowerHardcodeGeometryEP = cms.ESProducer( "CaloTowerHardcodeGeometryEP" ,
appendToDataLabel = cms.string("_master")
)
CaloTowerGeometryToDBEP = cms.ESProducer( "CaloTowerGeometryToD... | [
"giulio.eulisse@gmail.com"
] | giulio.eulisse@gmail.com |
35a47b027566248963ff354a2a07b0ef7377d61c | 1bccf0b1374dcfddfc3e320fd5b6af499334df2d | /scripts/hashtagUserCounts.py | 4a780d5a584536af79f7279e772bc4f2cc89c7c9 | [
"Unlicense"
] | permissive | chebee7i/twitter | 6b245f5a7b7510089b62d48567e6208e1fe8a1db | ec1d772c3ef7d2288ac8051efb8637378f3ec195 | refs/heads/master | 2021-01-01T16:25:13.242941 | 2015-06-24T19:39:24 | 2015-06-24T19:39:24 | 23,846,593 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,533 | py | """
Insert the number of users that tweeted each hashtag.
"""
import twitterproj
import pymongo
from collections import defaultdict
import itertools
import json
import os
import io
db = twitterproj.connect()
def add_user_counts(bot_filtered=True):
collection = db.tweets.with_hashtags
if bot_filtered:
... | [
"chebee7i@gmail.com"
] | chebee7i@gmail.com |
c6ad8989868b3f799fb471f965dd0dbac43eda21 | 3932fd64580d6c04543d02e7675fc6587bf31214 | /src/border_handling.py | ad2c49f30822ba44271b7c6ac5e3e44a6eb38696 | [] | no_license | RosePY/ASCIIArt | e06bcc4d2e09007833ceb8b413251852f5576420 | 0985724f3d4fc39ad9a6c430d80d1a35de787d6d | refs/heads/master | 2021-01-09T18:12:50.449403 | 2020-02-22T20:27:14 | 2020-02-22T20:27:14 | 242,402,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,966 | py | import numpy as np
class BorderHandling:
BORDER_REPLICATE = 1
BORDER_REFLECT = 2
BORDER_REFLECT_101 = 3
BORDER_WRAP = 4
BORDER_CONSTANT = 5
BORDER_DEFAULT = BORDER_REFLECT_101
@staticmethod
def border_handling(img_in, kernel, border_type=BORDER_DEFAULT):
rows, cols = img_in.sh... | [
"noreply@github.com"
] | RosePY.noreply@github.com |
e0d15e783287de2d262fe73d9af3aab0bc994dbd | 409d0fac6c50ecb0b087be00d0a43802b3cb9d30 | /hdcs_manager/source/hsm/hsm/api/contrib/services.py | bb0c1784f0ae9f3327d799437e5e34a973e0fdb2 | [
"Apache-2.0"
] | permissive | xuechendi/HDCS | a5f5ac62c9da063359c173c352f4f484ba4d7cdb | 4ce169d5be1c3e8614e5e6f198d3593eb904b97d | refs/heads/master | 2021-01-15T22:18:59.554181 | 2017-07-05T13:03:57 | 2017-07-05T13:03:57 | 99,896,630 | 1 | 1 | null | 2017-08-10T07:51:52 | 2017-08-10T07:51:52 | null | UTF-8 | Python | false | false | 3,343 | py |
import webob.exc
from hsm.api import extensions
from hsm import db
from hsm import exception
from hsm.openstack.common import log as logging
from hsm.openstack.common import timeutils
from hsm import utils
LOG = logging.getLogger(__name__)
authorize = extensions.extension_authorizer('storage', 'services')
class Se... | [
"yuan.zhou@intel.com"
] | yuan.zhou@intel.com |
dd189af651c79002cd632c915e1dd70d79d565d8 | cfb24bc7ab53e79518f54e552f02979843097b3e | /analysis/NT_waterPercentCalcTool.py | 0efaae47033ab37892bb4043aa3631c961b376de | [] | no_license | b7j/DRLMRepo | 3305e9ae449e03cda3684e7f01b89a2ec3eddfc7 | c889c9cd530245773c7b552b36e8f8435bc59669 | refs/heads/master | 2021-01-18T07:56:51.933126 | 2016-01-18T04:16:38 | 2016-01-18T04:16:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,331 | py | #!/usr/bin/env python
"""
Calculate water count as a percentage of all observations
"""
import argparse
from rios import applier
#function to get cmd line inputs
def getCmdargs():
p = argparse.ArgumentParser()
p.add_argument("--infile", help="input file")
p.add_argument("--outfile", help="output")
cm... | [
"grant.staben@nt.gov.au"
] | grant.staben@nt.gov.au |
ff8f86292617a8597edc809076063b0f6261283c | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/cv/SiamFC/src/dataset.py | 83c8e8c6e3e8ce864c6d87af664d12aa08b25bc6 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 5,068 | py | # Copyright 2021 Huawei Technologies Co., Ltd
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to... | [
"chenhaozhe1@huawei.com"
] | chenhaozhe1@huawei.com |
3289483dd8a5b66b32a7ef75b2909f8266588ad9 | 4dbe500e89d35051f9a9ade4343a24d932fbd90b | /utils/CapacitorSense.py | fc17d8473ed1f954016ea193b37fbb555acf90e2 | [
"MIT"
] | permissive | basimkhajwal/RaspberryPi | 4b9de905f553960f687478ff7a8f7cfa61d2fa98 | 1e9a9fbfe201f0fe642613c9fe784e2104b79dcf | refs/heads/master | 2021-01-01T15:59:55.945267 | 2015-08-09T09:21:14 | 2015-08-09T09:21:14 | 28,642,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | import RPi.GPIO as g
SEND_PIN = 4
TIME_OUT = 10000
def setupCapacitorSense(pin):
global SEND_PIN
SEND_PIN = pin
g.setmode(g.BCM)
def discharge(pinNum):
g.setup(pinNum, g.OUT)
g.output(pinNum, g.LOW)
def capacitorSense(pinNum):
discharge(SEND_PIN)
discharge(pinNum)
g.setup(pinNum, g.... | [
"basimkhajwal@gmail.com"
] | basimkhajwal@gmail.com |
20854815fa9eda8c5b3834f842d820c263c2b27d | f6e0761d8e95bf274a058437803607c6bc9fe473 | /algos/train.py | 1b6be98fb351a6b25ddc4e1f1faeecf5898e06e5 | [
"Apache-2.0"
] | permissive | HekpoMaH/algorithmic-concepts-reasoning | b6c54e4d64e7801b08429941c3949225b1046f13 | 17c87faad2fbe8481455de34a145a4753a2fe4d0 | refs/heads/master | 2023-06-29T18:46:39.134524 | 2021-07-15T16:30:44 | 2021-07-15T16:30:44 | 384,510,679 | 25 | 1 | null | null | null | null | UTF-8 | Python | false | false | 9,361 | py | """
Script to train models.
Usage:
train.py [--algos=ALGO]... [options]
Options:
-h --help Show this screen.
--use-TF Use Teacher Forcing or not during training. Not
using it, would add a GRU cell at the GNN update
... | [
"dobrikg666@gmail.com"
] | dobrikg666@gmail.com |
0d3f557b43efbcac584e45ddcbba1b34fb2f82e5 | f93e22a5d5cf00544ca4091d0cbc5c4bc40beb8e | /ex29.py | 62498f5d3b6ba63d9b5c7a2797c3add5d4010ab7 | [] | no_license | hyh840819/h3 | ea9f44061e1d5729fd103fe7e873415995e0035d | 9220450e45b7af895f710ce77599b8974c1bc8a6 | refs/heads/master | 2020-04-07T08:52:54.563053 | 2018-11-19T13:53:58 | 2018-11-19T13:53:58 | 158,231,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | people = 20
cats = 30
dogs = 15
if people < cats:
print("Too many cats! The world is doomed!")
if people > cats:
print("Not many cats! The world is saved!")
if people < dogs:
print("The world is dry!")
if people > dogs:
print("The world is dry!")
dogs += 5
if people >= dogs:
print("People a... | [
"hyh@GCDCH.lan"
] | hyh@GCDCH.lan |
d8d3d453e04ceda4bf51fc916da07205ed182225 | 9c9b2a8074e976814f7773c19980e77efda53371 | /infomatics/массивы/d.py | 2a755d897f0ee488eab6e95ebc010632c04b5fc2 | [] | no_license | nazkeyramazan/hw | 451b692a9001e5f6087785f8b2b6215f9af90956 | f8d9e11463a1a4181b24df95f6d0a501ec8441a7 | refs/heads/master | 2023-01-08T00:25:31.335217 | 2020-04-24T00:14:57 | 2020-04-24T00:14:57 | 248,481,581 | 0 | 0 | null | 2023-01-07T17:23:44 | 2020-03-19T11:06:53 | Python | UTF-8 | Python | false | false | 176 | py | n = input()
s = input()
data = s.split()
temp = int(data[0])
k = 0
for i in range(len(data)):
if temp < int(data[i]):
temp = int(data[i])
k += 1
print(k) | [
"nazkeyramazan@gmail.com"
] | nazkeyramazan@gmail.com |
d737f53dc33062761b45567992c4853639e72b21 | d1b1184fee07edcf5fb5fe0ae1c2c31964545178 | /capitolzen/users/migrations/0009_auto_20171118_1454.py | a8e30fd9f1224ae85036cbf077653ceb0f7a4d68 | [] | no_license | CapitolZen/CapitolZen-Backend | d3bc64e3cff6d887fa97fe04b67b761b04aa850a | 604a5c5d933815ab4b51b3f24b1cbd0b71c18133 | refs/heads/master | 2021-09-16T00:15:34.529015 | 2018-06-13T15:41:16 | 2018-06-13T15:41:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.6 on 2017-11-18 19:54
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('proposals', '0036_bill_cosponsors_dups2'),
('users'... | [
"djwasserman@gmail.com"
] | djwasserman@gmail.com |
4254173570e3eee3dc26eb055cdeb90b9e523c73 | 10356bdea212035d71a5d310bf798962ab7c3cee | /문제300/문제91-100.py | 99be99f93038daa81b34b473a2350de40be72f63 | [] | no_license | name165/300prob | 1ded94619a6b2b4f7539ff7e5aef53b00c8ef987 | cd63335c73c4bd7481a95e8e30a60daffdf212ad | refs/heads/master | 2023-06-13T03:15:10.791890 | 2021-07-10T08:11:41 | 2021-07-10T08:11:41 | 363,336,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | #91
inventory = {"메로나": [300, 20], "비비빅": [400, 3], "죠스바": [250, 100]}
print(inventory)
#92
print(inventory["메로나"][0], "원")
#93
print(inventory["메로나"][1], "개")
#94
inventory['월드콘'] = [500, 7]
print(inventory)
#95
icecream = {'탱크보이': 1200, '폴라포': 1200, '빵빠레': 1800, '월드콘': 1500, '메로나': 1000}
lis = list(icecream.keys())
p... | [
"1234@ruu.kr"
] | 1234@ruu.kr |
a39a3955c32ebd19a52c15a123063afe5b0c659f | 9d9897f6a400f13945e6f45114dd2b528e171269 | /Data Structures and Algorithms/First Index Of Element Using Recursion Using Index.py | 2fc7c50978aac559d9466f789dfecb97a199ed7f | [] | no_license | shahbaz181990/MyPythonCodes | 4b56d4cc6ce4adf1513f5021a64fc7da474e62f1 | 5650f69e29622b55412d45d5cd4ff36d5d7bef77 | refs/heads/master | 2022-12-17T09:25:55.722137 | 2020-07-07T06:56:33 | 2020-07-07T06:56:33 | 277,568,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 366 | py | def firstIndex(arr, x, si):
l = len(arr)
if si == l:
return -1
if arr[si] == x:
return si
op = firstIndex(arr, x, si + 1)
return op
# Main
from sys import setrecursionlimit
setrecursionlimit(11000)
n=int(input())
arr=list(int(i) for i in input().strip().split(' '))
si = int(input())... | [
"shahbazshaikh1990@yahoo.com"
] | shahbazshaikh1990@yahoo.com |
8297c1cd649f32897877433fe43a585f83a07d0a | 63d6ca98653d2b77691960a5a1af21795e7d752e | /main.py | a04c2fe5dce205b32a788c6a959dada2adc10159 | [] | no_license | LeoKavanagh/dublin-forecast | 19eff1393fa722985ab957d58295d86df299b592 | 722d3fdbc388114750fee17454d6e77f6829cd82 | refs/heads/master | 2023-08-03T21:56:55.752057 | 2022-12-10T23:59:35 | 2022-12-10T23:59:35 | 233,704,646 | 0 | 0 | null | 2023-07-25T20:48:51 | 2020-01-13T22:13:57 | Python | UTF-8 | Python | false | false | 635 | py | import os
import requests
from lxml import html
def get_dublin_forecast():
url = 'https://www.met.ie/forecasts/dublin'
page = requests.get(url)
tree = html.fromstring(page.content)
dublin = tree \
.xpath('/html/body/div/div[1]/section'
'/div/div[1]/div[1]/p[4]/text()')[0] \
... | [
"leok90@gmail.com"
] | leok90@gmail.com |
b940481b0759bcba75f4f7b4bdfb26031e028840 | 8d9cd15eee6013461f02b9aa46f0ac792c0a0acb | /GLUECode_Service/ML_Utils/__init__.py | 089108a38548b446c8ef758fd784b5089a4b4e53 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | lanl/GLUE | c8f3e942b0be11054bc48cb46f4bcb730920eea0 | 4241b581a4544b6ee50803f8b51ccabfb15d1b0e | refs/heads/main | 2023-04-06T14:56:28.340056 | 2022-12-07T14:55:16 | 2022-12-07T14:55:16 | 476,812,171 | 3 | 6 | NOASSERTION | 2022-12-23T17:45:49 | 2022-04-01T17:29:17 | Python | UTF-8 | Python | false | false | 38 | py |
import nn_learner
import rf_learner | [
"apachalieva@lanl.gov"
] | apachalieva@lanl.gov |
0fdc9e6d551890e0e2a34dc9116c567f50767d41 | adafccfb21985ddd6a88c9459d6391d04e3e5e26 | /kojima.py | 3db3571067ac137b5021f5bea0f1122fb8267cde | [] | no_license | Hose270/Kojima-Name-Generator | a79db503d0a4f9c1b8b21c83e87b16bf7dd8f33e | ba2e1be5a8f59bf098254a44909f7d0ee18b48e5 | refs/heads/master | 2020-09-08T09:28:33.595272 | 2019-11-12T00:18:22 | 2019-11-12T00:18:22 | 221,094,178 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,863 | py | import random
print("Welcome to the Automated Kojima Name Generator.")
print("As a Kojima character, you may have multiple names.")
print("Determining how many names you have...")
randnum1 = random.randrange(1,6)
if randnum1 == 6:
print("You have one name and six alternate names. After completing this gener... | [
"noreply@github.com"
] | Hose270.noreply@github.com |
ef78e98a09ae3fe21dcc1b6b0286dd42dddd2b12 | 252621784d24992db1ea51760bcccc89c878dd09 | /checking_for_blur.py | ea4c71cca21a9ae0faa13e0a978f40d99d4e2133 | [] | no_license | SamuelZachara/Clarendon_filter_reverse_engineering | 4b007a46508a6958f44b3ccdff2e8569cedcdabd | b97cbb2d2a6ec97e09f1d752b3f5c21a94862f0d | refs/heads/master | 2020-04-11T16:13:24.269969 | 2018-12-15T15:18:02 | 2018-12-15T15:18:02 | 161,916,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,170 | py | try:
from PIL import Image
except ImportError:
import Image
import os, sys
img_black = Image.open('filtered/solid_000000.png').convert('RGB')
img_white = Image.open('filtered/solid_FFFFFF.png').convert('RGB')
img_black_original = Image.open('original/solid_000000.png').convert('RGB')
img_white_original = Ima... | [
"noreply@github.com"
] | SamuelZachara.noreply@github.com |
a982750f34a5889801079883f97dd27aad027d9e | 813ab64cfaba9b543c7b2df38b7217e4f484b6c8 | /recip/storage/Storage.py | 3578c675d02dfa972bd3661e0338f21bbe475033 | [
"MIT"
] | permissive | anthonybuckle/Reciprocity-Core | 83089b41e00af532c440b6676b6d901fb9ea1b73 | 3254073f44e8fe2222aed9879885a2e609d4044a | refs/heads/main | 2022-12-25T18:00:19.476519 | 2020-10-03T19:37:35 | 2020-10-03T19:37:35 | 300,916,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,200 | py | from threading import Lock
from recip.util import Config
from recip.util import DataType
from recip.util import Log
import lmdb
class Storage:
def __init__(self, database, subDatabase=None):
self.database = database
self.subDatabase = subDatabase
self.db = None
self.subDb = None
... | [
"anthonybuckle@Anthonys-MacBook-Air.local"
] | anthonybuckle@Anthonys-MacBook-Air.local |
8eeaa0ca64e1bf2b2d43b5a3ce16af064f666d4a | 67a442ecabcdca9f54f5920874d0095d57f98ede | /gewittergefahr/gg_utils/dilation_test.py | ffb5a2725b02b9dd7ffdc08e4b856685a7be3f54 | [
"MIT"
] | permissive | thunderhoser/GewitterGefahr | 58ba3446c1cc154f56c12c4354dff05b34c12b13 | 1835a71ababb7ad7e47bfa19e62948d466559d56 | refs/heads/master | 2022-07-23T06:47:13.883598 | 2022-07-15T12:43:48 | 2022-07-15T12:43:48 | 104,016,785 | 29 | 13 | MIT | 2020-12-18T20:44:33 | 2017-09-19T02:37:21 | Python | UTF-8 | Python | false | false | 2,662 | py | """Unit tests for dilation.py."""
import unittest
import numpy
from gewittergefahr.gg_utils import dilation
TOLERANCE = 1e-6
SMALL_PERCENTILE = 12.5
LARGE_PERCENTILE = 87.5
DILATION_HALF_WIDTH_IN_PIXELS = 1
INPUT_MATRIX = numpy.array(
[[-20., -15., -10., -5., 0.],
[-10., -5., 0., 5., 10.],
[0., 5., 10.... | [
"ryan.lagerquist@ou.edu"
] | ryan.lagerquist@ou.edu |
1b1e6aeb37ad7d24e7758ebda4a967bed305b19e | e9badfc473218a65d87d516011fc4fcde0086270 | /test/consumers/listen.py | 97ad5f8e26c568707e7a938e6ca44f84193a628a | [] | no_license | dlf-dds/simplestack | 6a5bcb7be42d7b003ec56feb2f0a3bb7a45a464a | 231967091a3a8167fc1ef296b013008dbde99c2b | refs/heads/master | 2023-03-07T07:55:10.746462 | 2021-02-24T03:39:56 | 2021-02-24T03:39:56 | 341,301,722 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,679 | py | from datetime import datetime, timedelta
import json
import boto3
from botocore.exceptions import ClientError
import os, sys
import time
sys.path.append(os.path.join(os.path.dirname(__file__), '../..'))
from test.consumers.localconfig import config as kinconfig
def get_kinesis_data_iterator(stream_name=None, minutes_... | [
""
] | |
22dc3c5bbcba175591d6beefbe7927a9a8a90906 | b632d8cb122e098945e70f608517b2715eaee224 | /services/facedetection/facedetection_fromwebcam.py | 3ac452cde7de80eaae2e8fef4517f1d73220bc4f | [
"Apache-2.0"
] | permissive | lordlothar99/angus-doc | 0155cc109487593853e90f4757a1693f06db9427 | 75b9b955ae273f634c8f91016859d9f30c74f0d6 | refs/heads/master | 2021-01-14T08:34:49.084929 | 2015-07-22T14:21:10 | 2015-07-22T14:21:10 | 39,728,683 | 0 | 0 | null | 2015-07-26T14:39:05 | 2015-07-26T14:39:04 | null | UTF-8 | Python | false | false | 1,364 | py | #!/usr/bin/env python
import cv2
import angus
if __name__ == '__main__':
### Web cam index might be different from 0 on your setup.
stream_index = 0
cap = cv2.VideoCapture(stream_index)
if not cap.isOpened():
print "Cannot open stream of index " + str(stream_index)
exit(1)
pr... | [
"gwennael.gate@angus.ai"
] | gwennael.gate@angus.ai |
02a16f9146f626fe8d119a1d7df6c6e3e0c3e5cf | 4793cd9fff4d7f2f34e08880e657f886d0089879 | /obtineDescriptoriExemplePozitive.py | 02ee47a2261bc23ce9373c6133f2e7c461115160 | [] | no_license | SurrealEverything/Face-Detection | f2379b5d620b93bb89965ee37d0da9371e154516 | 28011ab4976b99142683c360c18c099105ae2a03 | refs/heads/master | 2020-04-15T01:55:38.351893 | 2019-01-11T19:27:42 | 2019-01-11T19:27:42 | 164,296,619 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,637 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Tue Dec 25 15:17:55 2018
@author: gabriel
"""
import numpy as np
import cv2
import pathlib
def obtineDescriptoriExemplePozitive(parametri):
"""
descriptoriExemplePozitive = matrice NxD, unde:
N = numarul de exemple pozitive de antrenare (fet... | [
"noreply@github.com"
] | SurrealEverything.noreply@github.com |
39d1538ea860dc25dadc47eab812b0f96ef7a6e8 | 8ba5b57e191312601d0324e58dd2c59d1ed9c821 | /bifrost/__init__.py | bda370a45a0f621ffebfdab8c47ebe90707f77a3 | [] | no_license | gutierrydsn/bifrost-httpserver | 105b0ee6b778b9cbe0407d8e2c13989928f3a478 | 29513f3fac1b6e920dd2687ed10baa6de83311e2 | refs/heads/master | 2021-10-26T00:36:32.591566 | 2019-04-09T00:51:38 | 2019-04-09T00:51:38 | 121,187,929 | 1 | 1 | null | 2018-02-22T14:20:12 | 2018-02-12T01:56:19 | Python | UTF-8 | Python | false | false | 26 | py | VERSION = (0, 1, 0, None)
| [
"gutierrydsn@hotmail.com"
] | gutierrydsn@hotmail.com |
c24903effb648177524e2e48f7b0d39f7732c27d | 541b606962881272c7899415a9208bca3a0ff901 | /Project2/detection/yolo3/utils.py | 4a378f7c12a23d65947f6b210d119dce708111b0 | [] | no_license | Caramelo18/VCOM-Projects | 7c11b10c7a380952a01152c28db4211ae85a42d0 | e024b6e10f725e5ee66b614548738c8eed8bb10e | refs/heads/master | 2020-04-02T13:25:53.238629 | 2019-01-08T17:09:49 | 2019-01-08T17:09:49 | 154,480,746 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,875 | py | """Miscellaneous utility functions."""
from functools import reduce
from PIL import Image
import numpy as np
from matplotlib.colors import rgb_to_hsv, hsv_to_rgb
def compose(*funcs):
"""Compose arbitrarily many functions, evaluated left to right.
Reference: https://mathieularose.com/function-composition-in-... | [
"fabiocaramelo18@gmail.com"
] | fabiocaramelo18@gmail.com |
570d5e82d5c6785c52442478d82a296869969b12 | 82b946da326148a3c1c1f687f96c0da165bb2c15 | /sdk/python/pulumi_azure_native/authorization/v20180501/policy_set_definition_at_management_group.py | 319473b88f6f90a3be594135a1f64be8fef76212 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | morrell/pulumi-azure-native | 3916e978382366607f3df0a669f24cb16293ff5e | cd3ba4b9cb08c5e1df7674c1c71695b80e443f08 | refs/heads/master | 2023-06-20T19:37:05.414924 | 2021-07-19T20:57:53 | 2021-07-19T20:57:53 | 387,815,163 | 0 | 0 | Apache-2.0 | 2021-07-20T14:18:29 | 2021-07-20T14:18:28 | null | UTF-8 | Python | false | false | 16,443 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | morrell.noreply@github.com |
3362ddcbb92b322290f4639c343a80ac56165d15 | a94be4b6b68f293f7ec546cae40dc25515352a8c | /worthy_service/catalog_service.py | c09af1a432fe1b0cce40a44cefaaa85f326ed7bc | [] | no_license | denniszhoujian/worthyback | bbd7129adaf96b5a16149553ad82d5f70b7afbb2 | d55ebde09574078a96d44919b79fa6e273c92999 | refs/heads/master | 2021-01-21T14:04:25.536192 | 2016-05-31T12:47:30 | 2016-05-31T12:47:30 | 45,192,842 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,402 | py | # encoding: utf-8
import dbhelper_read
import sku_index_access,sku_service, service_config
from datasys.memcachedHelper import memcachedStatic
from worthy_analytics import common_analytics
from utils import regex_dict_helper, collection_utils
mc = memcachedStatic.getMemCache()
P_VALUE_BLACK_LIST = [
u'其他', u'其它'... | [
"271393@qq.com"
] | 271393@qq.com |
544770342c2dde735ba79dafcd7ca0d7bf54d5d1 | 5a613faa4b257add5c5d057c3dbabcdd39e66a2c | /config.py | 53afe3ba4e9f3cb05a52c5b4857b0e2404d8fd9b | [] | no_license | mmk687/mysql_scanner | 7e227c37498dc5bf75c50cf7a1cf4d9405257275 | 06c18d09f6e137783aa1c35d0a2d5c1aa3c9a818 | refs/heads/master | 2020-06-19T12:25:23.803088 | 2019-06-23T15:54:01 | 2019-06-23T15:54:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 453 | py |
""" 运行设置 """
ipcmd = "3306.txt"
port = 3306
usercmd = "dic_username_mysql.txt"
passcmd = "dic_password_mysql.txt"
THREAD = 20
TIMEOUT = 1.0
PRINTALL = 1
""" 数据库设置 """
# ----- 1 主机连接信息
HOST = "119.3.55.220"
PORT = 6789
USER = "4287e7ae11008807e536c6283f82ea2f"
PASSWORD = "2tU4yyHkwu"
# ----- 2 数据库... | [
"juaran@foxmail.com"
] | juaran@foxmail.com |
22393b19c5fb7be5e9fe08ffa8f211847a997248 | 48e124e97cc776feb0ad6d17b9ef1dfa24e2e474 | /sdk/python/pulumi_azure_native/network/v20201101/get_load_balancer.py | fd9af3d72c16c5bbcb5d9fd47aa696d0901401e7 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | bpkgoud/pulumi-azure-native | 0817502630062efbc35134410c4a784b61a4736d | a3215fe1b87fba69294f248017b1591767c2b96c | refs/heads/master | 2023-08-29T22:39:49.984212 | 2021-11-15T12:43:41 | 2021-11-15T12:43:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,378 | py | # coding=utf-8
# *** WARNING: this file was generated by the Pulumi SDK Generator. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
fro... | [
"noreply@github.com"
] | bpkgoud.noreply@github.com |
287bfff4c301f0789b34977c1307afdf42f0f6b5 | ac2229b4657e69b1502b9fd6760c089410e035e3 | /33. pascalTree.py | 1be8d7237f1891126824dfc384b7e3de2ba14dd0 | [] | no_license | ankitk2109/LeetCode | 4a192804d69f3f056838a46ede29a79e0d2adc45 | 1ed647982e9b5ee9af0a2e2dd905461a010d2dfb | refs/heads/master | 2021-07-04T11:00:10.497368 | 2021-05-09T11:43:46 | 2021-05-09T11:43:46 | 232,608,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 595 | py | #PS: https://leetcode.com/problems/pascals-triangle/submissions/
class Solution:
def generate(self, numRows: int) -> List[List[int]]:
res = []
if numRows == 1:
return [[1]]
for i in range(1,numRows+1):
cur_row = [1]*i #initializing all t... | [
"ankitk2109@gmail.com"
] | ankitk2109@gmail.com |
99efb5dfc673fb87e757158b477d4a8646110efb | 3ba314ca88e89dded85a3448e730e215c47f3ceb | /allSkyImagingModule/other/plotBaselines.py | 2c3c09dff5104d0bbd0786c6549548e32e0cdff4 | [] | no_license | David-McKenna/allSkyImaging | 9f3dc5984541a6d39617dd5fd583654d0901d685 | e20a4bb48cca7814c32326177c121e149664764c | refs/heads/master | 2021-07-06T11:28:58.345222 | 2019-02-06T13:21:06 | 2019-02-06T13:21:06 | 166,459,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,067 | py | """Summary
Attributes:
custom_debug (list): Debug list of activated station, increasing in order from 0 to 15 to ensure correct selections
Effelsberg_elements_20091110 (list): Effelsberg HBA tile activations
Generic_International_Station_20091110 (list): Generic HBA tile activations
"""
import matplotlib.p... | [
"mckennd2@tcd.ie"
] | mckennd2@tcd.ie |
70c71c2ad3631f21a4c22b0233a232f9a6806161 | 9a4e0678a30e8f187663f10c287af4bfa8778f46 | /pypeline/utils.py | 692003fef3e4b2ba144e1c7fb5817e2b260a9f7a | [] | no_license | t00n/pypeline | 0dafb571c74250c2441c99441125b06eca5ece51 | a8e48ff1545b1e622b9f37cd237c94c7a874ffd6 | refs/heads/master | 2020-03-15T12:21:46.485907 | 2018-05-29T14:39:44 | 2018-05-29T14:39:44 | 132,142,091 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 374 | py | from datetime import datetime
from dateutil.parser import parse as date_parse
def to_datetime(d):
if isinstance(d, str):
return date_parse(d)
elif isinstance(d, int) or isinstance(d, float):
return datetime.fromtimestamp(d)
elif isinstance(d, datetime):
return d
else:
... | [
"kelkununtel@hotmail.com"
] | kelkununtel@hotmail.com |
ee390771c7eb19d64e83a1321f36e47b1cc370e0 | 3a3f4477a517c9757432042ceb4939f37762c2a4 | /PatternMatching/pattern.py | fbf0b7c65a6264e02d5feb7ad865bf5fce72d855 | [] | no_license | marathohoho/leetcode-progress | f351ad89905c8e61fd5b5adff62320ce8ba9645d | 13b298c1074328c130724e328d7c22be642903cb | refs/heads/master | 2020-12-24T01:39:15.117334 | 2020-04-06T20:20:16 | 2020-04-06T20:20:16 | 237,339,061 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,823 | py | """
You are given two non-empty strings.
The first one is a pattern consisting of only "x"s and / or "y"s; the other one is a normal string of alphanumeric characters.
Write a function that checks whether or not the normal string matches the pattern.
A string S0 is said to match a pattern if replacing all "x"s in the p... | [
"codmarat@gmail.com"
] | codmarat@gmail.com |
e1693fa0ce8a01fcb25ae182cd11423517e0f616 | b12ffed1e2ee4ad8bf74abb412e772aad2a195d8 | /data_wrangle/src/parse_excel.py | 1adfe06ab50c3769a13d761c3cb8c2a73ca22385 | [] | no_license | scuate/MOOC | 744f4ea2b53f47a4109251f6d82b1f462b025595 | f72018171ac7565d4251c0f89319e20c3ab0fbc8 | refs/heads/master | 2020-06-09T06:20:37.040541 | 2015-12-28T01:42:01 | 2015-12-28T01:42:01 | 37,950,045 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,646 | py | ##get the max loads across all stations in the xls datafile
import xlrd
import os
import csv
from zipfile import ZipFile
datafile = "2013_ERCOT_Hourly_Load_Data.xls"
outfile = "2013_Max_Loads.csv"
def open_zip(datafile):
with ZipFile('{0}.zip'.format(datafile), 'r') as myzip:
myzip.extractall()
def par... | [
"xuexiaosu@gmail.com"
] | xuexiaosu@gmail.com |
11bd179b9acf6d6f2616212cfc4986320e7d7bfd | 0b060b277b25a96df124657e24839c64df685594 | /manage.py | 1481c6e260e0f48afa22beb3ef4fe04094b77a38 | [] | no_license | xaw-roz/Django-twitter-data-analysis | 3f2f28eb4fcc9e514e83d5f700be317ff808333e | aac5923ef2def79863d9ab06278c10cd08096b4b | refs/heads/master | 2020-03-19T09:10:59.711639 | 2018-06-07T03:29:48 | 2018-06-07T03:29:48 | 136,266,466 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "twitter_data_collector.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't impo... | [
"rockstar_saroj@yahoo.com"
] | rockstar_saroj@yahoo.com |
ec0d9251a4520617eda6e97e4858c66f73191954 | 66225270641e3b96ef88ce8d940e5a1b36e74460 | /user_app/api/permissions.py | 10e224f3921b8645f542f77f715ff36511bdf972 | [] | no_license | illiasibrahim/backend-via | dcf9b6e4350951b1f67bbb15dd0710f03521e3e3 | a832c52b965542fc9e84fbb0b7ee319521787735 | refs/heads/master | 2023-08-10T20:13:14.220933 | 2021-10-13T06:09:03 | 2021-10-13T06:09:03 | 416,613,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 187 | py | from rest_framework import permissions
class IsAddressAuthor(permissions.BasePermission):
def has_object_permission(self, request, view, obj):
return obj.user == request.user | [
"illiasibrahim6@gmail.com"
] | illiasibrahim6@gmail.com |
e8bcb3b3cb93588bc8e232a2e53e655898b06d78 | 21da99050c676819660dbd138f4ecbc64b470c22 | /demo1.py | c73c6ea0e84e760d5535a12917c270d1730ef6bc | [] | no_license | ChaconFrancoLuis/Academia-Repo-Disenos | b8efe94d4661aa785a8ff366b220bed6b5597133 | aa1b1f6b2c26443bad7b2118fb163dfe2c92c926 | refs/heads/master | 2022-11-10T10:16:39.227824 | 2020-07-10T02:17:13 | 2020-07-10T02:17:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py |
Ios_device = {"address":"192.168.0.11",
"netconf_port":830,
"retconf_port":443,
"username":"cisco",
"password":"cisco123!"}
| [
"francofer7775@gmail.com"
] | francofer7775@gmail.com |
2282c152c06546a82f340c485eafb5b3ed595424 | f124cb2443577778d8708993c984eafbd1ae3ec3 | /saleor/graphql/checkout/mutations/__init__.py | 7718967b325810e573ce4fd4fe617dcc87905933 | [
"BSD-3-Clause"
] | permissive | quangtynu/saleor | ac467193a7779fed93c80251828ac85d92d71d83 | 5b0e5206c5fd30d81438b6489d0441df51038a85 | refs/heads/master | 2023-03-07T19:41:20.361624 | 2022-10-20T13:19:25 | 2022-10-20T13:19:25 | 245,860,106 | 1 | 0 | BSD-3-Clause | 2023-03-06T05:46:25 | 2020-03-08T17:44:18 | Python | UTF-8 | Python | false | false | 1,556 | py | from .checkout_add_promo_code import CheckoutAddPromoCode
from .checkout_billing_address_update import CheckoutBillingAddressUpdate
from .checkout_complete import CheckoutComplete
from .checkout_create import CheckoutCreate
from .checkout_customer_attach import CheckoutCustomerAttach
from .checkout_customer_detach impo... | [
"noreply@github.com"
] | quangtynu.noreply@github.com |
838f2f8902ca4fdcf743b209c0a1ff7c7ab3412d | 229ed0dad61f9e855de604c230d034a0bd9b3882 | /EdabitPractice/evenOddCounter.py | 06c675245b08e406cfb9c3b1124f90e1dd4de379 | [] | no_license | Darrenrodricks/EdabitPythonPractice | 987d534dd149ddaef6219df381df850eabbe80b2 | c1be8b10a6fcc1085640a1128f022c05fb2890a9 | refs/heads/main | 2023-07-17T00:36:43.772435 | 2021-08-31T16:24:07 | 2021-08-31T16:24:07 | 400,630,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | # Python program to count Even and Odd numbers in a List
# Input: list1 = [2, 7, 5, 64, 14]
# Output: Even = 3, odd = 2
a = 0
b = 0
list1 = [2, 7, 5, 64, 14]
for i in range(0, len(list1)):
if i % 2 == 0:
a += 1
else:
b += 1
print("There are {} Even, and {} Odd".format(a, b)) | [
"noreply@github.com"
] | Darrenrodricks.noreply@github.com |
24c25ead6a54afb83aaae32793c5fe1b094a1445 | bb57ff81cd01e6c62e8f1ef47a6e172424cb8675 | /NLP Specialization/NLP with Probabilistic models/Week 1/Auto_Correct.py | ac9f53dac9002a95b6cf3489c36f5c4bb02f1e63 | [] | no_license | RohitRathore1/Repo-2020 | b6dd87a25e714e3be3bfd76b1f0d04515be75de5 | 8c36669bcecb74ef6a962f71fd8038c443204c30 | refs/heads/master | 2022-11-23T23:12:02.120981 | 2020-07-29T06:36:51 | 2020-07-29T06:36:51 | 251,401,730 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 54,574 | py | #!/usr/bin/env python
# coding: utf-8
# # Assignment 1: Auto Correct
#
# Welcome to the first assignment of Course 2. This assignment will give you a chance to brush up on your python and probability skills. In doing so, you will implement an auto-correct system that is very effective and useful.
# ## Outline
# - [0... | [
"rohitrathore.imh55@gmail.com"
] | rohitrathore.imh55@gmail.com |
f89f1ded358f684cfea5a04737b4a6369bd9f99b | b2f7d3c8b8e5eee108a600b611183bdb5c0399da | /GIT/Data Structures/Chess Board/knight_tour.py | e6ced2bee0f84ab08c5534243fc53565c3122703 | [] | no_license | yellowRanger1111/Algorithm-and-Data-Structures | ca39566d8d4236bcaffe1a12fff18a1e24eaa760 | 0f3a2ebb6309e46117de66e5b4c799f70f6ec9cb | refs/heads/main | 2023-09-03T09:22:27.248617 | 2021-10-16T07:09:14 | 2021-10-16T07:09:14 | 417,740,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,840 | py | #getting the tour class
from tour import Tour
#creating the knight object
knight = Tour()
#initialize the loop
quitted = False
# knight.move_knight(2,1)
# knight.move_knight(2,5)
# knight.show_tour()
# knight.delete_pos((2,5))
# knight.show_tour()
while not quitted:
#what the user want to do?
... | [
"noreply@github.com"
] | yellowRanger1111.noreply@github.com |
9cca242910678dbdb4fce620cc6f69091f65087c | 539b031a4edd1aec31af5b6658f25a0de03776a4 | /strings_and_text/sub_re_groups1.py | b91fbc11289d3b5f5a17a2b714d35dde5bec785c | [] | no_license | leogtzr/python-cookbook-code-snippets | c517e7f14e468e1aa8def71d3389348150d43085 | a3f189c26ba38bc982dd140b3b4d6326b39671dc | refs/heads/main | 2023-01-23T07:16:30.292456 | 2020-11-28T04:29:42 | 2020-11-28T04:29:42 | 309,217,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 477 | py | import re
from calendar import month_abbr
def change_date(m):
mon_name = month_abbr[int(m.group(1))]
return '[{}] ({}) |{}|'.format(m.group(2), mon_name, m.group(3))
datepat = re.compile(r'(\d+)/(\d+)/(\d+)')
text = 'Today is 11/27/2012. PyCon starts 3/13/2013.'
# a substitution callback function
print(dat... | [
"leogutierrezramirez@gmail.com"
] | leogutierrezramirez@gmail.com |
e6a1d1e2537da737dd5945f13b9c80f2178437ad | 0c6bacd871337375c0c67dae003ebebd3bd58da3 | /ReadnPlot_CourtCaseData_Boxplt.py | 1f454b3e8f220a01451f23fd792f33043d1990cc | [] | no_license | 7676444908/Python_Plots | 3ac3354bae72c07ab9afcf1896755ed3398684b4 | d8627634995a2705991bee99bda3cca952027a73 | refs/heads/main | 2023-08-31T13:22:59.394302 | 2021-10-02T07:59:19 | 2021-10-02T07:59:19 | 412,438,017 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 282 | py | #import library
import pandas as pd
import matplotlib.pyplot as plt
#add csv file to dataframe
df = pd.read_csv('LIMBS_Ministry_Wise_Court_Case_Data_2021.csv')
#create boxplot
boxplot = df.boxplot(figsize = (5,5))
plt.show()
plt.savefig('MinistryVsTotalNumberOfcases_Boxplt.png')
| [
"noreply@github.com"
] | 7676444908.noreply@github.com |
9f6fbd9a7403ab1554b410967fdf106ad6d85420 | 1a3f53438a1597b4aa930c91740cd8db72c66fcf | /payments/models.py | 42a4c7e5491d02b81fe035af576d7ac0ccf6cfc8 | [] | no_license | milad-ghr/strips_project | de898afef145cccb149f4f68794dc61831ee03f8 | ddc985b36fc704aa803ee82dfbc271b8fd5794ec | refs/heads/master | 2023-07-15T09:10:52.572753 | 2021-08-26T12:21:33 | 2021-08-26T12:21:33 | 399,731,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,111 | py | from django.db import models
from django_cryptography.fields import encrypt
from products.models import Product
from users.models import Subscription, StripsCustomer
class PaymentsManager(models.Manager):
pass
class PaymentsManagerWithNoDeleted(models.Manager):
def get_queryset(self):
return super... | [
"gholamrezaei.milad@gmail.com"
] | gholamrezaei.milad@gmail.com |
0998ba915d80be9aaf99b9cef30acdb467528d1c | 2e145222a18d4509d937951f5cec4df0e26ee86f | /vas/gemfire/CacheServerInstances.py | 9405a719dd10335d0ccd1c552ba07c8a6ef1c57d | [
"Apache-2.0"
] | permissive | vdreamakitex/vas-python-api | 7627b7e3fcf76c16b1ea8b9fb670fdb708eff083 | ce7148a2044863e078e78b47abbaafc426f732ee | refs/heads/master | 2021-01-18T05:13:25.459916 | 2012-11-05T09:58:45 | 2012-11-05T09:58:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,867 | py | # vFabric Administration Server API
# Copyright (c) 2012 VMware, Inc. 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
... | [
"bhale@vmware.com"
] | bhale@vmware.com |
53bc8edebb6fabc73a2cacad23ca6d8b08fa9b0a | 16450d59c820298f8803fd40a1ffa2dd5887e103 | /baekjoon/2667.py | b85ee7659586696418e866ced977042046429337 | [] | no_license | egyeasy/TIL_public | f78c11f81d159eedb420f5fa177c05d310c4a039 | e2f40eda09cb0a65cc064d9ba9b0e2fa7cbbcb38 | refs/heads/master | 2021-06-21T01:22:16.516777 | 2021-02-02T13:16:21 | 2021-02-02T13:16:21 | 167,803,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,257 | py | """
<그림 1>과 같이 정사각형 모양의 지도가 있다. 1은 집이 있는 곳을, 0은 집이 없는 곳을 나타낸다. 철수는 이 지도를 가지고 연결된 집들의 모임인 단지를 정의하고, 단지에 번호를 붙이려 한다. 여기서 연결되었다는 것은 어떤 집이 좌우, 혹은 아래위로 다른 집이 있는 경우를 말한다. 대각선상에 집이 있는 경우는 연결된 것이 아니다. <그림 2>는 <그림 1>을 단지별로 번호를 붙인 것이다. 지도를 입력하여 단지수를 출력하고, 각 단지에 속하는 집의 수를 오름차순으로 정렬하여 출력하는 프로그램을 작성하시오.
> input
첫 번째 줄에는 지도의 크기 N(정... | [
"dz1120@gmail.com"
] | dz1120@gmail.com |
60f07cd2e6c576a0f3a3b297e0f7597fded8febc | 7d431b02b5c3de04e72f1a6ba5059531232147dc | /rlockEjemplo1Fix.py | 6f3742b133b90a4b4a5bc3d4ba8b81ae11294e0b | [] | no_license | msunh/Concurrente_deadLocksClase3_2021 | 7c9aba8d5254665a302df6a97ce314a7d7861c36 | c4e7a7211cdbe09a352e2d46efe6efce7b79313f | refs/heads/master | 2023-05-30T20:10:40.252297 | 2021-04-24T00:00:24 | 2021-04-24T00:00:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 527 | py | import threading
import logging
logging.basicConfig(format='%(asctime)s.%(msecs)03d [%(threadName)s] - %(message)s', datefmt='%H:%M:%S', level=logging.INFO)
lock = threading.RLock()
def funcA():
lock.acquire()
try:
logging.info(f'funcion A')
funcB()
finally:
lock.release()
def f... | [
"dbuaon@gmail.com"
] | dbuaon@gmail.com |
49f6016496073d31808c5ceda4ff0bb6ac102c09 | 974c5a4f101d0e6f4dfa5fc2f7c641c9d2bd8184 | /sdk/ml/azure-ai-ml/tests/compute/unittests/test_compute_operations.py | ecfc11bd07cf4aafd9e8a34abaa324d6be10f0af | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LGPL-2.1-or-later"
] | permissive | gaoyp830/azure-sdk-for-python | 4816f04c554dcffb7510a6b7044b0c86a2dd32e1 | 1c66defa502b754abcc9e5afa444ca03c609342f | refs/heads/master | 2022-10-20T21:33:44.281041 | 2022-09-29T17:03:13 | 2022-09-29T17:03:13 | 250,355,505 | 0 | 0 | MIT | 2020-03-26T19:42:13 | 2020-03-26T19:42:12 | null | UTF-8 | Python | false | false | 4,501 | py | from typing import Callable
from unittest.mock import Mock
import pytest
import vcr
from pytest_mock import MockFixture
from azure.ai.ml import load_compute
from azure.ai.ml._scope_dependent_operations import OperationConfig, OperationScope
from azure.ai.ml.entities import AmlCompute, Compute, ComputeInstance, Identi... | [
"noreply@github.com"
] | gaoyp830.noreply@github.com |
c5b2feb974eeccc764b107a02ec1e4787afc5347 | 25724c6023af28e720e0be24c265ac30b5552eb8 | /base/convertor.py | 889585323ed605ebefb17cc6109405832c4d911f | [] | no_license | imyelo/sudoager | 81e59170d64da9614901dcbb997d5a4a89da33df | b10cc197bb6a4cfd302aa80f811b5e106a02e2c1 | refs/heads/master | 2016-09-05T18:16:11.209845 | 2012-12-26T07:49:48 | 2012-12-26T07:49:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,521 | py | #coding=utf-8
# Filename: convertor.py
import math
# --Convertor--
# Decimal to Ternary
def getTer3(i, base=3):
return int(math.floor(i / (base ** 3)) % base)
def getTer2(i, base=3):
return int(math.floor(i / (base ** 2)) % base)
def getTer1(i, base=3):
return int(math.floor(i / base) % base)
def ge... | [
"zhihuzeye@gmail.com"
] | zhihuzeye@gmail.com |
6801916cae044b832c140f900cb07a3e20edc420 | a239b724547ee54281d797e6cbc39716a1f0b7c5 | /Day01-15/Day13/code/mytest.py | 2bb944f5b4e8a715c76763ba9b4c4497c36a2b75 | [] | no_license | Zhaohl2019/Python-100-Days | 967545483a36e4abd5c2ce585798c86ed221acb6 | 398819389c0de8e984560f679c5b00f7b854a1d8 | refs/heads/master | 2020-05-29T13:29:58.600144 | 2019-07-20T08:02:15 | 2019-07-20T08:02:15 | 189,164,387 | 0 | 0 | null | 2019-05-29T06:31:48 | 2019-05-29T06:31:47 | null | UTF-8 | Python | false | false | 985 | py | from multiprocessing import Process, Queue
from random import randint
from time import time
def task_handler(curr_list, result_queue):
total = 0
for number in curr_list:
total += number
result_queue.put(total)
def main():
processes = []
number_list = [x for x in range(1, 100000001)]
... | [
"zhaohl1998@163.com"
] | zhaohl1998@163.com |
84f1a5a4a81545c54e619e1ab0d7d893f0d61d84 | 4fbf4a6583f5df66d2b0e7b0c4b2016fc83dff78 | /neural_network/network_module.py | 22dff58d2149ecb253d4b994843414840f93c13d | [] | no_license | jkwrobel/soft-glowing-potato | 39819c795b26a2dc6e4ff460a171debebeba14e1 | ed927826cc0a99a2ffb5c45c35db15c61ecfd36b | refs/heads/master | 2023-09-02T06:17:32.456944 | 2021-10-23T10:49:51 | 2021-10-23T10:49:51 | 414,573,997 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,312 | py | import numpy as np
class Network:
def __init__(self):
self.layers = []
def add_layer(self, layer):
self.layers.append(layer)
def use_trained_network(self, input_data):
samples = len(input_data)
result = []
for i in range(samples):
output = input_data[... | [
"anita.tereszczuk@gmail.com"
] | anita.tereszczuk@gmail.com |
c0df0c354149cb0ce8785e02e9e03415ce691339 | 159b858a5a3816ed1f42c4d28d24d6a12c48c7dd | /captioning/models/AttModel.py | 0ae51374aace5e35c899bf74ac4e5ee2eef8780e | [] | no_license | gnehz/Image-Captioning-Attack | 23c95bfa2128355ce2668f67b93a6dcf790bc9a5 | 25f28b7aa9b7aa2c7367a00fb1ccc6392c8a9f05 | refs/heads/main | 2023-03-20T21:46:11.781330 | 2021-02-26T16:46:40 | 2021-02-26T16:46:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 45,761 | py | # This file contains Att2in2, AdaAtt, AdaAttMO, UpDown model
# AdaAtt is from Knowing When to Look: Adaptive Attention via A Visual Sentinel for Image Captioning
# https://arxiv.org/abs/1612.01887
# AdaAttMO is a modified version with maxout lstm
# Att2in is from Self-critical Sequence Training for Image Captioning
#... | [
"noreply@github.com"
] | gnehz.noreply@github.com |
df9ace102e90996a035fceb143ada46c73bb9bc5 | ac0ccedfbe6270030347341a6befc850c2093af2 | /astropy/version_helpers.py | 35e569c6c793de91a81a2140d0f73088012aa424 | [] | no_license | pkaminski/sample | 99fa7bd638001890f38d261495dc8f858feb09a4 | c8d4fa1e951f73e1553fe3604bb5e77b62a6e52b | refs/heads/master | 2023-06-22T01:50:43.473811 | 2023-04-04T23:17:54 | 2023-04-04T23:17:54 | 21,379,740 | 1 | 5 | null | 2023-08-31T00:07:37 | 2014-07-01T08:02:32 | C | UTF-8 | Python | false | false | 8,461 | py | # Licensed under a 3-clause BSD style license - see LICENSE.rst
##############################################################################
# Note: this file exists only for backward-compatibility purposes - the #
# contents have been moved to the separate astropy-helpers package, #
# located at... | [
"piotr@ideanest.com"
] | piotr@ideanest.com |
6229d71ac4298b44124dd4b8e60fbc94f362f721 | 22f57701df31b3182f3bcb83da729ecc584f8fb6 | /December-12/py_anuppriya_revsinglylinkedlist.py | eca33e40110bce5169894193a53714e455c02d79 | [] | no_license | Prashant-Bharaj/A-December-of-Algorithms | e88640c711abbe2e6cac71cb4652dac243984484 | 7bbd56572f4ddc9648e90615ee810765544c56e4 | refs/heads/master | 2023-08-05T15:37:20.362561 | 2021-09-19T05:51:53 | 2021-09-19T05:51:53 | 287,055,360 | 0 | 0 | null | 2020-08-12T15:53:05 | 2020-08-12T15:53:04 | null | UTF-8 | Python | false | false | 995 | py | class Node:
def __init__(self, data):
self.data = data
self.next = None
class LinkedList:
def __init__(self):
self.head = None
def reverse(self):
prev = None
current = self.head
while(current is not None):
... | [
"noreply@github.com"
] | Prashant-Bharaj.noreply@github.com |
eef2e035f96020685aaf6b0ac1d0d111b44c3a97 | 94b589fe80563baba803a4853a29fb8b8bee2b12 | /venv/TestEngine/blog/views.py | 29f83506c6c16638c83aed67ebe8ffd9c8168ec5 | [] | no_license | Python1337/CCM | ca9c81c73af8b3b0fbe765e9e63f05f7ca02a82f | 08bf0106746de694020e60a080e457f69923b866 | refs/heads/master | 2023-03-11T04:57:41.247065 | 2021-02-18T11:56:13 | 2021-02-18T11:56:13 | 340,032,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,340 | py | from django.shortcuts import render
from django.urls import reverse
from django.http import HttpResponse
from django.views.generic import View
from django.shortcuts import get_object_or_404
from django.shortcuts import redirect
from django.contrib.auth.mixins import LoginRequiredMixin
from .models import Post, Tag
fro... | [
"wowartyom12a@inbox.ru"
] | wowartyom12a@inbox.ru |
21e0c6271798aca723cc58befb65b2e755533138 | 3f95904666cbecc5a65605e86f8b4dfe4797f8c5 | /seven/timeseries.py | e08993380af5ac04c418f257f7f805c290abffe5 | [] | no_license | rlowrance/test7 | 60b2778e19d91c357304637d3e73d74c9bcd3b79 | 3535bd46bff602fc3ba35c080d38b30e75a97fe7 | refs/heads/master | 2021-07-18T11:42:20.784873 | 2017-10-24T14:27:52 | 2017-10-24T14:27:52 | 97,166,588 | 2 | 5 | null | 2017-08-16T15:06:16 | 2017-07-13T21:32:41 | Python | UTF-8 | Python | false | false | 11,582 | py | '''time series prediction
Copyright 2017 Roy E. Lowrance
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to... | [
"roy.lowrance@gmail.com"
] | roy.lowrance@gmail.com |
632adddee0bf6558d604dbfdf73b4728e404debc | e55531da9f55cd93b619431e4c162859e5e7be2e | /printing_file_args.py | 319873804564f86e2e13ac533a14654ae7b09fd0 | [] | no_license | rawatsandeep1989/git-branches | 69d77478d3b5de805268bc914e93a49d3e6a3af3 | b589e1b4bd3f372d58f5b738d821394ae99b00da | refs/heads/master | 2020-09-30T18:52:07.125462 | 2019-12-11T16:52:54 | 2019-12-11T16:52:54 | 227,351,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 253 | py | #!/usr/bin/env python3
import sys
print(sys.argv)
for i in range(len(sys.argv)):
if i==0:
print("Function name is %s :" % sys.argv[0])
else:
print("%d.argument %s:" % (i,sys.argv[i]))
print(sys.platform)
print(sys.version)
| [
"sandeepr@one.com"
] | sandeepr@one.com |
b744b470d15f349edecd402d6a31f8f606303fe8 | 999e60669f7ad086e452a21e40827af418220d9a | /scraper.py | 12b570cda4755c426777af632ae0f25cfa81c164 | [] | no_license | gouravrana7/Scrapping | 5fb88b77cb7b008fccd3eb812b308686b53ea921 | b7d3e68b725e592476e6601f25a7596b27590de2 | refs/heads/main | 2023-04-03T20:14:09.696318 | 2021-04-23T21:03:52 | 2021-04-23T21:03:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,792 | py | import requests
from bs4 import BeautifulSoup
import pandas
import argparse
import connect
parser = arg.ArgumentParser()
parser.add_argument("--page_num_max",help="Enter the number of pages to parse",type=int)
parser.add_argument("--dbname",help="Enter the name of db",type=str)
args= parser.parse_args()
oy... | [
"noreply@github.com"
] | gouravrana7.noreply@github.com |
e8c2786ad69cfccec2ad37b66382443519baed1a | 59fb17c240b261040026d713a6ac9c97d6a9f265 | /gym/gym/envs/registration.py | 18519749167fe193d8d2cb3b3348653ae837fd17 | [
"MIT"
] | permissive | dmeger/TeachingImitation | 3fb97499e76929959913266f127154f6ae5a8e99 | 5f4dba7e49987924c3d55cd27579cad4c71ef7a4 | refs/heads/master | 2023-03-28T13:25:01.307382 | 2021-04-06T15:07:08 | 2021-04-06T15:07:08 | 355,223,500 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,883 | py | import re
import copy
import importlib
import warnings
from gym import error, logger
# This format is true today, but it's *not* an official spec.
# [username/](env-name)-v(version) env-name is group 1, version is group 2
#
# 2016-10-31: We're experimentally expanding the environment ID format
# to incl... | [
"david.meger@gmail.com"
] | david.meger@gmail.com |
cb112458e1c759a10c2cc4f1720282056bf4e17b | f9e74113f4a396e028159e3f2a8e23fa01b03ca3 | /Year 11/filestoragecalc.py | 21b454d4998cb21e2bb76b6004a4757987472960 | [] | no_license | haydenso/school-projects | e6ea7ccc850a468a7352919fdfaf350289d666cc | 1ea9f313fe7d32036c5b210b8fa9dc1736371483 | refs/heads/master | 2023-04-28T15:11:44.187732 | 2021-05-18T04:24:29 | 2021-05-18T04:24:29 | 254,290,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 514 | py | def fileStorageCalc(h, w, bit):
TOTAL_PIXELS = h * w
FILESIZE = TOTAL_PIXELS * bit
# FILESIZE is in bytes
KB = FILESIZE/1024
MB = KB/1000
return KB, MB
while True:
height = input("Input number of pixels high: ")
width = input("input width in pixels: ")
bitdepth = input("Input colord... | [
"sohayden929@gmail.com"
] | sohayden929@gmail.com |
d20bc6650a0bfcd14b6dc9e13f603aec12c00025 | ab6f9e3505b9d51c9a604866572c547982aa88e3 | /node_modules/socket.io-client/node_modules/engine.io-client/node_modules/ws/build/config.gypi | 18f2146182d182064c12ed05f088d6ad171e01af | [
"MIT"
] | permissive | adamtheschmidt/BoardGameTracking | 890a5d556a916c1990f11d51466d10843d9384c1 | 13b6c1722a946f98fd2cee4866817ffb84e93ec1 | refs/heads/master | 2021-01-21T00:16:54.038790 | 2015-04-23T04:22:32 | 2015-04-23T04:22:32 | 31,579,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,651 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"clang": 0,
"gcc_version": 44,
"host_arch": "x64",
"icu_data_file": "ic... | [
"andreirtaylor@gmail.com"
] | andreirtaylor@gmail.com |
e1e14c735947532850f9450d2694f3e8f7bca58d | 9bd755b248c0534b004eae999dbab7ee36ba219b | /oneDriveLinkGeneratorFromYAML | a3e8a8b1174011bf0d9fc7d18e5f139ad7743f0e | [] | no_license | ceberous/osxSettings | 2507c39bb7b2e2ac4ed9b8adb234f7d47095593c | add1e1cc64aa403f9d6922f5080b13b371cd9a4c | refs/heads/master | 2023-06-11T00:38:52.335759 | 2023-06-04T21:42:05 | 2023-06-04T21:42:05 | 186,904,141 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 539 | #!/usr/bin/env python3
# pip install pyyaml
import yaml
import sys
from pathlib import Path
def read_yaml( file_path ):
with open( file_path ) as f:
return yaml.safe_load( f )
def write_text( file_path , text_lines_list ):
with open( file_path , 'w', encoding='utf-8' ) as f:
f.writelines( text_lines_list )
inp... | [
"cerbus.collin@gmail.com"
] | cerbus.collin@gmail.com | |
26e6a160f86d55b8f88188dec7e5c82c434f707a | 462385714beddead618fe0193a68685365793e5c | /Python/Python_Problems/Rosalind-master/scripts/Data_Structures.py | d8b1c2c42ff09d8ec41fa4000eeb26bab2e3b2f1 | [] | no_license | 0n1udra/Learning | 7e3f83a3a1ed850cc476ef738c76759616d9e12e | 69e656327c782465318db85abdee519e2f79dab0 | refs/heads/master | 2022-12-04T06:29:29.894406 | 2020-08-17T20:47:47 | 2020-08-17T20:47:47 | 73,001,058 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,811 | py | #!/usr/bin/env python
'''A ROSALIND bioinformatics script containing useful data structures.'''
class SuffixTree(object):
'''Creates a suffix tree for the provided word.'''
def __init__(self, word):
'''Initializes the suffix tree.'''
self.nodes = [self.Node(None, 0)]
self.edges = dict... | [
"dxzt99@gmail.com"
] | dxzt99@gmail.com |
db81080c9dda031d7896a3d2b7874f65212f852f | d7e34a74b852d760b145c0a784b0e65ec8109e8f | /src/beginner/pipelines/lgbm/__init__.py | ed73dccd80f0988b86ede0a348ec75e331479b52 | [] | no_license | kosukatsu/signate_beginner10 | 449b2181f2fd993d8c36e3b5a99cdc9264aee9c4 | a2e6c6702db1599ba325641bb662bdb421702a2b | refs/heads/main | 2023-05-09T12:17:34.684373 | 2021-05-28T10:07:39 | 2021-05-28T10:07:39 | 366,076,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | from .pipeline import create_cross_validation_pipeline
from .pipeline import create_hy_para_tuning_pipeline
from .pipeline import create_eval_pipeline
from .pipeline import create_real_train_pipeline | [
"kosukatsu.tribal1999@outlook.jp"
] | kosukatsu.tribal1999@outlook.jp |
52256cac147a6460ee037ec680d08897777c207a | 0a5a5f6837789b75dc611783bec25bee7af7d6ae | /slacktime.py | 6457471b8a0a914eb569b7b73b1e8e1bd3f4d8ce | [] | no_license | afcarl/slacktime | 9bca69b975f73b067ecb0e97311a6b242747429a | 803958f50e7b7ef2fb557ebf5bac169aac05ee54 | refs/heads/master | 2020-03-22T10:29:25.552740 | 2018-03-06T16:49:40 | 2018-03-06T16:49:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,174 | py | """The core slacktime model class and some functions for evaluating and optimizing the model."""
import numpy as np
from optunity_modified import minimize_structured, par
from input_texts import InputTexts
class Model(object):
def __init__(self, switch_cost=0):
self.textmatrix = np.array([])
sel... | [
"jvparidon@gmail.com"
] | jvparidon@gmail.com |
2c5a2962fb4007cb8be4e05528c8e254ece4755b | c8fe9b0294c5a48f44fc051eb83bb8e13698035c | /loader.py | c5fd919b6ee9d7392288f728bb2173d7cfdcf693 | [] | no_license | danilasimanok/CommunicatorBot | 8a388b9e0a3bb84652ef100159367a26a4bde67c | 3a96239f4f910c5eb7a1b3fbcf330cfc23a2f586 | refs/heads/master | 2020-07-30T10:14:23.951061 | 2019-10-02T18:47:32 | 2019-10-02T18:47:32 | 210,188,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | import json
class Loader:
'''Работает с настройками программы.'''
def __init__(self, settings_file_name):
self.settings = None
self.dump_file_name = None
if settings_file_name == None:
return
settings = open(settings_file_name, 'r')
self.settings = json.load(settings)
settings.close()
def create_... | [
"dsimanok@bk.ru"
] | dsimanok@bk.ru |
5a34b1c2505774cc28123bf7867e9d5b84e9422c | ea5de3d347ef4e1dcac9ee37da2d9850888d9ecc | /pawn_brotherhood.py | 57460c2b269a4526698cd78561b3aa401f2e81a2 | [] | no_license | skoriy88/Chekio | 4d50c18c54741c425d468a80a24ceb526a13dabe | fcbc291ca624cb9d5415128e605ea27d5e50983e | refs/heads/master | 2020-03-18T11:26:09.966384 | 2018-05-25T13:52:54 | 2018-05-25T13:52:54 | 134,671,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | lst = {"b4", "d4", "f4", "c3", "e3", "g5", "d2"}
def safe_pawns(inp):
new = {(ord(i[0]), int(i[1])) for i in inp}
safe = sum(1 for pawn in new if(pawn[0]-1, pawn[1]-1) in new or (pawn[0]+1, pawn[1]-1) in new)
#print(safe)
return safe
safe_pawns(lst)
'''
print(ord('a'))
print(ord('b'))
print(ord('c'))
... | [
"skoriy88@gmail.com"
] | skoriy88@gmail.com |
b932230cee4c86fc2a141ccec76dccb54beb67ce | 0a5165cf386d7f9d049239fdcf9f36971661c69b | /layers/base.py | dd298ace052838f3ac9c63749ad21f14489f55a5 | [] | no_license | peterchen1457/Bayesian-Learning-SB-LWTA | 5fda4bd2fe9df70571d1ac30f29c90125a3d4091 | 8e5303eb0dce6bdce2ba9ef1bf80fe6b576fb31c | refs/heads/master | 2023-07-29T07:29:23.014082 | 2019-04-30T09:09:07 | 2019-04-30T09:09:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,418 | py | # -*- coding: utf-8 -*-
"""
Base layer for the implementation of the layers comprising blocks with competing units as
described in the paper
The current file contains implementations for feedforward and convolutional layers.
@author: Konstantinos P. Panousis, Dept. of Informatics and Telecommunications,
... | [
"noreply@github.com"
] | peterchen1457.noreply@github.com |
ed2d674bed27936b1176c7767143f026c35ea16c | 9ed5f45abf25c5dfe70bc97ed76b726f22b4903b | /read_shiyo.py | fd3f488aae4bcb25840b46e5411e4851f781182b | [] | no_license | aki4429/locdata | b2f95cf82d5b02183bafffd1565e6126daa1afd0 | 1af95670fd60209621dc25b3f81638468ae6fafb | refs/heads/master | 2022-12-04T19:48:11.092611 | 2020-08-18T16:35:18 | 2020-08-18T16:35:18 | 288,508,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,296 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#code:
#:8=model, 8:11=spec, 11:17=piece, 20:24=legcolor, 24:31=fab1, 31:39=fab2
#39:40=toku
import glob
import csv
import datetime as dt
from dbread import Loc, session
shiyoname = glob.glob('./shiyo/*.csv')[0]
data = []
#納期は'yyyy/mm/dd'形式なので、/でスプリットして、int()で数のリストを... | [
"akiyoshi.oda@gmail.com"
] | akiyoshi.oda@gmail.com |
5f15528be224f35fb06cbfeb40c9415dba122387 | 00c71263dd3984599082534687a6eecff6b63278 | /phrases.py | fa6da7c36dd1cb3d5848993055aa183f64336611 | [] | no_license | TheBlackParrot/discord-bot | 1af35d00224c33d9167b784907c734e88b99b1ef | e83ab7db5f10732d1c588f1ad4ff7ca88ee9d9b3 | refs/heads/master | 2021-01-10T15:15:20.248729 | 2016-04-16T08:39:55 | 2016-04-16T08:39:55 | 54,535,723 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 361 | py | import urllib.request;
import settings as setting;
def getAPhrase():
req = urllib.request.Request(
setting.PHRASES_URL,
data=None,
headers={
'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.108 Safari/537.36'
}
);
page = urllib.request.urlopen(r... | [
"theblackparrot0@gmail.com"
] | theblackparrot0@gmail.com |
fe4a6346bcb9bbbbbfa99d1e0c34646eaaeeb80d | facb8b9155a569b09ba66aefc22564a5bf9cd319 | /wp2/merra_scripts/03_model_fitting/mlrRecon/607-tideGauge.py | 5d3a5857f4fc004b496e5aaa6fe495475221f2de | [] | no_license | moinabyssinia/modeling-global-storm-surges | 13e69faa8f45a1244a964c5de4e2a5a6c95b2128 | 6e385b2a5f0867df8ceabd155e17ba876779c1bd | refs/heads/master | 2023-06-09T00:40:39.319465 | 2021-06-25T21:00:44 | 2021-06-25T21:00:44 | 229,080,191 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,255 | py | # -*- coding: utf-8 -*-
"""
Created on Mon May 4 15:51:30 2020
----------------------------------------------------
This program is designed to reconstruct merra daily
maximum surge using MLR
----------------------------------------------------
@author: Michael Tadesse
"""
def reconstruct():
"""
run KFOLD me... | [
"michaelg.tadesse@gmail.com"
] | michaelg.tadesse@gmail.com |
0c952f5626c7a7187c2ce0175469a5ae5d62cbc9 | 26a0941b02286518e382fe86daa0dd5c0f596a9a | /stage_scenes.py | 26bf98175d74488c0e99843bcaa5d0d4709e9ced | [
"MIT"
] | permissive | Gargaran/videos | 729c3c7e91cb20e5377b5e397b3b90ea91e3f8a1 | 26458da42fc665eb4ae844168c16ebb0526cc231 | refs/heads/master | 2023-08-22T16:36:33.235479 | 2021-10-06T22:48:08 | 2021-10-06T22:48:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,104 | py | #!/usr/bin/env python
import inspect
import os
import sys
import importlib
from manimlib.config import get_module
from manimlib.extract_scene import is_child_scene
def get_sorted_scene_classes(module_name):
module = get_module(module_name)
if hasattr(module, "SCENES_IN_ORDER"):
return module.SCENES_I... | [
"grant@3blue1brown.com"
] | grant@3blue1brown.com |
0abdaf0ed81c2e215099e12d9bb2753b9ddb4872 | cf25791401b8037695ba97ade84b99d402722f7c | /student/mymodule.py | b9a8aa579617ae50e236a6bc2c2b614bc898c266 | [] | no_license | thiha88/PythonHybridClass | 646cf4961034c0fb70de5a3af6267d079633acfb | 2e321b018e8d494d5c930f3957e6ccaa36f3b610 | refs/heads/master | 2020-08-28T21:54:34.126763 | 2020-03-01T09:24:03 | 2020-03-01T09:24:03 | 216,326,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 181 | py | student = {
"name" : "Smith",
"code" : 123,
}
student1 = {
"mother" : "Cherry",
"father" : "Kole",
}
student2 = {
"age" : "20",
"class" : "programming",
}
| [
"tun88thiha8@gmail.com"
] | tun88thiha8@gmail.com |
926a6e5c2f8e14ca41571537b899f12932268bbd | 5258903bb9cdeedf13a7101aa98e82c915914974 | /curriculum/migrations/0001_initial.py | d9ad40787e5dfc4ba0c58df54e9178a4392de19e | [
"BSD-2-Clause"
] | permissive | ZuluPro/django-cv | 7328e4f3e30ecfef7c5e6e598d5b95986ed7dbe9 | 64a7fda155d7052642484ebc9a7e7822d73ea1b0 | refs/heads/master | 2020-05-29T18:12:29.262859 | 2016-06-12T23:13:11 | 2016-06-12T23:13:11 | 45,745,590 | 10 | 6 | null | null | null | null | UTF-8 | Python | false | false | 29,493 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
import curriculum.models.utils
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Certification',
fields=[
... | [
"montheanthony@hotmail.com"
] | montheanthony@hotmail.com |
852411151db8afff623d48a858ba720238508dd7 | faaf12ab18978082233c09628b815a69e73868e4 | /codechef/practice/easy/lebombs.py | 3c70653a1ff04cd448e8e83575cc876a870c045a | [
"WTFPL"
] | permissive | ferhatelmas/algo | 6826bcf0be782cb102c1ee20dce8d4345e1fd6d2 | 7b867f6d2c8a9fb896f464168b50dfc115617e56 | refs/heads/master | 2023-08-18T19:59:58.435696 | 2023-08-14T10:16:00 | 2023-08-14T10:16:00 | 3,813,734 | 27 | 16 | WTFPL | 2020-10-25T23:00:16 | 2012-03-23T23:43:31 | Java | UTF-8 | Python | false | false | 229 | py | from sys import stdin
from itertools import groupby
for i, ln in enumerate(stdin):
if i > 0 and i % 2 == 0:
s = "0" + ln.rstrip() + "0"
print(sum(max(len(list(g)) - 2, 0) for k, g in groupby(s) if k == "0"))
| [
"elmas.ferhat@gmail.com"
] | elmas.ferhat@gmail.com |
0271e2bd69581d5e5dc88b564ddc46e9e59ed80e | 06289aabd78e6a0e5e5ab8360fffbf9a8504d615 | /api/budget/serializers/expense_serializer.py | 0f5fd044d6751912c22d145c7efad0ab32499638 | [] | no_license | jtclayt/finance_planner_api | 6ca8130c761999abc01e03429a0676c0c803b640 | 06cd592e479145cbeb6acad4574021ef7515b33b | refs/heads/main | 2023-08-15T02:20:34.455483 | 2021-09-22T16:15:49 | 2021-09-22T16:15:49 | 409,044,817 | 0 | 0 | null | 2021-09-22T05:08:48 | 2021-09-22T02:54:50 | Python | UTF-8 | Python | false | false | 627 | py | from rest_framework import serializers
from ..models.budget import Budget
from ..models.expense import Expense
class ExpenseSerializer(serializers.HyperlinkedModelSerializer):
'''Serializer for list view of expenses'''
url = serializers.HyperlinkedIdentityField(view_name='budget:expense-detail')
budget =... | [
"jt.clayton92@yahoo.com"
] | jt.clayton92@yahoo.com |
5ef953377a82188de0c437031ecd64571429c4dd | 10ddfb2d43a8ec5d47ce35dc0b8acf4fd58dea94 | /Python/special-array-with-x-elements-greater-than-or-equal-x.py | 01c11c68d89db61b02579b98174c1831b10e0923 | [
"MIT"
] | permissive | kamyu104/LeetCode-Solutions | f54822059405ef4df737d2e9898b024f051fd525 | 4dc4e6642dc92f1983c13564cc0fd99917cab358 | refs/heads/master | 2023-09-02T13:48:26.830566 | 2023-08-28T10:11:12 | 2023-08-28T10:11:12 | 152,631,182 | 4,549 | 1,651 | MIT | 2023-05-31T06:10:33 | 2018-10-11T17:38:35 | C++ | UTF-8 | Python | false | false | 3,409 | py | # Time: O(n)
# Space: O(1)
# counting sort solution
class Solution(object):
def specialArray(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
MAX_NUM = 1000
count = [0]*(MAX_NUM+1)
for num in nums:
count[num] += 1
n = len(nums)
... | [
"noreply@github.com"
] | kamyu104.noreply@github.com |
b51f98fcb2a8f15674e7d1def0ce92d1b5b8795c | 052e8e19c3a679402fbb2563c0dd6ed596d45278 | /Python/Exercise Files/Ch3/timedeltas_start.py | 2fcfb3f3dacc6d5f89ebfe3c1fda58872f9f2027 | [] | no_license | amshapriyaramadass/learnings | a7739f257e310327c90a78780fea2ebff34a6325 | e317058a404fde30bbc3c118ba1a1aaf533d8d4b | refs/heads/master | 2022-12-23T11:09:42.069445 | 2020-10-01T21:42:08 | 2020-10-01T21:42:08 | 283,662,910 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,290 | py | #
# Example file for working with timedelta objects
#
from datetime import date
from datetime import time
from datetime import datetime
from datetime import timedelta
# construct a basic timedelta and print it
print(timedelta(days=365,hours=3,minutes =1))
# print today's date
today=date.today()
print("today date is... | [
"amshapriya248@gmail.com"
] | amshapriya248@gmail.com |
1e59c9981151054438ab88f0a110806c60f797b4 | 4321acd4ee0d46545b8fc89bd96ca91ef64dd1ad | /blog/models.py | 103562f19ed296d1b0546ceb73b0a31d97147d2e | [] | no_license | juliamattos/my-first-blog | f4c182ba9540bfcba6aa90c1c4c128433b6eccb3 | 2df3cca259cca44e96e12144057e3202da737a8b | refs/heads/master | 2016-09-13T02:39:13.493515 | 2016-05-14T19:04:47 | 2016-05-14T19:04:47 | 58,825,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 473 | py | 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)
published_date = models.DateTimeField(blank=T... | [
"juliamattos.br@gmail.com"
] | juliamattos.br@gmail.com |
d17776b6855dfcc141feea8086af080f6d09fc11 | 8bcf5bf18f6e9c1d5871ef8a88ef5921e03e9b02 | /koldunov/api/urls.py | a4efa9857dea75f924535c42e25c43c5803313cc | [] | no_license | volgoweb/rest_example | 73f5fc26cce45c0aae49247768f74ffa2f4c01d4 | 7ee8b87914d6c69c80158e7e22a6b454c3e7f76b | refs/heads/master | 2021-01-10T01:32:44.098668 | 2017-09-05T12:42:00 | 2017-09-05T12:42:00 | 51,444,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 346 | py | # -*- coding: utf-8 -*-
from rest_framework import routers
from .views.product_views import CategoryViewSet, ItemViewSet
from .views.stat_views import StatViewSet
router = routers.SimpleRouter()
router.register(r'category', CategoryViewSet)
router.register(r'item', ItemViewSet)
router.register(r'stat', StatViewSet)
... | [
"volgoweb@bk.ru"
] | volgoweb@bk.ru |
fb28d6bd690ff888dfd3ea29b317ae4cf3d2be7a | 8eca0a7a9ae207113f9f9ed98d093cbe21ffcd8a | /Maths_based_problems/grid_unique_paths/solution2_dp.py | eed4c34ad0482d36605fb37189b7a03c658eb218 | [] | no_license | Ranjit007ai/-Interviewbit-Maths | 3238c720bb5e0765eef0e0e1a39549eff1ba788d | 044627422fc38ee3e5aaa9cbfc8f00398d1f9bb5 | refs/heads/main | 2023-03-25T06:06:14.206384 | 2021-03-27T14:38:16 | 2021-03-27T14:38:16 | 352,065,531 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 568 | py | def unique_paths(m,n):
dp = [[0]*n for _ in range(0,m)]
# each position in dp show the no of way to reach their
# now the first row and first col will be 1 ,since their is 1 way to traverse from one position to another in single row or column vector
for row in range(0,m):
dp[row][0] = 1
... | [
"noreply@github.com"
] | Ranjit007ai.noreply@github.com |
f3615d9c654c8a6ee21eeeb224369c69cecde064 | a266cfe89cf9c7347abf712e3b800468438448c2 | /addons/magenenst_ghn_integration/controllers/controller.py | 2e4e11ef1139e253f77fada25db92a35539f96fe | [] | no_license | cialuo/project_template | db8b9f9c4115a6d44363a39e311363e8f3e7807f | 2f875bdc5b730afeae3dd8dffafde852d0a44936 | refs/heads/main | 2023-03-09T17:50:55.398557 | 2021-02-24T00:17:59 | 2021-02-24T00:17:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import http, _
from odoo.exceptions import AccessError, MissingError
from odoo.http import request
| [
"dungth@trobz.com"
] | dungth@trobz.com |
908e5c6310297a96be1a25e61f114b8c775bfb31 | 5f65df2a5e951bfbe9b042d3331a924145c28302 | /week-1/max_pairwise_product.py | 3ad38cbc361b2e436aff31c7f7f97f6ee9241720 | [
"MIT"
] | permissive | necromuralist/algorithmic-toolbox | f4aee836b9a9bc144622d03de59aa01885716f88 | 18430ac17045e60ec3540a3e5635202f5e8850eb | refs/heads/master | 2022-08-31T07:57:06.665017 | 2021-02-24T03:37:04 | 2021-02-24T03:37:04 | 138,454,499 | 3 | 1 | MIT | 2022-08-23T17:26:44 | 2018-06-24T04:54:25 | Python | UTF-8 | Python | false | false | 1,661 | py | # python3
# Maximum Pairwise Product Problem
# Find the maximum product of two distinct numbers in a sequence of non-negative integers.
# Input: A sequence of non-negative integers.
# Output: The maximum value that can be obtained by multiplying two different elements from the sequence.
# 5
# 6
# 2
# 7
# 4
# 5 6
# 30
... | [
"necromuralist@protonmail.com"
] | necromuralist@protonmail.com |
f40df01f7c05145dfe5006fcf3c6d5366d1eca7c | 6785bd6122e6eb013da781dd6ab6f1989f243e8e | /ocqm_cohort_website/builder.py | 1b019a9b2674642473fd1eff92160a90638082f1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | seantis/ocqm_cohort_website | aed5cff8432fbde503c02ea253e7c1206f633f28 | 21701f2aeed3c317ead24bd6244a1adfe4d89c6a | refs/heads/master | 2016-09-16T15:10:50.174636 | 2014-09-22T12:24:00 | 2014-09-22T12:24:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,673 | py | import os
from babel.support import Translations
from copy import copy
from jinja2 import Environment, FileSystemLoader
from . import content
from . import db
from . import locale
from . import paths
def create_environment(theme_path, language):
loader = FileSystemLoader(searchpath=theme_path, encoding='utf-8'... | [
"denis@href.ch"
] | denis@href.ch |
5aff83327048090bb929482367b4ab95f3704e0d | 9c6afa0faf423bc41107bec9019d076137074777 | /picarray.py | f1358398e1f54876c7fdc655b6a65593343a8f93 | [] | no_license | marcwgit/gradpics | f49d4060376414a9837de8d80e01e77a433cf4b0 | cd701c464d55b30556be5bb399bc1fc8e5ecf8ed | refs/heads/master | 2021-01-24T10:59:30.815869 | 2016-10-10T17:26:00 | 2016-10-10T17:26:00 | 70,276,743 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,351 | py | #!/usr/bin/python
from sys import argv
# from sys import re
script, flist, thumbsize, fullsize, widthnum, title = argv
print "script is: ", script
print "file list is: ", flist
print "thumb size is: ", thumbsize
print "full size is: ", fullsize
print "row width is: ", widthnum
print "title is: ", title
outfile = thum... | [
"noreply@github.com"
] | marcwgit.noreply@github.com |
7ba0a06d9808d2f9a578e5b737327d2a711235eb | 04a6f0914b128251bbd032bf13fbbfddb3c4eaa7 | /pythonbind/src/head.py | 8f67231978aa717ed41f4eb826b0187e5779b55a | [] | no_license | YulinWu/qos_public | a8d6eb4cba65a17e292f7d072bfb6728e95c7815 | 58cb67f62c285d70f86cb8a79d147610abb7ff3f | refs/heads/master | 2022-12-30T22:17:09.310242 | 2020-10-16T05:38:02 | 2020-10-16T05:38:02 | 304,203,187 | 0 | 1 | null | 2020-10-16T05:38:04 | 2020-10-15T03:48:59 | Java | UTF-8 | Python | false | false | 3,284 | py |
import jpype
import jpype.imports
from jpype.types import *
import os
def matchArgument(patterns, args):
if len(patterns) != len(args):
return False
for p, v in zip(patterns, args):
if p.startswith('@NonNull ') and v == None:
return False
if p.startswith('@NonNull '):
... | [
"zhao.uv@gmail.com"
] | zhao.uv@gmail.com |
c5fa5fda6af41850d5525c2fbd4e5caab4f6ccee | 73000d852404cc1fd3accfbfc8c83a0b88f6b4cb | /tests/test_xtbparser.py | 17d521260fae33c10b5b68e03bef388a5d5191f7 | [
"Apache-2.0"
] | permissive | nomad-coe/nomad-parser-xtb | 1580f90a2d391c63c3d291bc6a698779d599be10 | 09894dc15511fe6a9e9938027a0c48786dcdc084 | refs/heads/master | 2023-06-20T16:41:18.147131 | 2021-07-14T21:55:22 | 2021-07-14T21:55:22 | 386,077,099 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | #
# Copyright The NOMAD Authors.
#
# This file is part of NOMAD. See https://nomad-lab.eu for further info.
#
# 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/licen... | [
"ladinesalvinnoe@gmail.com"
] | ladinesalvinnoe@gmail.com |
c0355743b4fe4bb2b1c3a1515697ae7ad09aba3e | 10c9699a6f2f2af4986048b53e44bb063312c3cd | /StudentAnalysis/accounts/models.py | b8f83e1cb3a24f9aaa72325b44ba079324ed877f | [] | no_license | vagdevik/GDG-VIT-Hackathon | 60dea9e9a187825dde7854c8c3cff6e8f24cf690 | 0eb00ae8bf3b2122cbf4e3789a7ce544ff405799 | refs/heads/master | 2021-05-07T18:21:27.411760 | 2017-10-30T04:19:43 | 2017-10-30T04:19:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models
from django.contrib import auth
# class User(auth.models.User, auth.models.PermissionsMixin):
#
# def __str__(self):
# return "@{}".format(self.username)
| [
"abhishek.m15@iiits.in"
] | abhishek.m15@iiits.in |
84059663f00ee67d5175d368997580ee534a5781 | 53b36d25b56f2f01eb0014f36700b12d3a457403 | /adminSystem/settings.py | 83c65c71783b47f287586cdd1dbe7edf6fc29965 | [] | no_license | Kadzo-Dzombo/ideas_kenya | 94e7782ce91970e65c68d325dc370a70a95d9fd4 | 3c562e20965a2eac4be7036ff474b5df8ea2bbfe | refs/heads/main | 2023-08-31T10:50:01.100212 | 2021-10-14T18:46:14 | 2021-10-14T18:46:14 | 412,057,681 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,591 | py | import os
from pathlib import Path
import django_heroku
# Build paths inside the project like this: BASE_DIR / 'subdir'.
# BASE_DIR = Path(__file__).resolve().parent.parent
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
# Quick-start development settings - unsuitable for production
# See htt... | [
"50664032+Kadzo-Dzombo@users.noreply.github.com"
] | 50664032+Kadzo-Dzombo@users.noreply.github.com |
acc3729c60b5a5df550c04e809b00cbb02b4549b | de8081ddbfb02b6a3a0a79456e334a0704fea4f2 | /OHTServer.py | b43a9da353347d8143c874132de2f73d21236760 | [] | no_license | Cking616/NCDStudio | 01fb5d99577dac8a06ff5003f45b83374ddf3189 | f09b306f37554032192f22ae675f8a9b0348b7a3 | refs/heads/master | 2021-09-14T07:00:01.709782 | 2018-05-09T06:15:41 | 2018-05-09T06:15:41 | 113,954,526 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,611 | py | import time
import asyncore
import socket
import threading
import ctypes
import inspect
recCMD = ""
writeCMDBuffer = []
revCondition = threading.Condition()
isConnected = False
zEncoder = 0
wheelEncoder = 0
motorStatus = False
cmdError = False
gFlag = 0
isEndTimer = False
rampState = 0
def parser_receive(receive):
... | [
"cking616@mail.ustc.edu.cn"
] | cking616@mail.ustc.edu.cn |
cade017587a1fddf10ba53e82b78b74261e5d548 | c5bf6fd200e76dc388770c86b365ba3a0721416a | /bcassessment/bcassessment/items.py | 33fc306e236f3bb27d15c9d521ef9650033b0228 | [] | no_license | b15h4/ScrapingProjects | 48a98ee8c23794cbd3ca0e62aeabf2866fdd5851 | 3906091811409ccb9ce12a5099a511e3e6771d50 | refs/heads/master | 2020-05-09T11:41:47.420389 | 2020-01-28T22:30:48 | 2020-01-28T22:30:48 | 181,089,587 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,236 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://docs.scrapy.org/en/latest/topics/items.html
import scrapy
class BcassessmentItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
PID = scrapy.Field()
Address... | [
"noreply@github.com"
] | b15h4.noreply@github.com |
1bab277d30cc4f1a009426a5f5951a2f5b8d1ff1 | 4453c7b7051fd47a8b2fe7d24f6be338dee830aa | /lostfound/mainapp/views.py | 3a5e39dc5f1bd9cfc8c97bd93a0718a0070ea398 | [] | no_license | travo-star/lost-and-found | c39f6a548698eab8ed6a2cdd75285d7509d36c18 | d1fc17a9bb66d2b44f758f0cb9d5af90f59daa3b | refs/heads/master | 2020-08-29T12:01:03.444263 | 2019-10-28T09:58:06 | 2019-10-28T09:58:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,540 | py | from django.shortcuts import render,redirect
from mainapp.models import Post
from django.http import HttpResponseRedirect
from .forms import Posts, ClaimForm
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.views.generic import CreateView
from .models import Clai... | [
"notelgamwe@gmail.com"
] | notelgamwe@gmail.com |
1a5dd463ef4a3efe08755888c769206aba42c6a0 | 70f58b1dba311ea632257c7262c143f410378051 | /corona/index.py | cc46ba839a4966150b4805cb64995c8d68071581 | [] | no_license | azizyilmaz/data-analysis-with-python | e295488ae7f0d938a4d0422d06801c1241794763 | 2ee39d3bf3d72e5b43a785ba4690cb21e1666966 | refs/heads/master | 2022-11-18T09:21:14.390509 | 2020-07-12T21:45:14 | 2020-07-12T21:45:14 | 277,184,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import pandas
dataset = pandas.read_csv("corona/coronavirusdata/covid_19_data.csv")
print(f'Covid19 veri listesi:\n{dataset}')
print(f'Satır ve sütun sayıları:\n{dataset.shape}')
print(f'Sütunları:\n{dataset.columns}')
print(f'Veri tipleri:\n{dataset.dtypes}')
print(f'İlk 10 veri listesi:\n{dataset.head(10)}')
p... | [
"azizxyilmaz@outlook.com"
] | azizxyilmaz@outlook.com |
b3096c51d5f0148b23157700f003b048c28d4cb6 | efd6c1d24b0a392a177679429d53dd2f515d0d95 | /bi_auth/migrations/0001_initial.py | fd577d05d960ad8b413cd4b9a52c1be60fe0f81b | [] | no_license | mitshel/TakedaAnalitic | 5ccfb4aa83a056cbeaebce03df41819c7ece7985 | b04b08fb053bff238a1ce68df423f99314827b48 | refs/heads/master | 2021-07-02T21:27:10.023816 | 2019-02-14T14:32:18 | 2019-02-14T14:32:42 | 153,908,777 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | # Generated by Django 2.1.2 on 2018-12-15 11:16
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"mitshel@mail.ru"
] | mitshel@mail.ru |
82d4bb5adde44d0c3f5d9dcf5fd38838388ed335 | d1c4189ebec01e2e603618418537039fe88b6572 | /RNA_1/bls_main.py | cee12d48be639efa530ce3a2155dcdaed3b691ae | [] | no_license | arashk7/BLS_RNA_Classifier | 0ee32a19dd8a12f72564a0289df0359aa6b222bf | 6b320b2e538f54cc4960af338e368468be63ff18 | refs/heads/master | 2022-12-24T20:41:49.983691 | 2020-09-25T03:30:10 | 2020-09-25T03:30:10 | 298,180,974 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,741 | py | import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.ensemble import RandomForestClassifier
from sklearn import metrics
import seaborn as sn
import matplotlib.pyplot as plt
import numpy as np
from RNA_1.BroadLearningSystem import BLS,BLS_AddEnhanceNodes
import pandas as pd
features1 = ... | [
"ahmad.karambakhsh@gmail.com"
] | ahmad.karambakhsh@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.