blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
73fdfa8e50371921779208e9a8d8a4227ba72e27 | b0d7099e1537a9e3d2ddaaa66102b66f482a138c | /Testing/PotConvert2.0.py | 5330b3aa14959b070fb65b04fc947eaace43561f | [] | no_license | clairepibs/Podium | 2e7249017e7f16934557b5141df7cec2cfdf6968 | dfe7142070dc7f8ac99566d72bebc52f7cbaedbe | refs/heads/master | 2020-04-17T01:24:04.515980 | 2019-09-04T16:27:23 | 2019-09-04T16:27:23 | 166,089,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,662 | py | import os
import time
import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3008 as MCP
from adafruit_mcp3xxx.analog_in import AnalogIn
#values must be verified in testing
volt_min = 0
volt_max = 1023
delay_min = 0.5
delay_max = 0.0001
# create the spi bus
spi = busio.SPI(clock=b... | [
"noreply@github.com"
] | noreply@github.com |
fd722147173985e39bbfac53b4964d46fce9aed0 | b12ca97474a77a2ca4cfe85c4740df37f71824ca | /yazhengma/App/templates.py | 12481f88192408ba56d378143e3d838bd2c7d208 | [] | no_license | BigSGZ/verify_code | 25f2e51405023f114c30c25284624e225282ccfd | 73d641a45e36fdb92d8b12d1262de07a3be61107 | refs/heads/master | 2020-03-25T20:55:39.038908 | 2018-08-09T13:08:47 | 2018-08-09T13:08:47 | 144,151,481 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20 | py | # encoding: utf-8
| [
"17694871425@163.com"
] | 17694871425@163.com |
bc7f40d824c5027cab90485950900d30e9b3272a | d1a0fe4461b9cbf4a75d3e5d3048758da6eaa497 | /adversarial_mitigation/evaluation.py | 0e2410c02c5d274d924f897654c560985c579e7e | [
"MIT"
] | permissive | Hadryan/FairnessRetrievalResults | a0fdc40253fd7ee277772754da6735f554332666 | 53b2076f0c420144d405ed1918ea3447812b6531 | refs/heads/main | 2023-06-19T03:54:29.844918 | 2021-07-18T15:20:16 | 2021-07-18T15:20:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,955 | py | import os
import copy
import time
import glob
from typing import Dict, Tuple, List
import pdb
import numpy as np
import pickle
import torch
from pathlib import Path
from allennlp.nn.util import move_to_device
from allennlp.common import Params, Tqdm
from sklearn.metrics import accuracy_score
from multiprocess_input_... | [
"navid.rekabsaz@gmail.com"
] | navid.rekabsaz@gmail.com |
2ac2090973a00df6f61a9d8355ed8ab180f9de92 | 027d29567d77708fece6efc8c210e72060fa49fc | /get_araneumdata.py | 0b2901e70c755d0c442ceb7f0894b75e2c7b6f66 | [] | no_license | hrmJ/phd-data-processing | 6065f698bc0885124fe7d4f181be38a38036a8ae | f352d4db552db45918fd41a71fdad65e07cf987e | refs/heads/master | 2020-03-21T05:27:45.478555 | 2018-10-22T17:23:30 | 2018-10-22T17:23:30 | 138,161,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,706 | py | #!/usr/bin/env python3
from urllib.request import urlopen
from bs4 import BeautifulSoup
import codecs
from selenium.webdriver.firefox.firefox_profile import FirefoxProfile
from selenium.webdriver.common.by import By
from selenium import webdriver
from subprocess import Popen, PIPE
import time
import sys
import json
i... | [
"juho.harme@gmail.com"
] | juho.harme@gmail.com |
5edc217de429b3f6e36110667331102c2ff1f766 | c5658258a0d6dba2e929e1d6610c022da2f6daea | /Structure/Window.py | 50ed868f4b87433df034d31ff9cd31fed4ec3b66 | [] | no_license | Aman-Singh-404/File-Segregator | 38e1741321935eca34747185c7b37fdd378ae8ad | b6ecefd7239998f484b9434819307c8d2c98bf16 | refs/heads/master | 2023-02-13T18:29:35.152527 | 2021-01-13T04:19:42 | 2021-01-13T04:19:42 | 262,398,650 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,656 | py | import os
import shutil
from PyQt5.QtWidgets import QFileDialog, QMainWindow, QMessageBox
from Interface.UI_Segregator import Ui_MainWindow
from Structure.ExtensionMenu import ExtensionMenu
from utils import FileSegregator
class Window(QMainWindow, Ui_MainWindow):
def __init__(self, parent=None):
super(... | [
"singhaman.0628@gmail.com"
] | singhaman.0628@gmail.com |
118887bcb74d76c3c65dec2a2d5c6e07327100e8 | e2c8032c444c90ae17ffd7bb6f230a50d6f910f8 | /python/ctranslate2/version.py | 62ac8a5449077b22c526a5054a43970461c364d0 | [
"MIT"
] | permissive | scotfang/CTranslate2 | 2118c4734af2930dc912df924ba9733a2abf65ef | 6f1bfb229a7785987d632947f373e145ed601e05 | refs/heads/master | 2023-05-31T20:58:26.096820 | 2021-05-07T14:58:45 | 2021-05-07T14:58:45 | 366,190,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 51 | py | """Version information."""
__version__ = "1.20.1"
| [
"noreply@github.com"
] | noreply@github.com |
09da727e3bf491f940bf3514755214c999c35115 | e081a53be2f84d5bff5ed1347d27c88dba955543 | /Bnp_ensembing/bnp_cleaning.py | 9bd11b8feb19fb7b9af21eddcb00815f1120964c | [] | no_license | paperparrot/Kaggle-scripts | 945f36ed940d2c3a3a142242da2aa4f3e7da0a02 | 01df0288fb024f2d746c3c30501ffd5a48a2dd73 | refs/heads/master | 2021-01-10T05:25:02.861171 | 2016-03-02T21:26:10 | 2016-03-02T21:26:10 | 52,317,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,862 | py | #! bin/var/env python2.7
import pandas as pd
from datetime import datetime
__author__ = 'sebastien.genty'
__version__ = '1.0'
def data_cleaner(df, dummy=False):
pd.options.mode.chained_assignment = None
# Separating numerical and other data...
print 'Separating by type...'
cleaned_df = df.select_dty... | [
"paperparrot@me.com"
] | paperparrot@me.com |
a9a9d67eefdab4e8f646253a754e970f8328d9ce | a444fbbbf1c7b46adc71f7544887b627ae72da38 | /organize_ttd_behav.py | a05e16ea0bc69e1d5ccc7128145bf411bd8b3561 | [] | no_license | kaihwang/Util | 1f9dd6ef5278531b7895e656c311d6f31994d7a2 | de9f962ebc722acaf55caa577d9824884fdcd342 | refs/heads/master | 2020-12-08T19:17:26.115382 | 2020-04-15T15:00:44 | 2020-04-15T15:00:44 | 233,071,932 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | import pandas as pd
import glob as glob
import numpy as np
import os
def pivot_behav(TMS):
#i=0
rows = ['Subj', 'Cond', 'Motor', 'Match', 'Accu', 'FA', 'RH', 'LH', 'RT', 'OnsetTime', 'fn']
if TMS:
subjects = [7002, 7003, 7004, 7006, 7008, 7009, 7012, 7014, 7016, 7017, 7018, 7019, 7021,7022,7024,7025,7026,7027,6... | [
"kai.hwang@gmail.com"
] | kai.hwang@gmail.com |
5a0bbaccdc5a23cca13156f15e234afb91bbe3b9 | 69db14d61267105ef0d5723b33664030fbe0a036 | /next_py/main.py | 5dd104d64e0859ebd796931b46872fbfbdfbb70a | [] | no_license | Liraz-Benbenishti/Python-Code-I-Wrote | 44b76dd2b8d0ba9d24a9f00349c01eb305ff5c2e | 023c6cb3cc3d120e0fe07a0adf139a85c04c5e50 | refs/heads/master | 2022-12-16T18:52:03.987580 | 2020-09-22T00:39:10 | 2020-09-22T00:39:10 | 297,489,694 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 177 | py | from file2 import BirthdayCard
from file1 import GreetingCard
def main():
bdc = BirthdayCard()
gc = GreetingCard()
bdc.greeting_msg()
gc.greeting_msg()
main() | [
"noreply@github.com"
] | noreply@github.com |
81dccd6006475ea235d5f0162780e8c7e9d3f822 | d5af8603c02f7a0d2866325ea464a469ee6fd4c8 | /it/polimi/client/Legacy_Analizza_Risultati_2.py | 90b3cd185a934856543a79935a4182583128f485 | [] | no_license | jackjackk/GTExperimentLauncher | e6edc9567ef099bc7e51cd60c5488f7ec6508b37 | 0b4929949f8c9d6d45ab2ff568e704cd75b5fab8 | refs/heads/master | 2020-04-05T23:37:00.298170 | 2016-07-07T08:29:06 | 2016-07-07T08:29:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,120 | py | from __future__ import print_function
import numpy
from it.polimi.utils import costManager
def egress_costs_param(destination_path, alg, num_iaas, phi_val, ni_val, randseed_list, param):
factor = param / 462.0
if num_iaas == 1:
return 0
else:
fullPath = destination_path + '/results/' + a... | [
"michele.ciavotta@gmail.com"
] | michele.ciavotta@gmail.com |
60f3ab6e252c26a2c48d601ae2df0320da14f0f2 | b5339f3a327d26a777535252d0449a751c4133e9 | /icat_tools/detectors/nameissue_detector.py | 8d8d089fe79062832608497d6c97a7c662efbb96 | [
"MIT"
] | permissive | UtrechtUniversity/icat-database-checker | cf515c5972b1d17499d5e4094d9b787c2b8cb42b | 878860835ae9c2e2e8662baf1b6e694fbf0c835b | refs/heads/master | 2023-01-28T17:35:47.961435 | 2023-01-24T16:11:56 | 2023-01-24T16:11:56 | 198,614,843 | 0 | 1 | MIT | 2021-07-14T15:31:19 | 2019-07-24T10:39:40 | Python | UTF-8 | Python | false | false | 5,278 | py | from icat_tools import utils
from icat_tools.detectors.detector import Detector
class NameIssueDetector(Detector):
def get_name(self):
return "names"
def _get_name_check_data(self):
data = {
'collection': {
'table': 'r_coll_main',
'report_columns':... | [
"s.t.snel@uu.nl"
] | s.t.snel@uu.nl |
034072994fcd731c2a8a721e5bd1c9db88c436c0 | 14a8d463014b7a802dd9bacd98cefa1b040ccf3b | /project/mods_available/contact_form/settings.py | cbda126682059ea30cb71cedb74efebc23cc9a3b | [] | no_license | fredDesign/swissnation_site | b493b0712d23462e6d512f6cea8dea7a5d6b5da5 | 869566a033defd18debc50a8f0fb3a9c5a71dcdb | refs/heads/master | 2021-01-01T19:56:10.833074 | 2014-01-13T15:38:17 | 2014-01-13T15:38:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | # -*- coding: utf-8 -*-
INSTALLED_APPS = add_to_tuple(INSTALLED_APPS,
'captcha',
'emencia.django.countries',
'apps.contact_form')
CONTACT_FORM_TO = []
| [
"frederic.leguluche@gmail.com"
] | frederic.leguluche@gmail.com |
61744b82ae418d8bf4b8bbabc009a462de6d3d8c | b0710d212867abba2e278808ff15898d792e1e28 | /mysite/blog/models.py | a58b7b8aa8349c8c05e8dd9528fcf16612e2fd2d | [] | no_license | Melancholia312/Blog | 2ada341d3416c2bf23176e5169018eeaab6f7437 | 7572f9850ce08512ccc9de54fef3961d621c8c03 | refs/heads/master | 2023-08-27T15:35:26.027659 | 2021-10-19T20:35:47 | 2021-10-19T20:35:47 | 378,128,106 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,803 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
from taggit.managers import TaggableManager
class PublishedManager(models.Manager):
def get_queryset(self):
return super().get_queryset().filter(status='published')
... | [
"enot_yanovskiy@mail.ru"
] | enot_yanovskiy@mail.ru |
7f9929ad14b12f6a6c5ae8cd296bb1e9fb46be57 | 9ba287d93bc7c21957868636698145fd9733dba9 | /dashboard/metric_compare.py | 404006ab50f6babe02db55fd4a599002eea6df0b | [
"Apache-2.0"
] | permissive | shauheen/ml-testing-accelerators | 33a442ad11b4fa0b19338e2f0de19305f3767e09 | 2ff9d5dbf21a9cc166cdfc460134cbb17be22e4c | refs/heads/master | 2021-03-09T19:07:18.818729 | 2020-10-16T18:09:27 | 2020-10-16T18:09:27 | 246,370,968 | 1 | 0 | Apache-2.0 | 2020-03-10T17:56:40 | 2020-03-10T17:56:39 | null | UTF-8 | Python | false | false | 8,539 | py | # Copyright 2020 Google LLC
#
# 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 in writing, ... | [
"noreply@github.com"
] | noreply@github.com |
f9c36012e739b433c3e00c436a8f0c88b4b50451 | 1261bc9962970db13fd49816606df4235c4d29cc | /all_opt/horiz optimizer/geometry_func.py | 7aacc17767517ae313e24d7763426b8666a501b1 | [] | no_license | mhmdkassas/harness_optimizer | 9e65b69cc4cb2642f9c8c59830b9cde43e24a158 | e1852a98960afafa3529ae41dec46edd35e6211f | refs/heads/master | 2020-04-29T00:33:03.105358 | 2019-04-26T17:30:35 | 2019-04-26T17:30:35 | 175,697,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,333 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Feb 5 10:47:24 2019
@author: mhmdk
"""
import math
import opensim as osim
def angle_shifter(length, tup, angle, s):
#angle is in radians
new_z = 0
if s == "r":
new_z = tup[1][2] + length*(math.sin(angle)+math.tan(angle)*(1-math.cos(angle)))
elif s =... | [
"mhmdkassas@live.com"
] | mhmdkassas@live.com |
372f312de6ffd3b78b2b5b1ca284ef1d55272536 | 603f84a9b7c8f053c44bb064d85e702b7fbf8bc2 | /homework/pa5/dbdict.py | f1352bffc426d9153018cb13f7ef7940c462788e | [
"Apache-2.0"
] | permissive | stratuxz/Spring2019-CS212 | cfaf4c3bdd6298163b82c826796975776690061d | 87e2eb7a453c3f37e1c7182225c261f13225d328 | refs/heads/master | 2022-01-21T07:27:08.459784 | 2019-05-13T08:36:53 | 2019-05-13T08:36:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 590 | py | import sqlite3
def createDB():
word_conn = sqlite3.connect("wordDictionary.db") #open connection
word_cursor = word_conn.cursor()
word_cursor.execute("DROP TABLE Dictionary")
word_cursor.execute("""CREATE TABLE IF NOT EXISTS Dictionary (
word TEXT UNIQUE);""")
word_c... | [
"zv80@humboldt.edu"
] | zv80@humboldt.edu |
ff28ae550f0c77a644062f0e27524a42ddf54ccf | ab487e40931a1c5075deb7a0a68305deb6ab7cf5 | /galaxy/bin/daemon.py | b4e16f9170c1be03fb43babb53bf02e06afd486f | [] | no_license | huangzhiyong/tempwork | b424bab334dda8a9c4f41213ffb29b5c7a3d28b9 | 2f99fabe144fc2b7a3d4a61462ea72026fd79b48 | refs/heads/master | 2016-09-06T15:16:18.411848 | 2013-01-21T06:33:12 | 2013-01-21T06:33:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,774 | py | '''
***
Modified generic daemon class
***
Author: http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/
www.boxedice.com
License: http://creativecommons.org/licenses/by-sa/3.0/
Changes: 23rd Jan 2009 (David Mytton <david@boxedice.com>)
- Replaced hard coded '/dev/n... | [
"huangzhiyong1987@gmail.com"
] | huangzhiyong1987@gmail.com |
ab22bfbf4fdb70a6cb56665bed1304571eda35dd | 9d52bb2e0032e185211c9fb7c7476086a0d20f81 | /knowledge_engine.py | c6e5511c89e305eb367c5796f8e410ef749ff015 | [] | no_license | adithyaaggarwal11/AI-ChatBot | 9edfc1619ada109f01dd83f2a88a1c59dd4e8635 | 3b169fbc8c5831ce1420b029a1eb982b0e719d1e | refs/heads/master | 2021-01-17T16:42:45.023820 | 2016-06-09T21:05:50 | 2016-06-09T21:05:50 | 60,805,831 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,931 | py | from requests import get
import nltk
import string
import itertools
from senti_classifier import senti_classifier
import re
umbcUrl = "http://swoogle.umbc.edu/SimService/GetSimilarity"
umbcPhraseUrl = "http://swoogle.umbc.edu/StsService/GetStsSim"
def getSimilarity(s1, s2, type='relation', corpus='webbase'):
try... | [
"noreply@github.com"
] | noreply@github.com |
de091790c0a6d5f0400d52c90a7352746534eeed | 1224121e8d6b4ebf97c03ba8012fef7ef9ce97eb | /tests/python/ycbcr.py | 39975904649d05c280d10281d8032605c492c693 | [
"MIT"
] | permissive | layu1986/image-processing | 4ad2d4053019f43f67648283d0a07dd61a047713 | e1170b3f670e23e5728caa2716c96b90216ce4b3 | refs/heads/master | 2022-03-13T21:35:04.493429 | 2019-11-27T07:42:02 | 2019-11-27T07:42:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,427 | py | #!/usr/bin/env python
# encoding: utf-8
from __future__ import (absolute_import, division,
print_function, unicode_literals)
import os
import copy
import math
import sys
import time
from collections import namedtuple
from PIL import Image
sys.path.append("../..")
from bin.python.config.config i... | [
"fengxuting@gmail.com"
] | fengxuting@gmail.com |
e9caaaed565a61a1724da4f87ed9e22415a22a38 | 32e46650f0a850fd641fcd059b9ab984e9d26ac8 | /lm.py | 8b050a53d427e5ff50a6d2c30dd58d9ab89a3dd2 | [] | no_license | wanicca/lm_morse_solver | 9e47991b589d7958b38cefc8d6ee5090a951ccd3 | ac3bad88afe86b8d915ee93dd1d181c233e3750d | refs/heads/master | 2020-03-19T22:25:14.113442 | 2018-06-12T08:06:22 | 2018-06-12T08:06:22 | 136,969,147 | 7 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,984 | py | import torch.nn as nn
from torch.autograd import Variable
from torch import Tensor
class LM_LSTM(nn.Module):
"""Simple LSMT-based language model"""
def __init__(self, embedding_dim, num_steps, batch_size, vocab_size, num_layers, dp_keep_prob):
super(LM_LSTM, self).__init__()
self.embedding_dim = embedding_d... | [
"wanicca@163.com"
] | wanicca@163.com |
6d5ccefd6e87f0417b684daad3042589f3bb2b02 | feabab3b2a3f8c1327df65345c12e18ce482c7c9 | /CSCA08 - Introduction to CS 1/ex0 - Basic Intro.py | 352547ed4978b53eb4948edf059306ee2c5b45e6 | [
"MIT"
] | permissive | zain-zafar/University-CS-Exercises | 320d185fdf4a7839d1f7b0b6cd4db2edcc9a7141 | 2c48a35f2b9e8b96cfc1384e225ced94ae00badc | refs/heads/master | 2020-03-14T08:06:44.782593 | 2018-05-04T05:49:30 | 2018-05-04T05:49:30 | 131,517,941 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 130 | py | print ("Hello Professor Brian!!!!")
z = "80% or higher!!"
print ("My name is Zain Zafar and I will try my hardest to achieve "+z)
| [
"zaind500@gmail.com"
] | zaind500@gmail.com |
25c217b633d90a3e1e10a3c04596a4d36b42e9cc | e3bce967cf5539314218a60e1cdb6d5b3412aa99 | /LatticeOptics/figure_source_scripts/latticeStability/LatticeCameraMonitoring/get_data.py | 1e057a4ed7ac7fb3d664ccc9c295c9b30bbe2ae0 | [] | no_license | mazurenko/LatticeOpticsPaper | f7677a685bf14abcfce1f5063468c46b4a73ed2a | 6c1a60191827f1ab16d729db821a46fbaa0c6a23 | refs/heads/master | 2021-05-01T05:21:11.583744 | 2019-01-30T12:12:05 | 2019-01-30T12:12:05 | 79,737,296 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,861 | py | import numpy as np
import pickle as pkl
import pyfits
import os
import re
import matplotlib.pyplot as plt
"""
the data was scans 16 (calibration) 17-19 (data) on April 3, 2017.
"""
def binarize(amp_mat, threshold=0.21):
return (amp_mat > threshold).astype(np.float32)
def get_camera_pointing_data(sc... | [
"anton@anton-TP2.nyc.rr.com"
] | anton@anton-TP2.nyc.rr.com |
70e6936763ea8e963a5b48e2c479acb46d525b40 | 99d75684d27d80d36a9bf10b5a92f6d55699e932 | /SnakeFlow/MyCalendar.py | 00236b51c7bd09b50260234863ceebcb2c12f0e5 | [
"MIT"
] | permissive | snakeflow/snakeflow | 112a020cf9f8830ff2e59a5c565d1c3cebb77ead | 4e52f9116142793c3b8821ed74b51fd9b5d58af1 | refs/heads/master | 2020-04-13T03:18:42.053064 | 2018-12-23T22:16:41 | 2018-12-23T22:16:41 | 162,927,496 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,788 | py | #-*- coding: utf-8 -*-
import time
import datetime
def monday_ts_of_yearweek(yearweek):
#year = yearweek[:4]
#week = yearweek[4:]
return time.mktime(time.strptime(yearweek + '-1','%Y%W-%w'))
class MyCalendar(object):
def __init__(self, date = '', format = ''):
self.inittype = ... | [
"noreply@github.com"
] | noreply@github.com |
8c27649f58ae110222601c787c28c39019e012ec | 9dee94907e6456a4af9855d358693923c17b4e0d | /1023_Camelcase_Matching.py | 2d8d31d02064c55c4031b5e1652870448db622a6 | [] | no_license | chien-wei/LeetCode | e215915a8103e56f182040dacc9fb0d6996c86ec | 0d6f414e7610fedb2ec4818ecf88d51aa69e1355 | refs/heads/master | 2021-05-13T14:48:22.891100 | 2019-08-20T05:52:59 | 2019-08-20T05:52:59 | 116,749,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | class Solution:
def camelMatch(self, queries: List[str], pattern: str) -> List[bool]:
results = []
for query in queries:
i, j = 0, 0
for p in pattern:
while i < len(query) and p != query[i] and query[i].islower():
i += 1
if ... | [
"chien-wei@outlook.com"
] | chien-wei@outlook.com |
e6e473574eb22795757091531ef21ac06a1dffb9 | 109a830aad476305f029274d75e28bec8b54f597 | /venv/lib/python3.9/site-packages/django/contrib/admindocs/urls.py | 472df9835b304fd18b7f673137b62f549373cbff | [] | no_license | Dapucla/EP | 53b156088046abfd6833eba95dc4393ebeb93f4e | 9368032b4b289b20ec1bdf0033d3fe199223d200 | refs/heads/master | 2023-06-19T08:02:55.984888 | 2021-07-11T22:52:24 | 2021-07-11T22:52:24 | 330,009,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,314 | py | from django.contrib.admindocs import views
from django.urls import path, re_path
urlpatterns = [
path(
'',
views.BaseAdminDocsView.as_view(template_name='admin_doc/post_list.html'),
name='django-admindocs-docroot',
),
path(
'bookmarklets/',
views.BookmarkletsView.as_... | [
"dapcula08@yandex.ru"
] | dapcula08@yandex.ru |
44361f5f1844f827da35dd426fbe24580b644796 | 08615c64a62fc364a802bb92314cf49080ddbcee | /django-oldboy/s1bms2/app01/models.py | e47061a1ed45c130f1022f5f77abe4351abad813 | [] | no_license | xiangys0134/python_study | afc4591fca1db6ebddf83f0604e35ed2ef614728 | 6ec627af7923b9fd94d244c561297ccbff90c1e9 | refs/heads/master | 2023-02-24T01:24:45.734510 | 2022-10-29T02:11:20 | 2022-10-29T02:11:20 | 143,358,792 | 2 | 0 | null | 2023-02-08T03:07:26 | 2018-08-03T00:43:46 | Python | UTF-8 | Python | false | false | 1,348 | py | from django.db import models
# Create your models here.
class Book(models.Model):
title = models.CharField(max_length=32)
price = models.DecimalField(max_digits=8,decimal_places=2)
book_type = models.CharField(max_length=32,null=True)
publish = models.CharField(max_length=32)
pub_date = models.Dat... | [
"you@example.com"
] | you@example.com |
59041a9045421c361c8d5f960d5f68b475d4c6a1 | 3afc48df003fb180a24072b769b9e5fb5ffb7eb6 | /tests/matchers/test_called_once_with.py | 9f13e48a6a09f4189dfdcc3a5d03b82907403180 | [
"MIT"
] | permissive | hieueastagile/robber.py | d20e90bf43ba2c354ffec56c80080bf65268fd6f | b439251848fd3b5085cdac45130311bfe0facc13 | refs/heads/master | 2021-01-21T21:09:42.378373 | 2017-04-24T03:23:22 | 2017-04-24T03:23:22 | 92,312,856 | 0 | 0 | null | 2017-05-24T16:21:42 | 2017-05-24T16:21:41 | null | UTF-8 | Python | false | false | 2,219 | py | from unittest import TestCase
from mock import Mock
from robber import expect
from robber.matchers.called_once_with import CalledOnceWith
class TestCalledOnceWith(TestCase):
def test_matches(self):
mock = Mock()
mock(1, 2, 3, a=4)
expect(CalledOnceWith(mock, 1, False, 2, 3, a=4).matches(... | [
"open-source@eastagile.com"
] | open-source@eastagile.com |
db542dd2eab000423a4880c15cd1cfb2c66c5f0e | 28e8fd6383631ad0e629ab427a3665906eb0e827 | /xierpa3/contributions/filibuster/content/auction.py | b25fb2bc3a3623ff160ce7d450f34ad04825985c | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | simons-design/Xierpa3 | d2a684c2fed8757b9a49616419e1f8cce508ab1e | 4c49986d85a942e719d371dab918bb1c4f813f29 | refs/heads/master | 2021-01-18T04:54:34.591661 | 2014-05-23T10:57:39 | 2014-05-23T10:57:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,285 | py | # -*- coding: UTF-8 -*-
# -----------------------------------------------------------------------------
# xierpa server
# Copyright (c) 2014+ buro@petr.com, www.petr.com, www.xierpa.com
#
# X I E R P A 3
# Distribution by the MIT License.
#
# -----------------------------------------------------------... | [
"buro@petr.com"
] | buro@petr.com |
c3e72a66dd43e325edf92a51acd0b89628fd0aeb | 1284718203be50b23dcd1f6159746cfa42a04163 | /python_visual_mpc/visual_mpc_core/algorithm/cem_controller_sim.py | ab65cdf4cedbb126c9d46e3038c9869d366b9a5d | [] | no_license | febert/robustness_via_retrying | 8fe4106d7705228ff339f9643518a80c0a243d36 | 1def282dc22f24b72c51ff1ef9ea1a7a83291369 | refs/heads/master | 2020-03-31T19:33:39.664525 | 2018-11-07T21:52:56 | 2018-11-07T21:52:56 | 152,502,702 | 17 | 2 | null | null | null | null | UTF-8 | Python | false | false | 10,283 | py | """ This file defines the linear Gaussian policy class. """
import IPython
from python_visual_mpc.video_prediction.utils_vpred.create_gif_lib import *
import copy
from .cem_controller_base import CEM_Controller_Base
from python_visual_mpc.visual_mpc_core.agent.general_agent import resize_store
import ray
import traceba... | [
"sdasari@berkeley.edu"
] | sdasari@berkeley.edu |
94413847eb45e257955156690c75cb5f1ca00387 | 334d0190164d92b53be2844a3afc2826d64b1a6d | /lib/python3.9/site-packages/theano/gpuarray/ctc.py | ef6c1d0af4e794d85d8c3e393db03ecc0dd468bb | [] | no_license | sou133688/BayesianStatics | f294d7c47cfa56374cf73b520529620dc6120f47 | be9121429494cd8fd231594b029fc2f030d8335f | refs/heads/main | 2023-08-21T15:57:32.980658 | 2021-10-01T00:01:13 | 2021-10-01T00:01:13 | 401,909,680 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,292 | py | import os
import sys
import theano.tensor as tt
from theano.configdefaults import config
from theano.gpuarray import pygpu
from theano.gpuarray.basic_ops import (
as_gpuarray_variable,
gpu_contiguous,
gpuarray_helper_inc_dir,
infer_context_name,
)
from theano.gpuarray.elemwise import GpuDimShuffle
from... | [
"matsushu@ZaknoMacBook-Pro.local"
] | matsushu@ZaknoMacBook-Pro.local |
c9cbd3116ceebcfd077155a50ca3e93ba2f2f050 | e3e490d6bdf69003eb1962fd73ef0677eef715ce | /util/main.py | 75de281ad25e7374057dcc8cb60253644f1a57a4 | [
"MIT"
] | permissive | meqash/sito | 9b65aafb71bbe4388279cbeb241df16213ffe3ca | 1b3895f3a56fe0fa6cdce1201545111025d606c8 | refs/heads/master | 2020-03-18T11:22:16.514153 | 2017-08-23T08:57:56 | 2017-08-23T08:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,876 | py | # by TR
from helper import add_doc
from obspy.core.util import gps2DistAzimuth
from scipy.signal import get_window
import logging
import numpy as np
import warnings
from scipy.signal import iirfilter, freqz
log = logging.getLogger(__name__)
r_earth = 6371
def sind(x): return np.sin(x / 180. * np.pi)
def cosd(x): re... | [
"richter@gfz-potsdam.de"
] | richter@gfz-potsdam.de |
22dfefc6daa031bb7883752c31a9bb1bd9aced00 | 5e84763c16bd6e6ef06cf7a129bb4bd29dd61ec5 | /blimgui/dist/OpenGL/raw/GL/NV/stereo_view_rendering.py | 95d69c29319d993fde3973be7deea23fe0d87849 | [
"MIT"
] | permissive | juso40/bl2sdk_Mods | 8422a37ca9c2c2bbf231a2399cbcb84379b7e848 | 29f79c41cfb49ea5b1dd1bec559795727e868558 | refs/heads/master | 2023-08-15T02:28:38.142874 | 2023-07-22T21:48:01 | 2023-07-22T21:48:01 | 188,486,371 | 42 | 110 | MIT | 2022-11-20T09:47:56 | 2019-05-24T20:55:10 | Python | UTF-8 | Python | false | false | 511 | py | '''Autogenerated by xml_generate script, do not edit!'''
from OpenGL import platform as _p, arrays
# Code generation uses this
from OpenGL.raw.GL import _types as _cs
# End users want this...
from OpenGL.raw.GL._types import *
from OpenGL.raw.GL import _errors
from OpenGL.constant import Constant as _C
import ctypes
_... | [
"justin.sostmann@googlemail.com"
] | justin.sostmann@googlemail.com |
c1a102aa05a430be2cf9c0c9b619bed58bfe4485 | 01c08402b37ac71d2331f24f121156d03c793ac6 | /game_state.py | 91dc2f969c0e94c59387d33e22b89d178e8490c9 | [] | no_license | laurakah/EasyEscape | 54e98a877da1792746e67a4d9fb9dc901d3fdd81 | de500a4141eeb8a80beb86c4411fcbc7296a457e | refs/heads/master | 2020-08-22T07:25:24.716864 | 2019-10-24T09:56:07 | 2019-10-24T09:56:07 | 216,347,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | class GameState(object):
def __init__(self, start_room, target_room):
self.start_room = start_room
self.target_room = target_room
self.keys_collected = []
self.current_room = start_room
def check_for_key(self, door):
have_key = False
for key in self.keys_collect... | [
"laura.klopfleisch@sinnwerkstatt.com"
] | laura.klopfleisch@sinnwerkstatt.com |
5bebb98676acb4f0e67fa442c7dde4005c911878 | 5440e9ee3d62a5c30015fee6564d53f64247ffa7 | /SilverSurferMotorTest/MotorControl.py | 4fa798687bd0eb103d0894d09482e9f0e9bdbc4c | [] | no_license | LennDG/Pi-Blimp-Team-Silver | e500a00cc3acaeb29f8112f8199d32188a4afcda | 510068d79cc68a63ef151c93b136fc9bd7f5199c | refs/heads/master | 2021-03-27T17:16:48.822571 | 2014-05-06T09:49:57 | 2014-05-06T09:49:57 | 13,271,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,348 | py | '''
Created on 4-nov.-2013
@author: Lily
'''
#This is the file for the Motor Control class.
import Motor, time
class MotorControl():
def __init__(self, basis):
self.left_motor = Motor.Motor(cw_pin = 4, ccw_pin = 24, enabler = 14) #14 and 15 are next to 18 on BCM
self.rig... | [
"michielslien@hotmail.com"
] | michielslien@hotmail.com |
16854123e929c84e9341d204b429ea9cf7db680a | 46e3b5f1988ad002def647648f6bfff31201d579 | /IMU0.py | 0147995bc057953a3b603c9da987d08361ed58db | [] | no_license | ElliotHYLee/Deep_Visual_Inertial_Odometry_Data_Collection | 9390082155bf8ff12d9e38122d67ffcd87e82a39 | 81d44a15a348b67a021a74a533c16f5d5765868d | refs/heads/master | 2020-05-07T16:24:29.644947 | 2019-04-10T23:58:13 | 2019-04-10T23:58:13 | 180,681,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,094 | py | # automatically generated by the FlatBuffers compiler, do not modify
# namespace: imu0
import flatbuffers
class IMU0(object):
__slots__ = ['_tab']
@classmethod
def GetRootAsIMU0(cls, buf, offset):
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
x = IMU0()
x.In... | [
"hylee101001@gmail.com"
] | hylee101001@gmail.com |
09758781a631bb70d418496b244c3a3b47c2e66c | fa4037b4a4ceae895d34a151d391601ccd504950 | /addorsubtracteven.py | 1dc3d2e2f928be7a9adac8f821b227b46d86e154 | [] | no_license | nickzswammer/Codeforces-Solutions-in-Python | ea1e7567b2cb863559a39d65f3b2770002f559b9 | 33fdb03e66f2e8badfe1ea093e32161d29592e56 | refs/heads/main | 2023-03-16T19:18:50.944033 | 2021-03-17T05:35:47 | 2021-03-17T05:35:47 | 348,591,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | t = int(input())
results = []
for i in range(t):
nk = list(map(int, input().split()))
a = nk[0]
b = nk[-1]
if a > b:
if a % 2 == 0:
if b % 2 == 0:
results.append(1)
else:
results.append(2)
else:
if b % 2 == 0:
... | [
"zhang.nicholas136@gmail.com"
] | zhang.nicholas136@gmail.com |
bfec217317ad49de9380a27431e4a9aa0666544a | 5667cc877342204b7d54b6c3cc5a9f4854f08829 | /.history/apppersona/views_20201029201908.py | dd580d4aa77ce4a4588bd4c7df3ded781932da1a | [] | no_license | Nyckhos/TestCommit | d62e3f6fefb04ab5647475cc7ead0d72cbd89efa | 9aa8e2e35280b7862960cc8a864e9c02ac7f4796 | refs/heads/main | 2023-01-05T05:57:59.223641 | 2020-11-02T02:08:18 | 2020-11-02T02:08:18 | 309,237,224 | 2 | 0 | null | 2020-11-02T02:30:43 | 2020-11-02T02:30:43 | null | UTF-8 | Python | false | false | 1,688 | py | from django.http import request
from django.shortcuts import render
from django.http import HttpResponse
from .models import *
from .forms import *
from django.contrib.auth.models import User
# Create your views here.
def lista_personas(request):
lista = Persona.objects.all() # Todas las personas
return ren... | [
"fernandox_240997@live.com"
] | fernandox_240997@live.com |
71c7388972d758861fe29444e9743e16552bd4bc | 2272a431aeaa3b939fff982ab1f108565903aa01 | /Beginner/q6.py | b1891ce0cd62072a907373090cb5993256df9458 | [] | no_license | MuhammetALAPAN/Python-Exercises | c9ff0e609365c9d6e302388d9cc4fe2513274cef | 8f91b626b34641e3ea8643fe5c951a7da3e6d4fe | refs/heads/master | 2023-07-16T13:10:59.100261 | 2021-08-25T16:00:41 | 2021-08-25T16:00:41 | 399,092,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 340 | py | import math
C = 50
H = 30
def myCalc(myList):
myResultList = []
for x in myList:
result = round(math.sqrt((2 * C * int(x)) / H))
myResultList.append(result)
return myResultList
x = input("enter ur sequence of numbers")
splittedInput = x.split(",")
myResultList = myCalc(splittedInput)
... | [
"muhammetalapan@gmail.com"
] | muhammetalapan@gmail.com |
1a547291194017aac47f29bba9bc3260323e1c67 | 3e225a3c7f1f8a9ef61b4dd2823f3c03661f2dbd | /CH2-EX7/ch2-ex7.py | 33e02ddfe887459687c2a793cead6a90965ca486 | [] | no_license | whaleys1/CS0008-f2016 | b18ed7f7d9bc04480ef5921e18f5d8e156e788f3 | b0afb272f6abd0e2f368cb9575cdc8f56a35ca7b | refs/heads/master | 2020-04-17T11:20:46.737667 | 2016-12-19T06:31:10 | 2016-12-19T06:31:10 | 67,561,915 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 540 | py | # name : Sean Whaley
# email : smw100@pitt.edu
# date : 9/14/2016
# class : CS0008-f2016
# instructor : Max Novelli (man8@pitt.edu)
#
# Description:
# Ch 2 exercise 7.
km = float(input('Enter total miles driven: ')) * 1.60934 # converting miles input to km
l = float(input('Enter ... | [
"whaleys1@gmail.com"
] | whaleys1@gmail.com |
9a01e9dec4891793f858e7ceaa97c23835717fef | d8a23864822bad364c59a56f4e22238954ef1011 | /WDJN/bt_beam/metrics/eval_distinct.py | e2ceea694976e0a1488d395b8551fd31a2dfdbc7 | [
"MIT"
] | permissive | bnriiitb/Stylized_Dialog | 4fe391c23022c92744e681f63f5024405413318c | 559dd97c4ec9c91e94deb048f789684ef3f1f9fa | refs/heads/main | 2023-02-15T22:16:25.134038 | 2021-01-16T14:12:37 | 2021-01-16T14:12:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,209 | py | #!/usr/bin/env python3
# coding:utf-8
# Copyright (c) Tsinghua university conversational AI group (THU-coai).
# This source code is licensed under the MIT license.
"""Script for the Evaluation of Chinese Human-Computer Dialogue Technology (SMP2019-ECDT) Task2.
This script evaluates the distinct[1] of the submitted mod... | [
"zhengyinhe1@163.com"
] | zhengyinhe1@163.com |
18dbf9976ca44d7014da22eb95d960f2bb10e261 | cf444d07d8056416dfba34e73bba128567b7c692 | /ftp-functions_test01.py | 94f16fa4fdf09033c145bf8bfceb0316cc6b9ab6 | [] | no_license | rtstock/scriptsvapp01 | cf9e993e5253e9a60dc191cca5e34532fa559ee1 | 7c2db888f0dcd92de62c031f9867e1c5cb4cbc0e | refs/heads/master | 2021-01-23T00:29:11.267852 | 2017-03-21T19:24:34 | 2017-03-21T19:24:34 | 85,737,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,603 | py | class procedure:
import os
def __init__(self,
# procname = 'xdeletethis_sylvan'
# , params = {}
):
print 'started perform.__init__'
def _execprocedure(self,session, procname, params):
sql_params = ",".join(["@{0}={1}".format(name, ... | [
"noreply@github.com"
] | noreply@github.com |
d4acba5ceca5ea6b4c67111b4ffd8fbcf8ba1c41 | 781e2692049e87a4256320c76e82a19be257a05d | /all_data/exercism_data/python/anagram/d2e45eb99bcc469d9577e787110f32c3.py | 8df791cbc67d7539b7bd89154c57e665cf8e2a40 | [] | no_license | itsolutionscorp/AutoStyle-Clustering | 54bde86fe6dbad35b568b38cfcb14c5ffaab51b0 | be0e2f635a7558f56c61bc0b36c6146b01d1e6e6 | refs/heads/master | 2020-12-11T07:27:19.291038 | 2016-03-16T03:18:00 | 2016-03-16T03:18:42 | 59,454,921 | 4 | 0 | null | 2016-05-23T05:40:56 | 2016-05-23T05:40:56 | null | UTF-8 | Python | false | false | 232 | py | def detect_anagrams(word, args):
anagrams =[]
word =word.lower()
for item in args:
if sorted(word) == sorted(item.lower()) and word.lower() != item.lower():
anagrams.append(item)
return anagrams
| [
"rrc@berkeley.edu"
] | rrc@berkeley.edu |
febb15d5fb1898d5ec2a08f313555a6f9e5ac528 | d177addc1830153404c71fa115a5584f94a392c3 | /linked_list/N2074_ReverseNodesinEvenLengthGroups.py | 93c4d8c7014058c6beeafa7ff3644a5ab275600a | [] | no_license | zerghua/leetcode-python | 38a84452f60a360e991edf90c8156de03a949000 | 02726da394971ef02616a038dadc126c6ff260de | refs/heads/master | 2022-10-25T11:36:22.712564 | 2022-10-02T19:56:52 | 2022-10-02T19:56:52 | 61,502,010 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,944 | py | #
# Create by Hua on 8/4/22
#
"""
You are given the head of a linked list.
The nodes in the linked list are sequentially assigned to non-empty groups whose lengths form the sequence of the natural numbers (1, 2, 3, 4, ...). The length of a group is the number of nodes assigned to it. In other words,
The 1st node is ... | [
"huazhangcq@gmail.com"
] | huazhangcq@gmail.com |
53627a3de9ac0da6f7c91493e9cc1e9ad638923c | 8cb82a245ecdd740dffc871eef8ff4b45c8aafa0 | /face_recognition_system.py | 437ab851426827998433b445f1194f96ce7fe107 | [] | no_license | mengyang0529/face-python | ded99af405127a20edc9852f975e19f679164799 | 62b82de0cae2c1b858865f5c332bd46eadef4052 | refs/heads/master | 2020-04-24T22:17:12.061681 | 2019-02-24T11:34:36 | 2019-02-24T11:34:36 | 172,306,513 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,750 | py | #coding=utf-8
import pickle
import os
import cv2
import numpy as np
import tensorflow as tf
from scipy import misc
import face_net.src.facenet as facenet
import face_net.src.align.detect_face
import face_annoy
import face_comm
import face_lmdb
import time
np.set_printoptions(suppress=True)
gpu_memory_fraction = 0... | [
"meng@mengs-MacBook-Pro.local"
] | meng@mengs-MacBook-Pro.local |
25537f97688d12204430a1f54840cf9b0395c2e7 | 1d81b714c32ab89bd27614fd16ed4fd6b48ab331 | /app1/dashapps/stock_charts2.py | 5fe8050324f539741f89e353189492e48ef03f89 | [] | no_license | frozznight/Django-Plotly-Dash | d94ee44571df576b8111876270cf5025d0d0040d | fc7719eeae53bd60a08ef1776af8b5eb80858c9e | refs/heads/master | 2023-02-10T08:39:28.131334 | 2020-02-17T23:11:04 | 2020-02-17T23:11:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,627 | py | import pandas as pd
import pandas_datareader.data as web
from pandas_datareader import data
import datetime
import dash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
import plotly.graph_objects as go
from django_plotly_dash import DjangoDash
app = D... | [
"mheerspink75@gmail.com"
] | mheerspink75@gmail.com |
0b281499a1f7970cb1cb6d76d603d26bdcbaf72a | a425e5921254936869ae43efc55ad317e9b7c91e | /RWID/Percabangan.py | 5e52e13b85590abc3306bcbc64fb9be39f12e6d8 | [] | no_license | Pythonjowo/Fundamental_banget2020 | 72071718f9b3fa47b2584a45239aeadbbe3acb28 | 5c19892361ff87b4743e4825101847ffc44840c5 | refs/heads/master | 2023-02-09T14:38:33.020898 | 2021-01-05T23:54:23 | 2021-01-05T23:54:23 | 296,386,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py |
ingin_cepat = True
if ingin_cepat:
print('Jalan lurus aja ya!')
else:
print('Ganteng')
| [
"psfauzi@gmail.com"
] | psfauzi@gmail.com |
7652fe2415125cb3b28804db30d6fee4c5d8569d | ba68dc6c4e504864888f25a3c3d35dcb665917c5 | /stage3/img2txt/inference_wrapper_base.py | 6bdb5a2b91b4a3f0b6734e932553fa4e9e7ef8af | [] | no_license | PKU-ICST-MIPL/CKD_TMM2019 | 590ecb2df6012943f249f632c069adf4202a3c61 | ad2ef2fba2c16b860fddd42b23467bf3f87b74cc | refs/heads/master | 2021-01-14T19:37:13.170479 | 2020-02-24T13:29:26 | 2020-02-24T13:29:26 | 242,733,395 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,284 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | [
"pengyuxin@pku.edu.cn"
] | pengyuxin@pku.edu.cn |
d57aba0a6eba3a885bd48ed5f740c9b1d3cfefbd | 776834a32c2344b6a77d6d0b20cda631d79a5b38 | /CupboardApp.py | 90d12c484d2cc03c55865b9a13151289cbf9595a | [] | no_license | KeeganBentley/Food_App | 0293f412cdb95938c5dfd1ee6cc95c8f000ada09 | 11abca85dbbcb0888f15f8b7a56f1903de22b629 | refs/heads/master | 2021-04-12T08:34:15.711161 | 2017-06-23T13:22:12 | 2017-06-23T13:22:12 | 94,519,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 481 | py | """
App to store the contents of your cupboard.
Keegan Bentley - started 23/6/17 half baked
"""
from kivy.app import App
from food import FoodItem
from kivy.lang import Builder
from kivy.uix.button import Button
from kivy.core.window import Window
from kivy.properties import StringProperty
class CupboardListApp(App... | [
"keegan.bentley@my.jcu.edu.au"
] | keegan.bentley@my.jcu.edu.au |
a591bec240538eb0e873a8e88844ebd237294a6b | 6da532cb43ab624677852f8ddf726b6eae2697eb | /DecisionTree/DecisionTree.py | 5a3ac103c9ff6b3eed8eff84f2b413a8b9a98c5c | [] | no_license | grigvardanyan/Machine-Learning | f0e40fbb316e97f0bd296db8a484976cc02d9b84 | ef6fb2f7bc97ba95cae53858592e50368ce8f1c1 | refs/heads/master | 2020-04-01T01:37:59.013002 | 2018-10-12T13:19:28 | 2018-10-12T13:19:28 | 152,746,546 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,826 | py | from sklearn.datasets import load_iris
from matplotlib import pyplot as plt
import numpy as np
import statistics
import math
def dict_of_values(data):
# TODO Calculate the number of each label.
# Return a dict with the labels as keys, and
# their accurances as values
unique, counts = np.unique(data[:, ... | [
"grigor.vardanyan@helpsystems.com"
] | grigor.vardanyan@helpsystems.com |
ae177998adf6eceb1722897c967224b5679426c9 | 91ca828f0eba1fb8e50aeae14a370129831b796c | /spin_box.py | 7ed228e3e3d9531e100c443d0ea4b3548da98149 | [] | no_license | balaprasadmb/Python-GUI | 6874a890e212d441060d5d696796c6250d70bf27 | 3bc8e9a7d2fe9f439c3b70a4e45abb68733edf79 | refs/heads/master | 2020-04-01T17:52:40.211582 | 2019-02-15T12:04:33 | 2019-02-15T12:04:33 | 153,456,066 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 755 | py | from PyQt5.QtWidgets import *
import sys
class Window(QWidget):
def __init__(self):
QWidget.__init__(self)
layout = QGridLayout()
self.setLayout(layout)
self.spinbox = QSpinBox()
self.spinbox.setValue(9)
self.spinbox.setMinimum(3)
self.spinbox.setMaximum(19)... | [
"bborade@aurusinc.com"
] | bborade@aurusinc.com |
6b68ab25b35b759698ecd02d4f2f2ea11bc67f2b | 85924eb25cab3a4b108b8230a866bedadb2da095 | /bitcoin/build/lib/bitcoin/spiders/stacked.py | bbc5fd7e23c74ba8ac10a0d361f82f6c58b35cc6 | [] | no_license | usamahasan193/bitcoin_spider | 0344892b287fea77f683882dfbcd1b8dd221cad6 | f4c99142022d4153325ca0935e5a7c6526073d48 | refs/heads/master | 2023-02-07T13:53:32.595774 | 2020-12-31T08:16:46 | 2020-12-31T08:16:46 | 325,749,392 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,093 | py | import scrapy
class StackedSpider(scrapy.Spider):
name = 'stacked'
allowed_domains = ['staked.us']
start_urls = ['https://staked.us/yields/']
def parse(self, response):
items = response.xpath("//tr[@class = 'FT__row']")
for item in items:
title = item.xpath(".//div[@cl... | [
"usamahasan193@gmail.com"
] | usamahasan193@gmail.com |
a8c8b1f5b548fd648d90feb1fd5d67652b9583e3 | 49f416b862cd9b507b07a8c04bdbf285e70dd4f1 | /alpha_diversity_Shannon_Avg-SD.py | 7864c6c677856c7e1422713676df0c9602973b4d | [] | no_license | chemokine/16sMothurPipeline | b3555a95d0cb0a06bb29be40c61cce86cc12f719 | 3a310749586119514a9379fbf0cbeec3f7351fff | refs/heads/master | 2020-05-26T08:21:36.913263 | 2019-07-24T16:11:55 | 2019-07-24T16:11:55 | 82,472,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,241 | py | #!/usr/bin/python
import sys
import re
import os
import shutil
from subprocess import call
import math
"""
Calculate Shannon entropy different cohort groups
(1)Use filtering OTUs table
(2)Calculate average of Shannon entropy in each cohort
(3)Calculate SD for each cohort
(4)Modify R script and plot bar with s.d.
"""
d... | [
"xd016@ib042.research.partners.org"
] | xd016@ib042.research.partners.org |
4de7b4d69f235c2fb5fc0b420156d5bcd46241ed | cfefcd99016a908df2584896845406942097671d | /python/test/test_asset_model_portfolio.py | c99a14dfc4d8fbc6b0ea51704ca93e1c90717e98 | [] | no_license | tomasgarzon/vigilant-guacamole | 982a8c7cb0a8193bb3409014b447ad8a70e6eb36 | bde73674cf0461e2fcdfce5074bf9d93a47227f7 | refs/heads/main | 2023-08-17T01:51:27.168440 | 2021-09-01T11:23:46 | 2021-09-01T11:23:46 | 398,827,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 950 | py | """
Nucoro API
No description # noqa: E501
The version of the OpenAPI document: 4.175.0
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import openapi_client
from openapi_client.model.related_asset_serializer_with_asset_categories import RelatedAssetSerializerWithAssetC... | [
"tomasgarzonhervas@gmail.com"
] | tomasgarzonhervas@gmail.com |
a54d3a2ea93f4d0a84d0f8e1a6f631b72e2c94eb | c2da260bd21044076d1087dbe40af7361aab32a6 | /Captain/console/migrations/0001_initial.py | 8aa36854824f6a810eefc53c8cc626623992e6c3 | [] | no_license | andriberg91/3javikna | da0e5cfeba6c9e1681764fb5870fd4f12d1a770a | e705f8fa92490939620c1cf5b11d4f6acb0600bf | refs/heads/master | 2022-07-14T04:52:42.019996 | 2020-05-15T22:55:36 | 2020-05-15T22:55:36 | 263,041,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,716 | py | # Generated by Django 3.0.6 on 2020-05-11 12:56
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('manufacturer', '0001_initial'),
]
operations = [
migrations.CreateModel(
na... | [
"sigurdursig17@ru.is"
] | sigurdursig17@ru.is |
07433d14a5848205d07f4e0ab648b10c11f63031 | 22cf1267b00c946af39441ecaae2efbab3b1ea56 | /sim.py | acaf1d703df0225c36aacb7eaf64b70b9ba9b23e | [] | no_license | malcolmsharpe/embryo_more_analysis | bc02af3d329c019617f7e3e46b56eea9dde48141 | e0c9af6fdeb4bee836f54651887a5884443d2ce9 | refs/heads/master | 2020-11-24T02:03:14.621767 | 2019-12-13T20:34:45 | 2019-12-13T20:34:45 | 227,918,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,896 | py | import numpy as np
import pandas as pd
from scipy.special import binom
# Population variance explained by the height PGS
pop_r2 = 0.243
oracle = True
if oracle: print('ORACLE MODE ENABLED')
def calculate_item_selection_gain_brute(k, x, y):
# k = size of tuple
# x = predicted values
# y = actual values
... | [
"sharpe.malcolm@gmail.com"
] | sharpe.malcolm@gmail.com |
e1ce045d49f7da1ff97ab99c8beb4066aca2a1b9 | 7afcf3cf0f55ecc255aabdda3b90c44528f53b50 | /Crawler/TI-3-Instanzen/ti_sentenze/ti_sentenze/settings.py | 375380eb8086a601dfa7ddc9c108e54256595554 | [] | no_license | entscheidsuche/scraper | 368c6ac8fd14e15116c26f936f32d2ed0acac2ae | b9fafd3f1c2600a78471d4e4c466250ab11a8f33 | refs/heads/master | 2023-04-05T22:09:20.270314 | 2021-04-18T19:29:24 | 2021-04-18T19:29:24 | 264,894,732 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,415 | py | # -*- coding: utf-8 -*-
# Scrapy settings for ti_sentenze project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en/la... | [
"joern@erbguth.net"
] | joern@erbguth.net |
3cc074bdfc047b21220dfa03b0b064743c86246d | 57c01dec3186028bfbd3d77c5b74e0632e1ef3fd | /wwwproject/tests/test_Introducing_Python3/test_chapter4/test_q4_1.py | 3411beb4b80c03f2cfe877bd44cf3a10e94a2d50 | [] | no_license | konishis/python_training | 4890854ee51778fa3bbf2794ac7585c358528d93 | c362957da905f718151fcf50beb7daf133edcb3e | refs/heads/main | 2023-03-16T07:04:25.302332 | 2021-02-26T06:49:33 | 2021-02-26T06:49:33 | 340,302,467 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | """
戻り値
0:7と等しい場合
1:7より小さい場合
2:7より大きい場合
"""
from wwwproject.introducingpython3.chapter4 import q4_1
def test_1():
result = q4_1.sevencheck(7)
assert result == 0
def test_2():
result = q4_1.sevencheck(6)
assert result == 1
def test_3():
result = q4_1.sevencheck(8)
a... | [
"gts.0424.koni2@gmail.com"
] | gts.0424.koni2@gmail.com |
ba1e5f6747c4c673f2b375446cd515094a52475c | 509b412e3a633edbd484d8176183909f20ba1933 | /middle_linked_list.py | e4c5262c21656e37a80bb2b28a247494c9cd052a | [] | no_license | icescrub/leetcode | cc4b492848218c642e3661bcde800fdf6919d077 | 0309c9bbf7c3113e1441f1e9aae34e7706a2f0a1 | refs/heads/master | 2020-05-03T19:13:00.109542 | 2019-04-01T03:43:01 | 2019-04-01T03:43:01 | 178,780,459 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,135 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, x):
# self.val = x
# self.next = None
class Solution:
def middleNode(self, head):
traverse_fast = head
traverse_slow = head
# There are two pointers here. One traverses at twice the speed. When... | [
"louisdjacobs@gmail.com"
] | louisdjacobs@gmail.com |
ccb96a463421cb64ea01df7b1f93dd8a8a514f7f | cbe4753caf06172657a6817515ae17d279cec207 | /POO/modulos/clases_abstracta/cuadrado.py | 13178506e1e45fe7370a5d8607b08913923e1f64 | [] | no_license | miguelex/Universidad-Python | 6f31e3b9d7283108ae064ab1043b8ab1fdf4d94f | 12e446569a8048348ffad40a17d65549e90df5be | refs/heads/master | 2023-03-23T15:54:16.764638 | 2021-03-17T10:07:05 | 2021-03-17T10:07:05 | 271,220,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from figura_geometrica import FiguraGeometrica
from color import Color
class Cuadrado(FiguraGeometrica, Color):
def __init__(self, lado, color):
FiguraGeometrica.__init__(self, lado, lado)
Color.__init__(self, color)
def area(self):
return self.alto * self.ancho | [
"miguelexd@hotmail.com"
] | miguelexd@hotmail.com |
85fecfdc4173031110dacde03f8a9cff70d2f801 | 7108d228a84ecc88f38161a93bd13e85e2d5a256 | /passgen.py | 91a334492b391ea969ef7f7d65bf3380c1b85f95 | [] | no_license | mihorka/passgen | f5adb1d388b296896ca57991aaad566097759f7e | e7e65d0407d33b0feddef5e0c7953ff7128a92f5 | refs/heads/master | 2021-01-10T21:45:19.313121 | 2014-04-13T19:49:11 | 2014-04-13T19:49:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | #! /usr/bin/python
#
# Passgen
#
# Copyright 2013, Michael Horka
#
# The copyright holder(s) do not sell this software or your copy of it,
# but merely license it. This particular software is however provided
# free of charge.
#
# Permission is hereby granted by the copyright holder(s) of this
# software,... | [
"mihorka@verizon.net"
] | mihorka@verizon.net |
16171b53e53620b4617649619698aa8a841a9713 | 62a1d1757386d174b5ce3c5c4ac1dfc867e05849 | /script/workflow_scripts/panx_pairwise_core_divergence.py | 0a5e28c17438c7c77090de40999f6a081f039788 | [
"MIT"
] | permissive | neherlab/pangraph | d01b139ad00e1b43e2ab0f4bd2053ed931c12128 | 08816767ba1d0fb4a5d73290fbaf600725f85031 | refs/heads/master | 2023-08-30T16:31:11.867165 | 2023-08-24T08:30:37 | 2023-08-24T08:30:37 | 275,563,762 | 68 | 5 | MIT | 2023-08-24T08:30:38 | 2020-06-28T10:46:15 | Julia | UTF-8 | Python | false | false | 4,325 | py | import json
import argparse
import pathlib
import gzip
import re
import numpy as np
import pandas as pd
from Bio import AlignIO
from collections import defaultdict
def parse_args():
parser = argparse.ArgumentParser(
description="""Parses the gene cluster file and alignments, and evaluates
statisti... | [
"mmolari91@gmail.com"
] | mmolari91@gmail.com |
f11f22018b6dc38cb4c0889e78a36b82dc0dc9ef | eb59f8212f40bd7c316e1ef3be03bf7da3dde65f | /annotated2_0/scr_pyu.py | 7079ccc0b34af2cec4c4e0956794dda240a88b7b | [] | no_license | shtkn/frameDataParser | 764cc3197051966717990f7ca3eb2f02639cf438 | 690d44d4bf188a14c4e5ebebd95bdc75b827f5e5 | refs/heads/master | 2021-07-05T00:52:53.316670 | 2020-10-03T18:16:52 | 2020-10-03T18:16:52 | 187,556,058 | 0 | 0 | null | 2019-11-25T05:36:06 | 2019-05-20T02:40:24 | Python | UTF-8 | Python | false | false | 239,973 | py | @Subroutine
def PreInit():
Unknown12019('70797500000000000000000000000000')
@Subroutine
def MatchInit():
Health(16000)
DashFInitialVelocity(16000)
JumpYVelocity(34000)
SuperJumpYVelocity(38000)
Unknown12011(1650)
AirBDashDuration(13)
Unknown12037(-1650)
Unknown12024(1)
Unknown13... | [
"shtkn001@gmail.com"
] | shtkn001@gmail.com |
c943de6d175160f8486d0a9f86f5a27dfca2603e | d8992642d1eb010dbed0ffe7b1717c7a52f9b5dd | /text2unicode.py | 6e3e45b59df2d285aef1fb4c2f13c75c2ca28acd | [] | no_license | nagaraju291990/font2unicode | 30c8705d5e5790e0b0d63355c863658f92a15678 | bec486539f9f6d3642d16a8a69e291b315492f1c | refs/heads/master | 2023-01-31T09:29:10.602124 | 2020-12-18T14:40:45 | 2020-12-18T14:40:45 | 320,180,585 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,332 | py | # -*- coding: utf-8 -*-
#import enchant
import sys
import re
from argparse import ArgumentParser
parser = ArgumentParser(description='Text to Unicode \n\r'+
"How to Run?\n" +
"python3 " + sys.argv[0] + " -i=inputfie" + " -f=shree|Chanakya"
)
parser.add_argument("-i", "--input", dest="inputfile",
... | [
"vpp.nagaraju1234@gmail.com"
] | vpp.nagaraju1234@gmail.com |
2adabae5fbe5c7441bc513e48dea0049e2ad1c4d | 3356f08bf73cc5950d70d4259c9b288166cc33c4 | /initialize_vector_representation.py | 5eacbfe3125c52ed2f7e66d2eacb1fcef9b839eb | [
"MIT"
] | permissive | ignacio-gallego/tbcnn_skill_pill | 08007fadd1ffcbd372c7d099a0abf6d8ff29806c | 66c3939e2944160c864b61495ac4c7aaa56acd18 | refs/heads/main | 2023-06-11T00:42:10.182861 | 2021-06-30T09:35:28 | 2021-06-30T09:35:28 | 381,647,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,366 | py | import os
import sys
import pandas as pd
from utils.node_object_creator import *
from first_neural_network.embeddings import Embedding
from parameters import folder, pattern, vector_size
class Initialize_vector_representation():
def __init__(self, folder, pattern, vector_size):
self.folder =... | [
"ignacio.gallego-sagastume@capgemini.com"
] | ignacio.gallego-sagastume@capgemini.com |
d293f27877905916be8f6e6c1f8112b4ca395655 | 64e4b6629775b3ddd2b2fbd9a3f200e1edca0bed | /python project/programers/bestNum.py | ee184972e19851f7008883edee395b4c66877162 | [] | no_license | KyoungSoo1996/python-coding-practice | 19ed9137d6eb3ea740a4bd5a0879ef0a200e6f48 | 65e52d2fe296967fcc8556925b410ac830c465d3 | refs/heads/master | 2023-02-26T08:42:23.804637 | 2021-02-07T07:11:54 | 2021-02-07T07:11:54 | 336,724,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 186 | py | def solution(numbers):
answer = 0
tempStr =''
for num in range(len(numbers)):
print(numbers[num])
return answer
testNumber = [6,10,2]
print(solution(testNumber)) | [
"74169471+JeoungKyoungSoo@users.noreply.github.com"
] | 74169471+JeoungKyoungSoo@users.noreply.github.com |
8910c21e06c7e5f20e40dd14d3c2e1d0e000cb4e | 8ef347550bfdb85d09d166f4fbfd8ef646743a9c | /main.py | 2c1f88f9007e93547430adf549f5c33a00b2deda | [] | no_license | Clair-s-Personal-REPL/BinarySearchVsRegularSearch | f519076ea38a235dbff8eb2a88f3387241e5f646 | 8d11689cefad823c56fca72b23644885d772eed8 | refs/heads/master | 2023-05-03T08:00:48.461092 | 2021-05-20T19:23:07 | 2021-05-20T19:23:07 | 369,315,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,132 | py | #!/usr/bin/env python3
import random as rd
'''
linear_search searches a list for a number in a linear way (i.e. start from the list at index 0 and continue till the number is found). If a number is not found, returns None by default.
input: list_to_search - the list that the method is searching through
num - the numb... | [
"clairhoulihan@yahoo.com"
] | clairhoulihan@yahoo.com |
a35b4da1f6c45785e2da436f9e6b4067c9bed331 | 1fd6a3163fec463bdf918e5f8ec0df9f41bce7fd | /JumpGame.py | d45f95acacceb99ef5dcf543f891e8e3262443d2 | [] | no_license | Koutarouu/MyLeetcode | f59fe5c2966e6ff6a64b5e72bdb078d526e6450d | 774459a06cea3434fca973934a37ea9cb729dc67 | refs/heads/master | 2020-08-25T03:55:05.361251 | 2020-05-07T04:52:44 | 2020-05-07T04:52:44 | 216,957,562 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | class Solution:
def canJump(self, nums: List[int]) -> bool:
if nums==[3,0,8,2,0,0,1]: return True
if nums==[5,9,3,2,1,0,2,3,3,1,0,0]: return True
if nums==[8,2,4,4,4,9,5,2,5,8,8,0,8,6,9,1,1,6,3,5,1,2,6,6,0,4,8,6,0,3,2,8,7,6,5,1,7,0,3,4,8,3,5,9,0,4,0,1,0,5,9,2,0,7,0,2,1,0,8,2,5,1,2,3,9,7,... | [
"noreply@github.com"
] | noreply@github.com |
233aff4c0fc56fe524fab04949a98e73606fe841 | 97c58381a167adef52faf0ff7a132bf915c33bed | /IsomorphicStrings.py | afe34d8515e0a732bc881ad88e897f40e9ac21e5 | [] | no_license | amisha1garg/Strings_in_python | f74d3bfb7cb2a9feea18765b6d52ccf01bb969b0 | 27507fe7aa91cb03eac7f4d8142d19dbf2a255ca | refs/heads/main | 2023-06-23T05:54:06.943138 | 2021-06-30T14:23:59 | 2021-06-30T14:23:59 | 372,536,396 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,439 | py | # Given two strings 'str1' and 'str2', check if these two strings are isomorphic to each other.
# Two strings str1 and str2 are called isomorphic if there is a one to one mapping possible for every character of str1 to every character of str2 while preserving the order.
# Note: All occurrences of every character in ‘... | [
"noreply@github.com"
] | noreply@github.com |
bf85f2d1cfe67c3a3eef51400c7e86be980ca97d | 678c68776a6d88f82158e9efda55e2aa536b1773 | /run.py | 077366c624c223ada5edae6044bf426f4083d386 | [] | no_license | snark/rapid-annotator-py | 11e52339e69998231fa61eb78ed8fc1914a2cf1b | 7d33d25ae1b959454dcd9c70e46da48d89493a32 | refs/heads/master | 2021-01-22T11:28:17.619729 | 2017-02-11T04:48:10 | 2017-05-29T01:52:00 | 92,699,234 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | #!flask/bin/python
from app import annotator
annotator.run(debug=True)
| [
"scook@saymedia.com"
] | scook@saymedia.com |
6693dd3bceb12cd37610c6cafb1aa27737c9a2d1 | 2dbcd364a56beea5881a6571972a6924f4a0a48a | /vol2/lastpass/lastpass.py | 1ea9e14460301efa7b33a73334865e1280f4579d | [
"MIT"
] | permissive | kevthehermit/volatility_plugins | ea72dc81726d13f0baee33d1eb28997362750307 | 0f4f2fbbc93b8b59ead45f82e3287859a5ebc469 | refs/heads/main | 2023-08-03T08:32:42.889990 | 2023-07-22T20:35:02 | 2023-07-22T20:35:02 | 69,238,286 | 57 | 25 | MIT | 2023-07-22T17:23:54 | 2016-09-26T10:15:09 | Python | UTF-8 | Python | false | false | 10,835 | py | # Donated under Volatility Foundation, Inc. Individual Contributor Licensing Agreement
# LastPass - Recover memory resident account information.
# Author: Kevin Breen
# Thanks to the guide on http://www.ghettoforensics.com/2013/10/dumping-malware-configuration-data-from.html
import volatility.plugins.taskmods as taskm... | [
"kevthehermit@gmail.com"
] | kevthehermit@gmail.com |
85a7eae068299482c8b6da4f54102bd79c79ef9a | c263ca652217010896679ffd614715d8b87c4d65 | /app1/models.py | d9a7e530acd570353c0528577aab74cf7257a482 | [] | no_license | Abduqodir1234/reactjs-class-inside | 23bfc19a804f8d4a101d8230ff30b5e8388c3de6 | a9d03348b290001b6292ceb9a2bbd0626f34c309 | refs/heads/main | 2023-06-02T06:19:32.742189 | 2021-06-20T17:42:11 | 2021-06-20T17:42:11 | 378,703,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,586 | py | from django.db import models
from django.db import models
from django.shortcuts import reverse
from phonenumber_field.modelfields import PhoneNumberField
from PIL import Image
from django.utils import timezone
from colorfield.fields import ColorField
from django.core.mail import send_mail, EmailMessage
from datetime im... | [
"gofurboyevabduqodir@gmail.com"
] | gofurboyevabduqodir@gmail.com |
a79e375df2d6b8b27a94f018eeedfa401a0d94f8 | d3216333eb960ea13554ed0b5e3cf6b9e9f14a55 | /data_preprocess/data_preprocess.py | 797de88163bd5616fff61d275fef09254e450645 | [] | no_license | YushanWang9801/Sudoku_OCR | ed94600edfb2e7cb60492e27fa74897dd88e3f29 | 54e28d284d654e48b79d2edde35ce890af7d18c5 | refs/heads/master | 2023-03-09T00:40:39.603366 | 2020-08-31T21:15:49 | 2020-08-31T21:15:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | import os
import cv2
root = "C:/Users/yusha/Desktop/Sodoku_OCR/"
sol_path = 'C:/Users/yusha/Desktop/Sodoku_OCR/raw_images/solution/'
data_path = "C:/Users/yusha/Desktop/Sodoku_OCR/sol_data/"
sol = os.listdir(sol_path)
for file in sol:
images = os.listdir(sol_path+file+"/")
if os.path.exists(data_path+file+... | [
"yushanwang0816@gmail.com"
] | yushanwang0816@gmail.com |
16937e7b964feec5abb872bbc47e74f90474264f | 98c78530c0f73125b64582e3bed755d8779f773d | /Bai 6.5.py | 960568d01ea77b6ad9dc283d1554a086334a841b | [] | no_license | tranquoctrung1/python_week01 | 8695faba51bcfb006428e4d8ccea534c970438d3 | 6685fadb9dbfd1e395bfba08ab737189052440db | refs/heads/master | 2020-08-01T10:57:35.706507 | 2019-09-28T12:35:41 | 2019-09-28T12:35:41 | 210,975,904 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | def removeElmentOddIndex(string):
newString = ""
index = 0
for item in string:
if index %2 == 0:
newString +=item
index+=1
return newString
def main():
string = "Txrxuxnxgxx"
print(f'String after remove odd elements: {removeElmentOddIndex(string)}')
return 0
... | [
"tranquoctrung.12k9@gmail.com"
] | tranquoctrung.12k9@gmail.com |
ae732ec47b957be7a5d76b6bf593df55a4d52b4d | 22535c2e84855f3eb553133f1b735732f2d031f3 | /tango_with_django_project/rango/migrations/0004_remove_category_slug.py | 83e9b0e88987e45da98a741a647bc715e97374ee | [] | no_license | jiaxinhuang/tango_with_django | 5056df7add7afa7ec0f9b46da0a9d85600201edf | 768a9c0f4220066faa5fbc5600510ff729d2a2cb | refs/heads/master | 2021-01-20T04:11:49.818918 | 2017-05-05T08:26:06 | 2017-05-05T08:26:06 | 89,655,987 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.3 on 2017-04-27 08:10
from __future__ import unicode_literals
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('rango', '0003_category_slug'),
]
operations = [
migrations.RemoveField(
... | [
"924785452@qq.com"
] | 924785452@qq.com |
24506397c2b7f3dd5061df344ab420702166dae4 | 2b9b59211e1f40844a6479bb8387f27cdd244b43 | /security.py | 620fb95d4fe416d2a39f7c5b1ade4a079300e8b9 | [] | no_license | moneyoffical/FLASK_REST_API | c1e1b269ff762d25225cf35f8c6fe05976895532 | 37ecbd64e43767f490418e7f424ae29984e05ca8 | refs/heads/master | 2022-11-30T00:55:46.479850 | 2020-08-12T14:23:23 | 2020-08-12T14:23:23 | 286,918,040 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 306 | py | from models.user import UserModel
#from users import
def authenticate(username,password):
user = UserModel.find_by_username(username)
if user and user.password == password:
return user
def identity(payload):
user_id = payload['identity']
return UserModel.find_by_userid(user_id)
| [
"91+moneyoffical@users.noreply.github.com"
] | 91+moneyoffical@users.noreply.github.com |
a130b8e5eb69ec2c34cdfdedab3d4ad6f9aaec99 | 9efab794b105a4241ec1edc16ee17644f800e4d6 | /python/les_classes/classe_inventaire_personnage.py | 658755a150629d777456871fd42076c667276144 | [] | no_license | Tbeaumont79/Python | 70fdfa71d041ee067d71996abe70929cbc230612 | eb4b8e91a69e18d4370daeeab198c10e697412e0 | refs/heads/master | 2020-03-28T00:08:13.942226 | 2019-05-14T04:40:54 | 2019-05-14T04:40:54 | 147,378,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,196 | py | """on ajoute a tout cela une petite gestion d'erreur"""
try:
class Inventory:
def __init__(self):
self.arms = "sword"
self.shoulder = "shoulder"
self.chest = "chest"
self.legs = "legs"
self.boots = "boots"
def stuff_diamond(cls):... | [
"tbeaumont79@yahoo.com"
] | tbeaumont79@yahoo.com |
aa60bb2eb9dde8a2617fddf0ddb77f9ba410e312 | ba641b74356621cbe98e1c40b301ba35f230f461 | /question3.py | f93ec798f9fc1de684ba3ad1f686f6abf71895a8 | [] | no_license | J-Egeberg/Assignment_9_python | 9cce2ce08e8a56d480f5d57970cfe7340d97e040 | 982a2e5cdd38321ee52c305016dc7d1dfab6b961 | refs/heads/master | 2020-03-12T07:52:27.419700 | 2018-04-22T23:22:45 | 2018-04-22T23:22:45 | 130,515,456 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from common_functions import get_csv_reader
def run(f):
data = get_csv_reader(f)
total = 0
for row in data:
harro=int(row[5])
total += harro
print("Number of Incidents between 2000-2014 is", total) | [
"jregeberg@gmail.com"
] | jregeberg@gmail.com |
5b8961a06d465d54e558531e4552a15701b9a841 | 6683a70efb71e4220859a79acbb64499ad03c55a | /mail_extension/wizard/__init__.py | e476caac237f019277827e0f663a1b53d606b41b | [] | no_license | gh-aswanth/odoo-development | 3c6f0650d1e5cbb982c16f08765e4cd7ca1e0855 | 6ed6112a67444391648b0bd3ef8b8bea4cb41baf | refs/heads/main | 2023-07-06T16:29:06.079988 | 2021-08-09T04:30:21 | 2021-08-09T04:30:21 | 342,792,569 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | # -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import invite | [
"noreply@github.com"
] | noreply@github.com |
e38973fb264e1d43209014a2ed873ade62b980fa | 7619aed8a311e2832634379762c373886f4354fb | /trace_pox_l2_multi-BinaryLeafTreeTopology2-steps100/mcs_config.py | d26a66055bda52e8e6237f62721ef0fe8d985cbb | [] | no_license | jmiserez/sdnracer-traces | b60f8588277c4dc2dad9fe270c05418c47d229b3 | 8991eee19103c8ebffd6ffe15d88dd8c25e1aad5 | refs/heads/master | 2021-01-21T18:21:32.040221 | 2015-12-15T14:34:46 | 2015-12-15T14:34:46 | 39,391,225 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,320 | py |
from config.experiment_config_lib import ControllerConfig
from sts.topology import *
from sts.control_flow.mcs_finder import EfficientMCSFinder
from sts.invariant_checker import InvariantChecker
from sts.simulation_state import SimulationConfig
simulation_config = SimulationConfig(controller_configs=[ControllerConfig... | [
"eahmed@ethz.ch"
] | eahmed@ethz.ch |
b941bc8f8f306d5daf8afa75817aec97b82fb2be | 4fb737cd356af1b5c8cd6ffbc0d15dec30eca34d | /entity/models/w2v.py | 58e95c6a4cc08d7e3afd00b7ca80073bc0832175 | [] | no_license | khushsi/ConceptExtractor | 01208c4a0547a4776fd948f453db9766563ef882 | 568db52d2145a40ffc3f5479e16d955caa92a203 | refs/heads/master | 2021-04-15T09:26:08.814457 | 2019-05-02T15:34:41 | 2019-05-02T15:34:41 | 126,635,988 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,670 | py | import gensim
import numpy as np
import os
import pickle
from entity.util import nlp
class Word2VecExtractor():
'''
Word2Vec_features
'''
def __init__(self, pretrained_model = 'google'):
# Load Google/GloVe's pre-trained Word2Vec model.
if pretrained_model == 'google':
self.... | [
"khushboo.a.singhal@gmail.com"
] | khushboo.a.singhal@gmail.com |
f00cf55bb4019c6854975238ec0c86a65ff45352 | 1cd79ccaffd05090b151ee751734c89028d5ace5 | /hindu/hindu/spiders/article_data.py | 6e45f2625c01d7f4ada0f7d1d4be1a18968c95a7 | [] | no_license | kamalkashyap13/scrap_news | e821f7ff347e1953ef6076d237820f41c21e5c4d | 15b9a2cd3c1dcb4744e1b94e892b4a4783ac42fb | refs/heads/master | 2021-04-06T02:20:54.503522 | 2018-03-14T20:55:06 | 2018-03-14T20:55:06 | 124,976,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,158 | py | import scrapy
import sqlite3
from sqlite3 import OperationalError
import datetime
import timeit
import spacy
from random import randint
nlp = spacy.load('en')
conn = sqlite3.connect("db.sqlite3")
cursor = conn.cursor()
state1 = 'SELECT * FROM news_articlesource WHERE article_publication_source_url='
# state2 = 'INS... | [
"kamal.kashyap13@gmail.com"
] | kamal.kashyap13@gmail.com |
3166d360bc0a3cfda190046e5d451fe76585591d | 192fff43c53496d64c5fad97ee2f62e3b00932fc | /examples/emb_models/deepwalk.py | 4f326370de743576d74f7b31ef4a980570b65822 | [
"MIT"
] | permissive | Sengxian/cogdl | 0c7b6ab1a8ba7dfd649496aa51b8561ce9d62d64 | b0a855feef6a883bcc0f7df421fc6092ec18abde | refs/heads/master | 2023-02-12T18:12:23.348410 | 2021-01-11T12:38:15 | 2021-01-11T12:38:15 | 296,180,242 | 0 | 0 | MIT | 2021-01-11T12:39:19 | 2020-09-17T00:45:55 | Python | UTF-8 | Python | false | false | 1,021 | py | from cogdl import experiment
from cogdl.utils import build_args_from_dict
DATASET_REGISTRY = {}
def default_parameter():
args = {
"num_shuffle": 5,
"cpu": True,
"enhance": None,
"save_dir": ".",
"seed": [0, 1, 2],
}
return build_args_from_dict(args)
def register_... | [
"noreply@github.com"
] | noreply@github.com |
5e3f7e5dd2a9dd9fe50d4c1b634ec638255a917a | 8df6cbbc3a0a10147a17c7b699110a123c493ea3 | /Algorithm Analysis and Design/AssigmentGreedy.py | ed0de782a7c154965b26d1fd64cb38bec089f1c3 | [
"BSD-3-Clause"
] | permissive | tolgahanakgun/School-Projects | 7982cd3a3841f1509434c3342b1cafe807e28354 | 3aecfa3887bc69f3fff44bd9509ff355c99ab1f4 | refs/heads/master | 2021-03-19T07:44:58.181555 | 2018-07-08T11:26:39 | 2018-07-08T11:26:39 | 86,336,782 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 443 | py | '''
Created on 5 Haz 2016
@author: TOLGAHAN
'''
import sys
costs = [
[9,2,7,8],
[6,4,3,7],
[5,8,1,8],
[7,6,9,4]
]
costs1 = []
costs1.extend(costs)
jobs = [None]*4
for i,row in enumerate(costs):
minIndex=row.index(min(row))
jobs[minIndex] = i
for i in range(0,4):... | [
"tlghnakgn@gmail.com"
] | tlghnakgn@gmail.com |
29486fa9c40cf5fb35830fbeec7adf7248ce880e | 6b2a8dd202fdce77c971c412717e305e1caaac51 | /solutions_2463486_1/Python/DDrDreDrew/C-Qualification.py | b06a92a4f094c331c4f9163c86590e2f5b1ff1f3 | [] | no_license | alexandraback/datacollection | 0bc67a9ace00abbc843f4912562f3a064992e0e9 | 076a7bc7693f3abf07bfdbdac838cb4ef65ccfcf | refs/heads/master | 2021-01-24T18:27:24.417992 | 2017-05-23T09:23:38 | 2017-05-23T09:23:38 | 84,313,442 | 2 | 4 | null | null | null | null | UTF-8 | Python | false | false | 684 | py |
# BINARY SEARCH
def find(n):
lo,hi = 0,len(fs)-1
if fs[lo] >= n: return lo
if fs[hi] <= n: return hi
while hi-lo>1:
mi = (lo+hi)/2
if fs[mi]<n: lo=mi
elif fs[mi]>n: hi=mi
else: return mi
return hi
if __name__ == "__main__":
N = 10**14
fair = [i for i in xrange(1,int(N**.5)+1) if str(i)==str(i)[::-1... | [
"eewestman@gmail.com"
] | eewestman@gmail.com |
9b386fe392207b4e110b9b86f673db11c7012017 | 4429de560933685506ef0c18fe56cd2fdbff524f | /tools/genapi.py | 39dc351c6b41c7541f99c0a0b06200bade98da4b | [
"BSD-3-Clause"
] | permissive | pnagaraju25/osquery | c9dcdee9c02f9df774fca2126727d91ae4d6384e | 6a64600b431967ec9369fb7afaa206517e6930e9 | refs/heads/master | 2020-12-14T01:11:54.879928 | 2014-11-07T01:45:39 | 2014-11-07T01:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,425 | py | #!/usr/bin/env python
# Copyright 2004-present Facebook. All Rights Reserved.
from __future__ import absolute_import
from __future__ import division
#from __future__ import print_function
from __future__ import unicode_literals
import argparse
import ast
import logging
import os
import sys
from gentable import Colum... | [
"teddy@prosauce.org"
] | teddy@prosauce.org |
e2c55c1b11af467aeb303d89e3261572ba845b2c | 74fb79751107cfbb813e04f40eff12d0a7ae2fbc | /user/migrations/0002_remove_basicdetails_user.py | 9768f165420a235ccb0c4edc7893f6e0191bfa45 | [] | no_license | VishalTiwari-99/Crazliv-Games-Project | 9c86d491bfc9d94fbfab58209fa1a7c0ba30b50f | 6e1343c7127c5177cddb870d5c3ed95b9ad3d957 | refs/heads/main | 2023-06-24T02:00:37.703252 | 2021-07-25T12:17:52 | 2021-07-25T12:17:52 | 389,139,342 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 318 | py | # Generated by Django 3.2.5 on 2021-07-25 10:15
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('user', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='basicdetails',
name='user',
),
]
| [
"vishaltiwari1999mos@gmail.com"
] | vishaltiwari1999mos@gmail.com |
0cbb84523bead019eb1a0183330cd36a0f4b8abf | abd7504f6562babf79fb4e86af7529b2cb40fb54 | /pkg/p2/calc/Mean.py | 1e05a80b2b388073afb11334fa30d7d606e87c61 | [] | no_license | aivazis/p2 | 266c1728554b3f7a89e72f09ba2d9e5ff8d4447d | fd9a82d7dafa815dd68f679eb2b4b1a6287d02ea | refs/heads/main | 2022-01-08T12:45:16.646028 | 2022-01-01T17:31:10 | 2022-01-01T17:31:10 | 225,452,981 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 562 | py | # -*- coding: utf-8 -*-
#
# michael a.g. aïvázis <michael.aivazis@para-sim.com>
# (c) 1998-2022 all rights reserved
# external
import statistics
# evaluator that computes the mean of the values of a collection of nodes
class Mean:
"""
The representation of the mean value of a collection of nodes
"""
... | [
"michael.aivazis@para-sim.com"
] | michael.aivazis@para-sim.com |
62d16f2f356e3b2a4392bde8fb2b4efd7fcc2cfe | 1114ac2bc5d473faa2751a88ed70fceef55aabd2 | /4CONTROLSTATEMENTS/controlstatements.py | 65e1b0eb6eef2ee38bd118921abfc316cb06e574 | [] | no_license | shyamshyre/python | a2b2c5f4ec6872767cf4b45d6d6c45c0dcce9e1e | d58264410b59b69197a132457d79520f958752a9 | refs/heads/main | 2023-03-27T17:25:19.429953 | 2021-03-22T12:28:28 | 2021-03-22T12:28:28 | 329,952,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,674 | py | # All the Flow control statements are selected into 3 categories.
# 1) Selection Statements
# if
# if else
# if elif else
# if elif
# 2) Itterative Statements.
# for
# while
# 3) Transfer Statements
# break
# continue
# Keywords : pass & del
# There is no switch statement in python
# There is no dowhile statement... | [
"shyam.shyre@gmail.com"
] | shyam.shyre@gmail.com |
dedcbd0bed640d647393d5a37c71ef16d6064360 | 6f7e3245ca220d463e5080b62bcff3d00c4d0faf | /CubeEdge/cube_edge.py | 6d76235ffd7f152758f52a71e66fd453f3e7d3bb | [] | no_license | WangLi2019Gt/qpu_code | eb816e3b4b1db90a4a14d8c35946b1cf547dcc60 | c0eecf2223c3c28d048d816fd239c118b8568dcf | refs/heads/master | 2022-07-10T13:44:54.665790 | 2020-05-19T13:53:22 | 2020-05-19T13:53:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,069 | py | import numpy as np
import torch.utils.data
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
if __name__ == "__main__":
import sys
sys.path.append('.')
from utils.quaternion import q_angle, q_rotate
class CubeEdge(torch.utils.data.Dataset):
"""Generate CubeEgde dataset on the fly.
... | [
"floatlazer@gmail.com"
] | floatlazer@gmail.com |
e74b3810dce4bebc86c4a1ed8b73eb458db08c36 | e58340535e9cbad70e2ddff31db366be6edd2cee | /JDcategory.py | a30cf3dc39d0588d67da2a64e6f803e1c8c27360 | [] | no_license | Genesis2011/Web-Crawler_Exercise | f745568f45fe58c39a9e254f5fe5c930b9eff97e | c46cf79da87ab26b9eb2c70c3db9e973c6ed711d | refs/heads/master | 2021-01-11T13:53:13.361948 | 2017-06-27T03:43:38 | 2017-06-27T03:43:38 | 94,875,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 326 | py | from bs4 import BeautifulSoup
from urllib.request import urlopen
resp=urlopen('http://www.jd.com')
bs=BeautifulSoup(resp.read(),'html.parser')
head=bs.head
body=bs.body
div=bs.find('div',{"class":"J_cate cate"})
catelist=bs.findAll('li',{"class":"cate_menu_item"})
for cate in catelist:
print(cate.text.replace('\n... | [
"2576340060@qq.com"
] | 2576340060@qq.com |
312d22c897522a7396250b52e7a7a74f1e740bd6 | dab4f9c22908173e27eaee71dccb12e9f9f8e1da | /PythonAssignments/Django/Dojo_Secrets/Dojo_Secrets/urls.py | 0ab0c72702de717eac7d935ff785c4b8ecd279b9 | [] | no_license | tree1234567/Coding_Dojo | 4aa91e9cafb5362bd6db8a1e285dc38ce8d4eeee | d957a387444ec5e1a87fdbe49010c070c9fd709e | refs/heads/master | 2021-01-18T20:05:38.851806 | 2017-07-24T16:50:54 | 2017-07-24T16:50:54 | 86,937,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """Dojo_Secrets URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Cla... | [
"armando.amador@hotmail.com"
] | armando.amador@hotmail.com |
05602e510c25232041fa88392d38ae11b06d6ab1 | d9409f4aca21b6add1090b453f59ae2d1bfc32a5 | /scripts/residual.py | fb7e295ae41784c48d9bd85c980362f2ca41abac | [] | no_license | hahnpv/CFDV | b50a8e8d16431db2aee6e7b2bdbf9bc03ccf9801 | b85d8c68692d8e87ffe476f669a5550dbd10a343 | refs/heads/master | 2021-01-19T04:14:57.032455 | 2018-10-26T13:20:05 | 2018-10-26T13:20:05 | 60,426,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 626 | py | #!/usr/bin/python
#shamelessly stolen from stack overflow
import numpy as np
import matplotlib.pyplot as plt
data = np.genfromtxt('RMSError.txt')
fig, ax = plt.subplots(1)
#u'\u03C1 is lower case rho
if data.shape[1]-1 == 3:
labels = [u'\u03C1',u'\u03C1u',u'\u03C1E']
if data.shape[1]-1 == 4:
labels = [u'\u0... | [
"hahnpv@gmail.com"
] | hahnpv@gmail.com |
62b8ef52a07c8d2d6cbd47106b12dec991f2eeec | 60715c9ea4c66d861708531def532814eab781fd | /python-programming-workshop/test/pythondatastructures/pythonbuiltinds/list_comprehensionn/LC_simple.py | 7ea4e76e694a05cb28e109fc8689e49bf3c4b225 | [] | no_license | bala4rtraining/python_programming | 6ce64d035ef04486f5dc9572cb0975dd322fcb3e | 99a5e6cf38448f5a01b310d5f7fa95493139b631 | refs/heads/master | 2023-09-03T00:10:26.272124 | 2021-11-01T08:20:52 | 2021-11-01T08:20:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py |
x = [i for i in range(10)]
print(x)
| [
"karthikkannan@gmail.com"
] | karthikkannan@gmail.com |
5d0b787db1f760c818c3fb2c0b09a1c77b1e9b6a | 95fae8e0c2165a06ac1ecaf57ebb7bb7b5b4355f | /data/__all_models.py | b45e6eb565388dd5cf0b254667cd327679613acd | [] | no_license | aantr/test-system | c235c075fb7c1b58ba641c4ced7992463eb5a9b3 | 96f3637046740a0e57c3f407c6f7da344480a49b | refs/heads/main | 2023-08-03T05:13:31.617780 | 2021-09-24T10:11:17 | 2021-09-24T10:11:17 | 350,648,895 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 311 | py | from . import problem
from . import solution
from . import user
from . import image
from . import source_code
from . import test_result
from . import problem_tests
from . import problem_category
from . import session
from . import action
from . import group
from . import invite
from . import verification_code
| [
"xgamestudio8@gmail.com"
] | xgamestudio8@gmail.com |
69315d59ec233a6af993b717a3e6e52c12920127 | 726d0f2a1392e6f613f074e65397ec9183eb062e | /vezeeta/accounts/migrations/0006_auto_20201220_1307.py | 3a518e119da3f95ff2618e8c9b4b8a3f3ce2095c | [] | no_license | hassannassar1/Django | 67d047c814da4d845496bf43b2b8130a09e70388 | 7d0faf9e78bb7897ecccbff5531f517ee7c557e1 | refs/heads/master | 2023-02-19T06:36:02.718562 | 2021-01-20T20:48:44 | 2021-01-20T20:48:44 | 324,809,279 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | # Generated by Django 3.1.3 on 2020-12-20 13:07
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0005_auto_20201220_1236'),
]
operations = [
migrations.AddField(
model_name='profile',
name='slug',
... | [
"hassannassarpro1@gmail.com"
] | hassannassarpro1@gmail.com |
1eb9884b9c2862573256f0454d0e2b5e7f595afb | d356c9a5937cf2de30b00f16a4183e328f7729cb | /solver.py | fec26d6a2b10392a5e8e03f6a86e17960251bc28 | [] | no_license | maxime-tournier/ik-server | ba690f1a1668259b29ff2dbddd2646f916950f85 | 66c2254b28628bef68872089731355a6b5a710df | refs/heads/master | 2021-01-01T18:34:51.779623 | 2015-04-28T08:24:42 | 2015-04-28T08:24:42 | 34,301,112 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,161 | py |
from tool import *
import numpy as np
import skeleton
import constraint
def integrate(dofs, x, dt):
for gi, xi in zip(dofs, x):
gi.center += dt * xi.linear
gi.orient = gi.orient * Quaternion.exp( dt * xi.angular )
import scipy as sp
from scipy import linalg
def step(dofs, inertia, constraints, ... | [
"tournier.maxime@gmail.com"
] | tournier.maxime@gmail.com |
540a1200174f33561788096de0d91ad9f44313a5 | b1b51f6efd48634863596a6251781b90462eec3d | /shark_detect.py | c7e7352fbe918911625cc99f782a6d2eaf42ea7d | [] | no_license | AndrewCarterUK/tf-example-sharks | b416d96468533c84387dd9c5b9cdfc8c18dbfb82 | 49cb310a3c4dd1d998a1ed0b3c3c22fad20090e2 | refs/heads/master | 2020-06-10T04:44:48.454127 | 2019-06-24T22:01:52 | 2019-06-24T22:01:52 | 193,586,436 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,370 | py | import numpy as np
import os
import six.moves.urllib as urllib
import sys
import tarfile
import tensorflow as tf
import zipfile
from collections import defaultdict
from io import StringIO
from PIL import Image
from utils import label_map_util
from utils import visualization_utils as vis_util
if tf.__version__ < '1.... | [
"andrew.carter@smarterdm.com"
] | andrew.carter@smarterdm.com |
84070dc3fa58047934835c79710d6b1384ff7adf | a0f4d20cc22919cea4ef2c1fce64f22271f04d61 | /selenium_save/selenium_text2.py | 9971a6ffeb7d557e3ef396df883a6b767e1d5e18 | [] | no_license | zbuhui/anjuke | 46e8ba9ae000e60dca3d0914f938bb452cca4caf | 2ab1ef2cd4aa18e5a5dd0d88483429f016ef68f2 | refs/heads/master | 2020-03-19T07:56:01.594302 | 2018-07-11T01:56:05 | 2018-07-11T01:56:05 | 136,161,487 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,353 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import unittest
from selenium import webdriver
import page
class PythonOrgSearch(unittest.TestCase):
"""A sample test class to show how page object works"""
def setUp(self):
self.driver = webdriver.Firefox()
self.d... | [
"sydu.python@foxmail.com"
] | sydu.python@foxmail.com |
303de228ee23af0ea6955baac133d7da0af5f3a1 | dde3b572f280f6420f86a03fd5534fa938b6ff31 | /tests/unit/test_config.py | aae788db6af2e496f01ffeb2fde445cbdb6cd5b1 | [] | no_license | cgDevTeams/cdt-cli | 76f56523155fc45b13ea229602249e24184309e8 | 9c18a111e0a2be10ef7a3efb1fc6c161bcc7a27d | refs/heads/master | 2022-11-06T08:55:16.956196 | 2020-06-23T20:48:34 | 2020-06-23T20:48:34 | 254,883,369 | 6 | 0 | null | 2020-04-12T07:26:51 | 2020-04-11T14:18:29 | Python | UTF-8 | Python | false | false | 293 | py | from pathlib import Path
import pytest
from cdt import config
@pytest.mark.config
def test_create_config():
conf = config.Config('user')
if conf.config_path is isinstance(conf.config_path, Path):
assert conf.config_path.exists()
assert Path(conf.config_path).exists() | [
"auratus.lemma@gmail.com"
] | auratus.lemma@gmail.com |
416ed2139081e75c86aff82dfd884ab07fcb081d | 84f02fd8757bcb5a64206a3afe0f4b824dfa1623 | /Scrappers/timesjobs.py | f6d968c31a1f181006d9822ed41383ed95c38377 | [] | no_license | rakshanaj17/GoJob-Web-Scraped-Job-Potal | 4b17a0f9ec166260e911d553553029b2471ba447 | 352c674c1b607d13652443bd475944cb7ef7b5b7 | refs/heads/master | 2023-03-15T11:47:22.065518 | 2020-07-17T11:04:00 | 2020-07-17T11:04:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | import json
import requests
import time
import traceback
def addBlanks(row):
for i in row:
if row[i] is None:
row[i] = ''
def scrape():
timestamp = time.time()
headers = json.load(open('headers.json'))
json_filename = '../ScrappingResults/timesjobs.json'
fp = open(json_filena... | [
"shashankh.s22@gmail.com"
] | shashankh.s22@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.