blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ca533f2d101a318a97772ebfb27bef0b60460aa2 | a82961498421f8dbc6ed15ba7c22d82763b85e95 | /rides_handling/migrations/0019_auto_20180514_1703.py | 0ec616da15661531563117745b8860da2fc9c0a5 | [
"MIT"
] | permissive | EverythingWorks/Unter | f7ae61c33f66ec37b48a3e2f86dfa6f5d9edd9f2 | a03b4c8fc5cc77095021b9b504ea6c00de8a5a18 | refs/heads/master | 2020-03-10T07:25:56.055846 | 2018-06-04T04:22:21 | 2018-06-04T04:22:21 | 129,262,544 | 4 | 1 | MIT | 2018-05-29T14:03:35 | 2018-04-12T14:17:22 | Jupyter Notebook | UTF-8 | Python | false | false | 747 | py | # Generated by Django 2.0.4 on 2018-05-14 17:03
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('rides_handling', '0018_auto_20180512_0937'),
]
operations = [
migrations.AddField(
model_name='... | [
"danpisq@gmail.com"
] | danpisq@gmail.com |
f6d5899459cd4b1b222d2d880badb5acd97d8ffb | ee82b3b34449187dc34ac22afa49d490b8f94831 | /design/optblock.py | 1622f3770f44d819e43c3a4b4b6a06f08c4e6328 | [
"MIT"
] | permissive | raddanki/softblock | 2d16c0acbcdfbf969f489ab5a832e55c15ec4cc7 | 25f1ed61a0ab4c377e0b57546b57287bb90667bf | refs/heads/master | 2023-04-05T03:08:00.549190 | 2021-04-26T13:27:45 | 2021-04-26T13:27:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,015 | py | #! /usr/bin/python3
from sklearn.neighbors import DistanceMetric
import numpy as np
from .nbpMatch import nbpwrap
from .design import Design
class OptBlock(Design):
def __init__(self, treatment_prob: float = 0.5):
self.treatment_prob = treatment_prob
super(OptBlock, self).__init__()
def fit(... | [
"arbour@Davids-MacBook-Pro.local"
] | arbour@Davids-MacBook-Pro.local |
e048ecf2bf1cfedf302f50a696e79ffb86f316b1 | db5f9683e06afffb1657b3919d302af4eb1c0b2a | /miscellaneous/infomaterial/create_state/main.py | aa8c08dce913169c02dad351c576de4fccd2ffc4 | [
"MIT"
] | permissive | Birkenpapier/informaticup21 | a071e515acac8a60d5cd0fe3d4918fcbf21e3f04 | 193ff04be765dc5f11206f75eb3225cfeb94eb87 | refs/heads/master | 2023-03-25T17:51:36.380575 | 2021-01-17T19:24:14 | 2021-01-17T19:24:14 | 352,364,199 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,280 | py | import make_decision as make_d
import pylogging as IC20log
import tensorflow as tf
import numpy as np
import time
import os
from bottle import post, request, run, BaseRequest
from keras.utils import to_categorical
from drl_agent.DQN import DQNAgent
from create_training_data import *
from random import randint
from gam... | [
"kevin@peivareh.com"
] | kevin@peivareh.com |
76063ba8a654410eb9a78179fbe0b90a12bb85ad | 32a0cb40ad22c725f41984d8d234589bdd4cb58f | /module_3/tasks/re_1.py | a79e75aed30ef0f4cf1be51358aa3f18fa714ae8 | [] | no_license | egolov/stepic-python | 2ef7b201d47dc73388b61a01fb864ec978b8d1d2 | c160c9ef752c0a4dd82217917909ee5547a1e583 | refs/heads/master | 2020-03-20T02:15:07.400710 | 2018-06-12T17:20:49 | 2018-06-12T17:20:49 | 137,105,217 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 240 | py | import re
# вхождение 'cat' более двух раз
pattern_1 = r".*cat.*cat"
pattern_2 = r"cat"
print(re.match(pattern_1, "abc cat and cat abc")) # is not None
print(re.findall(pattern_2, "abc cat and cat abc")) # len() > 1
| [
"e-golov@yandex-team.ru"
] | e-golov@yandex-team.ru |
bf81381a68065e4e52ed4a7600692ef8632e9a7c | d076d75093b374418b5704703f841623344c0a82 | /Tokenizer/make_tokenizer.py | c02073ccd07173d25698296a1b1dcac4630d2499 | [] | no_license | sangHa0411/BERT | db1e3284ed22927fc2f19e819a5946b634c9bacf | cb272f94d77770b9b29d7493238e5ea1c5554420 | refs/heads/main | 2023-08-28T14:20:31.398036 | 2021-10-19T01:25:06 | 2021-10-19T01:25:06 | 417,094,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,996 | py | import os
import re
import sys
import argparse
from tqdm import tqdm
from nltk.tokenize import sent_tokenize
from konlpy.tag import Mecab
def train(args) :
sys.path.append('../')
from tokenizer import write_data, train_spm
from loader import get_data, preprocess_data
from preprocessor import SenPreproc... | [
"noreply@github.com"
] | sangHa0411.noreply@github.com |
053950d8dee6b200c63e069154c6d9c6ba7b21af | 02442f7d3bd75da1b5b1bf6b981cc227906a058c | /rocon/build/rocon_app_platform/rocon_app_manager/catkin_generated/pkg.develspace.context.pc.py | 3de9876b63c7300094cd88e5c7d2b10e59c73d88 | [] | no_license | facaisdu/RaspRobot | b4ff7cee05c70ef849ea4ee946b1995432a376b7 | e7dd2393cdabe60d08a202aa103f796ec5cd2158 | refs/heads/master | 2020-03-20T09:09:28.274814 | 2018-06-14T08:51:46 | 2018-06-14T08:51:46 | 137,329,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "".split(';') if "" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "".split(';') if "" != "" else []
PROJECT_NAME = "rocon_app_manager"
PROJECT_SPACE_DIR ... | [
"facai_sdu@126.com"
] | facai_sdu@126.com |
02d4497caa6522455555c81d2715262be07fb67f | 2f98aa7e5bfc2fc5ef25e4d5cfa1d7802e3a7fae | /python/python_24610.py | ed0905d8047a088ab943cc1e32bc4dbc7d30b821 | [] | no_license | AK-1121/code_extraction | cc812b6832b112e3ffcc2bb7eb4237fd85c88c01 | 5297a4a3aab3bb37efa24a89636935da04a1f8b6 | refs/heads/master | 2020-05-23T08:04:11.789141 | 2015-10-22T19:19:40 | 2015-10-22T19:19:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 69 | py | # Why int() argument must be a string or a number, not 'list'?
PForm
| [
"ubuntu@ip-172-31-7-228.us-west-2.compute.internal"
] | ubuntu@ip-172-31-7-228.us-west-2.compute.internal |
69991130e0c5ea9538a163c831d2b0caa0fd1571 | 8c5f5cf4ef550062d5511dd848d250b4f54918dd | /krishna/settings.py | 7956897358d0b28eb652179b32ba4c6438fb3f22 | [] | no_license | krishnagopaldubey/fuzzysearchwithgetmethod | af18c9c1834e0a367e1eb3ff5454ea946fb01376 | 116589b684e78e5d0c4f8f05fcd0d83a2ba3e9c6 | refs/heads/master | 2020-08-12T06:56:51.493043 | 2019-10-12T20:34:27 | 2019-10-12T20:34:27 | 214,711,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,125 | py | """
Django settings for krishna project.
Generated by 'django-admin startproject' using Django 2.1.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"krishna@dolphinfoundry.com"
] | krishna@dolphinfoundry.com |
5c9f9ce0e28a0947dd8edbcea57820ca55c76184 | d3efc82dfa61fb82e47c82d52c838b38b076084c | /Autocase_Result/KCB_YCHF/KCB_YCHF_MM/SHOffer/YCHF_KCBYCHF_SHBP_153.py | 57c5b458804546c0a77bf642879eaa200c682c30 | [] | no_license | nantongzyg/xtp_test | 58ce9f328f62a3ea5904e6ed907a169ef2df9258 | ca9ab5cee03d7a2f457a95fb0f4762013caa5f9f | refs/heads/master | 2022-11-30T08:57:45.345460 | 2020-07-30T01:43:30 | 2020-07-30T01:43:30 | 280,388,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | #!/usr/bin/python
# -*- encoding: utf-8 -*-
import sys
sys.path.append("/home/yhl2/workspace/xtp_test//xtp/api")
from xtp_test_case import *
sys.path.append("/home/yhl2/workspace/xtp_test//service")
from ServiceConfig import *
from ARmainservice import *
from QueryStkPriceQty import *
from log import *
sys.path.append... | [
"418033945@qq.com"
] | 418033945@qq.com |
4c1da163636e9dd3c700a82633474e2178f8f902 | 16234b1ac9e2e2cb64c2e44dfb938525046a0d33 | /tests/test_vispy_plot.py | add3abf99799d98b6e7d8345985a7738a940b24c | [
"MIT"
] | permissive | cmsteinBR/FlatCAM | 8c0b41e2ea63a7c942c77cd1e4fc286b7b99da93 | f6e492916776384bdf3af28367679c2ae02c926a | refs/heads/master | 2021-01-18T00:22:07.056830 | 2016-08-04T16:08:55 | 2016-08-04T16:08:55 | 66,869,807 | 1 | 0 | null | 2016-08-29T18:32:44 | 2016-08-29T18:32:42 | Python | UTF-8 | Python | false | false | 1,660 | py | import sys
import unittest
from PyQt4 import QtGui, QtCore
from FlatCAMApp import App
from VisPyPatches import apply_patches
import random
import logging
class VisPyPlotCase(unittest.TestCase):
"""
This is a top-level test covering the Gerber-to-GCode
generation workflow.
THIS IS A REQUIRED TEST FOR ... | [
"denis_vic@mail.ru"
] | denis_vic@mail.ru |
05c42897a43ef1cd339385cd1d08994c838bd27a | 454de23b97631718c7c7795fdef14881e5758d22 | /Unit 3/fileIO.py | f523092c0042ed435999e78fc9b1e02607f2f1cd | [] | no_license | dhruv3/IntroToPython | 0ac7ab132abd89eb99e86dd62ccc884f454d2701 | 620d05269f33a1f8003986af87cb956b217359ec | refs/heads/master | 2021-01-22T05:43:18.095945 | 2017-05-18T13:30:35 | 2017-05-18T13:30:35 | 81,695,504 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | #
#File I/O stuff
#
#Method 1
infile = 'testTextFile.txt'
f = open(infile, 'r')
data = f.read()
f.close()
print(data)
#len gives total char in the string data
print(len(data))
#clean the data
data = data.replace('"', '')
dataList = data.split(', ')
print(dataList)
print(len(dataList))
#Method 2
with open("testN... | [
"dhruv.mnit@gmail.com"
] | dhruv.mnit@gmail.com |
6eda11f72415c2c9a36b7f5635e2560ef63bf01a | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/pg_1318+062/sdB_pg_1318+062_lc.py | ff49a4e872dad3cb97afe62d31f086a25e90d3e8 | [] | 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 | 344 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[200.185083,5.983667], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_pg_1318+062/sdB_pg_1318+062_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
6e366b23ce962f4acf818615c993eb9f30b28562 | d8f44692c9f9f0a9a391a49db0f4f659a2ef6fe8 | /jsBuilds/jsSupport.py | 4817320de831b302adb53f3eddacb01f0fbe8e4b | [
"MIT"
] | permissive | skylarkgit/sql2phpclass | 045e71963574b719313fc98882f5c710435f101f | a79e7f3cfda8cb41ba00e8cbba0de33e9be759d6 | refs/heads/master | 2020-03-19T02:34:34.229287 | 2018-07-04T18:58:28 | 2018-07-04T18:58:28 | 135,640,687 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 759 | py | import sys
sys.path.append('..')
from jsBuilds.jsTemplates import *
def args(varList):
return ','.join(varList)
def reqData(varList):
return '+"&"+'.join('"'+x+'="obj.'+x for x in varList)
def objFormation(varlist):
return ','.join(x+':'+SCOPE(x) for x in varList)
def varsToAliasArr(varList):
arr={}... | [
"abhay199658@gmail.com"
] | abhay199658@gmail.com |
60c083d45755c5c8515e991f42f96dd819d6e4d5 | fbbbcfa050612a6242c095060bad774b60fc914d | /archive_project/old_version.py | 184a635253393fb5e1f993b883ce043eb4385aee | [] | no_license | MitjaNemec/Kicad_action_plugins | 79b4fa0fb8fdcb0aba3770f871f0c25bd982bea6 | f7f2eaa567a7354459e17f108427584fa6a6a8a4 | refs/heads/master | 2023-08-29T12:09:48.978854 | 2023-06-15T18:41:08 | 2023-06-15T18:41:08 | 110,839,994 | 406 | 79 | null | 2022-03-31T06:31:07 | 2017-11-15T13:55:47 | Python | UTF-8 | Python | false | false | 1,473 | py | # -*- coding: utf-8 -*-
# action_replicate_layout.py
#
# Copyright (C) 2018 Mitja Nemec
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your opti... | [
"mitja.nemec@fe.uni-lj.si"
] | mitja.nemec@fe.uni-lj.si |
7ca71e74e605112ef507f107584f872545a68564 | 499efac953f9f0ed3ef1876b3a470250c75f7ac1 | /mnist_sklearn.py | 7f778519c5dc8279f17a25ce634530272f3881e0 | [] | no_license | ravi911sharma44/MNIST- | b7ffe5c2b9492e7997590a618c8a483f72709e95 | 15fb747ce7e928f963d4bd61d28a5411e98878c8 | refs/heads/main | 2023-07-17T03:04:02.138426 | 2021-08-14T15:31:24 | 2021-08-14T15:31:24 | 396,047,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 538 | py | import pandas as pd
df = pd.read_csv (r'E:\chat bot intern\week 3\mnist_train.csv\mnist_train.csv')
df = pd.DataFrame(df)
from sklearn.model_selection import train_test_split
X = df.drop('label', axis = 1)
Y = df.label
x_train, x_test, y_train, y_test = train_test_split(X, Y, test_size = 0.2)
from sklear... | [
"noreply@github.com"
] | ravi911sharma44.noreply@github.com |
bb53fe452117f99a8d8f7b1e33f47e1ab79db0c2 | 77b16dcd465b497c22cf3c096fa5c7d887d9b0c2 | /Cron_Philip/Assignments/flaskolympics/olympics3/server.py | 3c8cc483f0488a3e80700542e08036210ca2f614 | [
"MIT"
] | permissive | curest0x1021/Python-Django-Web | a7cf8a45e0b924ce23791c18f6a6fb3732c36322 | 6264bc4c90ef1432ba0902c76b567cf3caaae221 | refs/heads/master | 2020-04-26T17:14:20.277967 | 2016-10-18T21:54:39 | 2016-10-18T21:54:39 | 173,706,702 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 322 | py | from flask import Flask, render_template, session
app = Flask(__name__)
app.secret_key = 'ThisIsSecret'
@app.route('/')
def myfirstfunction():
if not 'title' in session:
session['title'] = 'hello world'
return render_template('index.html', name="Mike")
if __name__ == '__main__':
app.run(debug = True... | [
"43941751+curest0x1021@users.noreply.github.com"
] | 43941751+curest0x1021@users.noreply.github.com |
b5ebdfe3b10eec2fa3575652a3e0276ef6f4b913 | 332e04cf48647c120161f3765fe3285a38fc44db | /qap_lab/source/solver.py | 4737c3303eae5ae21be6d978a9335d1cd4ed70c3 | [] | no_license | Venopacman/comb_opt_lessons | 7783d2eab3d037c566f84442fb1b8d4af00ad864 | 687aa6d5eab6424f1e310e0ac1230ca11670cc82 | refs/heads/master | 2020-03-29T12:41:39.226108 | 2018-11-25T21:17:15 | 2018-11-25T21:17:15 | 149,912,955 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,695 | py | import itertools
import os
import random
from copy import deepcopy
from typing import List
import numpy as np
import tqdm
from qap_lab.source.data_utils import Problem
from tqdm import trange
import json
import os
from multiprocessing import Pool
class Chromosome:
"""
Permutation vector wrapper
"""
... | [
"pdsmirnov@yandex.ru"
] | pdsmirnov@yandex.ru |
550abb7570d8b8943d140a815dfcc92c727bbc0b | fbb1494be3ff7b6a5dfa3b9204cc927af4103b59 | /api/urls.py | 242b792a393d67ac9d39ff798fc079072c76b9ff | [] | no_license | james-work-account/raml_loader_api | a3380faf6f07ae82b1b113e7019fbb5f6840df31 | 4483b13de5d74c20f7c3696ba6180332b36fdc2b | refs/heads/master | 2021-07-24T07:32:28.507993 | 2020-10-06T08:38:23 | 2020-10-06T08:38:23 | 222,752,033 | 0 | 0 | null | 2020-10-06T08:25:55 | 2019-11-19T17:29:11 | Python | UTF-8 | Python | false | false | 802 | py | """api 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')
Class-based vie... | [
"31282758+james-work-account@users.noreply.github.com"
] | 31282758+james-work-account@users.noreply.github.com |
34d788e9ab997f619139b8af4b45a786cee0aac0 | ce27a376fa4f6a25008674d007c670a4a0b8bda7 | /defects_thresholding.py | 1c96261ba4ebe8222fcc90b839c16ced1c0d9cfa | [] | no_license | jrr1984/defects_analysis | 22139b7734478b6261cf9efeaae755a2c5c71c79 | 2e43b65f1b936516f4a4c8f7feb5d46468864957 | refs/heads/master | 2020-12-10T20:00:39.977833 | 2020-04-16T12:00:22 | 2020-04-16T12:00:22 | 233,694,615 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,701 | py | from skimage.filters import threshold_yen,threshold_isodata
from skimage import io,measure,img_as_float,morphology
from skimage.measure import regionprops_table
from skimage.color import label2rgb
import numpy as np
from scipy import ndimage
import matplotlib.pyplot as plt
from matplotlib_scalebar.scalebar import Scale... | [
"juanreto@gmail.com"
] | juanreto@gmail.com |
420fab0c05381289bc6cac20833db699a61ff63b | b883802b374515f7bb453f9631a65bb63b5cd8cc | /filter.py | 6e03457e43b34ee541ab28f736a0550bd1d99d3e | [] | no_license | Harry-Yao/learn-about-python | 6898cae04f665400ab255989b9d8c1388cb94362 | 558085e0fdd7a4488303c91206b44b353e4b58e7 | refs/heads/master | 2021-01-10T17:44:29.301594 | 2016-03-10T16:09:50 | 2016-03-10T16:09:50 | 52,965,207 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 176 | py | # -*- coding: utf-8 -*-
def is_palindrome(n):
if str(n) == str(n)[::-1]:
return str(n)
# 测试:
output = filter(is_palindrome, range(1, 1000))
print(list(output)) | [
"673441990@qq.com"
] | 673441990@qq.com |
a722c34d1eb09a9e71cc919a6734cf38c3fe7d9a | bcc1f398423b7107dc54b3046fa49029b416fba2 | /Module 3/Chapter 8/HttpExfil.py | 9b8d7d24874df32cc0cf0c653201baaea33956cf | [
"MIT",
"Apache-2.0"
] | permissive | PacktPublishing/Python-Penetration-Testing-for-Developers | d81432bd276366fb606e0d2231956c2770b2952c | a712d19c9587d04e13b332adbc3620c0df477c89 | refs/heads/master | 2023-02-18T20:10:37.725636 | 2023-01-30T08:36:57 | 2023-01-30T08:36:57 | 68,084,109 | 43 | 37 | null | null | null | null | WINDOWS-1250 | Python | false | false | 521 | py | import requests
import re
import subprocess
import time
import os
while 1:
req = requests.get("http://127.0.0.1")
comments = re.findall('<!--(.*)-->',req.text)
for comment in comments:
if comment = " ":
os.delete(__file__)
else:
try:
response = subprocess.check_output(comment.split())
except:
... | [
"jayeshs@packtpub.net"
] | jayeshs@packtpub.net |
ad3c6e6becb9b5646766ed2063c8d949313bda56 | aee573c81dc297a97772b99cd90e05d494b25f77 | /learnpython/matplotlib/demo_plot_2.py | e5879a3c9928961f2b12810475ab9a793f96f56e | [] | no_license | YuxuanSu-Sean/learning | 6df9d7b348e3f6c8cad0347e222c1ed244c92332 | 1356b85c2b673925f1fc89ff45f54fb499d342d0 | refs/heads/master | 2022-11-13T14:08:17.808037 | 2022-11-10T05:15:16 | 2022-11-10T05:15:16 | 204,625,964 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import matplotlib.pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(111)
| [
"497572121@qq.com"
] | 497572121@qq.com |
a2db15dc70256c5ac16e2d712ccd8393faf996ac | c820e028be4239bc20e76af41574e561ba8d8e02 | /gsw/version.py | 2f5fd65dfc4d9ab9ae7c7b3df560f34efabacd78 | [
"MIT"
] | permissive | lukecampbell/python-gsw | 7657c2e3a0dbadad00ff17557f4ca45f971f3964 | c555921b5f1fcbc1c1a3565172b946f782d15db4 | refs/heads/master | 2016-09-06T16:54:47.074484 | 2013-02-20T20:00:03 | 2013-02-20T20:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 43 | py | #!/usr/bin/env python
version = '3.0.1a1'
| [
"luke.s.campbell@gmail.com"
] | luke.s.campbell@gmail.com |
b301691a347e993eeb0904ec4da555a684042612 | caf39133030e9e9d9240769fbfe72287009c6b51 | /math/0x02-calculus/17-integrate.py | 70e1a9c8db0993bc659e0d727a1f9eab6e7a5be6 | [] | no_license | sazad44/holbertonschool-machine_learning | d08facbc24582ebcedf9a8607c82b18909fe7867 | b92e89b980a8f1360a24f4ed5654a2ab0dfac679 | refs/heads/master | 2022-11-30T22:32:21.264942 | 2020-08-12T05:25:06 | 2020-08-12T05:25:06 | 280,286,486 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 728 | py | #!/usr/bin/env python3
"""task 17 py function to integrate a polynomial"""
def poly_integral(poly, C=0):
"""py function to calculate integral of poly"""
if not isinstance(
poly,
list
) or len(
poly
) == 0 or not isinstance(
C,
int
):
return N... | [
"36613205+sazad44@users.noreply.github.com"
] | 36613205+sazad44@users.noreply.github.com |
998e74d73408d3c5bf3bf99ce5df17a7a52ee3f8 | 0a40a0d63c8fce17f4a686e69073a4b18657b160 | /test/functional/rpc_bip38.py | b70349a25ed83fb3fc00d631b1bc8dcd9eb3f3e4 | [
"MIT"
] | permissive | MotoAcidic/Cerebellum | 23f1b8bd4f2170c1ed930eafb3f2dfff07df1c24 | 6aec42007c5b59069048b27db5a8ea1a31ae4085 | refs/heads/main | 2023-05-13T06:31:23.481786 | 2021-06-09T15:28:28 | 2021-06-09T15:28:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,025 | py | #!/usr/bin/env python3
# Copyright (c) 2018-2019 The CEREBELLUM developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""Test RPC commands for BIP38 encrypting and decrypting addresses."""
from test_framework.test_framework i... | [
"travisfinch01@gmail.com"
] | travisfinch01@gmail.com |
2bcd1788de6e9a593abedae6ed61b48c43c67654 | 06d6c9346331e392f6d8067eb9ee52d38ae5fab8 | /carver/pe/setup.py | 299b8bff264703b5031d4a1ddd6b11e7c4e69e92 | [
"Apache-2.0"
] | permissive | maydewd/stoq-plugins-public | 5d5e824dda0c78acab4ff9aef72f567e6b85e555 | 8b2877b5091ae731437ef35a95d4debdbf0a19f3 | refs/heads/master | 2020-03-22T18:57:41.061748 | 2018-06-12T14:36:42 | 2018-06-12T14:36:42 | 140,494,475 | 0 | 0 | Apache-2.0 | 2018-07-10T22:39:08 | 2018-07-10T22:39:08 | null | UTF-8 | Python | false | false | 371 | py | from setuptools import setup, find_packages
setup(
name="pe",
version="0.10",
author="Jeff Ito, Marcus LaFerrera (@mlaferrera)",
url="https://github.com/PUNCH-Cyber/stoq-plugins-public",
license="Apache License 2.0",
description="Carve portable executable files from a data stream",
packages... | [
"marcus@randomhack.org"
] | marcus@randomhack.org |
f6feb1566f4a0b2b2e1860b1005500bb45004b68 | 79429bd1c124044572bef9d1062d145c01e20b24 | /ex026.py | d7d2e948a9f0c2b06d59b7d78ecec3325b3eb7ee | [] | no_license | xxweell/exerciciosPython | b6fe00d67a39391bb8794953832f07f7f75eb504 | 93c1ac25dc1d1875c4102e1126fa54a537bb0973 | refs/heads/master | 2022-11-14T20:30:13.587004 | 2020-06-17T21:06:59 | 2020-06-17T21:06:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 353 | py | frase = str(input('Digite uma frase: ')).strip().upper()
print('A letra A aparece {} vezes na frase.'.format(frase.count('A')))
print('A primeira letra A apareceu na posição {}.'.format(frase.find('A')+1)) # find retorna a posição em que foi encontrado a primeira vez
print('A última letra A apareceu na posição {}.'.for... | [
"wellingtoncw7@gmail.com"
] | wellingtoncw7@gmail.com |
dc23bbd95004a5f6fa4e5a6ef31d8b013040ba34 | 6874015cb6043d1803b61f8978627ddce64963b4 | /django/db/backends/postgresql/operations.py | 0edcf42febaa364b316750501cb20183caacea8e | [
"BSD-3-Clause",
"Python-2.0"
] | permissive | yephper/django | 25fbfb4147211d08ec87c41e08a695ac016454c6 | cdd1689fb354886362487107156978ae84e71453 | refs/heads/master | 2021-01-21T12:59:14.443153 | 2016-04-27T09:51:41 | 2016-04-27T09:51:41 | 56,134,291 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,101 | py | from __future__ import unicode_literals
from psycopg2.extras import Inet
from django.conf import settings
from django.db.backends.base.operations import BaseDatabaseOperations
class DatabaseOperations(BaseDatabaseOperations):
def unification_cast_sql(self, output_field):
internal_type = output... | [
"smileszzh@163.com"
] | smileszzh@163.com |
ab523c3751accac0cb2820f8f76621d3ca5474ab | 53fab060fa262e5d5026e0807d93c75fb81e67b9 | /backup/user_172/ch88_2020_05_06_12_07_01_120079.py | 65c8bdbe203ac21abf9a6631e62483803e27d184 | [] | no_license | gabriellaec/desoft-analise-exercicios | b77c6999424c5ce7e44086a12589a0ad43d6adca | 01940ab0897aa6005764fc220b900e4d6161d36b | refs/heads/main | 2023-01-31T17:19:42.050628 | 2020-12-16T05:21:31 | 2020-12-16T05:21:31 | 306,735,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 344 | py | class Retangulo:
def _init_(self,coord1, coord2):
coord1 = Ponto(x1, y1)
coord2 = Ponto(x2, y2)
def calcula_perimetro(self):
base = x2 - x1
altura = y2 - y1
p = 2*base + 2*altura
def calcula_area(self):
base = x2 - x1
altura = y2 - y1... | [
"you@example.com"
] | you@example.com |
bdd9f479c4b2fdd3901be2b45127d857c7560c00 | 60b1c5ab904a773e81d3f817279f9f2f72e15ac6 | /individual.py | be8c4cc2e02443bef755cf708e9a8b67834da694 | [
"MIT"
] | permissive | n0lley/polycube | 1dede161444c9f50220e8683742d95468290bdee | bc97b81b7455a8682fcd83f198fad437bb3dc4cb | refs/heads/master | 2021-08-07T01:09:05.584330 | 2020-07-28T23:18:28 | 2020-07-28T23:18:28 | 180,885,490 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | class INDIVIDUAL:
def __init__(self, *args, **kwargs):
raise NotImplementedError
def mutate(self, *args, **kwargs):
raise NotImplementedError
def evaluate(self, *args, **kwargs):
raise NotImplementedError | [
"david.matthews.1@uvm.edu"
] | david.matthews.1@uvm.edu |
b779dffe55d8fb13948ccc43312f57df7c9b48af | 987d44772eb85c61deefe2986598903c9e965008 | /_site/site/performance_dashboard/data/GA/GA_scraper.py | 46864696a95d0a3d5b6fe1092f9e2c4dbe8719fb | [] | no_license | casten4congress/casten4congress.github.io | 40e92ac86088c941f9180839e6e1b1b8cf3fb837 | 456caaf8503ed63a7903ccf9dc19d23c914a1ca1 | refs/heads/master | 2020-03-12T17:32:29.826443 | 2018-07-17T20:39:41 | 2018-07-17T20:39:41 | 130,738,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,429 | py | import json
from apiclient.discovery import build
from oauth2client.service_account import ServiceAccountCredentials
municipalities_list = ['Bartlett', 'Palatine', 'Lisle', 'Lakewood', 'Winfield', 'Carol Stream', 'Downers Grove', 'Westmont', 'Kildeer', 'Glen Ellyn', 'Burr Ridge', 'Long Grove', 'Barrington Hills', 'Wa... | [
"ejerzyk@gmail.com"
] | ejerzyk@gmail.com |
b08dd544b2f32a4764ba76171b76226e77090569 | 2628f51ef7ab5aae691dc72556ab312cc5b2a876 | /venv/lib/python3.8/site-packages/unyt/_version.py | c41cbda0701c4538c26555538502bd76e89985b4 | [
"BSD-3-Clause"
] | permissive | Jack-kelly-22/ps-4 | f933a8bb7bf5c865d846a30a5e0c8352c448a18d | fbbf327f1717bbd1902f437147640dfdf6aa118c | refs/heads/master | 2023-02-10T23:56:48.499720 | 2021-01-05T21:43:59 | 2021-01-05T21:43:59 | 327,124,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 498 | py |
# This file was generated by 'versioneer.py' (0.18) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.
import json
version_json = '''
{
"date": "2020-10-05T14:17:00-0600",
"dirty": false,
"error... | [
"Jacklaxjk@gmail.com"
] | Jacklaxjk@gmail.com |
0da9380cc1898690b9c39d5b4b7ff4392ed376b1 | 753a03d58940847b76203e39b8cb60d775bc8370 | /test/test_systems_generators_dockerignore.py | d95c632c27a1cd1a45a647dd3008e979abe95f4c | [
"MIT"
] | permissive | SanthoshBala18/skelebot | 912d84abef113f86eeb6b05f50ae9c2bd6115d45 | 13055dba1399b56a76a392699aa0aa259ca916a9 | refs/heads/master | 2020-08-03T15:24:11.105137 | 2019-09-27T15:12:25 | 2019-09-27T15:12:25 | 211,799,653 | 0 | 0 | MIT | 2019-09-30T07:19:27 | 2019-09-30T07:19:27 | null | UTF-8 | Python | false | false | 1,284 | py | from unittest import TestCase
from unittest import mock
import skelebot as sb
import os
class TestDockerignore(TestCase):
path = ""
config = None
# Get the path to the current working directory before we mock the function to do so
def setUp(self):
self.path = os.getcwd()
@mock.patch('os.... | [
"noreply@github.com"
] | SanthoshBala18.noreply@github.com |
b768abfeda8056001f6bd64fe0e1e40d66c85e89 | c7bb49430a2651955e545c3ae4907e870a7f2568 | /patterns/Observer/observer.py | 504ceae4e97e41bceceda740bb0b9bffbce54681 | [] | no_license | jvrcavalcanti/Algorithms | 133dd29d985c41560b212ed1b204d8220bd89bc9 | d83f8e61d959e9da970d6270b373eaea39701927 | refs/heads/master | 2020-12-31T22:34:25.696750 | 2020-06-16T18:25:58 | 2020-06-16T18:25:58 | 239,056,779 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 116 | py | from abc import ABC, abstractmethod
class Observer():
@abstractmethod
def handle(self, state):
pass | [
"jonnyvictor01@gmail.com"
] | jonnyvictor01@gmail.com |
f06e6cd20ffd0594a254af576292149542c248bf | 7d57247e1cefc7dfdd4c12a745366fae5e413a11 | /tests/conftest.py | 9731d89f424cc00aa2b48745e73b0a2e2a1149b7 | [
"BSD-2-Clause"
] | permissive | chintal/sphinxcontrib-collations | 6920314dddba4eea7b059028a9cb2c7dba9e3121 | dd2b7f449bf025695fb25a4c685fd3ab9b1c6c53 | refs/heads/master | 2020-06-21T09:12:09.492796 | 2019-07-17T13:14:03 | 2019-07-17T14:22:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | """
pytest config for sphinxcontrib/collations/tests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
:copyright: Copyright 2017 by Chintalagiri Shashank <shashank.chintalagiri@gmail.com>
:license: BSD, see LICENSE for details.
"""
pytest_plugins = 'sphinx.testing.fixtures'
| [
"shashank.chintalagiri@gmail.com"
] | shashank.chintalagiri@gmail.com |
89a610ca7cd1c5022c19cb112a2eab06b5bf334a | e9b06f7b8b210c550879c1e8c484b42719ccd633 | /custom_components/samsungtv_smart/api/samsungws.py | be8b20e1dd6ee7b4498cd6934fd4be4cf43f6dcf | [] | no_license | eplantequebec/Home-Assistant-Config | a5b69d3e2fa21068dc15b20a8988a24440140300 | ed05566ee476ec4490efa9b9d5bfdf55fca9a808 | refs/heads/master | 2021-08-17T00:11:15.805600 | 2021-07-18T23:40:23 | 2021-07-18T23:40:23 | 201,519,408 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,202 | py | """
SamsungTVWS - Samsung Smart TV WS API wrapper
Copyright (C) 2019 Xchwarze
Copyright (C) 2020 Ollo69
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of t... | [
"eric@plante.ca"
] | eric@plante.ca |
2b6516b8357caff161af954e665fc30dd6a1ad1e | 8bb6e8535c12c541866ad87fbd221750c7dac127 | /lib/kb_irep/kb_irepImpl.py | 0794129841b97942c4a676c5bd19fb284a692a7c | [
"MIT"
] | permissive | jungbluth/kb_irep | 1a0caa793133ec587a0cf8b8de4154c2bb5c82aa | 55c8f2bfb3ccba74d3418dec31acf6d9630b1ac5 | refs/heads/master | 2021-07-18T06:00:00.508236 | 2020-12-30T20:26:15 | 2020-12-30T20:26:15 | 227,967,740 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,768 | py | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import logging
import os
from installed_clients.KBaseReportClient import KBaseReport
#END_HEADER
class kb_irep:
'''
Module Name:
kb_irep
Module Description:
A KBase module: kb_irep
'''
######## WARNING FOR GEVENT USERS ####### noqa
# Since async... | [
"jungbluth.sean@gmail.com"
] | jungbluth.sean@gmail.com |
db5c965f2a0a9a8eca0e23b6beaa853f2fa82cff | 14d7dbf445a5fde2a6611c41cd55bc17978afec4 | /flask_app/application.py | bfdd92df2989f1ed4b3c63654868c835612a6b6b | [] | no_license | Happollyon/Class2 | a7ef72caefebf5e23209b06ecf84560d3b73394f | 8136fd0c70cf1cc4e82361d5a2ca54c282e5066c | refs/heads/master | 2022-09-17T07:14:09.356631 | 2020-05-28T14:23:37 | 2020-05-28T14:23:37 | 257,603,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | from flask import Flask, render_template,request, session
#from flask_session import Session
app=Flask(__name__)
@app.route('/')
def index():
return "Hello world"
@app.route('/fagner')
def fagner():
return"hello fagner"
@app.route("/<string:name>") # you can set a rout name
def hello(name):
return f"hel... | [
"36013973+Happollyon@users.noreply.github.com"
] | 36013973+Happollyon@users.noreply.github.com |
a564fadbeb8da66f7e99e8a1c5af6eec0923b3f2 | 5160cd2cf1ff8aa1d48935a783ba39e59f8d9ca7 | /src/py.py | bbfff52bf7a351f5fc2d85e6364080af152fd517 | [] | no_license | harry-uglow/BananaBeats | eb9df6f9458e1d12a406f0d96dbe9980f278af6e | 2e0eb211f5646be5675237c5c1c70d2feed8c57f | refs/heads/master | 2021-01-19T12:47:57.520881 | 2017-08-29T20:36:19 | 2017-08-29T20:36:19 | 100,810,285 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,279 | py | import subprocess
import threading
import sys
import time
import pygame
import os
import signal
import python.adafruit_libraries.Adafruit_MPR121.MPR121 as MPR121
print('strt')
p = subprocess.Popen(['./main'], stdin = subprocess.PIPE, close_fds=True, shell=True)
# Maybe add shell=True if it doesn't work
print('mon')
m... | [
"mauriceyap@hotmail.co.uk"
] | mauriceyap@hotmail.co.uk |
ce2ce7dc2c0f952870f86143e1a519cfa7a22b93 | 2825a2d056db418a3bf04d8d2ffc7133cd552d0f | /jsondiff/mountpoint.py | b2b2f60d5cdfca5d072f5297f75289d5d311cb15 | [] | no_license | trendsnet/jsondiff | eabba41a2c9111d2a2aefdb460564fcc7f1743b8 | dce2af96542cb986dd1bd927972faf8c505364d9 | refs/heads/master | 2020-05-30T04:57:37.713001 | 2017-05-08T07:41:22 | 2017-05-08T07:41:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | #coding:utf-8
__author__ = 'Feng Lu'
from .views.diff import diff
MOUNT_POINTS = ((diff, "/diff"),
(diff, "/"),
) | [
"liyanjie8@wanda.cn"
] | liyanjie8@wanda.cn |
973f38ed0345cb23c877e3d788c07856de7093ea | aa97a1a30d3f4cc65b80cfbb76ff88f55e96f67b | /A-Star-Search/search/searchAgents.py | bf0c1649b6b366a5fb4c716f1af59a0f9fa5d13a | [] | no_license | yorhaha/AI-Tasks | a0df0728ef013fd8053d3ef699b04baa38b931ce | 6197b9990f997bcf9f3f5ccb6773513670b35ea0 | refs/heads/main | 2023-09-03T16:50:48.365762 | 2021-10-30T02:04:13 | 2021-10-30T02:04:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,856 | py | """
This file contains all of the agents that can be selected to control Pacman. To
select an agent, use the '-p' option when running pacman.py. Arguments can be
passed to your agent using '-a'. For example, to load a SearchAgent that uses
depth first search (dfs), run the following command:
> python pacman.py -p S... | [
"blueice-thu@outlook.com"
] | blueice-thu@outlook.com |
e41f7a4ee3dff131d8b4f169176cf7ead839fc16 | 8af82d8482761aa99f6db95527a20c8854c00fdb | /PT_Approve.py | e951714fc9aff612626a16950f2f94ad0101e9a3 | [] | no_license | vandy1992/SCM-Automation | 62c02f665dcf42e79459f7aec575f07e35720c81 | 38c4266b943ece80df66ea32ba22f774a46df6c6 | refs/heads/master | 2022-11-20T13:15:56.572776 | 2020-07-10T09:05:47 | 2020-07-10T09:05:47 | 278,587,474 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,805 | py | import unittest
# import HtmlTestRunner
import time
import allure
from allure_commons.types import AttachmentType
from selenium import webdriver
import sys
sys.path.append("C://Users/Vandana Mallaiah/PycharmProjects/loginpage") #run through cmd and to generate report we need this or else no need
from pages... | [
"noreply@github.com"
] | vandy1992.noreply@github.com |
5d911f4022457d7e47942adf723047dc59cefa2f | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /attentive-reader-2/sgu.py | 8ddc21a3a0732b54672764fcd0003dcc2dec4e7a | [] | no_license | musyoku/NLP | 9a63dc882b07b017f7cfc72d863c4d9e5cbeff5e | 9b040bb960b65fb2a1c330adafa6c52e3284a0c1 | refs/heads/master | 2021-01-21T04:53:57.029200 | 2016-07-10T17:08:03 | 2016-07-10T17:08:03 | 55,848,677 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,107 | py | import numpy
import chainer
from chainer import cuda
from chainer.functions.activation import sigmoid
from chainer.functions.activation import softplus
from chainer.functions.activation import tanh
from chainer.functions.math import clip
from chainer import link
from chainer.links.connection import linear
from chainer... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
b215c554ca3a503adec1ad978c11a8f6d483768c | 2d71efd7d8eecd057ba1705ae61bef03358b7605 | /heating/common.py | 4fa33355fe10a9902743eddfea3219bcf3a5bd75 | [] | no_license | graememorgan/smart-thermostat | 9a35765b32b324e907eab76ee36e645ac77d2711 | 7b2294de8d0752f9518f50541a1f2b42610bcb26 | refs/heads/master | 2021-01-10T10:52:36.556316 | 2016-02-04T13:30:02 | 2016-02-04T13:30:02 | 50,459,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | import datetime
def epoch(date):
return (date - datetime.datetime(1970, 1, 1)).total_seconds()
| [
"mail@graeme.io"
] | mail@graeme.io |
90ab9fd8dbaf028130901ea8dc146e64dc36e060 | 8270ee8435d2c95dcc9f0e8f9f2119a45cafdf34 | /authentication/authentication/urls.py | 62d83125245dc2239a6a24bc1a945d75afe0e38f | [] | no_license | venkatapriya2020/Django_Hands_On | d8fa20124181f8ed59aaea91f2c3ebfec45495b6 | 28bd9d6fd95730c8f85c40c0d284d2d7cb3fe462 | refs/heads/master | 2023-02-04T05:19:42.708484 | 2020-12-20T22:32:28 | 2020-12-20T22:32:28 | 323,177,354 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 802 | py | """authentication URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"venkatapriya@live.com"
] | venkatapriya@live.com |
bdf356f1b24561547e82750dcf298ac1a820f9f4 | f53ebcc05ccc8892c32fc2b5c121ba0d78451adb | /classify_images.py | a0f79e4a9fbf09917707b7f53e0b97d22a0ea8eb | [] | no_license | XDUNZC/TBtianchi_submit | 4a45e1096fa389ea9123647e7caaa7cb52a9c322 | e6b1497c0063379f34f9e8cab4926fb160944fdd | refs/heads/master | 2023-08-15T19:45:07.112471 | 2020-04-12T06:56:57 | 2020-04-12T06:56:57 | 249,676,498 | 0 | 0 | null | 2023-07-23T09:42:19 | 2020-03-24T10:20:56 | Jupyter Notebook | UTF-8 | Python | false | false | 4,010 | py | from read_dataset import Reader
from save import Saver
from model.Resnet50.run import Worker as MatchWorker
from model.mmdetection_coco import run as DetectionWorker
import utils
import os
import mmcv
import random
class Classifier():
def __init__(self,classify_model,reader):
self.classify_model = classify... | [
"903244773@qq.com"
] | 903244773@qq.com |
a1e59a682c3d21feebcf29921ab2ec3829992fd1 | de3a062138d3fbdfcf76e09915be553aea450e61 | /Tests.py | 2b1454136905d54427a60069f63bcf68cbcf68c4 | [] | no_license | AlyonaMon/autotests | be9d0793ad36f917d7315325c3071042b592207f | 4457f7f3f5ef65b1b67b08221e43693bf7c742f3 | refs/heads/master | 2021-01-11T18:54:34.717373 | 2016-11-14T21:35:02 | 2016-11-14T21:35:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,032 | py | # coding=utf-8
import json
import logging
logger = logging.getLogger(__name__)
logging.basicConfig(datefmt='%m/%d/%Y %I:%M:%S %p', filename="msg.log",
format='%(asctime)s %(name)-20s %(levelname)-8s %(message)s', filemode='w')
from xml.etree import ElementTree
import xml.etree.ElementTree as... | [
"evmon@ex.ua"
] | evmon@ex.ua |
392d504d2b4be2f95ee073ec8a8beccce1d6bd49 | d1a111119ec7aed797d1487b9a5740217d43effc | /students/templatetags/tags.py | 28e1e2ea85fd52a4ce90660cb5ee127a9c1a29cf | [] | no_license | shurique/student_task | 3f693f20691971f9e7fee03e8cc4cffd130aa53b | 2cf873adbc8657ac31e6efc4c12805c0387a67d7 | refs/heads/master | 2021-01-10T22:20:51.941404 | 2012-02-03T08:31:30 | 2012-02-03T08:31:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 851 | py | #-*-coding: utf-8 -*-
from django import template
from django.core import urlresolvers
from django.contrib.contenttypes.models import ContentType
register = template.Library()
class EditListNode(template.Node):
def __init__(self, value):
self.var = template.Variable(value)
def render(self, context):
... | [
"godetskiy@ya.ru"
] | godetskiy@ya.ru |
b393a423256aa0f889b3a2d9a5f23682e1c3053d | 31136f3b2aa9ff7166f771a7f4e1da8dd1764b2e | /website/events/migrations/0005_auto_20190715_1440.py | ec4ca8cd745c5758545e2f31f6086ffdfe7a64c0 | [
"MIT"
] | permissive | PyAr/asoc_members | 202bb05f6c58644f5edb19c80a7276b493d3c76b | ed3944acadd7d08e53acd6edb5961a4248ea4782 | refs/heads/master | 2023-04-15T07:41:45.725797 | 2023-04-11T15:13:24 | 2023-04-11T15:13:24 | 131,543,379 | 10 | 26 | MIT | 2023-08-22T22:41:12 | 2018-04-30T01:10:30 | Python | UTF-8 | Python | false | false | 7,405 | py | # Generated by Django 2.0.4 on 2019-07-15 14:40
from django.conf import settings
import django.core.validators
from django.db import migrations, models
import django.db.models.deletion
import django_extensions.db.fields
import events.helpers.models
import events.models
class Migration(migrations.Migration):
dep... | [
"andres.ramirez.miori@gmail.com"
] | andres.ramirez.miori@gmail.com |
1ca54c25efd9250bdc727477130bd4e28d32ef07 | c6f063e2f6ab9aed7743255b8c4b131a3638dd30 | /env1/lib/python3.9/site-packages/webpush/migrations/0003_auto_20211108_1056.py | 22febc2a8208476cc38e6b2d934e7872117439d3 | [] | no_license | Muthoniyahya/agricoope | 31d94ee02e0e5cc650afc251104c6fe4a91cb1b9 | c1ef91866b4646a19825a6d833f78868663d61d1 | refs/heads/master | 2023-09-02T21:33:41.991628 | 2021-11-18T23:22:27 | 2021-11-18T23:22:27 | 429,600,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | # Generated by Django 3.2.8 on 2021-11-08 10:56
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('webpush', '0002_auto_20190603_0005'),
]
operations = [
migrations.AlterField(
model_name='group',
name='id',
... | [
"Muthoniyahya@gmail.com"
] | Muthoniyahya@gmail.com |
6346038aeef107d5a4c7721f2a780ff4708abbcc | f5b2ee7b630385a8173326aede9b3c43794c4b3e | /server/world/item.py | 5720951d7a49726ebb51efe2d3f6063c6f5e02af | [] | no_license | dslice25/tinymmo-server | 3a324c38475b64220cf6a6bde6ee1277a9bf259b | 2d01212a8ce6ba9ecc87e2fcf2a3c4979255e926 | refs/heads/master | 2021-01-23T10:07:33.355822 | 2017-12-08T21:02:06 | 2017-12-08T21:02:06 | 102,606,582 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,571 | py | import ConfigParser
import uuid
class Item:
index = 0
config = ConfigParser.RawConfigParser()
config.read('server_data/items.ini')
def getid(self):
Item.index += 1
return Item.index
def __init__(self, name, player, container, equipped, world):
#self.name = "%s-%s" % (name, self.geti... | [
"dablum@mit.edu"
] | dablum@mit.edu |
09c006664cf108d6ae9fc0f41fcb8e22fcea4877 | a9e60d0e5b3b5062a81da96be2d9c748a96ffca7 | /configurations/i21-config/scripts/functions/sample_vessel_vacuum_control.py | 055be6350f0c567e280cfe42194b79f557165ef8 | [] | no_license | openGDA/gda-diamond | 3736718596f47607335ada470d06148d7b57526e | bbb64dcfd581c30eddb210c647db5b5864b59166 | refs/heads/master | 2023-08-16T08:01:11.075927 | 2023-08-15T16:01:52 | 2023-08-15T16:01:52 | 121,757,699 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,543 | py | '''
define function to control the sample vessel vacuum valves for sample changes
Created on 18 Jul 2023
@author: fy65
'''
import installation
from gda.device.scannable import ScannableMotionBase
from gda.epics import CAClient
# control PV = BL21I-EA-SMPL-01:SEQ:CTRL
# state PV = BL21I-EA-SMPL-01:SEQ:CTRL:STATE_RBV
... | [
"fajin.yuan@diamond.ac.uk"
] | fajin.yuan@diamond.ac.uk |
2908f0e3db2a300277114b39d46d25d3ea5e1012 | 2d3976964d8923a1e91e31af702bd68fbf37d474 | /runTask/server.py | 1bd36c0754e0d042ad090870e35b568521b7c88d | [] | no_license | barry800414/master_thesis | 2f6900fb2964891849dadef9283ed6e7f11cc696 | 01a0cac30ab63fcf818f1f43959634094b624af5 | refs/heads/master | 2020-05-29T08:53:32.810702 | 2016-06-04T02:03:52 | 2016-06-04T02:03:52 | 38,382,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 609 | py | #!/usr/bin/env python3
from multiprocessing.managers import BaseManager
import queue
import sys
if __name__ == '__main__':
port = 3333
if len(sys.argv) == 2:
port = int(sys.argv[1])
q = queue.Queue()
# a QueueManager hold a queue q, which automatically handle race condition
class QueueMana... | [
"barry800414@gmail.com"
] | barry800414@gmail.com |
25511219866cbb40fbd6b80bfdc1df6200549f29 | db46e847a9e382bcc7e062cfbac52fbac0cea490 | /Bolum1/otsu1.py | ef7e7265b90e4fec9241caa5466f6d9d53430f01 | [] | no_license | pnarbedir/ImageProcessing | 137ecb3a027afbb41573466415e570055ac00ad5 | 94f4778e773c1ffdda398e6da3824267b7c68651 | refs/heads/master | 2023-05-02T13:10:15.254882 | 2021-05-16T00:28:42 | 2021-05-16T00:28:42 | 363,901,232 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 440 | py | import cv2
import numpy as np
from matplotlib import pyplot as plt
img = cv2.imread('original.jfif',0)
ret,th1 = cv2.threshold(img,127,255,cv2.THRESH_BINARY)
ret,th2 = cv2.threshold(img,0,255,cv2.THRESH_BINARY+cv2.THRESH_OTSU)
blur = cv2.GaussianBlur(img,(5,5),0)
ret,th3 = cv2.threshold(blur,0,255,cv2.THRESH_BINARY+c... | [
"pnarbedir98@gmail.com"
] | pnarbedir98@gmail.com |
92ec94b88e74f9385c3753e035a3676a25f2ecc7 | 6e5c2ba6cd380af56d7714cd6b3ec31b0e0d947e | /src/error_single.py | 082454e4f3df909b97bfed7a7eed20a83a2d8748 | [] | no_license | luedu/Bokeh-Effect | 74a0d2b2800a458da9983d377418542bf40d409c | f985dd366918f35de92ec118ca0b4783812ad4d6 | refs/heads/master | 2022-04-17T12:32:54.975888 | 2020-04-19T14:10:54 | 2020-04-19T14:10:54 | 257,001,932 | 0 | 0 | null | 2020-04-19T13:08:40 | 2020-04-19T13:08:40 | null | UTF-8 | Python | false | false | 1,794 | py | import torch
import cv2
import sys
from utils import dice_coeff,dice_loss,normalization,denormalize,ab_rel_diff,sq_rel_diff,rms_linear
import numpy as np
def set_requires_grad(nets, requires_grad=False):
if not isinstance(nets, list):
nets = [nets]
for net in nets:
if net is not None:
... | [
"yashkhem1@gmail.com"
] | yashkhem1@gmail.com |
fe57a510beaf39e45c60b51b452a5c31026ab28d | 3ecce3646d66033d214db3749be63e78d4f663e9 | /Assignment 4/load_utils.py | 9b4f3fc6a5fb3ab71f6dc4b5ce5cbba2fb817a22 | [
"Apache-2.0"
] | permissive | pradyumnakr/EIP-3.0 | f36aaed042d65beef163b08dbb0de05139e3fee7 | 67bc5168b169406d7567f3d1d3b9b35fc7dd61af | refs/heads/master | 2022-01-27T15:23:00.013031 | 2019-07-28T17:25:35 | 2019-07-28T17:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,699 | py | def load_tiny_imagenet(path, dtype=np.float32, subtract_mean=True):
# First load wnids
with open(os.path.join(path, 'wnids.txt'), 'r') as f:
wnids = [x.strip() for x in f]
# Map wnids to integer labels
wnid_to_label = {wnid: i for i, wnid in enumerate(wnids)}
# Use words.txt to get names for each class... | [
"vishal114186@gmail.com"
] | vishal114186@gmail.com |
9ba996ef80069b6979c8495ddbf3ffbab87f533c | d0af71157005190c6421b640b0e6cee2f237aace | /examples/bamboo/bamboo_plan_directory_info.py | 9706338f0eb798ba9532324312cadf808092d542 | [
"Apache-2.0"
] | permissive | atlassian-api/atlassian-python-api | d8adeb43ea4c92c10a03f1b53b53b87820f1841d | bb1c0f2d4187ba8efa1a838cd0041b54c944fee8 | refs/heads/master | 2023-08-29T06:57:22.136461 | 2023-08-27T18:53:00 | 2023-08-27T18:53:00 | 19,530,263 | 1,130 | 679 | Apache-2.0 | 2023-09-13T19:27:44 | 2014-05-07T10:26:26 | Python | UTF-8 | Python | false | false | 433 | py | # coding=utf-8
import os
from atlassian import Bamboo
BAMBOO_URL = os.environ.get("BAMBOO_URL", "http://localhost:8085")
ATLASSIAN_USER = os.environ.get("ATLASSIAN_USER", "admin")
ATLASSIAN_PASSWORD = os.environ.get("ATLASSIAN_PASSWORD", "admin")
bamboo = Bamboo(url=BAMBOO_URL, username=ATLASSIAN_USER, password=ATLA... | [
"noreply@github.com"
] | atlassian-api.noreply@github.com |
9138de1148cd345ac2d731ad25502eed850fa264 | 2d83d627c446fa84e301f27196f893902066a8a3 | /smartcity/dbview/migrations/0008_auto_20171030_1950.py | 8a2f889d476a5e7077de8a008cc9e650156ad104 | [] | no_license | PoeticIron/ifb299-57lines | 1e71a79c97a05c0ff7e6c1651469dbd0904385a7 | 837d49437c674daafec805c8f4b1a6c7f595eedf | refs/heads/master | 2021-01-01T18:36:47.580779 | 2017-11-03T05:42:05 | 2017-11-03T05:42:05 | 98,384,561 | 0 | 2 | null | 2017-09-19T07:34:37 | 2017-07-26T05:51:16 | Python | UTF-8 | Python | false | false | 639 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.3 on 2017-10-30 09:50
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dbview', '0007_auto_20171030_1947'),
]
operations = [
migrations.AlterField... | [
"nmestone@gmail.com"
] | nmestone@gmail.com |
5991aa7286b2e0849710359d66a0645c362da72d | 3b3be533e7fd90a84c54693975dd1809a8814e92 | /terrains.py | 4dffc6e4808ac39e3c204805f9124af000578d2e | [] | no_license | Fenrir127/advance_wars | ed9e91013fb7972d39557551b0a7964a255115a1 | 736eecde986111fa15f452f292201d2abb483a4e | refs/heads/main | 2023-03-27T13:21:32.349864 | 2021-03-26T03:14:57 | 2021-03-26T03:14:57 | 304,418,098 | 0 | 0 | null | 2021-02-20T00:02:20 | 2020-10-15T18:41:44 | Python | UTF-8 | Python | false | false | 9,912 | py | from os import path
from sprites import *
from setting import *
"""
This contains all the information for the different terrain in the game
Nothing should change in there unless there's a way to change terrain in the game which I don't think there is (except building hp)
"""
# This is the master class Terr... | [
"noreply@github.com"
] | Fenrir127.noreply@github.com |
f28ba09e107306b65b13e2ac8683488c3fbf89a0 | 13152e95d8f0fa7c9b9bcb0be368b869b8c34b0f | /apps/diary/migrations/0003_auto_20180929_1857.py | 869839b1cbe31778bbda7881611ab44efa2b9530 | [] | no_license | Emiyaaaaa/personalweb | 75872239a963ce59665735a2c9bfff46dc2a671a | a4d47dc9a3a5fdf1c3d24d587a177e19b878b661 | refs/heads/master | 2021-06-03T09:22:31.201318 | 2020-09-02T07:16:49 | 2020-09-02T07:16:49 | 148,086,883 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.1 on 2018-09-29 18:57
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('diary', '0002_diary_diarycomment'),
]
operations = [
migrations.AlterModelOptions(
name='diarycomment',
options={'verbose_na... | [
"2914034404@qq.com"
] | 2914034404@qq.com |
f50f22f4257ef2bd4b135c4c4b543869c019f8b8 | 4eeb40dcc265caf4a2b84bc90a28d481930d6a8a | /cssproject/cssproject/wsgi.py | e87cec6d202682e65310c1cd76e7ac0245d43209 | [] | no_license | mprasu/Sample-Projects | eb7fc46e81b09d7c97c238047e3c93b6fff3fb8d | 7363baf630900ab2babb4af2afe77911d8a548b2 | refs/heads/master | 2020-04-16T06:43:16.345750 | 2019-01-12T07:07:34 | 2019-01-12T07:07:34 | 165,358,055 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
WSGI config for cssproject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SE... | [
"muppuriprasanna5@gmail.com"
] | muppuriprasanna5@gmail.com |
45278734804df48db80172a886fbefcd6bf1b64f | dd1462c6dd2aacf13113834854be92b119315722 | /commands.py | ff1f0b7e79f927c5cdb5fd2a885a25572c1fbd0c | [] | no_license | voiceassistant-SEDA/Voice-Asistant | 8d9298f2b5e41c0f14c9d8f31de58df1deca0a93 | 7995875fccde96f4745f4c87fc370d81ac7f61ef | refs/heads/main | 2023-05-05T11:45:07.850369 | 2021-05-21T15:45:33 | 2021-05-21T15:45:33 | 369,581,536 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import os
import json
import function
import backend
import random
from fuzzywuzzy import process
import Levenshtein as lev
class Commands :
def __init__ (self,function,module,neuralNetwork) :
self.function = function
self.module = module
self.neuralNetwork = neuralNetwork
with open... | [
"73945726+sirmakalender@users.noreply.github.com"
] | 73945726+sirmakalender@users.noreply.github.com |
d8ded25ef10e93c72605b89d85452c69e80636d6 | 9fdc3443090052d31089f8181cfce4d62ca97616 | /exception_handling_advanced_example61.py | aaca7a2d555cedf68e1fb60cee48b451d3e7b846 | [] | no_license | ahmedyoko/python-course-Elzero | 9d82b08e81d597292ee85c0d517d8116d0be0905 | bc11dca9b7ccbccb7c66d6a5b34ded0e6dedc9f8 | refs/heads/master | 2023-07-25T19:44:22.073679 | 2021-09-07T19:35:30 | 2021-09-07T19:35:30 | 399,866,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,097 | py | #...........................................
# exception_handling_advanced_examples
# try | except | else | finally
#....................................................
the_file = None
the_tries = 5
while the_tries > 0 :
print(f'{the_tries} tries left')
the_tries -= 1
else :
print('All tri... | [
"aos438479@gmail.com"
] | aos438479@gmail.com |
11e7feb68dc8e7c7d92ddb397418250a2ca1228e | eb3cd8723752e34e46728d02d5f95f3e8e7a864d | /Django/myvenv/bin/chardetect-3.8 | d426c822917bb3d16d6de63f05b1eeafdc98791e | [] | no_license | AbhisarSaraswat/Projects | bdf5b455e6f2480401d646c1115be1a79de6b83d | 59fe23b803a3d7617b26ecec4259c418704d4cc7 | refs/heads/master | 2021-11-17T09:51:32.410418 | 2021-05-21T10:42:31 | 2021-05-21T10:42:31 | 168,728,445 | 0 | 0 | null | 2021-09-22T19:50:09 | 2019-02-01T16:40:42 | Python | UTF-8 | Python | false | false | 245 | 8 | #!/home/lucifer/Projects/myvenv/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from chardet.cli.chardetect import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"abhisarsaraswat@gmail.com"
] | abhisarsaraswat@gmail.com |
de075cc155d45012e62fee4fd10dbfd477ea0b69 | 5e0ef0a177306aa205493259cc274be7bb72b9eb | /login_and_registration/apps/log_regs_app/urls.py | 0167a0fd2c5be22b28dbfc5dee64462961a66956 | [] | no_license | reinib/PythonDjangoCD | 07654f45e6e339cb3091d66d7bfccb04a46111d1 | 5fef1906a90c997c13a17ef9aec0df30733d5ea8 | refs/heads/master | 2020-04-11T10:31:42.034181 | 2018-12-14T01:55:06 | 2018-12-14T01:55:06 | 161,717,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 259 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^validate_register$', views.validate_register),
url(r'^users/(?P<id>\d+)$', views.success),
url(r'^validate_login$', views.validate_login),
]
| [
"brent.reininger89@gmail.com"
] | brent.reininger89@gmail.com |
fd5b3d07a2a0a980e3a2da89214375a9c7a9d6ec | 1cfb61bb6cee6c8978ad50956d5af36edeb7ee6f | /menu/migrations/0007_auto_20161007_1750.py | 21534b135687d6b66964406bad09b712e06dffb0 | [] | no_license | greenmails2001/analytics | 221a2264e8a9db63df9ab57fa6393b1e0df62052 | cfde53d5402f302e904b96991d67a0c9a210a6c9 | refs/heads/master | 2021-01-11T05:43:43.666368 | 2016-10-31T14:45:11 | 2016-10-31T14:45:11 | 71,340,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,978 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0006_auto_20161005_1327'),
]
operations = [
migrations.RenameField(
model_name='file',
old_n... | [
"greenmails2001@gmail.com"
] | greenmails2001@gmail.com |
c2ae54754ea651fb4d0e578fe907000e3bf0da28 | f1efbd5d8039e95809ad8d313bd1a9c96d51cbf9 | /sql_queries.py | 0bbbb3f48c5d256f37eb83270cec170d4660c9b2 | [] | no_license | WittmannF/data-engineering-projects-postgres | 48a7c889133c6d17af825ef4ce1d59e5b6b41e50 | 5b3200c8977d6162d56f40247e8390d028c0ad8c | refs/heads/main | 2023-02-15T18:11:39.796621 | 2021-01-05T21:44:14 | 2021-01-05T21:44:14 | 326,008,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,191 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS songplays;"
user_table_drop = "DROP TABLE IF EXISTS users;"
song_table_drop = "DROP TABLE IF EXISTS songs;"
artist_table_drop = "DROP TABLE IF EXISTS artists;"
time_table_drop = "DROP TABLE IF EXISTS time;"
# CREATE TABLES
songplay_table_create = ("""
CREATE T... | [
"fernando.wittmann@gmail.com"
] | fernando.wittmann@gmail.com |
58cbe82bcc8bd6afeed52101fca9d77621105eef | 4be56098894a95da5964622fc4102b69e4530ab6 | /题库/1399.页面推荐.py | 5a140da6d4ab9fa5c70e7d7e978fdf740737d005 | [] | no_license | ACENDER/LeetCode | 7c7c7ecc8d0cc52215272f47ec34638637fae7ac | 3383b09ab1246651b1d7b56ab426a456f56a4ece | refs/heads/master | 2023-03-13T19:19:07.084141 | 2021-03-15T09:29:21 | 2021-03-15T09:29:21 | 299,332,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | # !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @File : 1399.页面推荐.py
| [
"1641429327@qq.com"
] | 1641429327@qq.com |
4c87054e4f6b517be8dae9e5d95da62f3c6a37aa | 47884bb53ffb293ccfff5e4c808915e00f6cc0d3 | /archive/timeDelta.py | d80a440ffeeba2400e92fbacc59bb5a9a95990b1 | [] | no_license | andyschultz/Scripts | f0b75b537b825fa7ff89efec63299e2a697790f7 | 7d3b57e292ce8f48ac40553a51c052bbc1c975f8 | refs/heads/master | 2021-01-13T01:29:40.853048 | 2015-04-30T17:17:08 | 2015-04-30T17:17:08 | 26,029,990 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 583 | py | #!/usr/local/bin/python3
import pandas as pd, numpy as np,sys
file = sys.argv[1]
def buildDelta(file):
df = pd.read_csv(file,sep="\t",index_col=False,skiprows=1)
df.iloc[:,0]= pd.to_datetime(df.iloc[:,0])
df.insert(1,"Cumulative Time","NaN")
df["Cumulative Time"] = (df.iloc[:,0]-df.i... | [
"andy.schultz1@gmail.com"
] | andy.schultz1@gmail.com |
2f9db9f890c9233e5af1669088468a7683d1af35 | 0fb3b73f8e6bb9e931afe4dcfd5cdf4ba888d664 | /awssam/fullfeblog/blog/migrations/0002_auto_20201208_1414.py | b61387acb7dcbe792fb0d7d8887e97d528f46789 | [] | no_license | mrpal39/ev_code | 6c56b1a4412503604260b3346a04ef53a2ba8bf2 | ffa0cf482fa8604b2121957b7b1d68ba63b89522 | refs/heads/master | 2023-03-24T03:43:56.778039 | 2021-03-08T17:48:39 | 2021-03-08T17:48:39 | 345,743,264 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,023 | py | # Generated by Django 3.1.4 on 2020-12-08 14:14
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import django.utils.timezone
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
... | [
"rp9545416@gmail.com"
] | rp9545416@gmail.com |
840f45903a811282a9e7105496d723fef512547a | 743778017a0e775832e45fc05d9a056604f608ad | /km71/Guro_Dmytro/4/Task7.py | e6d342044e39db64385b0d1b3e66988e2430196c | [] | no_license | Kalinia/amis_python71 | fed5ff37a5909c090a53962daa689141498755b1 | 0123af48b1eaa6d752409b1b643f548c6b0e4ab8 | refs/heads/master | 2021-05-07T17:24:21.974699 | 2017-12-21T22:13:00 | 2017-12-21T22:13:00 | 108,726,150 | 0 | 0 | null | 2017-10-29T10:54:14 | 2017-10-29T10:54:14 | null | UTF-8 | Python | false | false | 590 | py | while True:
try:
x1 = int(input())
break
except:
print("Please enter number")
while True:
try:
y1=int(input())
break
except:
print("Please enter number")
while True:
try:
x2=int(input())
break
except:
print(... | [
"noreply@github.com"
] | Kalinia.noreply@github.com |
e886796a357ded12e7a87bd69fcd9177507e8a8b | 348d736636ddc3490df1b47fafbe26d10124148e | /camera_pi.py | d502e24cc78b9b0ae47ee12cd1dd097b5bc64041 | [] | no_license | HensonZl/hackrfpibot | 2636fbf19627913ddc754f5acc89d866612cb672 | 4eb730f5add931d0d26f2ec1177994dee5417012 | refs/heads/master | 2020-05-18T13:11:47.446115 | 2019-05-01T21:57:28 | 2019-05-01T21:57:28 | 184,431,429 | 16 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,986 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# camera_pi.py
#
# NOT MY SCRIPT this was used from https://www.hackster.io/ruchir1674/video-streaming-on-flask-server-using-rpi-ef3d75
# Look at the above link to get the documentation for the following script.
import time
import io
import threading
import... | [
"noreply@github.com"
] | HensonZl.noreply@github.com |
64cba2c2b0ca9bb48817b6596678847d35379587 | 2428f771974183f86dd76a5ab9621097bba85d4e | /solve.py | 28c74e44d34b35b2770e55b9d057a465143ad34e | [] | no_license | Oripy/nonogram-solver | 3bdcffd282e49b117a10e475b65734e6ae23fa09 | d81b79caac04f8666bc39cba2a8fe95e592ab9e3 | refs/heads/master | 2021-01-15T16:00:47.186485 | 2011-07-18T08:40:48 | 2011-07-18T08:40:48 | 3,313,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,922 | py | #!/usr/bin/env python
import sys
import string
import copy
import types
from data_diff import data_diff
def get_permutations(counts, length):
"""
>>> get_permutations([], 1)
[[False]]
>>> get_permutations([1], 1)
[[True]]
>>> get_permutations([2], 3)
[[True, True, False], [False, ... | [
"repalviglator@yahoo.com"
] | repalviglator@yahoo.com |
0da90c73bc71313602b59d4b1cce999930cd4017 | 637669abf38aa06d786458bcb552d0d5dc188302 | /claripy/ast/__init__.py | 2da826a5b43d467502f3d34eadb856d283ede3f4 | [
"BSD-2-Clause"
] | permissive | angr/claripy | c5603b52f829a9b29630ed6665ab7ec294cb8157 | b35449fecd129dc46a0cabdd6499354e89b38a68 | refs/heads/master | 2023-09-05T18:48:19.736126 | 2023-09-05T17:17:45 | 2023-09-05T17:17:45 | 40,328,505 | 260 | 115 | BSD-2-Clause | 2023-09-11T22:09:06 | 2015-08-06T21:50:19 | Python | UTF-8 | Python | false | false | 1,376 | py | # pylint:disable=redefined-outer-name
from typing import TYPE_CHECKING
# Mypy is severely confused by this delayed import trickery, but works if we just pretend that the import
# happens here already
if TYPE_CHECKING:
from .bits import Bits
from .bv import BV
from .vs import VS
from .fp import FP
f... | [
"noreply@github.com"
] | angr.noreply@github.com |
ddbeff68f2104fbd657620867d9acc172c5adecb | 3af6960c805e9903eb27c09d8bc7ebc77f5928fe | /problems/0190_Reverse_Bits/__init__.py | 13d13496fce71652ff8239e68ab130a72e9cc66e | [] | no_license | romain-li/leetcode | b3c8d9d4473eebd039af16ad2d4d99abc2768bdd | 5e82b69bd041c2c168d75cb9179a8cbd7bf0173e | refs/heads/master | 2020-06-04T20:05:03.592558 | 2015-06-08T18:05:03 | 2015-06-08T18:05:03 | 27,431,664 | 2 | 1 | null | 2015-06-08T18:05:04 | 2014-12-02T12:31:58 | Python | UTF-8 | Python | false | false | 656 | py | ID = '190'
TITLE = 'Reverse Bits'
DIFFICULTY = 'Easy'
URL = 'https://oj.leetcode.com/problems/reverse-bits/'
BOOK = False
PROBLEM = r"""Reverse bits of a given 32 bits unsigned integer.
For example, given input 43261596 (represented in binary as
**00000010100101000001111010011100**), return 964176192 (represented in b... | [
"romain_li@163.com"
] | romain_li@163.com |
d3b5e095fa1dab8e9c98895fa11a48312d856b56 | 874f46f4510b321ec3110ac8d5d5e572175c5544 | /Generator_Tests/TestFrec/scripts/generator.py | 94df7463f40e16990b3f6614572ff87accc2eb5a | [] | no_license | JordiEspinozaMendoza/Simulacion | bb271aee0908693ff0e36470dae98216096d9066 | fac1cdf5010a34a853a8b13d93209bcbde616e64 | refs/heads/main | 2023-05-31T14:06:21.329271 | 2021-06-14T02:52:06 | 2021-06-14T02:52:06 | 367,148,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,014 | py | import sys
import os
import pandas as pd
sys.setrecursionlimit(5000)
# X = Semilla
# a = Multiplicador
# c = Constante aditiva
# m = Modulo
def Operacion(X, a, c, m):
Resi = ((a*X)+c) % m
return Resi
def createDataFrame(data):
df = pd.DataFrame(data, columns=["n","Xn","Xn+1","Rn"])
cols = list(d... | [
"jordi8101@gmail.com"
] | jordi8101@gmail.com |
7e595d3e782adea8924f7a1dd1432bd467b968e7 | 6ede75099fc38a682e030d70051389ea182d6cc2 | /ともき本番/incomeexpensesapi/menu/migrations/0028_foodstuff_myrecipe_usereat.py | b1c52866aa49cd76e4c04d5b33843c23ec472259 | [] | no_license | hangtran93tk/team06 | 0d86e59be866d7f6bda1b6c81f725ca1f80eba0f | 89000be20c18d3b9610c240b25c7c1944fc68d6d | refs/heads/master | 2023-03-12T11:58:03.802711 | 2021-02-26T03:51:36 | 2021-02-26T03:51:36 | 279,473,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | # Generated by Django 3.0.5 on 2020-12-20 06:56
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('menu', '0027_menuinfo'),... | [
"18jz0129@jec.ac.jp"
] | 18jz0129@jec.ac.jp |
593c5efa70cba81b2a1c8e74a4bd3a4e8bf6c73c | 1bf512659c750eba27896ad5d1a5ad61fe08c0e4 | /musicrest/apps/api/models.py | 79348bd25ffd3e745eb1e479628b244e86f1bfc0 | [] | no_license | jeremyhilado/python-django-mini-project | fc80976e8576aa1eab9269521131107936bf8502 | 492e301e80266f1a44ba8ba3e5649af4992c836e | refs/heads/master | 2023-08-17T19:43:03.052514 | 2020-06-06T18:13:33 | 2020-06-06T18:13:33 | 261,493,243 | 0 | 0 | null | 2021-09-22T18:58:26 | 2020-05-05T14:22:20 | Python | UTF-8 | Python | false | false | 535 | py | from django.db import models
from apps.authentication.models import User
# Create your models here.
class Artist(models.Model):
name = models.CharField(max_length=255)
genre = models.CharField(max_length=255)
biography = models.TextField(blank=True)
created_at = models.DateTimeField(auto_now_add=True)... | [
"jhilado89@gmail.com"
] | jhilado89@gmail.com |
af9bf83cfaf55cd781211bfc9927638d904f30f8 | 975b2d421d3661e6770b601929d5f11d981d8985 | /msgraph/generated/sites/item/term_stores/item/groups/item/sets/item/children/item/children/item/relations/item/set/set_request_builder.py | 8ad5043efe01acfd37aa331d26266f34c018c4b3 | [
"MIT"
] | permissive | microsoftgraph/msgraph-sdk-python | a7c551b85daadeebf76ec4ae12668664ea639b42 | 27de7ccbe688d7614b2f6bde0fdbcda4bc5cc949 | refs/heads/main | 2023-09-03T21:45:27.989672 | 2023-08-31T06:22:18 | 2023-08-31T06:22:18 | 534,665,999 | 135 | 18 | MIT | 2023-09-14T11:04:11 | 2022-09-09T14:00:17 | Python | UTF-8 | Python | false | false | 4,960 | py | from __future__ import annotations
from dataclasses import dataclass, field
from kiota_abstractions.base_request_builder import BaseRequestBuilder
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAda... | [
"GraphTooling@service.microsoft.com"
] | GraphTooling@service.microsoft.com |
cb4ceece3e859d4af57c7b4bc35b7c12546e1c09 | b329784883875fea0d655f4371549c400ab876a7 | /news.py | 5cc3035a0d6bf571d225ffb8a12fb412c8575b22 | [] | no_license | veekaybee/markovhn | 9ce8b4159c483bbc0629bf9cc51d0eba591bd553 | 99f5eefc292fc511d1f89b1acbf1ba0199245b16 | refs/heads/master | 2021-01-23T18:50:48.906754 | 2015-08-24T11:46:41 | 2015-08-24T11:46:41 | 41,229,413 | 15 | 4 | null | null | null | null | UTF-8 | Python | false | false | 675 | py | import urllib2
import json
#HackerNews API documentation: https://github.com/HackerNews/API
api_url='https://hacker-news.firebaseio.com/v0/topstories.json'
item_url='https://hacker-news.firebaseio.com/v0/item/'
#Pull all story numbers into a Python data dictionary
response = urllib2.urlopen(api_url)
data=json.load(r... | [
"vicki.boykis@gmail.com"
] | vicki.boykis@gmail.com |
11c23983d7ab4baebc227f5160e0120c3f42e04c | c0397a0617f2603dc5dbd0af44462e561a52ea18 | /views.py | 1b14f569ef0fd7a8ea1427db41bf9e8082f69ff5 | [] | no_license | PujariSrinivas/Django | c865dddfaef3e7221597cf9f5e911241300d2825 | e94333926daef4a478ffa83c0f6c997700427696 | refs/heads/master | 2023-06-05T19:14:55.633274 | 2021-06-25T04:50:41 | 2021-06-25T04:50:41 | 378,155,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,054 | py | from django.shortcuts import render
from django.http import HttpResponse
# Create your views here.
def home(request):
return HttpResponse("Hi Good Evening to All...")
def htmltag(y):
return HttpResponse("<h2>Hi Welcome to APSSDC</h2>")
def usernameprint(request,uname):
return HttpResponse("<h2>Hi Welco... | [
"noreply@github.com"
] | PujariSrinivas.noreply@github.com |
b9b22ed2ac4565940e04c8fac0f36e72bf88ef75 | eb61d62ca1f6f0123e3771105f5dfbbd6115138d | /.history/23-08-21_20210912011408.py | d242edf35564cc66ff35c5dd66a540fa6f9fc0b8 | [] | no_license | Alopezm5/CORRECTO-2 | e0f14bcc3a88c0e222d10e3261e68532008bc42e | 223613f1fb04dce3fac9f82f243cb2f22fe100f3 | refs/heads/main | 2023-07-29T06:52:48.147424 | 2021-09-12T20:33:27 | 2021-09-12T20:33:27 | 388,995,308 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,944 | py | class Empresa:
def __init__(self,nom="El mas barato",ruc="0999999999",tel="042971234",dir="Juan Montalvo"):
self.nombre=nom
self.ruc=ruc
self.telefono=tel
self.direccion=dir
def mostrarEmpresa(self):
print("Empresa: {:17}, RUC: {}".format(self.nombre,self.ruc))
clas... | [
"85761855+Alopezm5@users.noreply.github.com"
] | 85761855+Alopezm5@users.noreply.github.com |
4770757cc653f027b500d6f75168f8318a702d86 | 7f2612e5132e1583e5ba9758f299a8f301f0dc70 | /FB/5-longest-palindromic-substring.py | fb44ee0f8a6db9b0e87b7abf9cf4a48bd884a73a | [] | no_license | taeheechoi/coding-practice | 380e263a26ed4de9e542c51e3baa54315127ae4f | 9528b5e85b0ea2960c994ffea62b5be86481dc38 | refs/heads/main | 2022-07-09T11:22:18.619712 | 2022-06-28T14:55:51 | 2022-06-28T14:55:51 | 447,082,854 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 426 | py | class Solution:
# Time O(N^2) Space O(1)
def longestPalindrome(self, s):
res = ''
for i in range(len(s)):
odd = self.is_pal(s, i, i)
even = self.is_pal(s, i, i+1)
res = max(odd, even, res, key=len)
return res
def is_pal(self, s, l, r):
wh... | [
"dadac76@hotmail.com"
] | dadac76@hotmail.com |
e2450988f82302bcbaff58abb9d993b553804b16 | 0adbbf6092f5444b623ccbf3b81206d027c96b68 | /23.py | ed2e63159145735c587c65da81d422e54ba334cf | [] | no_license | c1c51/python-crap | bc3fe076e42aa0f5843879b7af56314b09e5f931 | f16782fca27ac616e043b5e1c71da8fddef0f848 | refs/heads/master | 2021-05-10T09:55:38.465484 | 2018-01-25T17:19:57 | 2018-01-25T17:19:57 | 118,942,213 | 0 | 0 | null | 2018-01-25T17:20:37 | 2018-01-25T17:02:40 | Python | UTF-8 | Python | false | false | 125 | py | w=int(input("width?"))
l=int(input("length?"))
r=int(input("radius?"))
print((w*l)-((r*r)*3.14159265358979323846264338))
| [
"noreply@github.com"
] | c1c51.noreply@github.com |
862a41c8dfac8339006c6b0313a9a71788c0ef52 | 1fcb40f1f2a2c6b4f5ab6c612b900c7eb9517502 | /tf-tutorials/multigpu/multi_gpu_cnn.py | 1954bcca56e4a3d6e52d3c5b5927bba9e28deb39 | [] | no_license | prativa/ai-artist | 3466b7b160180d207c94429fbec2bd33b0da53c8 | ee98af787233889ed92cc84ce66104e3f7f6e84a | refs/heads/master | 2020-04-15T19:11:45.467297 | 2018-11-29T20:22:48 | 2018-11-29T20:22:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,137 | py | import tensorflow as tf
import os
import numpy as np
import math
from classification.skin import data_loader
import time
import random
from sklearn import metrics
_IMAGE_SIZE = 224
_IMAGE_CHANNELS = 3
_NUM_CLASSES = 2
_BATCH_SIZE = 50 # this batch size will be for each gpu, if multi gpu setup used it will consume batc... | [
"milton.2002@yahoo.com"
] | milton.2002@yahoo.com |
f9783dda5c1663e07679d767cb045a425f767f67 | 4d5adf020161db482e24ebe353c70567bb14a1a1 | /propulsion/thrust_force.py | d428164ff1452e54121c2c0d3d3b5d6b1f3b8a11 | [] | no_license | leamichel97/prop-solid | 1403b9abd6a73fda6906dfe5de5543e59d2508ad | c81bf700ee07b304d550c47a5afa85e476ecb38d | refs/heads/master | 2022-12-18T12:50:54.042165 | 2020-09-03T10:16:46 | 2020-09-03T10:16:46 | 253,484,751 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,781 | py | # -*- coding: utf-8 -*-
"""
thrust_force.py generated by WhatsOpt 1.10.1
"""
import numpy as np
from propulsion.thrust_force_base import ThrustForceBase
class ThrustForce(ThrustForceBase):
""" An OpenMDAO component to encapsulate ThrustForce discipline """
def compute(self, inputs, outputs):
""" T... | [
"leamichel1497@gmail.com"
] | leamichel1497@gmail.com |
23fbea60c2bea452a414dcf5f255cd4eabdab38a | 437e905d8c214dc25c559b1dc03eaf9f0c85326f | /is28/vyacheslavleva28/lab6/function.py | 1522faa137dc1fcb8f84d4cc4b96a551fd47870d | [] | no_license | AnatolyDomrachev/karantin | 542ca22c275e39ef3491b1c0d9838e922423b5a9 | 0d9f60207e80305eb713fd43774e911fdbb9fbad | refs/heads/master | 2021-03-29T03:42:43.954727 | 2020-05-27T13:24:36 | 2020-05-27T13:24:36 | 247,916,390 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | def vvod():
a = []
for i in range(10):
x = float(input())
a.append(x)
return a
def rachet(a):
res = True
for i in range(0,len(a)-1):
if a[i]> a[i+1]:
res = False
return res
def vyvod(data):
print(result)
data = vvod()
print(data)
result = rachet(da... | [
"you@example.com"
] | you@example.com |
6b7bcedc92889fdfac3fae2f3865e4e431ac3a06 | c381e484986b08022be508f285cc142017680319 | /mycats.py | 6c7f2ff8b22648624d73da15fc6a121f54af7a82 | [] | no_license | kasalak/automate-the-boring-stuff | 1060d4919f23b25c6653fd55ef09c436bb7ea2bd | e205bac5cd629f52af11e5ace6475e764612498e | refs/heads/master | 2021-01-21T13:53:14.332726 | 2016-05-10T17:24:04 | 2016-05-10T17:24:04 | 51,721,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | mypets = ['Zophie', 'Pooka', 'Fat-tail']
print('Enter a pet name: ')
name = input()
if name not in mypets:
print('I do not have a pet named ' + name)
else:
print(name + ' is my pet.x`')
| [
"karthik.kasala@gmail.com"
] | karthik.kasala@gmail.com |
e7a3ca9fa15a77897aa6fde5e7b69ee9bb2f853d | ac350894488b34318c11a65d35a0f8fdf69b7d50 | /products/migrations/0001_initial.py | 545343aa9abd1f1393c114e71c6c8e1aed73463f | [] | no_license | phrac/onemgin | 508f052304ddbc03f45e994ebe33769ae30d9336 | 7a029dbca1bd2725ceabc0741c7cfb47290aadb7 | refs/heads/master | 2021-01-16T19:31:10.929508 | 2015-09-08T23:53:43 | 2015-09-08T23:53:43 | 12,391,387 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,083 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
]
operations = [
migrations.CreateModel(
name='Barcode',
fields=[
('id', models.AutoField(verb... | [
"derek@disflux.com"
] | derek@disflux.com |
5d8cfdb679b337f26330b1c109a88a1680180caf | d569476dd95496339c34b231621ff1f5dfd7fe49 | /PyTest/SteamSender/tests/test_send_cards.py | 996577a1586476bfeec33e7f74f1ba41cfd2b17e | [] | no_license | monteua/Tests | 10f21f9bae027ce1763c73e2ea7edaf436140eae | 553e5f644466683046ea180422727ccb37967b98 | refs/heads/master | 2021-01-23T10:28:49.654273 | 2018-05-09T09:11:30 | 2018-05-09T09:11:30 | 93,061,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | from PageObject.SteamActions import SteamHome
from accounts import accounts
accounts_list = accounts()
def test_send_trade(driver):
for login in accounts_list:
if login == 'monte_ua13':
password = ""
else:
password = ""
SteamHome(driver).open_browser()
Ste... | [
"arximed.monte@gmail.com"
] | arximed.monte@gmail.com |
72dc217f031f0e0fe7fb784bc8ac8024f1dc926e | 340d83cbefd7a9c88b18ff25f6f5dd90e1131ad6 | /setup.py | 54baf8251ca1cb7f55ed33f6ffb2465951c6bfb5 | [
"MIT"
] | permissive | PTC-CMC/calculator | 50304326acfd501a6503d59ad81cc3502b21d934 | e89ab40336ebe57e3a2c272281f9160a212e7055 | refs/heads/master | 2022-10-03T19:21:48.502774 | 2020-06-04T19:54:30 | 2020-06-04T19:54:30 | 269,222,035 | 0 | 5 | MIT | 2020-06-04T19:54:31 | 2020-06-04T00:17:00 | Python | UTF-8 | Python | false | false | 232 | py | from setuptools import setup
# Originally an idea and implementation by Matt Thompson
# https://github.com/mattwthompson/calculator
setup(
name='Calculator',
version='0.0',
packages=['calculator',],
license='MIT',
)
| [
"justin.b.gilmer@vanderbilt.edu"
] | justin.b.gilmer@vanderbilt.edu |
de7e14bb4a48b4fa23f12d9b6ee34dd226ad6ecb | 843af55f35c54d85bf6006ccf16c79d9a5451285 | /25 - more_lists.py | 8af52312523c5eb4245f871af28a73e7de55b267 | [] | no_license | estebantoso/curso_python_udemy | 2a5989351921d54394b61df1e8089c58088a01cc | 0f4deba3b0efbc59159aaeb49ffd95c6724c2dd2 | refs/heads/master | 2020-05-22T19:00:36.599701 | 2019-05-23T14:49:31 | 2019-05-23T14:49:31 | 186,485,180 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | friends = ["A", "B", "C"]
print(friends[0])
print(friends[-1])
print("A" in friends) | [
"estebantoso@gmail.com"
] | estebantoso@gmail.com |
491dc44ae36dbbbd2a8115d6c4c80ac79186d685 | 5ec09f479c7a680f77d2b8e5da675e24daf82da7 | /callback_plugins/fix_ssl.py | 330fc989837e7a72fe813929f80bb61a65438884 | [] | no_license | tbuchi888/vagrant-yaml-ansible | 1f2d3bcb5d35d3d1e72c1cda2730bc761d33e812 | 0837e62a3a835d94cb9200160548034f26e3a991 | refs/heads/master | 2021-01-10T02:52:51.389484 | 2016-03-19T16:05:58 | 2016-03-19T16:05:58 | 54,269,456 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | import ssl
if hasattr(ssl, '_create_default_https_context') and hasattr(ssl, '_create_unverified_context'):
ssl._create_default_https_context = ssl._create_unverified_context
class CallbackModule(object):
pass
| [
"tbuchi888@users.noreplay.github.com"
] | tbuchi888@users.noreplay.github.com |
ce65095ee46c58e871cd6b80c4cfe769ace6e7a1 | f5f7f8d12956e4bff6e1c5f6fab10b006690f195 | /luffy/settings.py | fe7c34ae1af2839496be8ef590c0c49e0a16121b | [] | no_license | chenrun666/luffy | 1fbee911d1d7f86e5c7b1ed7f47e84f6f1ee9846 | 59f6229e16978ab9c40ef948807c717c2cddaea9 | refs/heads/master | 2020-04-07T16:09:20.306754 | 2018-11-21T08:45:29 | 2018-11-21T08:45:29 | 158,517,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,582 | py | """
Django settings for luffy project.
Generated by 'django-admin startproject' using Django 1.11.15.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import os
... | [
"17610780919@163.com"
] | 17610780919@163.com |
6d99627b90704b1feee0b966f1164aaffdfc291c | ad0e6decddcbd6bafce08075c04fcc5d1824513e | /abs_try.py | 50b59bf80a1f14f6df5525812e0a4ffb13972103 | [] | no_license | sihanj/nlp_test2 | dc95cf087dfd9a799e83a7fb4d8b543e51153dcc | 4cd10b90ebe19724fa17f254be62574bb069987a | refs/heads/master | 2020-03-25T20:54:16.004753 | 2019-04-22T04:46:05 | 2019-04-22T04:46:05 | 144,150,640 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | import re
import jieba
import networkx as nx
from sklearn import feature_extraction
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.text import TfidfVectorizer
#分句
def cut_sentence(sentence):
if not isinstance(... | [
"noreply@github.com"
] | sihanj.noreply@github.com |
8e1342c5a5fb325ae9a8dd315f48ea850dd6e3fb | 9f9fa056d9f9a9a1671fd76009aaabeef9ce58d6 | /output/wwinp_plot.py | a64392e3395afc046326b7dcf81e4ff7429f873d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | py1sl/pyne_based_tools | 8a6f9172125bcf24698d2c3d0a3ef5b493eaea1c | 92bd8865b9e9de78d24a2e635e0f2e826bad5e61 | refs/heads/master | 2021-01-19T03:13:11.600946 | 2017-09-12T09:49:35 | 2017-09-12T09:49:35 | 55,595,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 503 | py | from pyne import mcnp
from itaps import iBase, iMesh
import h5py
import sys
from subprocess import call
def convert_wwinp(argv):
"""simple conversion of wwinp to vtk via h5m """
in_path = argv[0]
out_path = argv[1]
wwinp_mesh = mcnp.Wwinp()
wwinp_mesh.read_wwinp(in_path)
wwinp_mesh.mesh.save(... | [
"steven.lilley@stfc.ac.uk"
] | steven.lilley@stfc.ac.uk |
06aae58ab947c90ed7bc942a02ffa420afd0287b | 7bededcada9271d92f34da6dae7088f3faf61c02 | /pypureclient/flashblade/FB_2_6/models/network_interface_trace_get_response.py | 711d740178ee303c6379e1c1ec389c67bd15cca7 | [
"BSD-2-Clause"
] | permissive | PureStorage-OpenConnect/py-pure-client | a5348c6a153f8c809d6e3cf734d95d6946c5f659 | 7e3c3ec1d639fb004627e94d3d63a6fdc141ae1e | refs/heads/master | 2023-09-04T10:59:03.009972 | 2023-08-25T07:40:41 | 2023-08-25T07:40:41 | 160,391,444 | 18 | 29 | BSD-2-Clause | 2023-09-08T09:08:30 | 2018-12-04T17:02:51 | Python | UTF-8 | Python | false | false | 4,335 | py | # coding: utf-8
"""
FlashBlade REST API
A lightweight client for FlashBlade REST API 2.6, developed by Pure Storage, Inc. (http://www.purestorage.com/).
OpenAPI spec version: 2.6
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
import pprint
import re
import six
import typ... | [
"tlewis@purestorage.com"
] | tlewis@purestorage.com |
e4a7172c8a987feebc4e08c448cc4dc8bfc40b73 | 913334a96677deb9a199d4a7244a4fa56e989fa7 | /5flask_demo/modles.py | b90abf5bc7e9a32e86e2ee62ce28a818258daaff | [] | no_license | KangZhengweiGH/flask_demos | 7bd4b64f252055017f512f6fb348c885c377f241 | 1a0c621c8f0bd44fd583b026ef575990b5dda706 | refs/heads/master | 2020-05-16T07:28:24.055118 | 2019-05-08T01:00:30 | 2019-05-08T01:00:30 | 182,879,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,154 | py | # coding=utf-8
from extend import db
class User(db.Model):
__tablename__ = 'user'
id = db.Column(db.Integer, primary_key=True, autoincrement=True)
name = db.Column(db.String(12), nullable=True, unique=True)
telnumber = db.Column(db.Integer, nullable=False, unique=True)
password = db.Colum... | [
"email@1101186901.com"
] | email@1101186901.com |
3263908d9d30879e4febda3d96c3f7a74b399214 | 9a21850ff752b6bd148a9dfbadd210419c2d4a6e | /posts/posts.py | 39bb7bcbfa0e3cbcd84aaeef44c77b06619a2603 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | importcjj/Posts | 7d3a9a04f829e92027c310f0daf8be259d4a91a9 | fc2abe1c48fa09af820a25c4cc00520253a6b7f1 | refs/heads/master | 2021-01-10T09:43:07.401682 | 2016-04-20T05:24:36 | 2016-04-20T05:24:36 | 49,366,691 | 5 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,705 | py | # -*- coding: utf-8 -*-
import smtplib
import socket
from contextlib import contextmanager
from email.mime.text import MIMEText
from email.mime.multipart import MIMEMultipart
from email.mime.application import MIMEApplication
class PostSMTP(smtplib.SMTP):
def __init__(self, sender, alias=None, host='', port=0,
... | [
"importcjj@gmail.com"
] | importcjj@gmail.com |
f8829530e57c7661aff17909cf2af499c0580ec3 | 40f82a8341c7912540644fe5b51dc6e455ea8cb2 | /shares/admin.py | 6a9f67d06537c324008251fffef486777ce9b521 | [] | no_license | persionalWeb/persionalWeb | 3765a3329ba34b4866774dc8167613e4a452043f | e80b1b92a1c55369d1f121d609b90f7edf47d588 | refs/heads/master | 2022-07-07T02:54:19.517215 | 2020-05-17T04:07:02 | 2020-05-17T04:07:02 | 258,783,764 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 605 | py | from django.contrib import admin
from .models import Klins,Stocks
class KlinsAdmin(admin.ModelAdmin):
list_display = ['id','fid', 'code', 'name', 'short_data', 'flag', 'addtime']
search_fields = ['name']
list_filter = ['flag']
list_per_page = 10
ordering = ['id']
class StocksAdmin(admin.ModelAdmin)... | [
"63894777+niexingang123@users.noreply.github.com"
] | 63894777+niexingang123@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.