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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
bb4865db730020b6945e02383297db7706ba99ad | c82da5e6c9287951c1c214ed172c03761d0b3940 | /Part 1 - Data Preprocessing/data_preprocessing_template.py | 5dd9e788990ab666983fbcbc4fcbdffcc43e21d5 | [] | no_license | NegiArvind/A-Z-machine-learning | 695d1cbbd20a5ca1d94533069b734d34b0b22c7e | 66b5c5e5c0abf03401016a4f932be3c24b6784c8 | refs/heads/master | 2020-04-02T04:46:54.149663 | 2018-10-21T17:20:33 | 2018-10-21T17:20:33 | 154,034,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | # Data Preprocessing Template
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Data.csv')
X = dataset.iloc[:, :-1].values
y = dataset.iloc[:, 3].values # first argument i.e ':' says take all rows and 3 saying take 3 column
... | [
"negiarvind229@gmail.com"
] | negiarvind229@gmail.com |
596ba1a6543c1cde196b8ccaa7f46776e36327d6 | 2f02026ec22cf350d65449f90aea4dc9eb7ebc89 | /exercise3/score_strategy.py | 800fa51d73111ad3ede48da68ffb47d4b382cfe0 | [] | no_license | Ten10/NLPCourse | 3a349e2d665cebb33a083c2386772a7e176e3c1b | 6da394c188f1272950f86724f89e0de5c9d4e680 | refs/heads/master | 2020-09-11T12:08:57.581360 | 2020-03-14T17:27:31 | 2020-03-14T17:27:31 | 222,059,263 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,218 | py | import abc
from math import log10
from exercise3.corpus import Corpus
from exercise3.document import Document
from typing import Dict, List, Tuple
class ScoreStrategy(abc.ABC):
@abc.abstractmethod
def __init__(self, name: str, corpus: Corpus, **kwargs):
self.name = name
self.corpus = corpus
... | [
"jonathan.k@qspark.co"
] | jonathan.k@qspark.co |
badb4fd17812c95118c46b700aaf4cbbb0c9698a | 3cae0e4309cdad8a9c38668c1caeb8bdbdbc7224 | /mag/data_scripts/test.py | 94b9a780e4c5fdbe67bdae193ec370c189591a8f | [] | no_license | matmcc/graph_django_neomodel | bf84cd2e0eb08a703058447a8dcb0da0e7ded8fe | cd795a76bf9dbb45441f40a206f83dc4a6176323 | refs/heads/master | 2020-12-02T09:09:21.943323 | 2020-02-13T20:17:05 | 2020-02-13T20:17:05 | 230,957,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from mag.Mag import Mag_Api
from decorators import timing
mag = Mag_Api()
p = mag.get_paper(2157025439)
r = mag.get_refs(p)
c = mag.get_cits(p)
lp = r + c
@timing
def time_this():
return mag.get_cits(lp)
time_this()
| [
"matmcconkey@gmail.com"
] | matmcconkey@gmail.com |
0cb367809e325a0dd6c531f0d61a66a4ad15a1a6 | 43ccd4d2b43733790b015ff0aa298fbbf8e4aea6 | /springy/indices.py | 3e81c1184b9d909163856b1438e1e3f50d1ada43 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | dboczek/springy | 9c4ff247a898724ad71cc54fd20a54599155d3e3 | e1df3e66e67b6614826b833f77a64cb95453108e | refs/heads/master | 2021-01-18T04:49:28.487870 | 2016-01-29T20:54:48 | 2016-01-29T20:54:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,177 | py | from collections import defaultdict
import itertools
import six
from .connections import get_connection_for_doctype
from .fields import Field
from .utils import model_to_dict, generate_index_name
from .search import IterableSearch
from .schema import model_doctype_factory, Schema
from .exceptions import DocumentDoesNo... | [
"marcin.j.nowak@gmail.com"
] | marcin.j.nowak@gmail.com |
002da74881db575d6ff7c07730665307babedfe2 | c12a32aa34dc141beff31cdceac68be4578ed9cf | /Snakefile | bca8d7129e54efffef219ca9d9363a12ac5569df | [] | no_license | taylorreiter/cosmo-kmers | a31f16fba24a0e45571a2e8182223e5965cd1afc | 94cc66ba101d56827f08129aa69473691b00c8f3 | refs/heads/master | 2020-06-20T23:24:41.127627 | 2020-04-18T16:03:42 | 2020-04-18T16:03:42 | 197,281,578 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 564 | include: 'snakefiles/data.snakefile'
include: 'snakefiles/classify.snakefile'
include: 'snakefiles/mgx.snakefile'
rule all:
input:
#expand('outputs/gather_human_micro/unassigned/{sample}.un', sample = SAMPLES)
#"outputs/cosmo/hmp_2k_t138_mtx.labels.txt",
#expand('outputs/mgx_sigs/{sample}_... | [
"taylorreiter@gmail.com"
] | taylorreiter@gmail.com | |
05fc5187df71d55444543c1027e46b77e6aeaaa4 | b14f4302363380024ca9b5cc096dbcef230057bd | /JPA_MASTER_no_model/Deployment_code/Bin/digitization/test_main.py | 37593144c937145c1f708d138a97a481d89f0995 | [] | no_license | RajatChaudhari/Clustering_n_stuff | 1706da296656fc8c54d67c037d45ae5fd2b7b4f8 | b0de4bece13725ace69b12006c50da421478fea2 | refs/heads/master | 2020-04-22T22:36:46.926207 | 2019-02-12T10:57:46 | 2019-02-12T10:57:46 | 170,714,482 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 398 | py | import family_classifier,jp_struct,pp_struct
import mammoth
convertor = pp_struct.pp_to_struct()
clf = family_classifier.family_classify()
path = 'Manager, Human Resources Business Partners - Human Resources Business Partners - Human Resources.DOCX'
file = open(path, 'rb')
fils = mammoth.convert_to_html(file).v... | [
"silverprince.v1@gmail.com"
] | silverprince.v1@gmail.com |
c7b785d66e77bcc3c624b989a5fb4ac1850f82f0 | 692bbb2cb7170e9ef92e43d0a3a143aab4ca5e64 | /cd_custom_sale_credit/__openerp__.py | d0345caaf2ff4c0e38e1b660b2262533ba21c195 | [] | no_license | kailIII/O7-Custom-Sale-Credit | f1a0fa31677919dec74be462d62dc9b346d7f919 | bfbd31358d54777547ea422ab061e0c5fe964aca | refs/heads/master | 2021-01-21T15:43:17.079171 | 2014-12-01T03:21:31 | 2014-12-01T03:21:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 566 | py | # -*- coding: utf-8 -*-
{
'name': 'Personalizacion del Modulo de Venta',
'version': '1.0.0',
'category': 'Ventas',
'sequence': 3,
'author': 'Gerardo A Lopez Vega @glopzvega',
'website': 'http://www.codetodev.com',
'summary': "Permite customizar la vista de ventas",
'description': "Permit... | [
"mcgalv@gmail.com"
] | mcgalv@gmail.com |
e690939d981b0797d6c1e0462b87509a33105f93 | 08e802066fbe75f4313dab14fdbf753f4085f2db | /evaluate.py | 4410fc4bc18500ce698fed623301c66c9c2fd1ad | [] | no_license | Full-Stack-Typhoon/STN-GTSB | e680b42729774d1331132c5c8f2d57740076f74a | 55d32aa6db3413e5d56d13d3d9f62de339a0c055 | refs/heads/master | 2023-01-27T12:04:15.691714 | 2020-07-27T02:22:54 | 2020-07-27T02:22:54 | 282,772,600 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,975 | py | from __future__ import print_function
import argparse
from tqdm import tqdm
import os
import PIL.Image as Image
import torch
from torch.autograd import Variable
import torch.nn.functional as F
import torchvision.datasets as datasets
from data import initialize_data # data.py in the same folder
from model import Net
... | [
"vikaspatidar@nyu.edu"
] | vikaspatidar@nyu.edu |
196e04b40f7912da4624f6e6f9ae396bb81751c6 | 6aaf1cc6caa35282d4acb347b11cd6dd138d7be7 | /challenge3/challenge3.py | 0b9c765f0975748ebaf095c6ddbacf41adb7b467 | [] | no_license | ntrainor1/Challenges | df3e5ab1b0415d430c988b605957bf21f70dcc66 | 555c3ab817af39d58879f7bc91ad240fa13ec07e | refs/heads/master | 2020-09-24T09:59:14.144274 | 2019-12-19T16:03:12 | 2019-12-19T16:03:12 | 225,734,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,666 | py | import unittest
import time
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
class Challenge3(unittest.TestCase):
def ... | [
"nathaniel.trainor@sling.com"
] | nathaniel.trainor@sling.com |
d27b28efcb5be09b33ca429f48cfea363d519429 | f70e55037d6098ff30af5fe57050c5f1f09ae2f9 | /app/api/admin.py | 7e2f53b2236a84f095a329c6db6aaa11b13f4ecc | [] | no_license | apoorv-on-git/pixel-editor-v2 | 13191d7f106c5cb69468e77acbf0c0f1becba958 | 52ef95ee96166e542737304da3cdcb1ba6dec3fb | refs/heads/master | 2022-12-28T07:19:10.613298 | 2020-10-02T11:42:45 | 2020-10-02T11:42:45 | 265,566,161 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,861 | py | from flask import Blueprint, jsonify, request, session
from app.utils.role_util import *
from app.db_controllers.auth_controller import *
from app.db_controllers.admin_controller import *
from app.utils.s3 import *
from app.db_controllers.helper import *
from app.db_controllers.logging import *
import json
admin_api =... | [
"apoorvelous@gmail.com"
] | apoorvelous@gmail.com |
8f98d8f3660cdf41a784921e4755a08b7d2a5bd4 | beb637252e9b5ce3fa808ba4bb8f129823540cb0 | /stats/mantel/plot_ISC_subplots_mantel.py | b8137a936e43ef460f4de07aaeda554762ed9be0 | [
"MIT"
] | permissive | athiede13/free_speech | 6b4ecdfcf66cc80148fa870876836da3a0b98a03 | bde32c2d48724c98f089376876cf9888f67a9f20 | refs/heads/master | 2022-01-29T12:57:25.168260 | 2022-01-08T19:40:15 | 2022-01-08T19:40:15 | 176,300,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,522 | py | """
Plot subplots.
Created on Tue Sep 4 16:21:37 2018
@author: Anja Thiede <anja.thiede@helsinki.fi>
"""
import matplotlib.pyplot as plt
#%matplotlib qt
#%matplotlib inline
#to fill
filepath = '/media/cbru/SMEDY/results/mantel_correlations/2019_05_simple_model/'
filenames1 = (filepath + 'phon_clu_5.000000e-01-4Hz... | [
"anja.thiede@helsinki.fi"
] | anja.thiede@helsinki.fi |
48de2103f2baa12bfa7ff1c30f880892b801a394 | 02263b003824b221e466928a997fd35f939bb655 | /core/utils/timeout.py | 4a697d94575be7bf70c57f8fdf321cc0f285f9cb | [
"Apache-2.0"
] | permissive | neoericnet/cmdbac | dad27b53a54df0a3ab76df4ea7cf4e66ec1dbf0d | 1f981e6f110728e51ba4ffdb90ff2d4ce091057a | refs/heads/master | 2020-08-06T23:54:01.631707 | 2017-11-15T05:54:47 | 2017-11-15T05:54:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | from functools import wraps
import errno
import os
import signal
class TimeoutError(Exception):
pass
class timeout:
def __init__(self, seconds=1, error_message='Timeout'):
self.seconds = seconds
self.error_message = error_message
def handle_timeout(self, signum, frame):
raise Timeo... | [
"zeyuanxy@gmail.com"
] | zeyuanxy@gmail.com |
c14d0ef0b5ded965c2955fe2dba0d3e10bce2d87 | 6978c3de8160e3e88930e8da53588bd4b63ade94 | /home/bin/syncthing-archive.py | 417b8ce7cadfa6ddf6986a17185ac93a59aea3b6 | [] | no_license | vonpupp/dotfiles-apps | 37126cdd516079db105f3acce291854b9464edf2 | b8188866193ccacf648758cb306c5265697c021c | refs/heads/master | 2022-08-04T16:22:49.088386 | 2022-07-10T00:51:27 | 2022-07-10T00:51:27 | 36,723,839 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,578 | py | #!/usr/bin/env python
# Source: https://docs.syncthing.net/users/versioning.html#external-file-versioning
# Lets assume I have a folder "default" in ~/Sync, and that within that folder there is a file docs/letter.txt that is being replaced or deleted. The script will be called as if I ran this from the command line:
... | [
"albert@haevas.com"
] | albert@haevas.com |
0430b585c6f5da83bef5507cb158267ac18d89c4 | 63b1a78452cb4204e501e023bd9f3c8a364b723c | /test_nbdev/_nbdev.py | 358f0ff246827f6c9ce7115b0bbb8ec347081e0d | [
"Apache-2.0"
] | permissive | teddyxiong53/test_nbdev | 03e22ef361a1768bc14f83cf617b8ab5fd172663 | 11d4ca82eedb45f4a3f687bd3e3d06336ebcbe9c | refs/heads/master | 2023-07-17T21:19:41.518320 | 2021-09-12T01:52:50 | 2021-09-12T01:52:50 | 405,512,137 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 331 | py | # AUTOGENERATED BY NBDEV! DO NOT EDIT!
__all__ = ["index", "modules", "custom_doc_links", "git_url"]
index = {"say_hello": "00_core.ipynb"}
modules = ["core.py"]
doc_url = "https://teddyxiong53.github.io/test_nbdev/"
git_url = "https://github.com/teddyxiong53/test_nbdev/tree/master/"
def custom_doc_links(name): r... | [
"1073167306@qq.com"
] | 1073167306@qq.com |
3e5f3130f9738ba4f15b928fe8f5c3a74cba0942 | 39bf4156130c3fa83465acd2897a775e5bb315c3 | /MHacksCashalyst/venv/bin/pip2 | 888c336e6353316eb11648c3c88c96c56bd1da30 | [
"Apache-2.0"
] | permissive | Sagarsaurus/Cashalyst | b5d8e51d204111dd37148aba509cfbd7074a81e4 | 6aad4c6d28124966f7c2312a80c16bd71b729ac1 | refs/heads/master | 2016-09-06T14:56:41.900287 | 2014-09-07T14:15:25 | 2014-09-07T14:15:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | #!/home/sagar/Cashalyst/MHacksCashalyst/venv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"Sagarsaurus@github.com"
] | Sagarsaurus@github.com | |
ad18d9200e1912c46c1ab6b83a72f107dcb414a5 | 945e5d0338728b1411282325140b48ad29d2571c | /source/maizi/users/templatetags/myfilter.py | 315c1db6ff90c2c3a5f83f6c4d2d400e0c2c50df | [] | no_license | NickyWu123/MaiziEdu | 768b91499e4adcdf8e5cb937394bf8b8c79120bf | c46b9d793d2352dff3fea5acc1fceb4b1f853670 | refs/heads/master | 2020-12-24T06:12:07.360996 | 2016-11-08T10:56:28 | 2016-11-08T10:56:28 | 73,169,606 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | # -*- coding: utf-8 -*-
from django import template
register = template.Library()
@register.filter
def email2name(key):
return key.split('@')[0] | [
"1075569650@qq.com"
] | 1075569650@qq.com |
eb358b6147afb1190aea50f70a2ea57683b256eb | 9b1cc2f4a85f6246d1cadabf9a49359b891351e0 | /Presprocess Data/MFCCs.py | 48eab257b6d7e10a7627e3b88b3d621c886efbca | [] | no_license | Rishabh40/Drone-Classifiaction-using-Deep-Learning | b3779882363d96200ea2d37ee1c416fc0cd1a01c | 47679615715418fecd4e61081414fb36a3f0455b | refs/heads/main | 2023-04-24T06:04:35.696913 | 2021-05-07T00:01:04 | 2021-05-07T00:01:04 | 362,565,160 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,491 | py | import numpy as np
import librosa
import librosa.display
import matplotlib.pyplot as plt
FIG_SIZE = (10, 7)
file = "B_S2_D1_070-bebop_000_.wav"
# file = "1-19111-A-240.wav"
# load audio file with librosa
signal, sample_rate = librosa.load(file, sr=22050)
# display waveform
plt.figure(figsize=FIG_SIZE)
librosa.displ... | [
"arishabh106@gmail.com"
] | arishabh106@gmail.com |
b6575bb3e92eee5a044c75fa0be0aff7bff35a09 | 9a976fd6f420f871f1d99058eab6d944c9cc5202 | /problem_2_method_1.py | aaf8eb21773b4ac43f447c5fb9a3d9a2a95964ba | [] | no_license | arunenigma/Project-Euler- | 0e2bb1f5f899628c0a60bde59e2077511eea4531 | 364f28158cc4f12085d13ce342f4efbefeab99a0 | refs/heads/master | 2021-01-01T20:47:55.619091 | 2012-02-18T02:34:32 | 2012-02-18T02:34:32 | 3,467,948 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 581 | py | # Author -- Arunprasath Shankar
# Solved using recursion
# Run time is longer than the Matrix and Pure Math methods..
# Will post the Matrix and Pure Math Methods Shortly
import time
def fibo(n):
if n < 2:
return n
return fibo(n-2) + fibo(n-1)
sum = 0
list1 = map(fibo,range(2,36)) # choose range based on your intui... | [
"arunprasath9586@gmail.com"
] | arunprasath9586@gmail.com |
a2936518716f46a732c49bb4438e53440f319901 | 2879f990d80b916a952c058203440204541d4af7 | /fundamentals/session3/hw.session3/answer.py | 4d729278ed04bf2283c4c3419f06315743ede977 | [] | no_license | anhquan2505/nguyentrananhquan-fundamentals-c4e27 | 4c52d75a33aab9cae62885aca5a7f935f5b070e9 | b776e06fc26563a32212f411035f931e2e502062 | refs/heads/master | 2020-04-25T04:19:35.465522 | 2019-04-06T11:03:17 | 2019-04-06T11:03:17 | 172,506,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | form=['T-Shirt', 'Sweater']
def addon():
new=input("enter new item: ")
form.append(new)
xuat()
def xuat():
print("our items: ")
for i in range(len(form)): print(i+1,".",form[i])
def update():
x=int(input("update position: "))
form[x-1]=input("enter new item: ")
xuat()
def delet():
x=... | [
"quanquytoc25052000@gmail.com"
] | quanquytoc25052000@gmail.com |
6de11477ac51ab34a279bbbe020cfae8a87cd518 | 80a81c6e46298ea3d7d15a075e6359e5937911eb | /travel_guider/main_app/urls.py | b3dad109047719512f6a52444504aa3621340df1 | [] | no_license | pranavmodx/InOut6.0 | 628408206f36501ffabbd291be6273c4c0e82f1d | fb31ea482cd1a185eccf9e1ddf3954085f5fec90 | refs/heads/master | 2020-08-21T20:02:41.897889 | 2019-10-20T10:39:00 | 2019-10-20T10:39:00 | 216,236,246 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django.urls import path
from . import views
urlpatterns = [
path('search', views.location),
path('ga', views.all_guides),
]
| [
"kurian.bkk@gmail.com"
] | kurian.bkk@gmail.com |
c16f8beb6dd17e8abea992b1486d2f97065e2a08 | 324d2f9f97c1eb82746ccbede11d359ce3ee0b60 | /Inject.py | 2bbd9635a78d20608221cd38b672261cdf861488 | [] | no_license | kokobae741/koko2in1new | 03512f1cd4b2c19e0a9a5b13046665667d3fdcf4 | f3be010bfcd2810244569d049e7381bf03ba0124 | refs/heads/master | 2020-06-12T21:46:03.520115 | 2019-06-29T18:13:43 | 2019-06-29T18:13:43 | 194,435,675 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,756 | py | import os
import sys
import random
import socket
import select
import datetime
import threading
lock = threading.RLock(); os.system('cls' if os.name == 'nt' else 'clear')
def real_path(file_name):
return os.path.dirname(os.path.abspath(__file__)) + file_name
def filter_array(array):
for i in range(len(array)... | [
"noreply@github.com"
] | kokobae741.noreply@github.com |
181a12cec462f882b8a8dd0b2c576c760b0d125b | 420139f1472cc9169cc5ad397ee7685d3429e992 | /LeetCode-solutions/medium/tree/208-Implement-Trie-(Prefix-Tree).py | 1a248b4ad319b562c0fb7e818e45ed864ae37748 | [] | no_license | nabilatajrin/competitive-programming | 8f2447ce641e5cd5c791147bf4985a72b0084345 | e421d627df9a50314f65e23ade0e100581b36eaf | refs/heads/master | 2023-08-18T07:16:59.347895 | 2023-08-14T05:26:22 | 2023-08-14T05:26:22 | 174,977,783 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | py | class TrieNode:
# Initialize your data structure here.
def __init__(self):
self.children = collections.defaultdict(TrieNode)
self.is_word = False
class Trie:
def __init__(self):
self.root = TrieNode()
def insert(self, word):
current = self.root
for letter in wo... | [
"noreply@github.com"
] | nabilatajrin.noreply@github.com |
57384c4656a81e353c32e9f8b5b9f09be76387db | dc1d85ff7a2bbb59292e5226b73cacee5f40a159 | /Scripts/scRNAseq/InVitro/MM468/Persister/run_local_GRN_arboreto.py | 2aef1b7d9b42cace93f5af707e1239f2d160e8f7 | [] | no_license | vallotlab/ChemoPersistance | 09cdb36d9f9a8166d378ad5c6a65b2b093e15b29 | 2c546ef7293f9dd58e0acf1c5d16e7616cf6789a | refs/heads/master | 2023-04-11T23:17:37.864902 | 2021-11-02T12:12:23 | 2021-11-02T12:12:23 | 299,303,167 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 565 | py | import os
import pandas as pd
from arboreto.algo import grnboost2, genie3
from arboreto.utils import load_tf_names
wd = os.getcwd() + '/'
net1_ex_path = wd + 'int/1.1_exprMatrix_filtered_t.txt'
net1_tf_path = wd + 'int/1.1_inputTFs.txt'
ex_matrix = ex_matrix = pd.read_csv(net1_ex_path, sep='\t', index_col=0, header... | [
"pacome.prompsy@curie.fr"
] | pacome.prompsy@curie.fr |
2a694eabe7199cc99ba33b4ee00cbceaed511c3c | ecc8ad26f7a4070650f0766875367f17aaa08bdf | /sdk/formrecognizer/azure-ai-formrecognizer/tests/test_receipt.py | bbe1a6fc0d2346a605fe8fffee885322ae139d8c | [
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | SnehaGunda/azure-sdk-for-python | 70eec2fb331916cc2b2765b69bd8e598c1e95533 | 88fae6ec703ac3641459b5d07158c9ed710524fe | refs/heads/master | 2022-12-01T15:15:30.855201 | 2020-05-18T20:22:49 | 2020-05-18T20:22:49 | 265,086,816 | 0 | 0 | MIT | 2020-05-18T23:19:41 | 2020-05-18T23:19:40 | null | UTF-8 | Python | false | false | 25,075 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from io import BytesIO
from datetime import date, time
from azure.core.exceptions import ClientAuthenticationError, ServiceRequestError, HttpResponseErro... | [
"noreply@github.com"
] | SnehaGunda.noreply@github.com |
5a53e41615f39015cfa2d0af16c6248ca4554853 | 69b6b7fc8cc2bab8e46b8db5ca2647a1cff26798 | /04_divisors.py | 79fbadfb7a240613678830da1535c5d5297d3f02 | [] | no_license | katecpp/PythonExercises | 7c8e54c9182521d3acea6b72715882e9b9e4315a | 4f57cc8e1e72ff5d3437558b4e7e312bdd1459b3 | refs/heads/master | 2020-04-18T07:48:09.432312 | 2016-11-29T10:55:06 | 2016-11-29T10:55:06 | 67,781,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | #! python3
def readInteger(name):
value = ""
while value.isdigit() == False:
value = input("Enter " + name + " : ")
if value.isdigit() == False:
print("This is not a number!")
return int(value)
print("Divisor finder. What number you want to check?")
number = readInteger("number... | [
"kasia.macias@gmail.com"
] | kasia.macias@gmail.com |
06ca5a72c98a955d6bee2f5f458083b0f0522baf | cead7da1a5db7268079a0ea63ef22067eb35e4de | /p1.py | 07bfde20b9e9fefd0e2a677e3f177e02e455b20f | [] | no_license | sbharathc1/Pc-scan-script | 5b5ae9e4eec5218f499f7c437ff9ca22e1a5ba01 | 8480c656d4d5d42cff0e4c5eeeaf37b0ab946f1f | refs/heads/master | 2021-09-07T11:39:10.095359 | 2018-02-22T12:19:21 | 2018-02-22T12:19:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,304 | py | #!/usr/bin/env python3
import os
import operator
def get_size():
i=raw_input("please select an option\n1.scan entire pc(may take few minutes)\n2.scan only specified path\n")
i=i.replace(" ","")
while(1):
if(i=="1"):
start_path="/"
break
if(i=="2"):
start_path=raw_input("please provide your folder path\n... | [
"noreply@github.com"
] | sbharathc1.noreply@github.com |
9284ce60220954204e63f2ef806f44fe4c25aa5c | c2c5af28d852c0fe2b535c59189e920ebd420471 | /src/logger.py | 890280d8ed5e6621c6247eb88dd304fb145980a7 | [] | no_license | olonyk/multi_modal_learning | f23cb9bb015871b5730fb166a28d62d68abd4df1 | e06c6fc1a3884bef97d5246bfc57c0ebaab235dd | refs/heads/master | 2021-05-06T03:35:28.411852 | 2017-12-20T16:03:31 | 2017-12-20T16:03:31 | 114,905,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from datetime import datetime
from multiprocessing import Process, Queue
from os.path import abspath, dirname, join
class Logger(Process):
def __init__(self, log_file=""):
super(Logger, self).__init__()
if log_file == "":
self.log_file = abspath(join(dirname( __file__ ), '..', 'log_file... | [
"olonyk@gmail.com"
] | olonyk@gmail.com |
241cafabc1786d18738a3dbb2c5762712ff8cf93 | 98ca37f5dd2751efaa060cca19e0b83f871d7765 | /sdk/translation/azure-ai-translation-document/tests/test_all_document_statuses.py | 57e1a2f437a4cfaf8be9034e89d309b760822451 | [
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later",
"MIT"
] | permissive | jayhebe/azure-sdk-for-python | 5ea99732ebb9929d3f6f77c08cc640d5915970b1 | f4455f85d9fe747fa4de2fdc691b975c07bfeea5 | refs/heads/main | 2023-06-24T01:22:06.602194 | 2021-07-28T02:12:25 | 2021-07-28T02:12:25 | 390,290,984 | 1 | 0 | MIT | 2021-07-28T09:23:46 | 2021-07-28T09:23:46 | null | UTF-8 | Python | false | false | 8,190 | py | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
from datetime import datetime
import functools
from testcase import DocumentTranslationTest
from preparer import DocumentTranslationPreparer, DocumentTra... | [
"noreply@github.com"
] | jayhebe.noreply@github.com |
f86da1b3ebfc2c35c88517b4bf4e187db8a1e127 | 4eac61601699e38a17e69d7917bab7259be720ba | /Server/Snapmap_db/Snapmap_db.py | 90dbbfaafaef27f1630774c608d15dd6decf2e78 | [
"Apache-2.0"
] | permissive | G-Doxastakis/SnapMap | 9433a1f65cb7742fb0fe1944caf826f2ab5992ed | a463315f45ce61d621474b45e538282aaa4ba258 | refs/heads/master | 2021-03-27T10:51:53.691377 | 2016-12-04T14:27:22 | 2016-12-04T14:27:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,193 | py | import sqlite3
def open_db():
conn = sqlite3.connect('Snapmap.db')
c = conn.cursor()
return c, conn
def create_table(c):
c.execute('CREATE TABLE IF NOT EXISTS \
Images(Name TEXT, Lat FLOAT, Long FLOAT)')
def add_entry(name, lat, lon, conn):
c = conn.cursor()
c.execute('... | [
"noreply@github.com"
] | G-Doxastakis.noreply@github.com |
ff2532571c8166d3675284f76593bd1a95dab989 | 0fb92723a990013d9d3d9c213a222f8ff6b5b68a | /python-1/main.py | 79e538a0bd5eabda81bc7997e0a1bcdd95deed8b | [] | no_license | DiegoAbreu/DataScience-Desafios-Code-Nation | e0bef8e559b2bfe473e3ef685428496aeb777729 | 8b9d15e412811c4be3d4d0d72f578e45e73ee46b | refs/heads/master | 2020-03-30T02:17:23.660827 | 2018-10-02T17:12:52 | 2018-10-02T17:12:52 | 150,623,517 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,989 | py | # coding: utf-8
# Todas as perguntas são referentes ao arquivo `data.csv`
# Você ** não ** pode utilizar o pandas e nem o numpy para este desafio.
import csv
from collections import Counter
def ler_coluna(coluna):
data = []
with open('data.csv', 'r') as csv_file:
csv_reader = csv.DictReader(csv_file, ... | [
"diego.souza.abreu@gmail.com"
] | diego.souza.abreu@gmail.com |
46fcc38f84594d6958f6b45acd381e86adb3dc74 | ad255b99c699113075e21ecea6f12756b85f6c9b | /inscriptions/migrations/0001_initial.py | 2a071529050c7d9ac6a4edf868d283a0370396dd | [] | no_license | obiwankennedy/rcmsite | 107052c519f8bf08eb0eba51ea3d6cdc10b5f814 | aef69b9230ebfc2b5cc63bf7587a05baad5bb25a | refs/heads/master | 2020-12-04T04:08:45.670664 | 2020-01-03T14:27:18 | 2020-01-03T14:27:18 | 231,602,726 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,784 | py | # Generated by Django 2.1.1 on 2019-02-19 21:18
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Event',
fields=[
... | [
"renaud@rolisteam.org"
] | renaud@rolisteam.org |
e755ee2dc322d58d532060b4eff46793cc342710 | 9d73e270f44b8893c11d1aafb4c15a0d5b359bae | /alembic/versions/edeb7133b093_adds_pure_json_collection_meta_table.py | 0e99c90e269e1ee1fbc7673c06bdff0bad716d83 | [] | no_license | UMNLibraries/experts_dw | 55011ee5afda65ac26b57507aec07dd171b85217 | 897c5442fb6a92336247c1372e5387ee7dc60510 | refs/heads/main | 2023-04-27T19:08:38.045074 | 2023-04-27T18:34:55 | 2023-04-27T18:34:55 | 81,886,376 | 2 | 0 | null | 2022-04-12T20:03:01 | 2017-02-14T00:28:00 | Python | UTF-8 | Python | false | false | 1,338 | py | """Adds pure_json_collection_meta table.
Revision ID: edeb7133b093
Revises: d2a6a03e4c73
Create Date: 2020-11-10 12:22:04.523444
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import oracle
# revision identifiers, used by Alembic.
revision = 'edeb7133b093'
down_revision = 'd2a6a03e4c73'
... | [
"nihiliad@gmail.com"
] | nihiliad@gmail.com |
f62ca0aa1cead10a3bcabd4ddedbe3af8afadcbb | ec81868f0c6f9914ecb08e1f4d53cd23009f344b | /kcf_tracker.py | 970b6aa52f56ac195ccbbf748d5ac8a72944db31 | [] | no_license | lingqing97/KCF_COPY | 1909b6f9e124eeb5da318067fbd3c108b0a6e362 | 4f5b2c0b8894599ccf282a9d8b274e531c2d54a9 | refs/heads/master | 2021-01-13T20:17:24.575227 | 2020-02-23T09:42:41 | 2020-02-23T09:42:41 | 242,482,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,785 | py | import numpy as np
import cv2
import copy
def limit(rect, limit):
'''
@description:根据limit对rect进行裁剪
@param rect:输入的矩阵,[左上角x,左上角y,w,h]
@param limit:限制的范围,[左上角,左上角y,w,h]
@return rect:裁剪后的范围
'''
if((rect[0]+rect[2]) > (limit[0]+limit[2])):
rect[2] = limit[0]+limit[2]-rect[0]
if((r... | [
"1766552041@qq.com"
] | 1766552041@qq.com |
f06015cdef49de3c91fb4a6212eece1e0d38b437 | c0bc042e73825a89949c1df1daefc41796903ae1 | /youtube/urls.py | aac35fa9fa3fba7ce66c1b936fd40c853849efae | [] | no_license | Pennylele/pennyfang_portfolio | 389aa93f392701ef5fa4f1a129d98c0ddd373dbc | b29706123b860d2378d89f0daa462b33e4609a68 | refs/heads/master | 2023-09-05T11:33:29.847845 | 2021-11-24T19:32:15 | 2021-11-24T19:32:15 | 325,154,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 474 | py | from .views import VideoListView, SearchResultsView, FilterByViews, VideoDetailView, Sync
from django.urls import path
app_name='youtube'
urlpatterns = [
path('', VideoListView.as_view(), name='home'),
path('search/', SearchResultsView.as_view(), name='search_results'),
path('sort-by-views/', FilterByView... | [
"fangle0121@gmail.com"
] | fangle0121@gmail.com |
41236c0357826b9c316bfb542762b2e3691a8c22 | 9bbdd8a50c9a4e3c2543dce278f438fdca91fc8a | /project_django/urls.py | c860bad9028615be81d44bd24a5d921a9d682214 | [] | no_license | abhisekdey83/project_django | cfd3749c5ce0cf96210824fdec2fb83228f48718 | 9e9ae2190189b3915a39f48ac77de9261b6a119e | refs/heads/master | 2023-05-04T01:48:13.893957 | 2021-05-27T18:19:02 | 2021-05-27T18:19:02 | 371,349,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 798 | py | """project_django 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... | [
"abhisek.consultant@gmail.com"
] | abhisek.consultant@gmail.com |
7a8f1b0479cbefd64d2db8ef7b12f4b23e9c6d4e | 91b80ef798cbcdaab7f6ae0be994f5a3b12f1515 | /93.py | efbe3c264235342658f2009b27e588c2561b0992 | [] | no_license | luckkyzhou/leetcode | 13377565a1cc2c7861601ca5d55f6b83c63d490e | 43bcf65d31f1b729ac8ca293635f46ffbe03c80b | refs/heads/master | 2021-06-21T11:26:06.114096 | 2021-03-24T21:06:15 | 2021-03-24T21:06:15 | 205,568,339 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 961 | py | class Solution(object):
def restoreIpAddresses(self, s):
"""
:type s: str
:rtype: List[str]
"""
seg_count = 4
res = list()
segments = [0] * seg_count
def DFS(segIdx, segStart):
if segIdx == seg_count:
if segStart == len(s):... | [
"luckkyzhou@gmail.com"
] | luckkyzhou@gmail.com |
5bd4b629e2c1439c220548e9247835c48992f28e | fac96b4c97150e02f1405f7430c89b115e4c27f7 | /ch08/ex8-20.printing_models.py | bfef927128761d040af4e85f8ced90253a583a32 | [] | no_license | gustavonvp/PYTHON-CRASH-COURSE | 37478990ff3c3c368da505eb9e5a35dee5d1960b | 8033e2eb84cf6d85fd4ff42ae0550f38dcd23f62 | refs/heads/master | 2023-04-03T00:42:20.333183 | 2017-10-24T05:47:01 | 2017-10-24T05:47:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 620 | py | # Start whith some designs that need to be printed.
unprinted_designs = ['iphone case', 'robot pendant', 'dodecahedron']
completed_models = []
# Simulate printing each design, until none are left.
# Move each design to completed_models after printing.
while unprinted_designs:
current_design = unprinted_designs.po... | [
"freebz@hananet.net"
] | freebz@hananet.net |
6e859c4eeaf898edbf7c63f09de8bce565c77eb2 | 168e5105e9867c2bd349d3e410f8f133aafe3de1 | /13.beautiful soup笔记.py | cded091978e58d626feafe2ad882b08b9789624a | [] | no_license | AB-IN-lsy/PythonSpider | 5378bd092a6f93b72d4d75203dce30c21fd10847 | ab90bcd48529cfaef0f095c272aa5b62ec814443 | refs/heads/master | 2023-05-01T21:37:35.261276 | 2021-05-17T12:31:01 | 2021-05-17T12:31:01 | 368,178,469 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import requests
r = requests.get("http://python123.io/ws/demo.html")
from bs4 import BeautifulSoup
soup = BeautifulSoup(r.text, "lxml")
'''
<html><head><title>This is a python demo page</title></head>
<body>
<p class="title"><b>The demo python introduces several python courses.</b></p>
<p class="course">Python is a w... | [
"liusy200708@163.com"
] | liusy200708@163.com |
c7a257fcfb9671357743b523c722338a44377458 | 4e29a6fd4d278d6f21c3853262b13c46f43dad87 | /SeleniumScripts/pom/pages/util_methods.py | e39d99b5791af728f6a9f2e188e8f2886f32034c | [] | no_license | abheet/Selenium-Robot-Framework | 5df73337d6b55406b23321981ab992537b9bf02e | 0352fd58e45123f1a75c29f95702c2a2eeb17f51 | refs/heads/main | 2023-06-22T03:33:56.217975 | 2021-07-16T16:47:53 | 2021-07-16T16:47:53 | 301,199,103 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,194 | py | from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from ..locators.locators import SignUpPageLocator
import config
def input_values(web_driver,locator,value=""):
"""Input/Enter Values for specific elements on page"""
try:
web_eleme... | [
"abheet.jamwal@gmail.com"
] | abheet.jamwal@gmail.com |
bb82f89b7e766b26b985e03b33f130543bb84b01 | c72fe96328f07909a6c243a6c5acb21895da3b01 | /Minimum_of_number_days_kohli_takes.py | 83b2f6015a8734eda8aba96e48b995cc32469e7e | [] | no_license | Sathyasree-Sundaravel/sathya | 348fcd8d0d75512e14d095ffe58abe902723fcde | 2951a8447d716fc8ab130465a40f1e7339cb88bf | refs/heads/master | 2020-05-25T22:59:57.120769 | 2019-07-21T12:53:04 | 2019-07-21T12:53:04 | 188,025,931 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | #Minimum number of days Kohli takes
n,t=map(int,input().split())
sec=list(map(int,input().split()))
count=0
for i in sec:
t1=86400-i
t=t-t1
count+=1
if t<=0:
break
print(count)
| [
"noreply@github.com"
] | Sathyasree-Sundaravel.noreply@github.com |
2e0ec754aadd0a7d602c299398b0bb7de5231134 | 96820782571b704b9642ec5df50e59debf1506b8 | /imagemain.py | 96f5fecbeb4373813d7b1914621014ed6971e8f7 | [] | no_license | Jeenal4801/Cryptography- | 34182b501f388a2d981a3a28bbc6e79810136e36 | b7a077ea7983a47d203021f1d8ae39be7e50a122 | refs/heads/main | 2023-05-24T00:05:48.291994 | 2021-06-16T07:01:20 | 2021-06-16T07:01:20 | 377,400,467 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 457 | py | # Home Screen for Image Encryption/Decryption
"""
@author : Ankit Devani , Jeenal Shah , Meghna Kanade , Sarthak Bharad
"""
print("What do you wish to do?")
print("1 - Image Encryption ")
print("2 - Image Decryption")
j = int(input())
if j == 1:
import imgencryption # Calling the image Encryption file
... | [
"noreply@github.com"
] | Jeenal4801.noreply@github.com |
2dfbe40fb67b4cd0e24ea193c8156e3c9fba4d56 | a61a0a20a767c94bea97029e1a0e7c814ca22a00 | /djangoProject/urls.py | 4dcc5e88bcb99d3b5ece9c24712fd4dcc9273ec4 | [] | no_license | sedyukov/MITPnotes | 884a29fd19dbe9babdb9a3157928b495732de09f | 6150ef14b5e151be4118a8fb7078a30b67a5bd91 | refs/heads/master | 2023-06-28T13:22:11.434104 | 2021-08-03T08:51:52 | 2021-08-03T08:51:52 | 370,229,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 801 | py | """djangoProject URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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')
Class... | [
"babecaleksei@yandex.ru"
] | babecaleksei@yandex.ru |
0a7e4ac3a6aa381a2be9b21e6ff39af814db7972 | 8acffb8c4ddca5bfef910e58d3faa0e4de83fce8 | /ml-flask/Lib/site-packages/joblib/parallel.py | dff07a7420ad4d2662baa74a296be91ffc236c13 | [
"MIT"
] | permissive | YaminiHP/SimilitudeApp | 8cbde52caec3c19d5fa73508fc005f38f79b8418 | 005c59894d8788c97be16ec420c0a43aaec99b80 | refs/heads/master | 2023-06-27T00:03:00.404080 | 2021-07-25T17:51:27 | 2021-07-25T17:51:27 | 389,390,951 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | version https://git-lfs.github.com/spec/v1
oid sha256:10afb49d59c3778a8fd053bbec2d63b85f3b24f63a308df37f309126a62f3571
size 46534
| [
"yamprakash130@gmail.com"
] | yamprakash130@gmail.com |
e735d3dbe96e2b6726a39a1e764ecda61d94be85 | 0764c6fa71758bcf9f61f137a2b2554b55045b2f | /HHmodel/twoneurons.py | 43af6deb253006d4c94b15b126d7faba18a7188f | [] | no_license | pujadpatel/pujadpatel-personal | 7bd5255d3927e820e1540f084cfe0cfb2fc6b831 | f4f761b253aafa7693ec44954d85048fd2d3f18a | refs/heads/master | 2021-01-11T20:44:21.508031 | 2017-12-12T03:17:30 | 2017-12-12T03:17:30 | 79,173,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,274 | py | from math import *
import matplotlib.pyplot as plt
import numpy as np
#Betas and Alphas
def alphaN(vm):
return (0.01*(10.0-(vm+60.0)))/((e**((10.0-(vm+60.0))/10.0))-1.0)
def betaN(vm):
return 0.125*e**(-(vm+60.0)/80.0)
def alphaM(vm):
return (0.1*(25.0-(vm+60.0)))/((e**(0.1*(25.0-(vm+60.0))))-1.0)
def bet... | [
"pujadpat@usc.edu"
] | pujadpat@usc.edu |
ec8e892b22ed3c2bc12e7b2a2063ba23a38398fe | 18ed2d60b066fff39abc0e417fa143c8ea1290bb | /interviews/indeed/first_duplicate_word.py | b0fd540cd91b39623f15cb9590e9ccf652b8fb1c | [
"MIT"
] | permissive | tanchao/algo | 1e518937891edd4bb7de27f85a7222ee7c027f41 | 92883db53fe2c5860319d4fca82b0ea32da0d2a8 | refs/heads/master | 2022-07-22T02:53:32.554524 | 2022-07-17T05:17:02 | 2022-07-17T05:17:02 | 19,317,206 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 335 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'tanchao'
def first_dup_word(text):
texts = text.strip().split()
words = set()
if len(texts) > 2:
for word in texts:
if word in words:
return word
words.add(word)
return ''
if __name__ == '__ma... | [
"chaos.tc@gmail.com"
] | chaos.tc@gmail.com |
439bbcad449efc5d0400e7a0ddcae109c2ef7bc2 | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02682/s885339008.py | 44ace31b98dd71329482c26565d401a8c6238465 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 90 | py | a,b,c,k=list(map(int,input().split()))
if k<=a+b:
print(min(a,k))
else:
print(2*a-k+b) | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
5d8c2c21c425289bf070970045fc338486eb2e08 | 66f383fec502102bfec58ed8cb9c43a71e599c55 | /apps/accounts/events.py | f34b3398d34130125064588eeea3a67c4b10f9ab | [
"MIT"
] | permissive | hacktoolkit/django-htk | 0a984a28f7fbc7eed8e2b1975d210792ddbee829 | 935c4913e33d959f8c29583825f72b238f85b380 | refs/heads/master | 2023-08-08T11:52:54.298160 | 2023-07-21T19:08:37 | 2023-07-21T19:08:37 | 15,924,904 | 210 | 65 | MIT | 2023-09-08T23:59:28 | 2014-01-15T04:23:40 | Python | UTF-8 | Python | false | false | 1,082 | py | # Python Standard Library Imports
# Third Party (PyPI) Imports
import rollbar
# HTK Imports
from htk.utils import htk_setting
from htk.utils.notifications import slack_notify
def failed_recaptcha_on_login(user, request=None):
extra_data = {
'user' : {
'id': user.id,
'username': u... | [
"hello@jontsai.com"
] | hello@jontsai.com |
e042996b58247ba2e883ecbe8c2cf259b2b5803b | f6c5d6db844d85c3af69ad0b08442cc68ab84c47 | /tests/arduino_tests/test_config_reader.py | 8dcdd30b949c9535ab492050bad3987ab913474f | [
"MIT",
"Python-2.0"
] | permissive | vt-sailbot/sailbot-21 | 364a8f41b431313b52386531599dc45a006cc6de | b5d75cb82e4bc3e9c4e428a288c6ac98a4aa2c52 | refs/heads/master | 2023-04-14T13:42:14.124404 | 2020-02-25T18:31:49 | 2020-02-25T18:31:49 | 203,252,828 | 5 | 0 | MIT | 2020-12-04T19:59:32 | 2019-08-19T21:28:56 | Python | UTF-8 | Python | false | false | 1,280 | py | import os
import unittest
from src.arduino.config_reader import read_arduino_config
from src.arduino.config_reader import read_port_config
from src.arduino.config_reader import read_pin_config
from tests.mock_bbio import Adafruit_BBIO
from tests.mock_port import serial
class ArduinoConfigReaderTests(unittest.TestCas... | [
"ryanjs@vt.edu"
] | ryanjs@vt.edu |
a70d21ed2a48720e2b9c9a258bcb1b746dda2e1a | 73e277935ef28fd05935c93a3f155c9cc6dc6de7 | /ctf/crypto/source/rbtree/rb2.py | 81ec357f0f8e932791d02d3999f89d0fbf068e95 | [] | no_license | ohmygodlin/snippet | 5ffe6b8fec99abd67dd5d7f819520e28112eae4b | 21d02015492fb441b2ad93b4a455dc4a145f9913 | refs/heads/master | 2023-01-08T14:59:38.618791 | 2022-12-28T11:23:23 | 2022-12-28T11:23:23 | 190,989,347 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,501 | py | # -*- coding: utf-8 -*-
BLACK = 0
RED = 1
#graphic elements of rbtree for printing
VC = '│'
HC = '─'
SIZE = 3
RIG = '┌' + HC * SIZE
LEF = '└' + HC * SIZE
SP = chr(32)
IND1 = SP * (SIZE + 1)
IND2 = VC + SP * SIZE
class rbnode(object):
def __init__(self, key=None, value=None, color=BLACK,left=None,right=None,p=None... | [
"laitaizong@gmail.com"
] | laitaizong@gmail.com |
49fc5957058c412d732f0ba5e3dfe4ad008051be | 3221f2c2c0c63fd93206ee04d99c2297a5ebd751 | /pandas/io/xml.py | c376b43f4d4dd64b44008d5958deff679e216bfa | [
"BSD-3-Clause"
] | permissive | taytzehao/pandas | a706430e1f26cbb935bb1fd5f45c15ca160a549c | 3c01ce2af5099a8a830195b2050d3a4036d14ff3 | refs/heads/master | 2023-08-30T21:36:45.552342 | 2023-07-22T20:30:48 | 2023-07-22T20:30:48 | 310,008,302 | 0 | 0 | BSD-3-Clause | 2021-05-26T12:32:57 | 2020-11-04T13:18:38 | Python | UTF-8 | Python | false | false | 37,728 | py | """
:mod:``pandas.io.xml`` is a module for reading XML.
"""
from __future__ import annotations
import io
from os import PathLike
from typing import (
TYPE_CHECKING,
Any,
Callable,
)
import warnings
from pandas._libs import lib
from pandas.compat._optional import import_optional_dependency
from pandas.err... | [
"noreply@github.com"
] | taytzehao.noreply@github.com |
046c143add2698a9229d1b07fa99e3656b742dbf | 8d5e41b9ea09cf5c8bd29f8288e1d31c0331b3a0 | /test/outFull_HLT_Run3TRK_ROICaloROIPF_Mu_oldJECs_data323775_lumijson_dump.py | 2ce3b959d70ea4a527e22df3e03ac0d0d4e8b21d | [] | no_license | SWuchterl/RecoBTag-PerformanceMeasurements | 073d7ad9f270695b949804567d4f32a693f5f3f2 | 5e24364be195a8f9a42aae265c6ab7e3e5fa2c1e | refs/heads/Run3_ForJIRA | 2022-05-20T05:59:32.337883 | 2022-01-04T11:27:49 | 2022-01-04T11:27:49 | 224,145,402 | 1 | 4 | null | 2021-12-08T13:35:31 | 2019-11-26T08:53:50 | Python | UTF-8 | Python | false | false | 5,028,515 | py | import FWCore.ParameterSet.Config as cms
from HeterogeneousCore.CUDACore.SwitchProducerCUDA import SwitchProducerCUDA
process = cms.Process("HLT2")
process.source = cms.Source("PoolSource",
fileNames = cms.untracked.vstring('/store/data/Run2018D/EphemeralHLTPhysics1/RAW/v1/000/323/775/00000/08D3F006-5E29-7945-B32... | [
"sebastian.wuchterl@cern.ch"
] | sebastian.wuchterl@cern.ch |
2dec1c6a28efe617cceabacff2ce60b4f5b118b0 | fe7e5da08236379d47237657db35010496257e20 | /036/solution.py | 5c8ab3d1f784a5305c0e0de5a2bf2d06340df2ae | [] | no_license | cenalulu/python_euler_solver | 8c6cada32e8cb9eeb4b565d0f18d350f003187b2 | be94f51b25595d3436d5473d030a3ec49313fb7b | refs/heads/master | 2021-01-21T13:04:32.801703 | 2015-04-12T11:29:04 | 2015-04-12T11:29:04 | 28,670,479 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #! encoding: utf8
from profile_decorate import profile
"""
The decimal number, 585 = 10010010012 (binary), is palindromic in both bases.
Find the sum of all numbers, less than one million, which are palindromic in base 10 and base 2.
(Please note that the palindromic number, in either base, may not include leading z... | [
"cenalulu@gmail.com"
] | cenalulu@gmail.com |
267642d43a20837d7f965469f7e60a9a22e35ea3 | 934961d96068ccaea46a32022614d07fc65007e1 | /save_as_pb.py | dc617cb6b2d67aa65632efcde16c0513c08bb0c3 | [] | no_license | AshutoshSancheti/FaceNet | 5a92ceb624ed4c2b219c51eb80f65c344f52d9f1 | e75dab169db8991dee2f4251e53abbabeecd3c06 | refs/heads/master | 2020-03-30T04:07:45.612426 | 2018-11-20T09:54:28 | 2018-11-20T09:54:28 | 150,725,631 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 833 | py | import tensorflow as tf
meta_path = 'mobilenet_v2_checkpoints/my_model-1100.meta' # Your .meta file
with tf.Session() as sess:
# Restore the graph
saver = tf.train.import_meta_graph(meta_path)
tf.get_default_session().run(tf.global_variables_initializer())
tf.get_default_session().run(tf.local_variab... | [
"ashusancheti13@gmail.com"
] | ashusancheti13@gmail.com |
7eeb2d332ea862f3ef932e2478861cd2c56abbca | 592e7e8f1224190c5a33ec7ca8ba97f1ae1919bd | /788/Sol_题解_dp.py | e6a67f7c9f0339e0a384769c6ed5e939421e7c7a | [] | no_license | Nicolas-Li/LeetCode | b4e5eaeb156aab8fb9ab531eb8425617e32d3914 | 7c60414d5dcdf4a3d74c11390ed50ec81def06cf | refs/heads/main | 2023-03-07T14:20:46.470271 | 2021-02-18T03:43:58 | 2021-02-18T03:43:58 | 331,369,748 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,303 | py | class Solution(object):
def rotatedDigits(self, N):
A = map(int, str(N))
memo = {}
def dp(i, equality_flag, involution_flag):
if i == len(A): return +(involution_flag)
if (i, equality_flag, involution_flag) not in memo:
ans = 0
... | [
"lijunjie_thu@qq.com"
] | lijunjie_thu@qq.com |
af378187d383f4e600616fca71efb3c592c82019 | 61b1bf7e921ddc908dea24df3268b1aa7acaad08 | /Django/viewsetsAndRouters/vr/api/serializers.py | 895ad2d07a755adfb56aa4c453b80fe9a80ab6ac | [] | no_license | FMasnaga/MyBlogCodes | ed5660c9bbb18e88d9c510eb3cebefcffc6ab338 | 7d3fa3762f6774cb15561d92f495fd969c0303dd | refs/heads/master | 2022-11-27T15:19:56.001437 | 2019-10-03T11:03:41 | 2019-10-03T11:03:41 | 203,200,651 | 0 | 0 | null | 2022-11-22T04:12:38 | 2019-08-19T15:33:47 | Python | UTF-8 | Python | false | false | 234 | py | from rest_framework import serializers
from vr.models import Profile
class ProfileSerializer(serializers.ModelSerializer):
user = serializers.StringRelatedField()
class Meta:
model = Profile
fields = "__all__" | [
"mmasnaga@gmail.com"
] | mmasnaga@gmail.com |
54358ec564208cff69b8e0c543657236e4c5419f | 028a51a4fd7118c33396f5b4c0f3aa3f56a6c6ac | /theInheritance.py | 78a1321e8e4eca6d0b755f1ea66983efeb0d296b | [] | no_license | sidd2502/learning-python | 343ee712b6a1fe2d13a83ca1dac860e965fc37ce | f3c1443d8306c5e2da650026853d3dec7250aea7 | refs/heads/master | 2021-05-09T10:06:50.322457 | 2018-01-25T18:32:52 | 2018-01-25T18:32:52 | 118,951,602 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | class Parent():
def __init__(self, surName, firstName):
self.surName = surName
self.firstName = firstName
def showdetail(self):
print("First name is:", self.firstName)
print("Sur name is:", self.surName)
billyCyrus = Parent("Cyrus", "Billy")
billyCyrus.showdetail()
class child... | [
"siddharthj.dce@gmail.com"
] | siddharthj.dce@gmail.com |
c1a061af3784a826750cede4415f266434c69d61 | 939b09af0f1a4f55ba07deff06b7812540edc444 | /Chapter2-Python语法基础/2-3-变量.py | 7825931dd58ef288c030e8988f0586bcb6c09f38 | [] | no_license | zsalec/Python-Full-Stack-Free | 0a4f7209e0707df676a5fb9567134c4ae7ed6f29 | cf9055d7994f40beadfbb5bf16f82706f050e865 | refs/heads/master | 2023-03-09T10:04:18.536218 | 2021-02-25T10:11:05 | 2021-02-25T10:11:05 | 314,942,980 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,269 | py | """
# 主要内容
- 坚持写 Blog
- jupyter notebook 的用法
- 变量
- 跟 vi/vim 的编辑模式很像
"""
# 声明变量的三种格式
# 格式 1
s1 = 'I love Python'
# 格式 2
s1 = s2 = 'I love Python'
# 格式 3
s1, s2, s3 = 'I love Python', 'I love China', 'Thinking less, done more'
print('I love Python')
"""
# 变量类型
- 严格意义上讲,Python 只有一种类型
- 标准数据类型六种
# 1. 数字 Number
# 2. 字... | [
"zs_alec@163.com"
] | zs_alec@163.com |
5d63bffd4927d97831cdd0d7c13b48c197613363 | f98836fedddf8e019dd10f443737eb40c6799450 | /lab6/code/results.py | bdce29f9430d0e1f0f92deedfa4521627e2e4203 | [] | no_license | Engcomm/eece5698_hss | ccf665c91b80c165ccc03acc43151273c444250d | fde6d9e2d19edeceefcfe87fb4eb4976905a25e1 | refs/heads/master | 2021-01-26T07:18:19.968371 | 2019-04-25T16:46:28 | 2019-04-25T16:46:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 354 | py | #!/usr/env/bin python
import sys
import os
import matplotlib.pyplot as plt
import numpy as np
with open('results.txt', 'r') as f:
data = np.loadtxt(f, delimiter='\n')
print(data)
fig = plt.figure()
ax = fig.add_subplot(111)
y = data / 100000
ax.set_xlabel('Number of NOP Instructions')
ax.set_xlabel('Accura... | [
"gupta.arjun45@gmail.com"
] | gupta.arjun45@gmail.com |
a1fa0b8461336e6b41dbd3f9d8d6774cf9eeb4d2 | 0dce3707bffce5e3af243b81c26f113d99e7eacd | /manage.py | b91743fd5879979a848e5b5de868e405ff429a77 | [] | no_license | sripathikrishnan/dockient | a41feefa4a1261e7d14bd521c591a9d705750267 | 16aefeaf892925ebcd7f7724abd1c199eecf4a13 | refs/heads/master | 2023-08-19T18:55:50.576139 | 2019-10-14T04:13:51 | 2019-10-14T04:13:51 | 214,945,723 | 0 | 1 | null | 2022-04-22T22:28:15 | 2019-10-14T04:10:42 | Python | UTF-8 | Python | false | false | 628 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "dockient.settings")
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Impor... | [
"sripathi.krishnan@hashedin.com"
] | sripathi.krishnan@hashedin.com |
cb662f3f1ec68283494e7dd6ab627411ce475ddd | 4bd818bc9bd83ed39c9d48b0e4e4821a2b8c45d9 | /src/etherollapp/etheroll/customtoolbar.py | d31f906fb38e24b9465769aeaa3b7894757e17a9 | [
"MIT"
] | permissive | AndreMiras/EtherollApp | 8ef158e9e5886922bb56a42d836daa392e5d5f2e | 2ccc30fad736a6fee0cba8b99c521bee6ad13087 | refs/heads/develop | 2021-09-11T14:41:04.753290 | 2021-09-01T07:28:44 | 2021-09-01T07:28:44 | 125,426,260 | 59 | 29 | MIT | 2021-06-08T20:29:42 | 2018-03-15T21:07:28 | Python | UTF-8 | Python | false | false | 846 | py | from kivy.app import App
from kivy.clock import Clock
from kivymd.toolbar import Toolbar
from etherollapp.etheroll.ui_utils import load_kv_from_py
load_kv_from_py(__file__)
class CustomToolbar(Toolbar):
"""Toolbar with helper method for loading default/back buttons."""
def __init__(self, **kwargs):
... | [
"andre.miras@gmail.com"
] | andre.miras@gmail.com |
f23d633a5d69aae619c2dab3c8bb97904d52a013 | 89607c2fb5fecc2bf94f410d1b9a83f51d1c82cf | /ProAlone/manage.py | 40e9c8c67b754bae00ef0d5c11764227b1dc9b53 | [] | no_license | niatro/django-deployment-example | 7bb8ccc134021d475d061aa8911d444d6f910219 | e2432d58cdd938abaebe9dc14cf1d2681e3261f0 | refs/heads/master | 2020-05-04T03:21:50.956418 | 2019-04-01T21:36:05 | 2019-04-01T21:36:05 | 178,945,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | #!/usr/bin/env python
import os
import sys
if __name__ == '__main__':
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'ProAlone.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise ImportError(
"Couldn't import Django. Are... | [
"nicolas.sanhueza@gmail.com"
] | nicolas.sanhueza@gmail.com |
b0fe4b6f20442f6ba76f885dbb49a445c8df729a | f07a42f652f46106dee4749277d41c302e2b7406 | /Data Set/bug-fixing-5/d59101416366fa8d50bd2d8218e772b2c6a8bd7f-<remove_from_device>-fix.py | 58894645341f61f607af0fa3f9de1bd569631b46 | [] | no_license | wsgan001/PyFPattern | e0fe06341cc5d51b3ad0fe29b84098d140ed54d1 | cc347e32745f99c0cd95e79a18ddacc4574d7faa | refs/heads/main | 2023-08-25T23:48:26.112133 | 2021-10-23T14:11:22 | 2021-10-23T14:11:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | def remove_from_device(self):
name = self.want.name
if self.want.parent_policy:
uri = 'https://{0}:{1}/mgmt/tm/security/firewall/policy/{2}/rules/{3}'.format(self.client.provider['server'], self.client.provider['server_port'], transform_name(self.want.partition, self.want.parent_policy), name.replace('/... | [
"dg1732004@smail.nju.edu.cn"
] | dg1732004@smail.nju.edu.cn |
3f5113c7c7eb29fed38d3eba86ad7c33317ca118 | 50a7fda682ad8afaa17f395c8e0873e55fe31a07 | /users/views.py | 2a45b423456f5b26215e2091e78a85e5e373972c | [] | no_license | Ngonie-x/auth-rest-api | c76f148e3f52da3a1e15426c4f91bc74c23ca89c | ba7c9e0e7effcca2739df0e41ca064fbdd86e247 | refs/heads/master | 2020-04-25T22:50:58.364387 | 2019-03-11T13:36:17 | 2019-03-11T13:36:17 | 173,124,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | from django.shortcuts import render
from rest_framework import generics
from . import models
from . import serializers
# Create your views here.
class UserListView(generics.ListCreateAPIView):
queryset = models.CustomUser.objects.all()
serializer_class = serializers.UserSerializer
| [
"ngonidzashedelight@gmail.com"
] | ngonidzashedelight@gmail.com |
ca20406b0711435356370909f50abbe6d902a1e4 | f0a910bb7e22b18b7a9babbdd44d62f13d095e9f | /ProjectEuler21.py | f1a44dcebbe81026aa6ecee83d84aa330c9a203b | [] | no_license | FlavitoAdr/Python | 92dc48b62ad4b0fc988925cfc124112ea5189638 | 5392ec7e94f3a772c26a84e71cd914b7ea953e38 | refs/heads/main | 2023-04-10T12:52:29.807797 | 2021-04-23T16:25:41 | 2021-04-23T16:25:41 | 360,771,211 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 466 | py | #Desafio 21#
soma = 0
for valor in range(1, 10001):
amigavel1 = 0
for i in range(1,int(valor/2+1)):
valorteste = int(valor/i)
valorteste *= i
if valorteste == valor:
amigavel1 += i
amigavel2 = 0
for i in range(1,int(amigavel1/2+1)):
valorteste = int(amigavel1/i)
valorteste *= i
if ... | [
"noreply@github.com"
] | FlavitoAdr.noreply@github.com |
ac528187a330a1170469d7253b64bf4680d05ce3 | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/verbs/_evaporating.py | c26673a9d07507032d353945f4ce1d7da9ede1af | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 261 | py |
from xai.brain.wordbase.verbs._evaporate import _EVAPORATE
#calss header
class _EVAPORATING(_EVAPORATE, ):
def __init__(self,):
_EVAPORATE.__init__(self)
self.name = "EVAPORATING"
self.specie = 'verbs'
self.basic = "evaporate"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
a262c50ef90ef1952dd214f40a1100e7a5091acd | 58de9f5a2525965dd76812d096866b19b894a1b0 | /scripts/aizhan.py | 9e621f96590ad81ae51f8328aabddafe627bd2a4 | [] | no_license | benevolence-doctor/sunny_shell | ce8624f6ad4e9a471b703d2581e93e19b73c603c | b7baad9914eab802669d3fce0fb5081485549e59 | refs/heads/master | 2016-09-06T18:01:38.333400 | 2015-07-24T10:32:26 | 2015-07-24T10:32:26 | 39,625,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | #!/usr/bin/python
# coding: utf-8
import re
import sys
import os
list_file = sys.argv[1]
def Get_Com_Name():
fd = open(list_file, 'r')
for line in fd.readlines():
line = ''.join(line.split())
cmd = 'curl -s http://icp.aizhan.com/%s > /dev/shm/site' % line
os.system(cmd)
... | [
"benevolence_doctor@yeah.net"
] | benevolence_doctor@yeah.net |
1af7f47f95544d80d7d801f40c729ada5bc0f594 | 99cefe56491f9872e5736d89407f26a41854bbb0 | /ch2_flow_control/swordfish.py | 0d0a9f40cf255fa5caeacb221bd119d816d51a38 | [] | no_license | scottwat86/Automate_Boring_Stuff_ | 416ad96d6c30fb4ff1036ad0ade18727dcddb669 | 81a87c1a1eea4405efe6ab91b7fe17c98b558602 | refs/heads/master | 2020-06-01T07:09:18.635781 | 2019-09-17T05:13:52 | 2019-09-17T05:13:52 | 190,692,907 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | # CONTINUE - bypasses remaining loop to start another iteration
while True:
print('Who are you?')
name = input()
if name != 'Joe':
continue
print('Hello, Joe What is the password? (It is a fish.)')
password = input()
if password == 'swordfish':
break
print('Access gran... | [
"scottwat@gmail.com"
] | scottwat@gmail.com |
04a50dc0e33be89b7e0b3dcf0a41fb02d629f963 | b0cdbad299f6174bfdb0fba173dbcf3889b82209 | /Object Oriented Programming/oops/exercise_4.py | 57620e40b0f7418b80594400b89402e36f343253 | [] | no_license | deesaw/PythonD-06 | a33e676f1e0cfc13b4ea645c8b60547b198239ac | 3c6f065d7be2e3e10cafb6cef79d6cae9d55a7fa | refs/heads/master | 2023-03-18T08:24:42.030935 | 2021-03-02T14:15:09 | 2021-03-02T14:15:09 | 343,797,605 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 864 | py | class Dog(object):
def speak(self):
print( "bhou..bhou" )
def guard(self):
print( "I am guarding your home" )
class Cat(object):
def speak(self):
print( "meau..meau" )
def hunt(self):
print( "I am hunting mice" )
class Dd(Dog):
def hobby(self):
print( "Biti... | [
"69420960+deesaw@users.noreply.github.com"
] | 69420960+deesaw@users.noreply.github.com |
2bc815cfc5915af087797f7920ffdd5df9947095 | 990b5b545215e622c8b3bb614126a96945582e4e | /web_scrapper/code_challenge/day9-10/main.py | e9164e2d0fc6fc8272ee4af5e58db6a5858b9219 | [] | no_license | WONILLISM/Study | 07448811d318ed0607c10531c693fe6f5bd24d9e | 0af974f2b28604a55f3b996a4e7f024182d940bc | refs/heads/master | 2023-02-15T06:59:29.571722 | 2020-07-10T07:57:09 | 2020-07-10T07:57:09 | 265,529,543 | 0 | 0 | null | 2021-01-06T10:46:58 | 2020-05-20T10:24:48 | Python | UTF-8 | Python | false | false | 1,177 | py | import requests
from bs4 import BeautifulSoup
from flask import Flask, render_template, request
base_url = "http://hn.algolia.com/api/v1"
# This URL gets the newest stories.
new = f"{base_url}/search_by_date?tags=story"
# This URL gets the most popular stories
popular = f"{base_url}/search?tags=story"
# This funct... | [
"wonillism@gmail.com"
] | wonillism@gmail.com |
7d20d98c12ea94f4e4e819261357222abd48644a | 33e459a3366455dd86d24f28fcfc221c867b382d | /sort_by_bits_assign-4.py | c1fbcab9b950e31792e3b7c260212c671b71858e | [] | no_license | Pavanyeluri11/LeetCode-Problems-Python | 1a442dc53836b83ab5b9cbcd90fc8cb8195051e2 | caa11c68ab893b81477aef5034d371922dd25fa6 | refs/heads/main | 2023-08-23T10:28:48.271077 | 2021-10-20T04:54:57 | 2021-10-20T04:54:57 | 417,374,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | def sortByBits(arr):
count_arr=[]
for i in arr:
count=0
while i:
count+=i%2
i= i//2
count_arr.append(count)
mapping = zip(arr,count_arr)
mapping.sort(key=lambda x: (x[1],x[0]))
#rint(mapping)
for i in range(len(arr)):
arr[i] = m... | [
"noreply@github.com"
] | Pavanyeluri11.noreply@github.com |
bdb483c20ea3101175cc2da86464a969387fdb36 | 402ce60f29a8304e94a91c7f57a373debc282525 | /newitjuzi/newitjuzi/helper/parser_helper.py | c865fa20014564c2a73a6a8e76ad4181ff2f4941 | [] | no_license | owengbs/koubeispider | ed1fd55b8f00025d9556abc5a5a32977a289c663 | aea3a3682befe1da6e9361a855b0fb548f0f896c | refs/heads/master | 2021-01-21T13:34:08.859887 | 2016-05-22T03:56:18 | 2016-05-22T03:56:18 | 53,579,992 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,675 | py | # -*- coding:utf-8 -*-
import cookielib
import random
import urllib2
import urlparse
from lxml import etree
from newitjuzi.db_handler.mysql_handler import DBHelper
from newitjuzi.models.funders_model import FuIndustry, FuPhase, FuArea
class ParserHelper():
scj = cookielib.CookieJar()
opener = urllib2.build_... | [
"chenshaoqin@chenshaoqindeMacBook-Pro.local"
] | chenshaoqin@chenshaoqindeMacBook-Pro.local |
ae0af1e4ee36986b50159982daa33a8f7311e4aa | aff9eaee65ec6af3ad492b92eba0c6d33fc888d9 | /raterprojectapi/migrations/0011_remove_game_action_pic.py | 13976918ecd7a3513c6476c3aaf9a879459cc6d3 | [] | no_license | jeaninebeckle/raterproject-server | dda9109748d8c6f70b16c2042248f72c04cecdbd | 97c3250fcf0d1f54876a918f27adec47e1fd1d9d | refs/heads/main | 2023-03-04T06:44:56.612921 | 2021-02-05T02:00:57 | 2021-02-05T02:00:57 | 313,794,566 | 0 | 0 | null | 2021-02-05T02:00:59 | 2020-11-18T01:56:32 | Python | UTF-8 | Python | false | false | 338 | py | # Generated by Django 3.1.3 on 2021-01-22 02:43
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('raterprojectapi', '0010_auto_20210122_0242'),
]
operations = [
migrations.RemoveField(
model_name='game',
name='action_pic',... | [
"jeaninebeckle@gmail.com"
] | jeaninebeckle@gmail.com |
29a1a2c46aa99f941385f809339cfe85914cf4d6 | 9d8acc20d2ee1d1957849dfb71c22e0dae2d8c5c | /baomoicrawl/venv/Lib/site-packages/scrapy/utils/sitemap.py | c9f5b4ef42d0d29efc71b43d2c9e9ba8ded9a1a6 | [] | no_license | thuy4tbn99/TranTruongThuy_17021178_Nhom4_Crawler | b0fdedee2942a12d9f64dfed93f43802dc5ab340 | 87c8c07433466bbc43a24ea089f75baeb467c356 | refs/heads/master | 2022-11-27T21:36:33.917491 | 2020-08-10T23:24:42 | 2020-08-10T23:24:42 | 286,583,216 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,548 | py | """
Module for processing Sitemaps.
Note: The main purpose of this module is to provide support for the
SitemapSpider, its API is subject to change without notice.
"""
from urllib.parse import urljoin
import lxml.etree
class Sitemap:
"""Class to parse Sitemap (type=urlset) and Sitemap Index
(... | [
"thuy4tbn99@gmail.com"
] | thuy4tbn99@gmail.com |
742563e6e5c8b80fb2370d0efff845ea3de25328 | 0ca9e70119bbb5f69d385809817ab2d7bc9f447e | /PropertyDeals/Accounts/views.py | 8fc3a6919a38c18831ed6af6f2f6d54daf5168f0 | [] | no_license | umerk4466/Investment-Property-Deals | bb4696ac78e38fcd0fbc26f234a2413b0a26358a | 6cb93f8d1bd01d936cb6382c1b06b10448a868a4 | refs/heads/main | 2023-04-02T12:26:03.214316 | 2021-04-08T15:45:35 | 2021-04-08T15:45:35 | 336,414,985 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from django.shortcuts import render, redirect
from .forms import InvestorSignup, DealSourcerSignup
from .models import User, DealSourcer, Profile
# Create your views here.
def investor_signup(request):
if request.method == 'POST':
form = InvestorSignup(request.POST)
if form.is_valid():
... | [
"umerk4466@gmail.com"
] | umerk4466@gmail.com |
25fc162a32a064435805350e835b68a86780e7df | bc0a71321b5fccd6f4c13ec0c76062ca6ed18fe6 | /venv/Scripts/pip-script.py | a883e8abea4a1471df4a4127ab4bd0410f28ae25 | [] | no_license | liangxioa/indev | fc95b567d8ddc97f7c80abaf86aa2fdae91bced1 | 334f126be5a6aebf6637c4b341e89a229c62f9cc | refs/heads/master | 2020-08-08T17:48:53.867256 | 2019-10-12T00:46:58 | 2019-10-12T00:46:58 | 213,644,553 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 388 | py | #!C:\python\indev\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==19.0.3','console_scripts','pip'
__requires__ = 'pip==19.0.3'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
... | [
"804092147@qq.com"
] | 804092147@qq.com |
653e892c9b0e8d7676e7419a4cd8223861cf33d8 | 4912cbd47c19c58d142e6833911d70f5ea037357 | /question_bank/reverse-string/reverse-string.py | c47284c0fefc2d681bb7e99d7485ae06dcaf5e97 | [
"Apache-2.0"
] | permissive | yatengLG/leetcode-python | a09a17cd9e60cafd9ff8ca9c068f5b70719c436f | 5d48aecb578c86d69835368fad3d9cc21961c226 | refs/heads/master | 2023-07-13T16:10:01.920716 | 2021-09-06T02:51:46 | 2021-09-06T02:51:46 | 286,969,109 | 13 | 6 | null | 2021-02-16T10:19:44 | 2020-08-12T09:13:02 | Python | UTF-8 | Python | false | false | 643 | py | # -*- coding: utf-8 -*-
# @Author : LG
"""
执行用时:36 ms, 在所有 Python3 提交中击败了98.98% 的用户
内存消耗:14.4 MB, 在所有 Python3 提交中击败了19.40% 的用户
解题思路:
双指针。分别指向列表首尾,然后交换指针指向元素
"""
class Solution:
def reverseString(self, s: List[str]) -> None:
"""
Do not return anything, modify s in-place instead.
"""
... | [
"767624851@qq.com"
] | 767624851@qq.com |
d28f93833de104995b112c67f309aeca3665e1a5 | 8e75f2ba056e5bd75647f1e3f9773e1015c0dd0e | /628_maximum_product_of_three_numbers.py | 9df4c2022f676107d77fa0ca3142287a66e826c7 | [] | no_license | eazow/leetcode | 96cbcba143ce04c6e83c5c985e19320f48c60b0d | c1c5ee72b8fe608b278ca20a58bc240fdc62b599 | refs/heads/master | 2022-12-10T00:06:06.676066 | 2022-11-29T09:02:04 | 2022-11-29T09:02:04 | 46,109,860 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 351 | py | class Solution(object):
def maximumProduct(self, nums):
"""
:type nums: List[int]
:rtype: int
"""
nums = sorted(nums)
return max(nums[-3] * nums[-2] * nums[-1], nums[0] * nums[1] * nums[-1])
assert Solution().maximumProduct([1,2,3,4]) == 24
assert Solution().maximumP... | [
"eazow@163.com"
] | eazow@163.com |
6b17b265a777bc0f99e7fc03867051e4f35588f9 | d4ad0fca089376759ff248e19e76be3c8498470d | /apps/__init__.py | cea904d1c561588670608b3371b1ef449206affa | [] | no_license | bestomato/showMongo | 8ab4abd570c0c6fdb054e45fecfdbf179fe625e4 | c1e94058f0df692cfeb5dd2545a7523ff3e88fca | refs/heads/master | 2020-05-17T04:56:55.181462 | 2017-07-24T01:57:54 | 2017-07-24T01:57:54 | 24,936,542 | 1 | 2 | null | 2014-11-27T07:17:41 | 2014-10-08T10:54:16 | null | UTF-8 | Python | false | false | 1,061 | py | #-*- conding:utf-8 -*-
import os
import sys
from settings import INSTALLED_APPS as _INSTALLED_APPS
# load app path into sys.path
def _app_path_load(dir_level_num=3):
app_root_path = os.path.abspath(__file__)
for i in xrange(0, dir_level_num):
app_root_path = os.path.dirname(app_root_path)
sys.p... | [
"50481322@qq.com"
] | 50481322@qq.com |
7214fb12828ab45047e3c1d8bc3774a847769908 | 956bd34816d4075fa28d96725e7e53eb803f1799 | /core/migrations/0025_auto_20210417_0318.py | 130b465e5a8902770d1ace131fb754e504ab151d | [] | no_license | d4nieldev/ebaycalculator | f0d2b67df8ea0c5d9544f6c44ffa77bfd31e5e20 | acf705d8b8f0d5806ec6b926c9573b59590f8e5a | refs/heads/master | 2023-06-20T05:14:09.872690 | 2021-07-18T20:03:52 | 2021-07-18T20:03:52 | 342,599,404 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | # Generated by Django 3.1.7 on 2021-04-17 00:18
from django.db import migrations
def set_default(apps, schema_editor):
Cost = apps.get_model('core', 'Cost')
for cost in Cost.objects.all():
cost.is_constant = True
cost.save()
class Migration(migrations.Migration):
dependencies = [
... | [
"danielohayon2019@gmail.com"
] | danielohayon2019@gmail.com |
9848cbcc79703b08c9c0e9ee9bbbd69fb4c86624 | b7add0d1b1effc50b27d3316fa5889a5227e5b19 | /Atlasbuggy/atlasbuggy/files/videofile.py | 205f824be3d6e10d3c1e8934bf447a376387c7fd | [] | no_license | Woz4tetra/Atlas | efb83a7c7b2698bf8b36b023f7aa573cc38284f6 | c7380868a9efef9d1594ed7aa87187f03a7e4612 | refs/heads/master | 2020-04-04T06:25:50.657631 | 2017-04-05T01:53:15 | 2017-04-05T01:53:15 | 50,269,756 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 7,588 | py | import cv2
import time
from atlasbuggy.files.atlasbuggyfile import AtlasWriteFile, AtlasReadFile
from atlasbuggy.files.logfile import default_log_dir_name, default_log_file_name
class VideoPlayer:
def __init__(self, video_name, video_dir, window_name, capture, width=None, height=None, frame_skip=0,
... | [
"woz4tetra@gmail.com"
] | woz4tetra@gmail.com |
669a2e4701f8645fc4b2cd4655b0d0d25f043f02 | 539721a0fa156a8195e2e80d45f032a78197767e | /elements/python/8/17/soln.py | a2f2df54f07d95534a513a4d7f10831310975c19 | [
"MIT"
] | permissive | mmcloughlin/problems | d03300f3f7e4a50881af8f137274d6bb9fd4cb2f | 6095842ffe007a12ec8c2093850515aa4e046616 | refs/heads/master | 2022-01-12T09:23:24.356430 | 2019-06-13T01:04:09 | 2019-06-13T01:04:09 | 58,326,556 | 11 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,447 | py | import random
class Node(object):
def __init__(self, x, nxt):
self.x = x
self.next = nxt
def pivot(n, k):
heads = [None]*3
tails = [None]*3
# build sections independently
while n is not None:
i = 1+cmp(n.x, k)
if heads[i] is None:
heads[i] = n
... | [
"mmcloughlin@gmail.com"
] | mmcloughlin@gmail.com |
08b3051adaf303a2d19d7736a97fbe771d06b6ae | 80760d4c8a6b2c45b4b529bdd98d33c9c5509438 | /Practice/atcoder/ABC/130/src/d2.py | 82230a1e0cc7c786640ababca689faaaffcd8866 | [] | no_license | prrn-pg/Shojin | f1f46f8df932df0be90082b475ec02b52ddd882e | 3a20f1122d8bf7d95d9ecd205a62fc36168953d2 | refs/heads/master | 2022-12-30T22:26:41.020473 | 2020-10-17T13:53:52 | 2020-10-17T13:53:52 | 93,830,182 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | # 尺取の練習と聞いて
n, k = map(int, input().split())
arr = list(map(int, input().split()))
ans = 0
r = 0
tmp_sum = 0
for l in range(n):
# 条件を満たすまで右端を伸ばす
while r < n and tmp_sum < k:
tmp_sum += arr[r]
r += 1
# whileを抜けた時は条件を満たしている
if r == n:
while tmp_sum >= k and l <= n:
tmp_... | [
"h4l@yahoo.ne.jp"
] | h4l@yahoo.ne.jp |
f1f61533bdd10a1d0934ffcb81c2cc36423c1451 | 59d7299e1c8f81dc27458aeb2efc9b5ccbccc1c3 | /utilities/pybrain_examples/fft.py | 494afe789f615f6340d825f70db9bf76a4b948c4 | [] | no_license | Cognitive-Technology-Group/PyOBCI | 43993ef9451d9120176d3a0899e5338098e4f5e7 | 611d22265aa68dc7ca4381c6c65f5349e641c97d | refs/heads/master | 2016-09-06T15:36:49.057104 | 2015-01-17T06:16:27 | 2015-01-17T06:16:27 | 21,548,385 | 5 | 2 | null | 2015-04-30T00:09:55 | 2014-07-06T20:50:57 | Python | UTF-8 | Python | false | false | 2,182 | py |
from mne import filter
import numpy as np
import matplotlib.pyplot as plt
def windowed_fft(data, fs):
""" Applies a Hanning window, calculates FFT, and returns one-sided
FFT as well as corresponding frequency vector.
"""
N = len(data)
window = np.hanning(N)
win_pow = np... | [
"jnaulty@gmail.com"
] | jnaulty@gmail.com |
90956aeffa8957e9ba1fd7628a4d3623d503c407 | 4ccafcdedc87262b76f61b4a04b458e083d27305 | /pb de planificare/planificare.py | 74577544f6fa7a73124b7a1d7d84609b2f05798f | [] | no_license | mihaela-nichita/DAI | cf313228d6dd5712366ca1595bed374e3b67e579 | 823cc8958f83681f7b62a650e01a572f35620bad | refs/heads/master | 2020-04-26T02:39:51.027845 | 2019-04-22T08:36:18 | 2019-04-22T08:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,249 | py | from collections import namedtuple
Nod = namedtuple("Nod", ['stare', 'actiuni', 'd', 'g', 'h', 'f'])
Stare = namedtuple('Stare',['poz_rob','pe_cutie', 'poz_cutii','lumini'])
DA='DA'
NU='NU'
def opUrcare(s):
if s.pe_cutie == NU:
return
camere = [1,2,3]
if s.poz_rob != None:
camere = [s.p... | [
"40822291+MihaelaNichita@users.noreply.github.com"
] | 40822291+MihaelaNichita@users.noreply.github.com |
c112d5ce3c5633ee755fd9211c360485d7c5e38f | 82a9077bcb5a90d88e0a8be7f8627af4f0844434 | /google-cloud-sdk/lib/tests/unit/surface/apigee/operations_describe_test.py | e7433df43a3aae0f564d4c7c695e60939f77816c | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | piotradamczyk5/gcloud_cli | 1ae2553595e569fad6ce84af62b91a7ee5489017 | 384ece11040caadcd64d51da74e0b8491dd22ca3 | refs/heads/master | 2023-01-01T23:00:27.858583 | 2020-10-21T04:21:23 | 2020-10-21T04:21:23 | 290,238,061 | 0 | 0 | null | 2020-10-19T16:43:36 | 2020-08-25T14:31:00 | Python | UTF-8 | Python | false | false | 1,920 | py | # -*- coding: utf-8 -*- #
# Copyright 2020 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless requir... | [
"actions@github.com"
] | actions@github.com |
7ac3108667a2fc73e496511aca4aa994b5413c18 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bps_cs22950-10/sdB_bps_cs22950-10_coadd.py | e98ff4ffa0393f2b27e60d204c16b04f0ab364d4 | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | from gPhoton.gMap import gMap
def main():
gMap(band="NUV", skypos=[304.840292,-15.674492], skyrange=[0.0333333333333,0.0333333333333], stepsz = 30., cntfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/sdBs/sdB_bps_cs22950-10/sdB_bps_cs22950-10_movie_count.fits", cntcoaddfile="/data2/fleming/GPHOTON_OUTPUT/LIGHTCURVES/... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9526ec485a8eb1597853ea79ad6840a6b23c7b3b | 4d38f25ac0b559a65c4df048c41a1b08bd8fae29 | /Recipe/migrations/0002_auto__add_field_recipe_parent_id.py | 74d05fd6174cefe34d45b63e243daca903966219 | [] | no_license | phillipsra16/BrewMe | b18e488ff2aafe233afd195e8ed410f6fd6621b2 | 22eb918a177d89b00b937086ae9c9372ece69dd7 | refs/heads/master | 2021-01-17T14:19:41.384359 | 2013-05-04T20:27:16 | 2013-05-04T20:27:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,704 | py | # -*- coding: utf-8 -*-
import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Recipe.parent_id'
db.add_column('Recipe_recipe', 'parent_id',
self.gf(... | [
"wyattpj@email.appstate.edu"
] | wyattpj@email.appstate.edu |
3ade23a3375f44b04596853076e8b492aac84448 | 68b217bb04efa66920a9bee097472e216a6b09eb | /dnn_wide_and_deep/preprocess_pipeline.py | 79d091641e4e09ceef0cbb9e07d8dc89b6f778aa | [] | no_license | sagravat/google-cloudml-workshops | 1a43c9ac9fe944ab08383b1cbf9625a4f077b240 | 7c5c039df2400aa84eb8a36cb15d12866a9211af | refs/heads/master | 2021-06-25T16:19:48.656818 | 2020-11-24T20:39:30 | 2020-11-24T20:39:30 | 142,514,939 | 0 | 1 | null | 2019-10-30T22:44:26 | 2018-07-27T01:59:03 | Jupyter Notebook | UTF-8 | Python | false | false | 10,106 | py | import tensorflow as tf
from tensorflow import data
import tensorflow_transform as tft
import tensorflow_transform.coders as tft_coders
from tensorflow_transform.beam import impl
from tensorflow_transform.beam.tft_beam_io import transform_fn_io
from tensorflow.contrib.learn.python.learn.utils import input_fn_utils
fr... | [
"agravat@agravat-macbookpro.roam.corp.google.com"
] | agravat@agravat-macbookpro.roam.corp.google.com |
9d96d467699e2db6bbc9dacc1e91761aab92a6dc | 2d921bb03eade0763ddb3a9cc5cb637730ecbde1 | /python/plot/PlotStyle.py | 12d2ecb4732ab7424ed515bca8ebc8ce4145f6a4 | [] | no_license | rmanzoni/WTau3Mu | 10c57971b80f9769578284abd69009008901eea7 | 5ad336df976d5a1b39e4b516641661921b06ba20 | refs/heads/92X | 2021-01-18T15:10:41.887147 | 2019-05-09T12:48:00 | 2019-05-09T12:48:00 | 84,342,825 | 0 | 7 | null | 2018-07-19T09:08:19 | 2017-03-08T16:35:42 | Python | UTF-8 | Python | false | false | 5,537 | py | from ROOT import gROOT, gStyle, TFile, TH1F, TH2F, TCanvas, TLegend, TF1, TGraph, TVectorF, TGraphErrors, TObjArray, THStack, TStyle, TGaxis, kWhite
""" Initialises default ROOT plot style.
In order to support old instances of the PlotStyle that
depended on a given ntuple, it is setup as a class.
"""
class P... | [
"riccardo.manzoni@cern.ch"
] | riccardo.manzoni@cern.ch |
635bd4085a4fdd6fef954d62dc513a0220d56cfd | 04b494a2286e7d0ec3bbe8d25c15d575486a0f91 | /_exercises/exercise113/exercise113.py | b555ca05f49c798a2c6370f04eec96053da588c3 | [] | no_license | ViniciusGranado/_studies_Python | ea6adc35edccfbd81a67a613e8cd468fd8485856 | af645fa777a408a8ff1b8ed89911971f5b537ac7 | refs/heads/master | 2023-02-01T19:57:04.117047 | 2020-12-19T00:56:10 | 2020-12-19T00:56:10 | 258,855,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,060 | py | def read_int(msg):
while True:
try:
number = int(input(msg))
except (ValueError, TypeError):
print('[ERRO] Digite um número inteiro válido.')
print()
except KeyboardInterrupt:
print('[ERRO] Entrada de dados interrompida.')
print('Co... | [
"vinicius.r.granado@gmail.com"
] | vinicius.r.granado@gmail.com |
8adfff16b60943bb8d918070b4995a2715c7150d | da5dd3c4172b1d1238f8c6c43589f84f984a34ec | /mtg.py | 871aeeb0798096cea320ea903d71ec26d7c329a5 | [] | no_license | JKFrantz/BlueStew | 497dfe3b51f1c864f101e4a240eefc2d7efa54e1 | ad246a9f79668139807af107708dcdc8e02e314a | refs/heads/main | 2023-04-12T21:22:26.952477 | 2021-05-12T04:57:48 | 2021-05-12T04:57:48 | 365,330,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,944 | py | import glob
import os
import numpy
import scrython
import pandas as pd
import time
from collections import defaultdict
class Card:
def __init__(self, dict):
# val_list must be a dictionary with keys like "cmc"
self.values = dict
# return method for any variable
def get(self, val):
retu... | [
"noreply@github.com"
] | JKFrantz.noreply@github.com |
a45d6d5dc449af0ee13747707b980ba6ccfb25bb | cbe59135edf1c03aef4ba4a37db7b2ef044a8061 | /manage.py | 87ce9fc302adeb5ce0e1f5992212dbdfa36a0a87 | [] | no_license | Bubuclem/metro | aabdc4244b834998212564779c5ea0b0683161a7 | 8c320b47d9169732694e12d9c865b3f3bcda6615 | refs/heads/master | 2023-04-12T04:09:35.238311 | 2021-05-22T10:38:39 | 2021-05-22T10:38:39 | 369,619,018 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
"""Run administrative tasks."""
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'TPMetro.settings')
try:
from django.core.management import execute_from_command_line
except Impo... | [
"clement.bubuyt@gmail.com"
] | clement.bubuyt@gmail.com |
a3154200beab4765d7c8177e01cc426ef4ec63b0 | 3a40a3611195dc517137b9cc089c7ddf362a0fac | /math_practice.py | 3671db4e5bbab2b9260260bf8d1a9f2321eba774 | [] | no_license | kfcole20/python_practice | 6931d9f3bbfd37d5407afef57ba3b251b2cf9ddf | ba824c2e80b54482e5c6678e7e9766a5482c21ae | refs/heads/main | 2023-08-24T15:13:24.113338 | 2021-10-19T21:51:21 | 2021-10-19T21:51:21 | 417,870,766 | 0 | 0 | null | 2021-10-17T23:17:26 | 2021-10-16T15:36:20 | Python | UTF-8 | Python | false | false | 1,021 | py | # Assignment: Multiples, Sum, Average
# This assignment has several parts. All of your code should be in one file that is well commented to indicate what each block of code is doing and which problem you are solving. Don't forget to test your code as you go!
# Multiples
# Part I - Write code that prints all the odd nu... | [
"kfcole20@gmail.com"
] | kfcole20@gmail.com |
55584a728432a93b6c2d548ab317693f82c8a4ad | 022620bbd69fc42dc492694132bb4d6897ddaabb | /dragon/transpiler/lark/lark_transpiler.py | 4d1ee5d15a7cb5e7faed183780ee5fb7bee1f165 | [] | no_license | pombredanne/dragon | 7e6de67515727e850be9565e13531e81c4bf62c2 | bf9318dbaac4aeca146fa25a733e2bbc87d83242 | refs/heads/master | 2021-01-24T22:06:36.803346 | 2018-02-23T03:42:46 | 2018-02-23T03:42:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,113 | py | from lark import Lark
from dragon.transpiler.lark.python_indenter import PythonIndenter
from dragon.transpiler.lark.transformers.haxe_transformer import HaxeTransformer
import os
import sys
class LarkTranspiler:
_PYTHON_3_GRAMMAR_FILENAME = 'python3.g'
# TODO: try PyPy, etc. once you get a large ... | [
"nightbladecodes@gmail.com"
] | nightbladecodes@gmail.com |
7d6d68b3b902f1b2c8ce1f454317c21f2906e308 | 40268182f4aca109612a7c54c74b40bda245c3a2 | /src/main/admin/ducc_rsync | 0e25fbb941c75215fa9f6297a4a288685b7fd015 | [
"LicenseRef-scancode-unknown",
"CC0-1.0",
"CC-BY-2.0",
"CC-BY-SA-2.5",
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference",
"CC-BY-SA-3.0",
"LicenseRef-scancode-unicode",
"CC-BY-SA-2.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"MPL-1.0",
"LicenseRef-scancode-proprietar... | permissive | apache/uima-ducc | 51f51158e5bfb7f4d85efebcd3961fc73967c1e6 | fd8cab1dfe0ee8bd4b2e52637735f994048725cd | refs/heads/trunk | 2023-08-22T05:21:56.848900 | 2020-05-27T12:41:11 | 2020-05-27T12:41:11 | 15,070,660 | 9 | 24 | Apache-2.0 | 2023-07-18T12:32:19 | 2013-12-10T08:00:23 | Java | UTF-8 | Python | false | false | 14,020 | #!/usr/bin/env python
# -----------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF li... | [
"degenaro@apache.org"
] | degenaro@apache.org | |
69fb8eb6f8407bd166d3efed59289d420bdbaf8f | 272fa15878377ce874e292534714288d9d24d294 | /colors.py | 29cedf0d7ecd190044761acf49e339be7d125be7 | [] | no_license | Kevin-H2R/PokerNoLosDos | 292a6d2e5f813d3a4d40156348e3fea07e7c6c61 | aadfc46a34a3a3cdf3b1e2d80cb3e6a2816f3fb8 | refs/heads/master | 2021-08-30T11:08:15.802961 | 2017-12-16T18:38:11 | 2017-12-16T18:38:11 | 113,234,054 | 1 | 1 | null | 2017-12-17T15:51:49 | 2017-12-05T21:17:57 | Python | UTF-8 | Python | false | false | 99 | py | from enum import Enum
class Colors(Enum):
HEART = 1
DIAMOND = 2
SPADE = 3
CLUB = 4 | [
"diablo22007@gmail.com"
] | diablo22007@gmail.com |
75fdabe5340f4b15d16a487f118c0e2cc7b6ad4e | ab89de004e7c17cf23f497532e0e0249bfa7a35f | /BATTSI-v1.0-Part3.py | 833da439252b0115328ce16bb49cc9a27beeca37 | [] | no_license | fernan9/BATTSI | 0cf55fe4a44287cac2fa37bfd49c4715353d078f | 069e456ea44d6dbbfb19ae8dfd4c44625f47d991 | refs/heads/main | 2023-06-17T16:10:34.800328 | 2021-07-13T19:49:05 | 2021-07-13T19:49:05 | 385,718,755 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,647 | py | # -*- coding: utf-8 -*-
"""
BATTSI version 0.1
-
Standing for
-
Biological Activity Transformation Tool for Small Insects
version 0.1 - Still Script
last modified July 2021
-
Remaining bugs
*
This series of scripts uses the Python computer vision library OpenCV
"""
import cv2
import numpy as np
import... | [
"noreply@github.com"
] | fernan9.noreply@github.com |
4a6cebd005e0514777d65f241202ecc0c147dfc6 | b43398f48ac2c7ac31918fd4415b149691d28a17 | /YOLO_v3_Object_Detection/bbox.py | 506f05a11bf536f07e4f22ed4efe588e863102d1 | [] | no_license | ake020675/RoadCrackDetection | f6c9b933dc37d6b5667175e431f38b26a5a52874 | 5e93b66c706f28c394895b213cfe48fd3a27cf81 | refs/heads/master | 2023-01-03T04:15:06.161880 | 2020-10-26T08:28:15 | 2020-10-26T08:28:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,347 | py | from __future__ import division
import torch
import random
import numpy as np
import cv2
def confidence_filter(result, confidence):
conf_mask = (result[:, :, 4] > confidence).float().unsqueeze(2)
result = result * conf_mask
return result
def confidence_filter_cls(result, confidence):
max_scores =... | [
"49043498+ZawLinTun16925410@users.noreply.github.com"
] | 49043498+ZawLinTun16925410@users.noreply.github.com |
4f8bac6b5e0090131a6376b376fa7e0af1e5899b | c9a910c3ebfed5a9c76c4681a0ce39fb7cb6ba08 | /Project/settings/staging.py | 4c57472bc36aa38c563f22e128c317cce623d292 | [] | no_license | gideonw14/django-starter | 8ba1dfaeba0951835254a0fd19b7b4da28210e44 | dff4ac695fd4cdde2f28789aa791d112e56e03a2 | refs/heads/master | 2021-07-12T07:09:37.720285 | 2017-10-16T22:33:43 | 2017-10-16T22:33:43 | 106,753,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | # Staging version for running a semi-private version of the site on a production
# server. This is where managers and clients should be looking before your work is
# moved to production. | [
"gideonw14@gmail.com"
] | gideonw14@gmail.com |
de89526204340fed105a0efb1a4cfd7137b26f44 | b08d42933ac06045905d7c005ca9c114ed3aecc0 | /src/coefSubset/evaluate/ranks/tenth/rank_2i26_I.py | 4c80ed792391aea378782cf42541231cd379011d | [] | no_license | TanemuraKiyoto/PPI-native-detection-via-LR | d148d53f5eb60a4dda5318b371a3048e3f662725 | 897e7188b0da94e87126a4acc0c9a6ff44a64574 | refs/heads/master | 2022-12-05T11:59:01.014309 | 2020-08-10T00:41:17 | 2020-08-10T00:41:17 | 225,272,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,204 | py | # 9 July 2019
# Kiyoto Aramis Tanemura
# Several metrics are used to assess the performance of the trained RF model, notably native ranking. This script returns a ranking of the native protein-protein complex among a decoy set. For convenience, I will define as a function and will call in a general performance assess... | [
"tanemur1@msu.edu"
] | tanemur1@msu.edu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.