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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96c2ec060f70a8e9139ce63b70641cb1ab6e8511 | 3a4fbde06794da1ec4c778055dcc5586eec4b7d2 | /SQLAlchemy-0.5.4p2/examples/elementtree/pickle.py | 220bb2295386a75a1311c597f76514c078ad8ffb | [
"MIT"
] | permissive | raychorn/svn_python-django-projects | 27b3f367303d6254af55c645ea003276a5807798 | df0d90c72d482b8a1e1b87e484d7ad991248ecc8 | refs/heads/main | 2022-12-30T20:36:25.884400 | 2020-10-15T21:52:32 | 2020-10-15T21:52:32 | 304,455,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,018 | py | """illustrates a quick and dirty way to persist an XML document expressed using ElementTree and pickle.
This is a trivial example using PickleType to marshal/unmarshal the ElementTree
document into a binary column. Compare to explicit.py which stores the individual components of the ElementTree
structure in distinct... | [
"raychorn@gmail.com"
] | raychorn@gmail.com |
819c2a0bc256c3c24169c4a6e29f6731b02f8ea4 | a56a92b18e423f66db497ac905b02b08eb1c040a | /solutions/sortcolours.py | e20ada97aeab0e5a7749523f728ef8d35a65a6e3 | [] | no_license | DeepakSunwal/Daily-Interview-Pro | 12294218a1e5a5e522ad2c491ca00e39581efdfc | 1a9a9a0e1116eda854132164051086d9b0386184 | refs/heads/master | 2021-01-02T10:01:23.356507 | 2020-01-31T17:18:23 | 2020-01-31T17:18:23 | 239,569,007 | 1 | 0 | null | 2020-02-10T17:18:49 | 2020-02-10T17:18:48 | null | UTF-8 | Python | false | false | 1,073 | py | def sort_colours(colours):
left = 0
right = len(colours) - 1
while left < right:
if colours[left] != 0 and colours[right] == 0:
temp = colours[right]
colours[right] = colours[left]
colours[left] = temp
else:
if colours[right] != 0:
... | [
"ckallumke@gmail.com"
] | ckallumke@gmail.com |
93dab1bd92832266e305366a0e12cb2522e07b4b | d5a6ad0eabe229f025f7852f57331c0c464b21fd | /8-16.py | b2c06fdb42802a730dff0a6df846e031f8534e6f | [] | no_license | t4kenn/python | 6bb7462a6e1a156b1c63c9e697c7e04f2b4445f5 | fb269671301761454916eaf7b9979a120e112c1c | refs/heads/master | 2023-08-11T01:34:07.468003 | 2021-09-22T00:52:23 | 2021-09-22T00:52:23 | 409,018,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | n = {"id" : 100,"name" : "大原太郎", "age" : 19}
n["age"] = 20
for key,value in n.items():
print(key, ":", value, sep="") | [
"ykh2135151@stu.o-hara.ac.jp"
] | ykh2135151@stu.o-hara.ac.jp |
331e61ff53942c28609b93239ce7dbf1b4c43c37 | 385c6e5e1b3a00217a21ae1ea10edea470e8a295 | /recommendSystem/calculate.py | 831488c4c21852d453bd576952710970eae759f3 | [] | no_license | 13690842809/recommendSystem | 13966d6b278e59ed0fde055c2c627b7d38cfbc92 | 86335af50db4d7b4a7b1ff492fc0d016e17ffe8b | refs/heads/master | 2021-01-19T21:41:37.415934 | 2017-04-19T02:26:25 | 2017-04-19T02:26:25 | 88,690,397 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 120 | py | # for i in range(1,30+1):
# print(float(30/i),round(30/i),round(30/i)*i)
import random
print(random.randint(1,100)) | [
"noreply@github.com"
] | 13690842809.noreply@github.com |
b56e089475355cab6b64ed77bf9bceac0283dd6d | 5f9f9ce3c08f7faf5ff97d17290e71460b9ca4e2 | /bin/bigpanda-splunk-configure | 1494c13d518aac970d589cf64275327848d9ace0 | [
"Apache-2.0"
] | permissive | bigpandaio/bigpanda-splunk | 844b18ddbdede1916c5cb15fc7dcb4d54cbebc3f | 0af83f6512de32e6694621c8ad0590e634010496 | refs/heads/master | 2023-04-13T05:59:51.012346 | 2014-11-05T07:50:14 | 2014-11-05T07:50:14 | 23,677,756 | 0 | 2 | Apache-2.0 | 2023-03-31T19:09:14 | 2014-09-04T20:14:06 | Python | UTF-8 | Python | false | false | 149 | #!/usr/bin/env python
from bigpanda_splunk.configure import configure
import os
import sys
configure(os.path.join(os.getcwd(), __file__), sys.argv)
| [
"erik.zaadi@gmail.com"
] | erik.zaadi@gmail.com | |
be8452da0024401064e68544eae38b8f503edbb3 | 88a9d5c504d422bb46dbdec762bbfce444b4df92 | /django_movie/movies/migrations/0002_alter_rating_movie.py | 4bd9097962b09f9db7a2e81ce3dcab77bcf7a494 | [] | no_license | Siberian87/Movie_site | cde676935f810741fec6185725cf5f7775c21e98 | 02f80e4e8654b90c89b7004fb4c5fa61d0479eed | refs/heads/main | 2023-06-14T13:52:47.338854 | 2021-06-18T10:44:04 | 2021-06-18T10:44:04 | 376,953,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 483 | py | # Generated by Django 3.2.4 on 2021-06-15 09:10
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('movies', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='rating',
... | [
"user@MacBook-Pro-user.local"
] | user@MacBook-Pro-user.local |
9f0388331526b033176eee3a7140c7ffb19dae0e | e04f721d9b0a98a30fb51e8cf9bfdc1fd827c488 | /internado/wsgi.py | 46a0b8ba6ac3d5949bbbee4139d1e186ef274075 | [] | no_license | AustinCheco/Mi_prueba_Django | df5f9ef1e0f9706e7129a10046c0325592a55eeb | 9bc3478c282d298e63998bb093a206747b94faf1 | refs/heads/master | 2021-06-18T08:31:21.146461 | 2019-07-13T22:56:08 | 2019-07-13T22:56:08 | 196,772,225 | 0 | 0 | null | 2021-06-10T21:42:42 | 2019-07-13T22:38:55 | Python | UTF-8 | Python | false | false | 395 | py | """
WSGI config for internado project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/1.9/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"austincuyocheco@gmail.com"
] | austincuyocheco@gmail.com |
b151e03e134c5c2e80bc00d06b6ca7c43b4654c6 | 980699f2c1621cd1752b5db38e68916e17161754 | /mediamedianaemoda.py | 1e9d5ee3f4aa7ec21c6970e3a9400a05e790884a | [] | no_license | caiooliveirac/estatistica | 079a7ae195740ae8f4eeefc1d782c32487a213f8 | 96406d514f8cbd9c6d5b1a676b3e3d267466b8e7 | refs/heads/main | 2023-06-22T11:11:06.499029 | 2021-07-23T16:46:09 | 2021-07-23T16:46:09 | 388,826,976 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | arr = list(map(int,input().rstrip().split(' ')))
def media():
media = sum(arr)/len(arr)
return media
def mediana():
if len(arr) % 2 == 0:
elem1 = sorted(arr)[len(arr)//2]
elem2 = sorted(arr)[(len(arr)//2)-1]
return (elem1 + elem2)/2
else:
mediana = sorted(arr)[len(arr... | [
"noreply@github.com"
] | caiooliveirac.noreply@github.com |
44b84ed057f077bfb51dc248dfe04fe9858db108 | 53e7b46d2928b95105c8c5330ebf434e49731575 | /qn1.py | 0a5b2903373dd073443004097c038d89c9413935 | [] | no_license | Sujankhyaju/Trainee_python_Assignment | 3ef46992b136031fc837e01accb677a02852139b | 7fea51ba7f4b71da6999c96f4e28a59fa7480a64 | refs/heads/master | 2023-08-11T11:58:49.582905 | 2021-09-10T12:05:50 | 2021-09-10T12:05:50 | 404,970,110 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 713 | py | # Make a list of ten students in your class. Print the name of each student whose name starts with ‘B’.
def filterStudents(list1):
'''
shows the name of student whose name starts with 'B'
'''
for name in list1:
if ord(name[0]) == 66: #checks if the name starts with 'B'. Asci value of B is 66... | [
"I33489@verisk.com"
] | I33489@verisk.com |
8cf28e90d2bcbd1f81c169d76168147071d9e225 | 51b838412b7d9d38e398fefff92a0f17b3e040d7 | /enso/enso/contrib/scriptotron/ensoapi.py | a4cb12b67d501d86a9a521f683ec1550f48cd65d | [
"BSD-2-Clause"
] | permissive | thdoan/enso-portable | ed87bb30f3fe5d95e8dc6f3c4fa2a1a3a46f37fc | 2dd6db78f40811d78fe9a162ec95eac14bda2250 | refs/heads/master | 2020-04-05T19:01:50.058547 | 2015-01-11T16:46:56 | 2015-01-11T16:46:56 | 28,119,291 | 8 | 5 | null | null | null | null | UTF-8 | Python | false | false | 1,922 | py | import xml.sax.saxutils
from enso.messages import displayMessage
from enso import selection
class EnsoApi(object):
"""
A simple facade to Enso's functionality for use by commands.
"""
def display_message(self, msg, caption=None):
"""
Displays the given message, with an optional captio... | [
"gchristnsn@gmail.com"
] | gchristnsn@gmail.com |
e3ea75eec250197dd030f88d7bb8fdb47807bab0 | eb9f655206c43c12b497c667ba56a0d358b6bc3a | /python/testData/refactoring/rename/renameUpdatesImportReferences/before/a.py | 990c241c88d830934b115f98f771d048a07c4652 | [
"Apache-2.0"
] | permissive | JetBrains/intellij-community | 2ed226e200ecc17c037dcddd4a006de56cd43941 | 05dbd4575d01a213f3f4d69aa4968473f2536142 | refs/heads/master | 2023-09-03T17:06:37.560889 | 2023-09-03T11:51:00 | 2023-09-03T12:12:27 | 2,489,216 | 16,288 | 6,635 | Apache-2.0 | 2023-09-12T07:41:58 | 2011-09-30T13:33:05 | null | UTF-8 | Python | false | false | 17 | py | import f<caret>oo | [
"andrey.vlasovskikh@jetbrains.com"
] | andrey.vlasovskikh@jetbrains.com |
251bae5aaf32ca72cd850246ab648153d3a872dc | 2a1d7cef10bd4d030e7f05c2eee342099ee3affa | /lecture13PloyMorphism-part2.py | 81a16f096738948cd40a77834aac16adaeb71f82 | [] | no_license | mohd-tanveer/PythonAdvance | 8dc096edc75975eaa44af005c691aa15428c9254 | dd4ac13a7b59cee33f94fcb5c88f52f3ffc0a6ae | refs/heads/master | 2022-11-18T21:05:11.547842 | 2020-07-20T06:38:14 | 2020-07-20T06:38:14 | 273,145,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,715 | py | ##polymorphism-2
#Operator overloading 2
#let's try to print the object
class Book:
def __init__(self,pages):
self.pages=pages
b1=Book(100)
''' output : main<>.object at x0246036
class Book:
def __init__(self,pages):
self.pages=pages
def __str__(self):
return('the number of pages :'+str(se... | [
"noreply@github.com"
] | mohd-tanveer.noreply@github.com |
d0829958bc123518a9020ef7a50424eb6c3cf05c | 77ab53380f74c33bb3aacee8effc0e186b63c3d6 | /5356_luck_number_in_matrix.py | e3e46bb57b5d7ef93ba3454821dad28f4b2981fd | [] | no_license | tabletenniser/leetcode | 8e3aa1b4df1b79364eb5ca3a97db57e0371250b6 | d3ebbfe2e4ab87d5b44bc534984dfa453e34efbd | refs/heads/master | 2023-02-23T18:14:31.577455 | 2023-02-06T07:09:54 | 2023-02-06T07:09:54 | 94,496,986 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | '''
Given a m * n matrix of distinct numbers, return all lucky numbers in the matrix in any order.
A lucky number is an element of the matrix such that it is the minimum element in its row and maximum in its column.
Example 1:
Input: matrix = [[3,7,8],[9,11,13],[15,16,17]]
Output: [15]
Explanation: 15 is the only... | [
"tabletenniser@gmail.com"
] | tabletenniser@gmail.com |
79fceff98271d886941b8b4cb590ee0b73f4764f | 788708a52401cb7e482ecc4758f19a53739c3c8c | /codeforces/cf_550/b.py | 99486a8eb169bbd67ff4baa999d2faa5e982ac9e | [] | no_license | gsravank/ds-algo | 9e8c55ada485547b3452e17ff10660328f0cd28f | 818198126db3aa40d0bf096ad462b5293d1e29c9 | refs/heads/master | 2020-04-21T16:58:38.324009 | 2019-05-30T15:31:28 | 2019-05-30T15:31:28 | 169,720,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 694 | py | import heapq
n = int(input())
a = list(map(int, input().split()))
parity_map = {0: [], 1: []}
for ai in a:
parity_map[ai % 2].append(ai)
odd_len = len(parity_map[1])
even_len = len(parity_map[0])
min_heap = list()
if abs(odd_len - even_len) <= 1:
print(0)
else:
if odd_len > even_len:
rem_len =... | [
"kumarsravangs@gmail.com"
] | kumarsravangs@gmail.com |
dc883bb6c8566a1cca492ac09213b898f330f17e | 443cdd946b638fcbf97f249e8a887e7eba30a8d1 | /Allocation/urls.py | 1f35604ea603236f7f2dd9a00bcc63bb53ffe378 | [] | no_license | ilyashumilov/Alllocation | eb22222a68fde67c0c6df54f9dd65e62b6e1b4ee | 16e02414d50dd1a47a1cf5347e8699dd118c1965 | refs/heads/main | 2023-08-10T21:14:41.635891 | 2021-09-19T08:51:09 | 2021-09-19T08:51:09 | 408,074,749 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 797 | py | """Allocation URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-ba... | [
"ilya.sadventure@gmail.com"
] | ilya.sadventure@gmail.com |
3d529053e7cb746231380c2095b4842ba4f50f7c | a81c057d388bac914a4cd8c714dd13e298f28d94 | /Problem 3.py | 452c5d5cbd1f958e904fad90ec48910e474e8563 | [] | no_license | AvijitMaity/Avijit-Maity-Computational-Physics-2-Assignment-2 | 8a575c3eafe5db84af2520276f21df25bb5e3e3b | 325dfc6a8e5587e727dc1dc74dc133f5e956bb64 | refs/heads/master | 2022-04-22T18:19:35.109350 | 2020-04-21T08:12:26 | 2020-04-21T08:12:26 | 257,411,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,891 | py | '''
Runge-Kutta Method
====================================================================
Author: Avijit Maity
====================================================================
This Program solves the differential equation using
with Runge-Kutta Method
'''
import numpy as np
import matplotlib.pyplot a... | [
"noreply@github.com"
] | AvijitMaity.noreply@github.com |
17cd4aa09c704d7ca398950c4f83f73c92897f8b | 0991fb3056fefb8cb3c380e37e42a305e5810b2a | /catalog/models.py | b73117367fc4bf68704457812fedce19269b61e3 | [] | no_license | uyencfi/integrated-library-system | c6827bbe6c07967a6f059aea64f18f73fb52179e | f4e2fd24ec35a27f5dab9aeae5b98370c42b9f88 | refs/heads/master | 2023-03-29T03:29:03.768148 | 2021-03-30T13:35:27 | 2021-03-30T13:35:27 | 342,171,939 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,754 | py | # This is an auto-generated Django model module.
# You'll have to do the following manually to clean this up:
# * Rearrange models' order
# * Make sure each model has one field with primary_key=True
# * Make sure each ForeignKey and OneToOneField has `on_delete` set to the desired behavior
# * Remove `managed =... | [
"77076051+uyencfi@users.noreply.github.com"
] | 77076051+uyencfi@users.noreply.github.com |
e3e79b260ab8dff587ac9348051e9ff68a59b318 | 6a80a15b45cd578bd6a496566474fa6583f6fc13 | /docs/build/html/_downloads/1e860c42938854d6b061aff9d370f07a/dietmodel.py | d209b0d926ef94b0736a955bc7314f1060841f20 | [
"BSD-3-Clause"
] | permissive | ytakashina/amplpy | 3c67efcb78ea6c5fac828e025e4be91e3dd7eba0 | 6338e7eab44167c776c16a1da23352bed5910288 | refs/heads/master | 2021-05-25T07:33:43.982436 | 2020-02-28T02:14:06 | 2020-02-28T02:14:06 | 253,718,165 | 0 | 0 | BSD-3-Clause | 2020-04-07T07:24:21 | 2020-04-07T07:24:21 | null | UTF-8 | Python | false | false | 2,202 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import print_function, absolute_import, division
from builtins import map, range, object, zip, sorted
import sys
import os
def main(argc, argv):
from amplpy import AMPL, DataFrame
os.chdir(os.path.dirname(__file__) or os.curdir)
try:
am... | [
"fdabrandao@gmail.com"
] | fdabrandao@gmail.com |
b5d4935ccb2e390451e2a6cdf3d02b0c3c62fed1 | 771d3c54b5f18c87f9f8f5f03992a639c40b2391 | /Prediction/multiple_linear_regression.py | b030b6a982f10926d5d7cced28cf718ca1aaf946 | [] | no_license | simayhosmeyve/Machine_Learning | 87039ee3f118014cb9a58e302350721a458aed9c | 15d4199d888b703141b1249afc026d9ee6fbb27b | refs/heads/main | 2023-06-29T01:18:07.225083 | 2021-07-30T12:43:14 | 2021-07-30T12:43:14 | 384,386,396 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,592 | py | #tahminimiz birden fazla parametreye bağlı olduğunda
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
datas = pd.read_csv('values.csv')
#print(datas)
age = datas.iloc[:,1:4].values
#print(age)
#encoding
country = datas.iloc[:,0:1].values
print(country)
from sklearn import preproce... | [
"noreply@github.com"
] | simayhosmeyve.noreply@github.com |
2d14551e314dc6fae1cd93c261da3bce2b6a090a | 765e850116564d47d7ac3afa38ac2c56ccd1ce29 | /ScMiles/log.py | 5989bef6307a5f3e618b10a73ef1894f03500ed5 | [] | no_license | UTmilestoning/ScMiles2.0 | 87c7ff9f874aa81392e551c885872be1d1818c48 | edd23d864834a0e773207b80367a1b68f31cc2c0 | refs/heads/master | 2023-06-14T11:41:52.204370 | 2020-09-21T15:45:27 | 2020-09-21T15:45:27 | 315,404,147 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Sep 16 15:49:08 2018
@author: Wei Wei
This subroutine writes running informations to log file.
"""
__all__ = ['log']
def log(msg):
import os
from datetime import datetime
filePath = os.path.dirname(os.path.abspath(__file__))
outfolder = os.path.abspath(o... | [
"noreply@github.com"
] | UTmilestoning.noreply@github.com |
430652a45790d6c43467152d40c8acc63a0b0613 | cb901633a8cf535098893bcf9cd6daf16e0c7de8 | /mlfinlab/tests/test_functional_correlation_driven_nonparametric_learning_k.py | 92b4115e9d7cd3a54794a849754720bacdba3166 | [] | no_license | webclinic017/pandas-polygon | 997de5d4f4c9423f158bda82a1cfae8e5b110e93 | 1caa0266f830181e632568332ee4c3ccb1878114 | refs/heads/master | 2023-08-25T01:34:51.770044 | 2021-02-07T05:55:58 | 2021-02-07T05:55:58 | 298,890,629 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,105 | py | # Copyright 2019, Hudson and Thames Quantitative Research
# All rights reserved
# Read more: https://github.com/hudson-and-thames/mlfinlab/blob/master/LICENSE.txt
"""
Tests Functional Correlation Driven Nonparametric Learning - K.
"""
from unittest import TestCase
import os
import numpy as np
import pandas as pd
from ... | [
"bob@instasize.com"
] | bob@instasize.com |
e6cdb794aa311080ffa4e7aa83cbc4f90ff8ac96 | bf99b1b14e9ca1ad40645a7423f23ef32f4a62e6 | /AtCoder/abc/141b.py | 4460bbf6a3ef087667c285aeff68758cdaf4a860 | [] | no_license | y-oksaku/Competitive-Programming | 3f9c1953956d1d1dfbf46d5a87b56550ff3ab3db | a3ff52f538329bed034d3008e051f30442aaadae | refs/heads/master | 2021-06-11T16:14:12.635947 | 2021-05-04T08:18:35 | 2021-05-04T08:18:35 | 188,639,647 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | import sys
from heapq import heappop, heappush
from operator import itemgetter
from collections import deque, defaultdict, Counter
from bisect import bisect_left, bisect_right
input = sys.stdin.readline
sys.setrecursionlimit(10 ** 7)
MOD = 10**9 + 7
INF = float('inf')
def sol():
S = input().rstrip()
for i, s ... | [
"y.oksaku@stu.kanazawa-u.ac.jp"
] | y.oksaku@stu.kanazawa-u.ac.jp |
4bc43753732ed7e0fa52c7b70d1c3c86e150fcc8 | a7bef1217d295a0461697073d88825ea37ce6151 | /dtft.py | f6783787b018bf255c57ff9e68274b817c2bbd20 | [] | no_license | R151837/PRIYANKA | a5cdd2e798c6c02fa6706a37f97dd7dd57846956 | 4d3c2d5165a97594b237b3999ce2536322326c22 | refs/heads/master | 2020-04-27T06:50:25.547913 | 2019-03-06T10:11:51 | 2019-03-06T10:11:51 | 174,119,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import numpy as np
import matplotlib.pyplot as plt
import cmath as cm
x=input('enter sequence=')
n=len(x)
j=cm.sqrt(-1)
w=np.linspace(0,2*np.pi,1000)
y=[]
for i in range(0,1000):
sum=0
for k in range(0,n):
sum=sum+x[k]*np.exp(-j*w[i]*k)
y=np.append(y,sum)
print y
plt.subplot(121)
plt.title("magnitude")
plt.plot(w,... | [
"noreply@github.com"
] | R151837.noreply@github.com |
f004c169097cf2b61b4fc0c52f64922958d33f99 | fcbc1f173579556bd75473d5be190c1229c0dfaa | /first10.py | 46957cddeb38259e69eefdb283ea03a32d6f15ca | [] | no_license | Hiten1502/codeQuotient-Automation | 09424fb5c3eba17c89fea4787e8c167c415406c7 | 58199762ee776a86418af2cc5f4ff753dee19b93 | refs/heads/main | 2023-07-13T10:46:03.531186 | 2021-08-22T06:19:31 | 2021-08-22T06:19:31 | 398,727,244 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 81,962 | py | from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.... | [
"noreply@github.com"
] | Hiten1502.noreply@github.com |
20906b867a86191964ed50bf89e46d6cea287b00 | 742e4ba2a554b1d37c84190ae0ed8b271e4671ab | /plot_service/settings.py | 2b63e35391b5682a34247ef962c84b9a743d8b3e | [] | no_license | xiaoxuwu/chpr-plot-service | ebbfd6be545679d5b5e7c1602ca88136b057e9a4 | 1cde0ee3e9dfd6aa48f06ff68b268b5a03f72b63 | refs/heads/master | 2020-05-09T16:17:21.135337 | 2019-05-31T08:59:55 | 2019-05-31T08:59:55 | 181,265,500 | 0 | 0 | null | 2019-05-31T18:02:59 | 2019-04-14T05:43:01 | JavaScript | UTF-8 | Python | false | false | 3,543 | py | """
Django settings for plot_service project.
Generated by 'django-admin startproject' using Django 2.1.7.
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 ... | [
"carter.wu@ucla.edu"
] | carter.wu@ucla.edu |
5f32f8cc6cbabc1059e03e1779cf94d2f294fd76 | 9cb7debe213e40b87833076f944ccd01d83ab2d9 | /pywick/models/segmentation/testnets/exfuse/__init__.py | f05a4cf8d911693123d7967bd1352fbd13083569 | [
"MIT",
"BSD-3-Clause",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | csetraynor/pywick | 7c580eb46cc48a0d7d92acd7f770079a37c84304 | 9d663faf0c1660a9b8359a6472c164f658dfc8cb | refs/heads/master | 2023-08-21T06:25:05.197965 | 2021-10-22T03:09:17 | 2021-10-22T03:09:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | """
Source: https://github.com/rplab-snu/nucleus_segmentation
""" | [
"Alexei.Samoylov@digikey.com"
] | Alexei.Samoylov@digikey.com |
ab464f58e95e506c9fba97a806bf99379fd6ff5a | 0f58a177cdecbbabc276fd8c2dd7ffe7d53c189d | /Random_Week_image_resize.py | a88eff88d74e1217e1be1a8968c66529ea7710d6 | [] | no_license | tianpei2/Trips_Time-series | 60e5f30aa5856f9cdf1709342c58d1c25f46a6c4 | da0371668fe7ca73fe8e485cd8aa094bbbd294cf | refs/heads/master | 2020-05-26T15:22:55.459189 | 2018-10-01T15:10:09 | 2018-10-01T15:10:09 | 85,010,100 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 386 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sat Apr 15 22:01:58 2017
@author: wangtianpei
"""
dir_path = "/Users/wangtianpei/Desktop/Random_Week/"
import PIL
from PIL import Image
for i in range(671):
image = Image.open(dir_path+'flow_{}.png'.format(i))
img = image.resize((2100,1290), PIL.Im... | [
"tianpei3@gmail.com"
] | tianpei3@gmail.com |
dc2303b686f9974a1137610564beb7dceee97b9d | 4eb22dce382fe3465a58a9f43ea60322b1e0326f | /crab/crab_mc.py | 046f65fab295fa5b8fdbe659e93c5b883874c9cf | [] | no_license | leonardogiannini/vhbb-nano | a64bc18e50ba88b97bce5a9182d1673607a37d3b | 6ef8210faca0aeaba0857db5c41a59cdf4ebd10b | refs/heads/master | 2021-04-03T06:27:25.618867 | 2018-03-14T20:40:12 | 2018-03-14T20:40:12 | 124,595,678 | 0 | 0 | null | 2018-03-09T21:33:25 | 2018-03-09T21:33:24 | null | UTF-8 | Python | false | false | 2,024 | py | import sys
from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'VHbbPostNano2016_V1'
config.General.workArea = 'crab_projects'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobType.pluginName = 'Analysis'
config.JobType.ps... | [
"stephane.b.cooperstein@cern.ch"
] | stephane.b.cooperstein@cern.ch |
9218806546d7b9ce9b66dcbbc82107ef7c032296 | 2f1f742ae400da451c2f92348d7d40b21afb245d | /sender.py | 03c7d5322c5e93f265739a48af10fd159529f5db | [] | no_license | Plocatel/Speech_Fitt | 869b14e580bb6a4035bb48df8f37ee3d22be4737 | 2ad272205d6acdb8253270eac38e25fbf2232871 | refs/heads/master | 2021-01-20T22:34:20.488270 | 2013-06-25T12:52:09 | 2013-06-25T12:52:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | #!/usr/bin/python
#-*-coding:utf8-*-
from PyQt4.QtGui import *
from PyQt4.QtCore import *
import sys
import subprocess
class Sender(QThread):
def __init__(self,id_):
QThread.__init__(self)
self.index = "-1"
self.id_ = id_
def __del__(self):
self.wait()
def run(self):
... | [
"locap25@gmail.com"
] | locap25@gmail.com |
490a1cd0f8b919fe42e8ad8ef3ee418b8a65231c | 712a10965421313f657511af645f238603eab7fb | /appium_practice_3/Base/get_driver.py | b5e0e24cbc1ac7fce7ff01e06b47084a0af74ca6 | [] | no_license | ahahayaya/appium_practice | cd3725d413fc9bbb1bf7221271a99790bcefa974 | 1e0684e2eb395ae7350df477b9841b3960087a73 | refs/heads/master | 2021-03-25T12:48:28.729542 | 2020-03-16T05:43:49 | 2020-03-16T05:43:49 | 247,619,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 316 | py | from appium import webdriver
def get_driver():
desired_caps={}
desired_caps['platformName']='Android'
desired_caps['deviceName']='xx'
desired_caps['appPackage']='com.android.settings'
desired_caps['appActivity']='.Settings'
return webdriver.Remote('http://127.0.0.1:4723/wd/hub',desired_caps) | [
"hi_emily_wu@163.com"
] | hi_emily_wu@163.com |
e6a83c95528d8511ff90cfc2aad4b010e8c95dc2 | f089a503eba0a93430fc9ab2d877a1b9b99f3182 | /Kontrola_Danych.py | c8e744794141a46c5c24b2d5249999624c7b3380 | [
"MIT"
] | permissive | bDOT666/Statystycznie | 7678cf42a4f4e4bd81221cc4cf0814be42f35650 | 945a52568be764105f716c083eac89da176396aa | refs/heads/master | 2020-12-20T13:41:52.092265 | 2020-03-09T20:58:53 | 2020-03-09T20:58:53 | 236,095,568 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,391 | py |
import csv
import tkinter
from tkinter import messagebox as msb
from tkinter import scrolledtext
from tkinter.filedialog import *
import scipy.stats as stats
import pandas as pd
import numpy as np
import math as mat
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
from matplotlib.figure import Figure
i... | [
"mateusz.zietara8721@gmail.com"
] | mateusz.zietara8721@gmail.com |
7626a80f9dde988d8c40de3c64cf0d0275550f31 | 2b353f42255531c9cd67fce3f5336003c814d21e | /src/music/migrations/0002_auto_20191108_1659.py | 13731103061be33085f244deb96448e446a0fb7d | [] | no_license | 14DENDIK/spot-music-app | 469ce550d47ceb06108d886b146f759b063a1c55 | 1d69cbf0da9e223b1610bf94d27d8fbf96ce7408 | refs/heads/master | 2020-09-22T01:54:12.486762 | 2019-11-30T12:41:05 | 2019-11-30T12:41:05 | 225,008,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 405 | py | # Generated by Django 2.2.7 on 2019-11-08 16:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('music', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='album',
name='image',
field... | [
"sardor.mukhitdinov98@gmail.com"
] | sardor.mukhitdinov98@gmail.com |
5a86e8439e4dd2f1d28803f2b0512fcc534d073f | eca77bc8d84f6011305e5c19463f3477ce7318fc | /python/tightWenuSelectionVBTFrelPFIsolation_cfi.py | 39cc0026aa8c42345d6ea51aa822eca86ede295c | [] | no_license | cms-analysis/TauAnalysis-Skimming | 140e13a611a017e04c05675aeb02b29bbd11fc9f | 77bf75c5ce9b4232cb6dec1097c6459b5c5270d9 | refs/heads/master | 2020-12-24T14:09:49.225323 | 2013-06-28T20:10:44 | 2013-06-28T20:10:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,050 | py | import FWCore.ParameterSet.Config as cms
import copy
from PhysicsTools.PatAlgos.tools.coreTools import *
from PhysicsTools.PatAlgos.tools.jetTools import *
from PhysicsTools.PatUtils.tools.metUncertaintyTools import runMEtUncertainties
#--------------------------------------------------------------------------------... | [
"sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch"
] | sha1-5c72da6f595cce9b6b48aff6d56f01e9beb4aad1@cern.ch |
24929fa4de6e90da6f4465579ec2ec11a4964780 | 0cf44538d8ae18de4effce86378d44d03c894f53 | /NLP100/08.py | ac2635d771c8f8a46e7b875a553491119a40e95a | [] | no_license | ichimunemasa/Study | f8b882de73567d7dd41227779f8ca1dd43372b63 | ccd6103483a84c9196e20421d71e96ece770cb72 | refs/heads/master | 2020-04-15T14:02:26.149991 | 2016-09-08T03:59:25 | 2016-09-08T03:59:25 | 59,583,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 283 | py | #-*- coding: utf-8 -*-
def cipher(string):
retString = "".join(chr(219-ord(c)) if "a"<=c<="z" else c for c in string)
return retString
if __name__=="__main__":
sentence="Hello, world!"
ciphertext=cipher(sentence)
print(sentence)
print(ciphertext)
print(cipher(ciphertext))
| [
"isshu.mumanesa@gmail.com"
] | isshu.mumanesa@gmail.com |
5e465d0d4e698d15d7f0a5bb851da68800888aa9 | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-5202.py | 4837237ad482a640129ddcb32bd111f766a43dd6 | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,288 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
10e22fdfd1f29330b01da0a09e6fed784e1be70d | 6009d030d328cd081df8a2b7262e5138ffdc51ee | /waifu2x/waifu2x-caffe@lltcggie/upconv_7_photo/symbol.py | 3b610e91707b0f4d1a539405d3a69d691ec4e037 | [] | no_license | DBSOM-X/Super-Resolution-Zoo | dcaa7f63c987e24691100fe833b6f480142bea48 | 041842f177ab4aa59287f8561ec9b3446bd4826c | refs/heads/master | 2022-06-14T05:51:24.716028 | 2019-06-25T02:00:15 | 2019-06-25T02:00:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,187 | py | import mxnet as mx
data = mx.symbol.Variable(name='data')
data = mx.sym.pad(data=data, mode='reflect', pad_width=(0, 0, 0, 0, 7, 7, 7, 7))
conv1_layer = mx.symbol.Convolution(name='conv1_layer', data=data, num_filter=16, pad=(0, 0), kernel=(3,3), stride=(1,1), no_bias=False, dilate=(1, 1), num_group=1, layout='NCHW'... | [
"WolframRhodium@users.noreply.github.com"
] | WolframRhodium@users.noreply.github.com |
5a793b97cdddcd7a408414d3a47b2683e16bea00 | dacae380d3c52ae08e666195ead9366b3a7240fc | /task1/code/problem1.py | 45cdc3257b5ab3c22fe05f722861a3ec9bac27a8 | [] | no_license | wangyu33/UCAS-image-processing-course | a879a50907fdae27f66bd28db5be25144951f075 | a6a8ee17d4e1879c81059c1a56649e6387a9aa89 | refs/heads/master | 2020-12-08T13:32:06.855286 | 2020-01-10T15:54:04 | 2020-01-10T15:54:04 | 232,992,838 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,111 | py | import os
import cv2
import matplotlib.pyplot as plt
import numpy as np
def scanLine4e(f, I, loc):
#f:gray level image
#I -> int loc -> str
if loc == 'row':
return f[I,:]
if loc == 'column':
return f[:,I]
return '参数错误'
def run(filename):
f = cv2.imread(filename, cv2.IM... | [
"1134711093@qq.com"
] | 1134711093@qq.com |
6150575801b07567ca45d414251a7e4ff526a176 | 6a63b4a189ba65822971ba08b018bf4e6123759a | /hunkim-lecture/rnn.py | 0927dab8238731afe9d5b220b45a5a943765da8f | [] | no_license | HyundongHwang/MyMlStudy | f2d941cd8d38417fd8fcae020d7f21a613d4cb3f | 5459639f61c3ab8004900efcd1204a90dd91376f | refs/heads/master | 2021-01-12T02:11:37.087188 | 2018-04-19T13:42:02 | 2018-04-19T13:42:02 | 78,484,938 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 93 | py | import tensorflow as tf
from tensorflow.models.rnn import rnn, rnn_cell
import numpy as numpy | [
"hhd2002@gmail.com"
] | hhd2002@gmail.com |
11fd12954e27d2a0cf6c67fed24d94c229077b0d | 867fe9e56d801d14af1cf13077e246b80cede6a7 | /stoys/spark/dp/dp_result.py | 264c4fa45d19bc7297ef4f24a06befa2ee3e9deb | [
"Apache-2.0"
] | permissive | stoys-io/stoys-python | f3bb0925f875d95909f9944b7438c8d27112653d | c2095ff74152690b1d8ea799c5bc8910a71921fb | refs/heads/main | 2023-08-31T01:17:05.312755 | 2021-10-27T09:27:33 | 2021-10-27T09:27:33 | 420,110,606 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | from typing import Dict, List, Optional
from ...utils.case_class import CaseClassMirror, case_class_mirror
@case_class_mirror("io.stoys.spark.dp.DpPmfBucket")
class DpPmfBucket(CaseClassMirror):
low: float
high: float
count: int
@case_class_mirror("io.stoys.spark.dp.DpItem")
class DpItem(CaseClassMirro... | [
"jendap@gmail.com"
] | jendap@gmail.com |
f253bf0380287d0b75e4c949fe2cf669e820ae24 | 94c7bcc7fa0749ef3890af6dac39341c14f5d259 | /tensorflow/python/eager/tensor_test.py | b044b30231603b0265aa1ef0320e9f1cfb303724 | [
"Apache-2.0"
] | permissive | lgeiger/tensorflow | e75e32cd23a45d29bac1fc10eda23499a66d188a | 1bf9ec7f8545c7aa6fa915c6576a3b984af59ded | refs/heads/master | 2023-08-18T23:16:38.380820 | 2018-04-26T20:47:51 | 2018-04-26T20:47:51 | 127,307,734 | 2 | 1 | Apache-2.0 | 2018-03-29T15:02:37 | 2018-03-29T15:02:36 | null | UTF-8 | Python | false | false | 12,165 | py | # Copyright 2017 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 applica... | [
"gardener@tensorflow.org"
] | gardener@tensorflow.org |
f1ff22df803d0c4e27d17a93539483aaf02c1abd | 60cd30b5c72ec7f6ce3b2d2f6582382c296d64f5 | /src/docker/captum_xil/captum/attr/_utils/batching.py | 95f73d00573182acb849f43cb4b98094a2cb1537 | [
"BSD-3-Clause",
"MIT"
] | permissive | ml-research/NeSyXIL | 5d4ed971f471f73191c1074928524ffd19521630 | 8a8b2a5e2c8ce57ec73d68ca76d4d95a65530cdd | refs/heads/main | 2023-05-31T03:02:34.421669 | 2021-06-22T09:14:35 | 2021-06-22T09:14:35 | 344,822,398 | 27 | 1 | null | null | null | null | UTF-8 | Python | false | false | 6,156 | py | #!/usr/bin/env python3
import typing
from typing import Any, Callable, Dict, Iterator, List, Tuple, Union
import torch
from torch import Tensor, device
from .common import _format_additional_forward_args, _format_input
from .typing import (
TargetType,
TensorOrTupleOfTensorsGeneric,
TupleOrTensorOrBoolGen... | [
"wolf.stammer@gmail.com"
] | wolf.stammer@gmail.com |
d45ad25902bd3e9e3fa1fee12604c394fd94e1bb | 9fc117f03eb6b31754c977569d8cb734ce7e0838 | /game_app_test.py | 0523a3d0b2d7027e2604ad3b5bb8c0e145cbd6d7 | [] | no_license | Kristina970/number_game | dd39fad033fdc60ab4a8c01623a909beb02cd93e | affc406ed17094adc9a8981b7f243d59ddbc529f | refs/heads/master | 2023-02-07T13:22:07.181855 | 2019-07-26T19:02:11 | 2019-07-26T19:02:11 | 196,609,961 | 0 | 2 | null | 2023-02-02T06:37:27 | 2019-07-12T16:18:06 | Python | UTF-8 | Python | false | false | 269 | py | import unittest
from app import app
class TestHealthEndpoint(unittest.TestCase):
def setUp(self):
self.app = app.test_client()
def test_main_page(self):
response = self.app.get('/_health')
self.assertEqual(response.status_code, 200)
| [
"khrystyna.mashchakevych@gmail.com"
] | khrystyna.mashchakevych@gmail.com |
ffcc17620f863bc72cd9ed5d01959bd7b8f7b8b0 | 27a85a93fe67c8712dba8f2dc936d3f473daee0f | /Week 4/Problem_D.py | 93b78b547b32ee8a82fd6a21a39aa86a01aadb67 | [] | no_license | thiaguin/Algorithms | 472f6653631118ca333dd8a5703fece96d203038 | ac51428ae2e6b09e8a205abc69d760846c0e7a39 | refs/heads/master | 2023-01-23T00:01:42.196935 | 2020-12-05T03:27:45 | 2020-12-05T03:27:45 | 292,856,685 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 467 | py | # Title -> Heidi Learns Hashing (Easy)
# Description -> codeforces.com/problemset/problem/1184/A1
import math
n = input()
def getResult(n):
sqrt = int(math.ceil(math.sqrt(n)))
for i in range(1, sqrt):
dividend = n - (i * i) - i - 1
divider = 2 * i
result = float(dividend) / float(di... | [
"jose.thiago.silva@ccc.ufcg.edu.br"
] | jose.thiago.silva@ccc.ufcg.edu.br |
8ff67afb0b28cd776740c8eae4137cf860e8d599 | 498f2cdfd279c13028835b7dcc7d1d4e3b854f4d | /0x0B-python-input_output/9-add_item.py | 459790e8bedd0a07b832a72db522a48d41f01954 | [] | no_license | Cristiand187/holbertonschool-higher_level_programming | bf29d3a9bc6617fe4b51e5fc70c8f4dfc2054da5 | 0e70aaffd89bd0ef353487be227a62b0a8006cea | refs/heads/master | 2022-12-25T11:03:42.877379 | 2020-09-25T04:00:28 | 2020-09-25T04:00:28 | 259,311,171 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 643 | py | #!/usr/bin/python3
"""Module"""
from sys import argv
from pathlib import Path
save_to_json_file = __import__('7-save_to_json_file').save_to_json_file
load_from_json_file = __import__('8-load_from_json_file').load_from_json_file
def add_item(argument):
"""[summary]
Arguments:
argument {[type]} -- [des... | [
"cristiand187@hotmail.com"
] | cristiand187@hotmail.com |
31ddd336e912065ab635606a27461410d2e59bfa | 2562d3a102af3a7e590b28b0d388aaf980edcd97 | /Leetcode/SameTree.py | faf271b08993845978463e91a798b5df5c8201ce | [] | no_license | svidyart/PracticeCode | 16bc3565d4b0cfc383aad144b6fe70310b55840d | 8b03977d606fa4c82039003a3e3e1affd83fb75e | refs/heads/master | 2021-01-19T06:46:45.673755 | 2016-08-09T17:46:48 | 2016-08-09T17:46:48 | 65,315,509 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,061 | py | # Definition for a binary tree node.
# class TreeNode(object):
# def __init__(self, x):
# self.val = x
# self.left = None
# self.right = None
class Solution(object):
def isSameTree(self, p, q):
"""
:type p: TreeNode
:type q: TreeNode
:rtype: bool
... | [
"shreyasvidyarthi@gmail.com"
] | shreyasvidyarthi@gmail.com |
dff8cc56d809d8c84abb02cc259038f50b9df3a3 | 0b09998b42dfb3d0e076a6c46b2d754f646e6123 | /App/UI/UserType.py | 1012dcec5ffa4ecdb6326700dbfe83e08a807d5b | [] | no_license | BackendBoys-ISS/issrepo | 6b75a1de7aadb9aa891c17cabd4072237ebdd98a | 2c92ada314666896e278a4ef49d7be73d205ce21 | refs/heads/master | 2021-03-26T16:21:06.080950 | 2020-06-02T22:04:10 | 2020-06-02T22:04:10 | 247,722,093 | 0 | 0 | null | 2020-05-05T16:14:30 | 2020-03-16T14:22:29 | Python | UTF-8 | Python | false | false | 256 | py | class UserType:
def __init__(self, isOnlyAuthor: bool, isSpeaker: bool, isListener: bool, username: str):
self.isOnlyAuthor = isOnlyAuthor
self.isSpeaker = isSpeaker
self.isListener = isListener
self.username = username
| [
"balinthandrei@gmail.com"
] | balinthandrei@gmail.com |
87ff388116d605759736aa8c0f0378c093a73c0d | e6f9db4cf4913a19f243327329b31485de8da8fe | /GUI/clientRecvCommPage.py | 4a8974b3539cbf234200e3b2d09b3c895ec73179 | [] | no_license | KareemElozeiri/pythonReverseShell | 9c55fbc9e7b63e027dee824ff11cb721cb90d767 | 46f78d2d8052fb5508dbc38e44ab6482caed76d5 | refs/heads/master | 2022-06-10T00:47:23.128829 | 2022-06-01T18:06:52 | 2022-06-01T18:06:52 | 189,889,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,194 | py | from kivy.clock import Clock
from kivy.uix.screenmanager import Screen
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.textinput import TextInput
from kivy.uix.gridlayout import GridLayout
from kivy.core.window import Window
from scrollableLabel import ScrollableLabel
import os
import ... | [
"k.elozeiri@gmail.com"
] | k.elozeiri@gmail.com |
96afd9352f0dbd99372abcdb178f7d1bea36dcbe | 2f22609355aa0f2bf69a26b24fa80d818ecc7cbe | /PYHcsc/pachong/text3.py | cb8449bd6d8d9370fb57f24931ab8879ccd14522 | [] | no_license | mgGummy/PYH | d5c809ca9dfa408fbafd6f03c4fdf2dec5f78de0 | 5dbb367126504d532bca95850261d44a474867e3 | refs/heads/master | 2023-04-21T17:58:31.739241 | 2021-04-20T03:41:19 | 2021-04-20T03:41:19 | 343,682,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #-*- codeing = utf-8 -*-
#@Time : 2021/3/28 10:54
#@Author : cscnb
#@File : text3.py
#@Software : PyCharm
#KFC地点
import requests
if __name__ == '__main__':
url = 'http://www.kfc.com.cn/kfccda/ashx/GetStoreList.ashx?op=keyword'
data = {
'cname':'',
'pid':'',
'keyword': '深圳',
'pag... | [
"74232718+mgGummy@users.noreply.github.com"
] | 74232718+mgGummy@users.noreply.github.com |
41a37ac6032938be9a1bea9a1c62660c9002a43d | 6e27704230e25b2a34d43e4247e7ebd343998a3c | /rando_project/rando_project/settings.py | d32acbc7a62a8552ee319c5aed9c0b6fa504299e | [] | no_license | C432/djangoProjects | 9b3437a49829a9f3c9378be9987fd0f91b3b908c | 81e0826f2f26c22dfe652b8af3460f43a9a233cb | refs/heads/master | 2020-03-11T05:45:05.582509 | 2018-04-16T22:24:46 | 2018-04-16T22:24:46 | 129,811,857 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 3,137 | py | """
Django settings for rando_project project.
Generated by 'django-admin startproject' using Django 1.10.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
impor... | [
"rclewis432@gmail.com"
] | rclewis432@gmail.com |
bb54c000d01fac6c0780980db160d50201e59a2a | 94833ddcca6fbcabdb49a13c7e79df37378265c4 | /exercismdotio/python/etl/etl_test.py | eb9d5e07e3985ce07f49f447886dc8d4bceded8a | [] | no_license | asweigart/blankeditor | adc1a9e4372917c70c968e1ea72b3869112d81a3 | 461189a3e1e7d585b76e031d075fe3802f3aa391 | refs/heads/master | 2023-03-16T22:51:19.220898 | 2017-01-24T04:27:56 | 2017-01-24T04:27:56 | 69,526,062 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 1,343 | py | import unittest
import etl
class TransformTest(unittest.TestCase):
def test_transform_one_value(self):
old = {1: ['WORLD']}
expected = {'world': 1}
self.assertEqual(expected, etl.transform(old))
def test_transform_more_values(self):
old = {1: ['WORLD', 'GSCHOOLERS']}
... | [
"asweigart@gmail.com"
] | asweigart@gmail.com |
fb67ebc3453d08b20826ff1882cc8e5977c08014 | 83f276845d5069712bfd32841b9560bb552e977a | /functions/register.py | 8b879b004ff266d1f80585bb7a38d7a5b3360694 | [] | no_license | ydishxjehzkudid/tg-botnet | 16d31ce39cabe3c91016a590c26d4d13c36f7e0c | 6bfd858924ab24aedbe0625afa8254912851ac76 | refs/heads/main | 2023-07-28T23:29:08.044055 | 2021-09-11T15:22:05 | 2021-09-11T15:22:05 | 405,234,320 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 433 | py | from telethon.sync import TelegramClient
import os, sys
def main(api_id, api_hash):
phone = input("phone number ➜ ")
session = str(len(os.listdir("sessions")) + 1)
client = TelegramClient(session,
api_id, api_hash)
print("Sending verify code...")
client.sign_in(phone)
code = input("verify c... | [
"noreply@github.com"
] | ydishxjehzkudid.noreply@github.com |
ef883e6bac67ab38649f0173426af4fe3e11d8a8 | 17bac9555fa83a4ca2f592a11096d7fecc3ec61f | /OSMKerasEnsemble.py | 531cc70567f5f5c4e769eb458f6ecb3af04098b2 | [
"MIT"
] | permissive | kellerberrin/OSM-QSAR | 84f2be9bb22a5fa5e4970e84860af4673d00cb1c | 3cdc411ee3f9a3cea178898171e0a57fb5282e40 | refs/heads/master | 2021-01-19T21:28:48.561869 | 2017-06-03T07:06:21 | 2017-06-03T07:06:21 | 82,504,529 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,244 | py | # MIT License
#
# Copyright (c) 2017
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, di... | [
"james.duncan.mcculloch@gmail.com"
] | james.duncan.mcculloch@gmail.com |
7418f34731694107c8a9a766757898df186dc261 | 98b76260f5c31563aa40e76c412be514c1844fc2 | /fHDHR_web/api/settings.py | a4fcf1972588de1780c041f6de66faceafd4cbb7 | [
"WTFPL"
] | permissive | DanAustinGH/fHDHR_Locast | cb54b235200a6123213853a133d6231df3b3a1ea | 002117b666ad650c523aedb0209f1c996d576169 | refs/heads/main | 2023-02-15T20:27:21.141592 | 2021-01-05T19:09:35 | 2021-01-05T19:09:35 | 327,135,296 | 0 | 0 | WTFPL | 2021-01-05T22:28:13 | 2021-01-05T22:28:13 | null | UTF-8 | Python | false | false | 1,386 | py | from flask import request, redirect
import urllib.parse
class Settings():
endpoints = ["/api/settings"]
endpoint_name = "api_settings"
endpoint_methods = ["GET", "POST"]
def __init__(self, fhdhr):
self.fhdhr = fhdhr
def __call__(self, *args):
return self.get(*args)
def get(s... | [
"github@deathbybandaid.net"
] | github@deathbybandaid.net |
ed61c1f0260aa76c5c67b5bcc7a0bef382d999d1 | b8686c3276a22a773135dfabcb775dace1b32d17 | /beanMachSim2.py | 3f4d1f7383f03667b2f363e0c8ef10f258c9a967 | [] | no_license | jacobmorra/beanMachSim | cd91d309cd939d4505612a768b9ed3d4b1f8f821 | ced86eb2479416d05515bbfbafa7d5fcf730f7b7 | refs/heads/master | 2020-04-06T04:42:05.457399 | 2017-04-23T00:47:05 | 2017-04-23T00:47:05 | 82,877,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,700 | py | import random as r
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
#have n bins, n-1 pins at bottom row, then n-2, n-3...
class beanMachSim():
def __init__(self, numBalls):
self.numBalls = numBalls
self.numRows = 20
self.numBins = self.numRows+1
... | [
"jacob.morra@uoit.net"
] | jacob.morra@uoit.net |
4b32c70f537ca7f7af7b6fe05cd69ef92cd2fe9e | 6c747d71555eed0f50c04614950dbca327323f15 | /settings.py | e2d379f06be86811cd1d1df3bc38be93f5031e95 | [] | no_license | blarneyosullivan/flask_blog | f8974c23a7d6e057cd633565634a4ed372640e6b | 526f3f028ddeb6b4a4ea837f462c7fa8f21dd6b0 | refs/heads/master | 2021-01-17T10:30:47.362030 | 2016-06-14T11:20:50 | 2016-06-14T11:20:50 | 57,325,181 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | import os
SECRET_KEY = "-\x85\x99Q5\x89\xe7@\x06\xd3\xa6=G\xcf k\xce6'\x16\xd6\xbb\xe6q"
DEBUG = True
DB_USERNAME = 'blarneyosullivan'
DB_PASSWORD = ''
BLOG_DATABASE_NAME = 'blog'
DB_HOST = os.getenv('IP','0.0.0.0')
DB_URI = "mysql+pymysql://%s:%s@%s/%s" % (DB_USERNAME, DB_PASSWORD, DB_HOST, BLOG_DATABASE_NAME)
SQLALC... | [
"blarneyosullivanbloggs@gmail.com"
] | blarneyosullivanbloggs@gmail.com |
e114ba8f5c50330232bf96fade678a11abb13e91 | 1178f1445ab0be78a1ff1865ef57d8af1b8c0e56 | /LearnDistance/refactored/old_files/testTensorBoard.py | 666cf1b9814bbaa04eb56c6b9dc1bd6cdc3d23b9 | [] | no_license | GiannisGl/MasterThesis | 2e22eae9389436a910f8af8d5787baf54e7f35e8 | 9af4c2976c4dd645ecb61fa0938e9fb7979b2888 | refs/heads/master | 2021-04-09T15:02:04.603535 | 2019-01-02T00:29:12 | 2019-01-02T00:29:12 | 125,541,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,429 | py | import torch
import torchvision
import torchvision.transforms as transforms
from tensorboardX import SummaryWriter
from featuresModel import featsLenetFix, featsLenetFull, featsAE
from helperFunctions import *
import sys
sys.path.insert(0, '../../trainModels')
trainstep = 3
delta = 5
lamda = 1
Nsamples = 1000
nAug = ... | [
"ioannis.glampedakis@students.unibe.ch"
] | ioannis.glampedakis@students.unibe.ch |
cc80b8774b1bc6cf8f038f4f1585bb89f36e1c8c | b7fe5aefc01f45170d2cfc2f4c3ca2c14c2778dd | /csgo-ui-cv/src/initJson.py | 114f61d29aec7bc46ce466699245d6ce7783b314 | [] | no_license | mortenoj/deep-learning-project | ed2a0996682762b6d12b7bf922c32c6de4dd1832 | 402e1af3dbb9b1e89d4fc3607b0cf9818f81a13d | refs/heads/master | 2023-04-13T20:30:49.580820 | 2019-11-23T14:34:16 | 2019-11-23T14:34:16 | 218,812,195 | 0 | 0 | null | 2023-03-25T00:07:51 | 2019-10-31T16:36:48 | Python | UTF-8 | Python | false | false | 354 | py | import glob
import json
data = []
for file in glob.glob("icons/*.png"):
if "_dark" in file:
continue
name = file.replace("icons/", "").replace(".png", "")
data.append({
'name': name,
'path': file,
'type': '',
'cost': 0,
})
with open('data.json', 'w') as outfi... | [
"morten@omholt-jensen.com"
] | morten@omholt-jensen.com |
8f1f674218ed67a9453406ca5cdeede7c1220ca6 | 3dab3662af42f6b33f8e16724949261129ed8f8f | /Python/task43.py | ace6bfafc0db962c945230240c03343f6fcfe5a6 | [] | no_license | kikiwongweb/kikiwongweb.github.io | 81f7d922c9e9dc1464688362de448f055fe9b729 | dbb0b55f47d26a4747ce9aa9049777c8ddd275d7 | refs/heads/master | 2023-09-02T19:24:48.413096 | 2023-08-25T08:21:21 | 2023-08-25T08:21:21 | 202,672,757 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 66 | py | thistuple = ["scone ", "cupcake", "muffins"]
print(thistuple[1])
| [
"wkiyuet@gmail.com"
] | wkiyuet@gmail.com |
a787047bff0c334d700d0bb2702386844d93b971 | a4646f7f0204aadbb57be000825f22c545c0ca18 | /groups_service/db.py | 9c235da95555e935a4f4b996e16ecbe9e17fad41 | [] | no_license | lv-412-python/groups-service-repo | 7d883d9d43c8585d4660cb6819ce5526ab17d031 | c5c9a8f0f33e87ad95555e0340ce02086c471fd0 | refs/heads/develop | 2022-12-10T11:00:35.022035 | 2019-08-15T11:59:44 | 2019-08-15T11:59:44 | 192,919,017 | 0 | 0 | null | 2022-12-08T05:53:21 | 2019-06-20T12:49:27 | Python | UTF-8 | Python | false | false | 290 | py | """Database connection."""
from flask_migrate import Migrate
from flask_sqlalchemy import SQLAlchemy
from groups_service import APP
from groups_service.config.dev_config import DevelopmentConfig
APP.config.from_object(DevelopmentConfig)
DB = SQLAlchemy(APP)
MIGRATE = Migrate(APP, DB)
| [
"hydh95@gmail.com"
] | hydh95@gmail.com |
69fd4e746a10a6f382f1d36d5fc74e9be78fe04b | cd9c3bfe77cb1673746345522acc77ec990242fc | /composite.py | b85e06f25246e5e1d2d1ce9406c576f21a1675e4 | [] | no_license | tjuls123/DesignPattern | 18b7bbab1bb086019a1c69f87690e98912e3a585 | 08bf6210d68b4115fe8d575eae9e023d1f4f33da | refs/heads/master | 2022-09-22T02:21:48.607400 | 2020-05-28T13:38:17 | 2020-05-28T13:38:17 | 259,825,527 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | # -*- coding:utf-8 -*-
# Author: lsn5884@corp.netease.com
# Date : 2020/5/26
# Note : 组合模式
"""
将对象组合成树形结构以表示‘部分-整体’的层次结构,Composite使得用户对单个对象和组合对象的使用具有一致性
Composite模式的关键是一个抽象类,它既可以表示基本图元,也可以表示图元的容器
参与者:
Component
为组合中的对象申明接口
在适当的情况下,实现所有类共有接口的缺省行为
申明一个接口用于管理子组件
Leaf:
表示叶子节点,定义图元的行为
Composite:
管理子组件
"""
class Com... | [
"tjuls163@163.com"
] | tjuls163@163.com |
dafc7a05ccff7145ce835329a4d70a8c20a5a1b0 | 377d86194fd6d23c8ef3df3e6f7d90092dd8f9b4 | /workout_tracker/core/views.py | 6d2e25e1e49080b2d8ec1710997bbc07a3957c4b | [
"MIT"
] | permissive | e-dang/Workout-Tracker | f20f44b012e895244bad413a46103415ffae5732 | 00a27597ea628cff62b320d616f56b2df4f344a0 | refs/heads/master | 2022-12-28T07:49:34.179307 | 2020-10-12T20:48:28 | 2020-10-12T20:48:28 | 293,937,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | from rest_framework.viewsets import GenericViewSet
from rest_framework import mixins
class ListRetrieveUpdateDestroyViewSet(mixins.ListModelMixin,
mixins.RetrieveModelMixin,
mixins.UpdateModelMixin,
mi... | [
"edang830@gmail.com"
] | edang830@gmail.com |
5d68b25c00bf45fe30b2bb744c6a85ac95b2bf0d | 8ac1b76e4e8f3d74800d0b8cd5b9e452150daac3 | /gaffer/cli/commands/lookup_jobs.py | 272b21af62ddb94eea500a48073ac4637e096fb4 | [
"MIT",
"LicenseRef-scancode-public-domain",
"LicenseRef-scancode-unknown-license-reference",
"Unlicense",
"BSD-3-Clause"
] | permissive | david-caro/gaffer | a721f2306554e93712b71502909d5fe56327ae3d | f69adfd5f674cecd2bcd95bc7917f4aa77a5a89d | refs/heads/master | 2023-08-19T10:57:51.431467 | 2013-10-19T12:49:16 | 2013-10-19T12:49:16 | 17,575,380 | 0 | 0 | NOASSERTION | 2023-08-14T21:35:19 | 2014-03-09T22:31:28 | Python | UTF-8 | Python | false | false | 1,605 | py | # -*- coding: utf-8 -
#
# This file is part of gaffer. See the NOTICE for more information.
from ...lookupd.client import LookupServer
from .base import Command
import pyuv
class LookupJobs(Command):
"""
usage: gaffer lookup:jobs (-L ADDR|--lookupd-address=ADDR)...
-h, --help
-L ADDR --lookupd-a... | [
"bchesneau@gmail.com"
] | bchesneau@gmail.com |
924428b72cc88b244685fd2e7a2944bde27fc0f8 | fbfde86616755a99f37812112342469a5da8930a | /learning_users/basic_app/migrations/0001_initial.py | 7fc9b6ce0de26b0de0b5c64036bf0d5456e686a0 | [] | no_license | Denisijcu/django-deployment-example | e23d517736e5959fb9a7982046896d0f7c1c2b3e | 14a140b21d7200e4f208a50b0f2b33ed3d219baa | refs/heads/master | 2020-03-07T06:10:26.361924 | 2018-03-29T16:20:00 | 2018-03-29T16:20:00 | 127,314,803 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | # Generated by Django 2.0.2 on 2018-03-29 13:07
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
ope... | [
"dsanchez@armellini.com"
] | dsanchez@armellini.com |
93119f66d54d058edd970d86595e73eedffac4ac | 8ea98c14a7097448e56d0256458a9b944176e73d | /was-projekti/lib/python3.7/importlib/_bootstrap.py | a3af0e6ece96b214f142d5c06e9a82662e732e1c | [] | no_license | ronttonen/was_ryhma_tyo | 03e5719be27cc72de41e8f9e1e7e50a3db301ffe | 4a3f874aacc2426d8927fb14b64e9d23d6618889 | refs/heads/master | 2020-04-30T01:53:36.666710 | 2019-03-26T18:23:40 | 2019-03-26T18:23:40 | 176,542,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 64 | py | /Users/roni.ahti/anaconda3/lib/python3.7/importlib/_bootstrap.py | [
"roni.ahti@quru.fi"
] | roni.ahti@quru.fi |
864e386240e97b5099dbc6a37b8d6b74b8c64332 | 1ac57ac40a64f1a2f81d913d3c3d0b563dfb7d14 | /src/synchronization.py | d8cf425aa84aafff0fee78073ccfd5d1d243e1d3 | [] | no_license | krupatomasz/dtn-sync | 20a92caf93cbfff5e30f28118496e170d7858f6f | 89d1c468876f42a69a73343c9547674f5d7f8e59 | refs/heads/master | 2020-06-19T08:21:00.020338 | 2019-06-22T17:02:09 | 2019-06-22T17:02:09 | 196,635,952 | 0 | 0 | null | 2019-07-12T19:39:52 | 2019-07-12T19:39:52 | null | UTF-8 | Python | false | false | 453 | py | import communication
class UpdateMetric:
LONGEST_CHAIN = 1
NEWEST = 2
class SyncWorker:
def __init__(self, path, conflict_resolution_callback, update_metric=UpdateMetric.LONGEST_CHAIN):
self.conflict_resolution_callback = conflict_resolution_callback
self.update_metric = update_metric
... | [
"chorig9@gmail.com"
] | chorig9@gmail.com |
ca4b8206a1c14bb172cf7b8b72f33bc51eec827c | 4f9335717b02c4d3dc697ff051d34455be45a9d1 | /pytorch_codes/casnet2_mixed_alldirs/dataload_unet_mixed.py | 0279d340e3b9d912af0ca701e599a145be2b1436 | [] | no_license | sunhongfu/scripts | 7df6bf7eb922a58fba2cdef187ac2d5bb19f8357 | 6d0239e05cea73d9413acca1bd4ecdcc22d00404 | refs/heads/master | 2022-12-11T01:05:06.209578 | 2022-12-07T04:28:26 | 2022-12-07T04:28:26 | 63,374,060 | 4 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,098 | py | import numpy as np
import nibabel as nib
import torch
from torch.utils import data
import torch.nn.functional as F
class yangDataSet(data.Dataset):
def __init__(self, root, z_prjs_file):
super(yangDataSet, self).__init__()
self.root = root
# self.list_path = list_path
self.z_prjs_... | [
"sunhongfu@gmail.com"
] | sunhongfu@gmail.com |
4fa2247e444d092bd39cc8151730fac832136ec1 | 08cc2f0b3b87979460e2a63f0986beb418ba7747 | /pursuite/bin/route53 | 4ef01015d473f339315e3295f8e617f0c84fb896 | [] | no_license | yagna-tech/Staging-WFIMS-1 | 31d4c5323f80e2b334136b76d50a4db75faf0045 | ac53d1ddafb987404570edb7a15d6db5daa2e3da | refs/heads/master | 2016-08-03T08:49:04.120781 | 2015-04-15T08:06:17 | 2015-04-15T08:06:17 | 33,035,575 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | #!/opt/pursuite/bin/python
# EASY-INSTALL-SCRIPT: 'boto==2.27.0','route53'
__requires__ = 'boto==2.27.0'
import pkg_resources
pkg_resources.run_script('boto==2.27.0', 'route53')
| [
"lakshmi@yagna-tech.com"
] | lakshmi@yagna-tech.com | |
19eee7c510ffba8cd43392beb70aee1fdf596626 | 0a7d60f0f79fa6d00b3d99e42f4eb5bd84b5d147 | /teuthology/test/test_get_distro_version.py | e93b9b62a67aaf02a8d02ac4d2eeb9ca08696a09 | [] | no_license | yehudasa/teuthology | 792bfdc8078be2e983b2fdf9d1b6744e92d99a92 | 59ee17dc1944d35966693369edff785c5e73dc1d | refs/heads/master | 2021-01-15T20:57:11.704086 | 2014-05-30T14:59:36 | 2014-05-30T14:59:36 | 20,341,792 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,827 | py | from .. import misc as teuthology
class Mock: pass
class TestGetDistroVersion(object):
def setup(self):
self.fake_ctx = Mock()
self.fake_ctx.config = {}
self.fake_ctx_noarg = Mock()
self.fake_ctx_noarg.config = {}
self.fake_ctx_noarg.os_version = None
def test_default... | [
"sandon@inktank.com"
] | sandon@inktank.com |
7a6f1f9e78fc429569f97ddd2f0b02cafd7439af | 41073cb6cb646503113db91a96d6a8db818ea409 | /dir/management/commands/enforce_language_association.py | a264a2c9b8217167329c84be19689c3d694abad4 | [] | no_license | Xangis/wbsrch | 824a881e6455ac9e552c7826f414d4b8701bcc3d | f95fb65e54fce29e9d2157f66ce79c7f4da91639 | refs/heads/master | 2023-06-28T23:53:06.365752 | 2021-07-26T18:43:27 | 2021-07-26T18:43:27 | 52,846,758 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,666 | py | # -*- coding: utf-8 -*-
from django.core.management.base import BaseCommand
from dir.models import DomainInfo, language_list, SiteInfo
from dir.utils import MoveSiteTo, GetSiteInfoModelFromLanguage
class Command(BaseCommand):
help = """
This command enforces language associations on all URLs in the database.
... | [
"jchampion@zetacentauri.com"
] | jchampion@zetacentauri.com |
fe2805328e8c5860ae723a28a58e36986c45e932 | 38a7290136587c5fb6e1b8dec73df21c646bd301 | /realCaraway/caraway/login/migrations/0021_auto_20180331_0635.py | 10023a9717e18952904ea80fe4acd8bc352fc543 | [
"MIT"
] | permissive | Arkham32/cmpt395 | 2447b1b3c27d6591f809bd848e685a62a461b207 | d526ddf7a253ada94ba9682c009d33e45f7b5a90 | refs/heads/master | 2020-05-01T01:27:38.569285 | 2018-04-11T01:51:52 | 2018-04-11T01:51:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 451 | py | # Generated by Django 2.0.2 on 2018-03-31 06:35
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('login', '0020_auto_20180331_0631'),
]
operations = [
migrations.RemoveField(
model_name='parentcreation',
name='last_login',... | [
"asifr@mymacewan.ca"
] | asifr@mymacewan.ca |
1c57565fe8552e752679d220837557441e8c8dbb | 9307372654241cd7235132cb2b8153e5e7557ebd | /track/migrations/0007_auto_20210614_1644.py | e699f25d84bb03b7a9a0863a649f7834129585aa | [] | no_license | rohan-130/fitness-stats | faa87d018459b8f47f3aa6a27e8d385469aa61a4 | 06a63091d8359e2e56645e9290a47d2e33d31359 | refs/heads/master | 2023-06-15T22:24:22.390308 | 2021-07-13T08:28:50 | 2021-07-13T08:28:50 | 382,362,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,344 | py | # Generated by Django 3.1.6 on 2021-06-14 11:14
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('track', '0006_auto_20210614_1629'),
]
operations = [
migrations.AlterField(
model_name='plans',
name='fri',
... | [
"rohanmodi@outlook.in"
] | rohanmodi@outlook.in |
32c0b78505d9c4f93b6dbf211d52a7080cc44a51 | 1d3bcd3d8b2d9584792f67d5372bd61eff94d6fc | /superlists/superlists/settings.py | 465c3b9b6a045e4876ada099b4470ded7f41dd1b | [] | no_license | goutham2027/pytdd | e4f37f151f98cb15eef71469dfb6f4da53c2ab1e | 168be74af7ed1613aa3be9d774abb44f05639d8b | refs/heads/master | 2021-01-13T12:44:42.980052 | 2016-11-02T11:15:18 | 2016-11-02T11:15:18 | 72,527,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,108 | py | """
Django settings for superlists project.
Generated by 'django-admin startproject' using Django 1.10.2.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/
"""
import... | [
"goutham2027@gmail.com"
] | goutham2027@gmail.com |
31ee53755adac2a4f3f31998539b3588933a1b62 | edc7d4acbc4cc3851422be34a60e7eaaf403f34d | /society/migrations/0002_recharge.py | dcda0b9e79801f13ce0ffa64e2ff6bec933b0d34 | [] | no_license | CHENLiangxu/badminton-society | 869bddfa971a98c1c9d8f749fc632435b88ca99d | b735c06fdbafb6ad53ffddab4b5ae1c5f03f73f7 | refs/heads/master | 2016-09-01T03:44:41.565268 | 2016-02-26T14:51:41 | 2016-02-26T14:51:41 | 50,294,662 | 0 | 1 | null | 2016-02-26T14:11:27 | 2016-01-24T15:48:06 | JavaScript | UTF-8 | Python | false | false | 779 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('society', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Recharge',
fields=[
... | [
"chenliangxu68@gmail.com"
] | chenliangxu68@gmail.com |
014f5f97fdc07633f6db5a4021c23e1b80753136 | 91227a62ed0f36fe82f7a66ca76e686694ba2926 | /python/file.py | 0adffdba56482629ffe3e8159c60621a6e5b9f7a | [] | no_license | TY-sky/NOTE | 48cf74df0ca786859e23d85d6a90662f5a983040 | 1b505fe0a5b659024277c2da8630b6cf62542ac2 | refs/heads/master | 2021-08-22T06:50:02.114077 | 2020-03-19T15:09:07 | 2020-03-19T15:09:07 | 135,244,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 231 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
' a test module '
__author__ = 'TY'
fpath = r'C:\py\test.ini'
with open(fpath, 'a') as f:
f.write('Hello, world!')
with open(fpath, 'r') as f:
s = f.read()
print(s) | [
"986181043@qq.com"
] | 986181043@qq.com |
d2e0741b18952a435edfa1fa4ec20a5d9c97fc37 | 3bdd3312d4f26ed050222b38491c2091774c9ccc | /system/firstpart/urls.py | f86f1cd187bcb39be6b27bbf1fb49729444eb836 | [] | no_license | vanesa1999/pythonProject16 | f67a5026dfaf457a5c1298cb4917488786ef5a10 | efe603f2a4100172b3cc654c54aefa2a6ed3dddd | refs/heads/master | 2023-04-12T21:32:33.284936 | 2021-05-10T09:21:20 | 2021-05-10T09:21:20 | 365,985,525 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | from django.db import models
from django.contrib.auth.models import User
Pozicionet= ['HR', 'Pergjegjes Departamenti', 'Punonjes Departamenti']
Gjinia= ['Femer', 'MAshkull']
Status= ['Aktiv', 'Joaktiv']
class Punonjes(models.Model):
username= models.OneToOneField(User, null= True, on_delete=models.SET_NULL )
e... | [
"vanesa.ziu@fti.edu.al"
] | vanesa.ziu@fti.edu.al |
b3e42e5c8c45508dae29b2dcbc3b119b8eb9ed1f | a6d7f53090958b9bf0f4f0790522f409394f2651 | /Mazzei/grammar.py | aab5a2628c539d23df1b7e5d32c3d310f3ce8c45 | [] | no_license | Pep12345/TLN | 31498035e815138d258941800f4daed54baba866 | 6b609182a6454100c75cad9d3033f3d7f1f0e79d | refs/heads/master | 2023-08-22T23:26:25.292103 | 2021-10-28T12:44:18 | 2021-10-28T12:44:18 | 376,309,747 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,403 | py | import os
from collections import defaultdict
class Grammar:
lexical_rules = defaultdict(set)
syn_rules = defaultdict(set)
def __init__(self, text_file):
dir = os.path.dirname(os.path.abspath(__file__))
with open(dir + '/' + text_file, "r") as cfg:
while cfg:
... | [
"giuv360@hotmail.it"
] | giuv360@hotmail.it |
f7c60adba3d30aed5acc0243f3a4bef6f0d7648f | e80b42fbc5f109f3979537a980eb4ea12668579e | /modules/process/popen_write.py | e1b49c189535d593455ad0b476331bf14a19ce09 | [] | no_license | iliefa/pythontries | 63bc38042797a47407a0e99a0c20816a8710027b | 7ee793c6a248bc98da495d5936290c476bf4d77c | refs/heads/master | 2020-11-25T11:13:46.212549 | 2019-12-18T11:56:08 | 2019-12-18T11:56:08 | 228,633,223 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | import subprocess
print('write')
proc = subprocess.Popen(
['cat','-'],
stdin=subprocess.PIPE,
)
proc.communicate('stdin: to sdtin'.encode('utf-8'))
| [
"andrei.ilief@orange.com"
] | andrei.ilief@orange.com |
213c7dd3cb92010cf3a3b96e688a8d02dae66651 | 3e0341c10981b49d15c3fb458f63de59357a821b | /venv/bin/sqlformat | 2a8b330f546a7b10d3c591e83eca7feae447af9f | [] | no_license | sagarsmn331/meon-task3 | 555f0562c036693b8e728946e01e213d1e3bdf8a | 18c2e8389ee8d2bbbe18e506ccbb6d003c4ed2cf | refs/heads/master | 2022-12-02T11:54:03.125091 | 2020-08-18T11:28:35 | 2020-08-18T11:28:35 | 288,436,935 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 234 | #!/home/sagar/meon5/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from sqlparse.__main__ import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"sagar.innotical@gmail.com"
] | sagar.innotical@gmail.com | |
4f3699246dd66e71b0d500dd92e454bfe9a81cce | 27cb6f34181ab317531a592036505105b43f5871 | /PGL/scripts/graphs/nvidia_4_2_MatVecMul_MatVecMulCoalesced1.py | ed669c572c05dc4b18a3ac986d9066ccda8e65ec | [] | no_license | xiaoyao0512/PGL_v2 | 0a0b70d807ea6b5b40430f438e3f8431846a2009 | 605cd88813c8ec805bdb44a0aa3739d850cf3116 | refs/heads/master | 2023-07-15T23:47:43.959936 | 2021-08-13T03:27:02 | 2021-08-13T03:27:02 | 392,099,888 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 38,984 | py | import networkx as nx
import dgl
def nvidia_4_2_MatVecMul_MatVecMulCoalesced1():
NXG = nx.DiGraph()
NXG.add_edge(186, 200, weight=1)
NXG.add_node(186, w=1)
NXG.add_node(200, w=1)
NXG.add_edge(137, 139, weight=1)
NXG.add_node(137, w=1)
NXG.add_node(139, w=1)
NXG.add_edge(56, 57, weight=1)
NXG.add_node(56, w=1)
... | [
"xiaoyao@usc.edu"
] | xiaoyao@usc.edu |
4c7f830389c9108013b3b1e13872322bea7f2a1a | dd887dc97be27c140891205ad2fabe78ab725d59 | /run_tests.py | 41ec83601518010e56d4d679a5dadb7f5a9cf8e9 | [] | no_license | angelhof/edsger_compiler | b5be2cc00ff60cd6ca81ff9a47439d527dc027be | 4b063f6693d21bbed2c06ff7a58c2457239f12e1 | refs/heads/master | 2021-01-19T12:15:43.953628 | 2017-09-27T08:53:58 | 2017-09-27T08:53:58 | 84,454,187 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,971 | py | #!/usr/bin/env python
import os
import sys
import difflib
old_way = False
if(not len(sys.argv) == 2):
print "Usage: python run_tests.py <file_with_test_names>"
exit(1)
try:
test_files = open(sys.argv[1])
except:
print "File with name: " + sys.argv[1] + " doesn't exist!!"
exit(1)
correct = 0
total_tests = 0
f... | [
"konstantinos.kallas@hotmail.com"
] | konstantinos.kallas@hotmail.com |
ad51ec45498d2d45376a45f8d7eb8760d66fb9cc | 13b64d337210fe93d367ce102375baaba768deeb | /Test5/__init__.py | 5858657ab37c81080becce3f0d6b7d0f9d3404a3 | [] | no_license | GummiRichy/NHS-Gashapon | 91a3d8a744b682bb9f9bdcd1addc3d6a22f45bec | bbd98f4f939aed4ff1d0467f60b48d2ba56f2666 | refs/heads/main | 2023-02-26T14:29:25.113583 | 2021-02-03T21:28:42 | 2021-02-03T21:28:42 | 334,280,678 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,746 | py |
from flask import Flask, request, send_from_directory, render_template, jsonify, make_response
import os
from hashlib import sha256
import json
from random import random
import requests
app = Flask(__name__)
prizes = ("Chocolate", "Strawberry Starburst", "Cherry Starburst", "Orange Starburst", "Lemon Starburst")
pro... | [
"noreply@github.com"
] | GummiRichy.noreply@github.com |
b3c030f1768dcfc0cd596fb8f8ba97bdcca9e738 | a3ae31031057f807079880486dc79a816ad864c4 | /jpg2bmp/jpg2bmp.py | 3893a54a63f7dc66e85213e498533ace69633eee | [] | no_license | kyumdbot/Slides-TFT_TouchShield | 3325de4a2ad663ddd613fa697e6893a55fce4990 | 5995d3d9301e6b77f5dcf8b60c1def07f1270ae2 | refs/heads/master | 2020-04-23T02:06:33.325658 | 2019-02-18T03:55:11 | 2019-02-18T03:55:11 | 170,835,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py |
from PIL import Image
names = ["launch", "001", "002", "003", "004", "005", "006"]
for name in names:
im = Image.open(name + ".jpg").convert("RGB")
im.save(name + ".bmp")
print("output: " + name + ".bmp")
print("Done!")
| [
"kyumd001@gmail.com"
] | kyumd001@gmail.com |
3602ba7107adda3c0f8537ccf5391aca5a28d5da | 2dcd80d3255266a45ad788017e1e4684e9ce66ca | /ClickToEat/migrations/0011_auto_20211011_1322.py | cd0782e6550b2db162c0683c8f62cf2723920f2e | [
"MIT"
] | permissive | Lylissa/DeliveryService | 6fa5bd46fce04621e4233607e4044a9312e3207b | 06ad6ed701bad0e309720726b1d16183a322418d | refs/heads/master | 2023-09-03T12:20:58.573472 | 2021-10-27T10:09:39 | 2021-10-27T10:09:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # Generated by Django 3.0.5 on 2021-10-11 05:22
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ClickToEat', '0010_auto_20211003_1048'),
]
operations = [
migrations.RenameField(
model_name='client',
old_name='client_id',... | [
"orcullomaryalissa@gmail.com"
] | orcullomaryalissa@gmail.com |
af67735fcedaaa10f128901f872b2e2215dc3f1e | c2a74d1b2d21fb22bd1ad00a3b3816966b7c8368 | /data/process_data_orig.py | 9acf6d0afab8b49ddb92e3251129641ac8959930 | [] | no_license | pragmaticDataminer/Disaster-Response-Pipelines | 2c90b2758e065e9faac5aae8ee9197e2718eed47 | 166d2673061edacf07d56013f22f3ac069bba298 | refs/heads/master | 2022-10-06T14:31:59.427964 | 2022-09-28T07:15:15 | 2022-09-28T07:15:15 | 211,233,237 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py |
import sys
def load_data(messages_filepath, categories_filepath):
pass
def clean_data(df):
pass
def save_data(df, database_filename):
pass
def main():
if len(sys.argv) == 4:
messages_filepath, categories_filepath, database_filepath = sys.argv[1:]
print('Loading data...\n ... | [
"kusumsanand@gmail.com"
] | kusumsanand@gmail.com |
75dcf7551adb829e158ce95752a5a604d343bd7b | 1785ce8f49b0a253a2980d37676c62dbb4955d23 | /Med/maxMinMode.py | 3221580d91fa8e61057687df9dfc4895445e94a1 | [] | no_license | BassP97/CTCI | 29aca0913f39fc24c281f9cffb255a8e4c2f0472 | 6ca635efd0cacb56e7a117f6636b6126ddc8ea5b | refs/heads/master | 2023-04-08T17:25:58.853342 | 2021-04-17T22:25:20 | 2021-04-17T22:25:20 | 185,297,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,088 | py | """
You decide to test if your oddly-mathematical heating company is fulfilling its
All-Time Max, Min, Mean and Mode Temperature Guarantee™.
Write a class TempTracker with these methods:
insert()—records a new temperature
get_max()—returns the highest temp we've seen so far
get_min()—returns the lowest t... | [
"bass_p1@denison.edu"
] | bass_p1@denison.edu |
5bf7a4fe55374f3b262a1fdaa91c5b8693114712 | c8809d9f6738decb8033776d27286724743a2cab | /language/python/common_module/src/main_muti_process.py | 473a95b712d44cfc2168f79fe0f6bd1137aa7808 | [] | no_license | lansedefen/research | 8e4d46dfb761575418f21c83f2953cb00a9c96e3 | 3f27007a7cd468d08f6c4c271fc7b09b7ddf2f28 | refs/heads/master | 2021-07-10T19:40:32.973719 | 2019-01-19T02:17:52 | 2019-01-19T02:17:52 | 115,091,316 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,041 | py | # -*- coding: utf-8 -*-
from multiprocessing import Pool, Lock
from time import clock
import requests
from create_logger import logger
import extract_weibo
def mycallback(x):
with open('../data/data.txt', 'a+') as f:
f.writelines(str(x) + "\n")
def with_lock(text):
lock.acquire()
with open('req... | [
"920317005@qq.com"
] | 920317005@qq.com |
f63f670154cf8114b2a73ebb6e41031faea6b893 | f830d7bbd71fcefea6dc01ab17bd54abe626c272 | /tasks/auth0/utils.py | 341a4b8ebc5d672827e9e195a421b1ebcd7b8f32 | [] | no_license | feedyard/baseline-aws-auth-idp | bc001c023680aaad20334fdbf08ad9d8d12e0abc | 384bd8f68910691dd4ded5ffb336ea001a39945e | refs/heads/master | 2020-04-21T00:57:41.234319 | 2019-06-20T21:40:48 | 2019-06-20T21:40:48 | 169,210,282 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,257 | py | import json
import urllib.request
from functools import reduce
from copy import copy
from auth0.v3.authentication import GetToken
from auth0.v3.management import Auth0
import pkg_resources
resource_package = __name__
def setup_auth0(config):
"""configure auth0-github as the identity provider for the master OU acco... | [
"nchenewe@thoughtworks.com"
] | nchenewe@thoughtworks.com |
89b0c5be4957f6628700adfcd85a2697e9d3a3d2 | fc59ba97df7d6ff6367f2f951f791e674d16b415 | /frontendshop/migrations/0003_auto_20200120_1705.py | 4241262316a889178ce97460fb86fef1bb93e6ac | [] | no_license | Ran-oops/mywebsPrograme | e493853d522e3df6d3d410e4384dc80dd9aba189 | 438973e90dc72433b85e9a428b1b402d1a8b4f41 | refs/heads/master | 2020-12-13T15:51:13.883472 | 2020-02-01T14:46:21 | 2020-02-01T14:46:21 | 234,462,993 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,312 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('frontendshop', '0002_auto_20200105_1324'),
]
operations = [
migrations.CreateModel(
name='GoodsInfo',
... | [
"3460466167@qq.com"
] | 3460466167@qq.com |
546ac8c35f7d6abeb75985fa4d4c1e31ee9dc4ba | f8f24c63c0681111e4f286b1efbb7ed2153d1baf | /python_research/experiments/EUROMICRO2018/trt_playground/uff_engine.py | ba62bbc80bce144af8e35237157df8e10a96b0f8 | [
"MIT"
] | permissive | myychal/hypernet | 1deb543028169882ae731c7621e5b481e82ef48d | 778e9c1a2f27ab1c664bb6d8ea49c65d0c7bdade | refs/heads/master | 2020-04-02T13:50:11.812455 | 2018-09-19T13:19:46 | 2018-09-19T13:19:46 | 154,499,346 | 0 | 0 | MIT | 2018-10-24T12:42:59 | 2018-10-24T12:42:59 | null | UTF-8 | Python | false | false | 7,310 | py | import os
from typing import Tuple
import numpy as np
import tensorrt as trt
import uff
from keras.models import load_model
from tensorrt.parsers import uffparser
from experiments.EUROMICRO2018.trt_playground import calibration_helpers
def create_float_engine(input_shape: Tuple, model_path: str):
"""
Create... | [
"mantoniak@kplabs.pl"
] | mantoniak@kplabs.pl |
4d665bbec6510b1bf755a90b371ba782b8f5fac0 | f8bdc46409c9f5eaf3d85ef157260589462d941a | /jsk_apc2016_common/setup.py | 3aac7e2ddea565c92947b1ccbddc4cfb3a5d1251 | [
"MIT",
"BSD-3-Clause"
] | permissive | start-jsk/jsk_apc | 2e268f8b65e9d7f4f9cc4416dc8383fd0a7b9750 | c4e349f45ef38457dc774e33f6902acf1a1540a6 | refs/heads/master | 2023-09-05T09:06:24.855510 | 2023-09-01T17:10:12 | 2023-09-01T17:10:12 | 25,620,908 | 36 | 25 | NOASSERTION | 2023-09-01T17:10:14 | 2014-10-23T05:28:31 | Common Lisp | UTF-8 | Python | false | false | 232 | py | #!/usr/bin/env python
from distutils.core import setup
from catkin_pkg.python_setup import generate_distutils_setup
d = generate_distutils_setup(
packages=['jsk_apc2016_common'],
package_dir={'': 'python'},
)
setup(**d)
| [
"www.kentaro.wada@gmail.com"
] | www.kentaro.wada@gmail.com |
2715994ac90bdf445eb8b750a94410e7d0f06546 | b9e12a582bb5452f7f1b9988e8f5d4dcf96e0406 | /mongodb.py | a360c79eb0838f3e60a0d5753a57033909db0d62 | [] | no_license | DavidJGG/cntGKE | 392f6ebec422a2da0cacc285c6c814a593b40b7d | 2807f4065c82b6b951bcaad10061e6622a3aa33d | refs/heads/master | 2022-11-15T09:57:30.158365 | 2020-07-05T14:14:55 | 2020-07-05T14:14:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,268 | py | import pymongo
from pymongo import MongoClient
import redis
print("\n---------------- MONGO ------------------\n")
con=MongoClient('35.194.18.116',27017)
try:
db=con.proyecto2
#db.casos.drop()
#db.casos.delete_many({"name":"LUCHO"})
print("Elementos: "+str(db.casos.count()))
#for x in db.casos.fin... | [
"jonathangmz79@hotmail.com"
] | jonathangmz79@hotmail.com |
d185abfa1bcbf71f66108fd4e5874e522bf64535 | c840867a4fd6a462936905c585fa0bd919fb4e8c | /assignments/assign4/FractionalKnapsack/parser.py | 8a230cf6b79085a545c5aea96a047708702290d4 | [
"MIT"
] | permissive | dgisolfi/Algorithms | 0a0084edd02602f8f1015a64a7c9875b15a0bbdf | 78584cc2b423d2dda8dd2fd6f39d33f85ab43fbe | refs/heads/master | 2020-04-17T05:09:00.128893 | 2019-05-16T23:40:31 | 2019-05-16T23:40:31 | 166,265,240 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,149 | py | #!/usr/bin/env python3
# 2019-5-5
import re
import sys
from .spice import Spice
from .knapsack import Knapsack
from .LinkedList import LinkedList
class Parser:
def __init__(self, filename):
self.filename = filename
self.__commands = []
self.__knapsacks = []
self.__spices = LinkedLi... | [
"daniel.gisolfi1@marist.edu"
] | daniel.gisolfi1@marist.edu |
0f4416de8893caab062c43b9376c5c5b35a3203f | 470631039da2cfa018192983f678278d63e1b2a7 | /4-2-escape-pods.py | be686fda22404c030326a000a980763bd0cbe9a0 | [] | no_license | EkanshdeepGupta/google-foobar | 69e19cccf692ae603340072eaab671c23fd9327f | 802901db45988382181e8081a2d78ec02bfc0960 | refs/heads/master | 2022-09-22T11:18:19.391988 | 2020-05-30T14:22:59 | 2020-05-30T14:22:59 | 268,094,372 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,461 | py | def BFS(path, s, t, parent):
visited =[False]*len(path[0])
queue=[]
queue.append(s)
visited[s] = True
while queue:
u = queue.pop(0)
for nbrIndex in range(len(path[u])):
if path[u][nbrIndex] > 0 and not visited[nbrIndex]:
queue.append(nbrIndex)
... | [
"ekanshdeep_gupta@yahoo.co.in"
] | ekanshdeep_gupta@yahoo.co.in |
372255fa07e12313944b56ff6dca3baa09d97714 | 15fb62305a2fa0146cc84b289642cc01a8407aab | /Python/237-deleteLinkedList.py | a509709d6ca7443c76ae14bac91de99d26e78a8d | [] | no_license | geniousisme/leetCode | ec9bc91864cbe7520b085bdab0db67539d3627bd | 6e12d67e4ab2d197d588b65c1ddb1f9c52a7e047 | refs/heads/master | 2016-09-09T23:34:03.522079 | 2015-09-23T16:15:05 | 2015-09-23T16:15:05 | 32,052,408 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 783 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
# @param {ListNode} node
# @return {void} Do not return anything, modify node in-place instead.
def deleteNode(self, node):
node.val = node.next.val
... | [
"chia-hao.hsu@aiesec.net"
] | chia-hao.hsu@aiesec.net |
f1f1c51a67a97b2c36b3b5facdae527b7e51386c | 41d9b92ef2a74a4ba05d27ffbe3beb87884c4ce7 | /supervised_learning/0x01-classification/9-neural_network.py | 68ab716d15f8e3f5da3364211cc615f26a5956e8 | [] | no_license | JosephK89/holbertonschool-machine_learning | 3f96d886c61d8de99a23e4348fb045b9c930740e | aa5c500f7d8ebeec951f9ab5ec017cae64007c25 | refs/heads/main | 2023-08-14T18:42:53.481354 | 2021-10-10T19:53:40 | 2021-10-10T19:53:40 | 386,248,140 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,248 | py | #!/usr/bin/env python3
"""module for neural network"""
import numpy as np
class NeuralNetwork:
"""NeuralNetwork Class"""
def __init__(self, nx, nodes):
"""Data Initialization"""
if type(nx) != int:
raise TypeError("nx must be an integer")
if nx < 1:
raise ValueE... | [
"josephkamel262@gmail.com"
] | josephkamel262@gmail.com |
90832494883d287bf9e2722eae730348b3b733ae | a2910b1f8393dc016e254f766ee134619fe8866b | /restfulpy/marshalling.py | 947d7e92dc2b7b6881a6180513f69453e5d82253 | [] | no_license | mehdikiaee/restfulpy | 2aee1c325f6f15d1165184a32b316efb911d7994 | b1fcc08a1d1a098e915c89db90293d4e787e7411 | refs/heads/master | 2020-06-12T03:35:23.533919 | 2016-12-05T09:38:19 | 2016-12-05T09:38:19 | 75,609,025 | 0 | 0 | null | 2016-12-05T09:24:50 | 2016-12-05T09:24:49 | null | UTF-8 | Python | false | false | 822 | py | import functools
from sqlalchemy.orm import Query
def _serialize(obj, pagination=False, filtering=False, sorting=False, type_=None):
if isinstance(obj, Query):
if not type_:
raise ValueError('The `model_class` keyword argument is not provided')
if filtering:
obj = type_... | [
"vahid.mardani@gmail.com"
] | vahid.mardani@gmail.com |
529ae2e99c3ada7a4b9aaab74da53c0529ad3b1c | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/prepositions/_absents.py | 10302eb756514b03c8400541c8238bea1ae518b9 | [
"MIT"
] | permissive | cash2one/xai | de7adad1758f50dd6786bf0111e71a903f039b64 | e76f12c9f4dcf3ac1c7c08b0cc8844c0b0a104b6 | refs/heads/master | 2021-01-19T12:33:54.964379 | 2017-01-28T02:00:50 | 2017-01-28T02:00:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py |
from xai.brain.wordbase.prepositions._absent import _ABSENT
#calss header
class _ABSENTS(_ABSENT, ):
def __init__(self,):
_ABSENT.__init__(self)
self.name = "ABSENTS"
self.specie = 'prepositions'
self.basic = "absent"
self.jsondata = {}
| [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
1d88378508eea50ef6f6738d2e96906457b2a852 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-027/pyedlib/pedbuffs.py | cd408dd6c5c83c792e2b6e3b671c66451e8e1325 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,130 | py | #!/usr/bin/env python
# Action Handler for buffers
import re, string, gtk, glib, gobject
import peddoc, pedync, pedconfig
from pedutil import *
# -------------------------------------------------------------------------
def buffers(self, self2):
head = "pyedit: buffers"
dialog = gtk.Dialog(head,
... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
64bb1e9f5015156188091feabf5221c0a4a41fd5 | a73a18a2d0cfe04200cf2cac21c62a32c9d0cd6b | /amberbot.py | 0482fea5721de46eae68635d01dbb0fa5e396781 | [
"MIT"
] | permissive | rodincode/python | bc82e53c51edbd19ba608f6a060f2e96e2e3fbcc | 5bcc53b6103e53b37a3e40635502cbca53fec43e | refs/heads/main | 2023-03-21T03:25:42.380571 | 2021-03-14T12:14:57 | 2021-03-14T12:14:57 | 335,714,051 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,604 | py | '''from googlesearch import search
import requests
from bs4 import BeautifulSoup
import random
import pyttsx3
import pyaudio
import speech_recognition as sr
def speak(command):
engine = pyttsx3.init()
engine.say(command)
engine.runAndWait()
def speech_to_text():
r = sr.Recognizer()
wi... | [
"noreply@github.com"
] | rodincode.noreply@github.com |
1f5ddebc052c25f4314ffeefa2fae27d6667e05a | 1d04ccbcd9819b66360120df6221b5309ae90de4 | /tests/test_US22.py | b6a15f2b6af4c5eb1adc7b6b980af51e4e002cdb | [] | no_license | yang12304/ssw555_GEDCOM | ed70f3f24507701bc64e6bc6e15aa880923f36ad | a371a90f9f76a7fb9af414e770316e75f09637d1 | refs/heads/master | 2020-04-01T08:32:08.615096 | 2018-10-09T17:11:40 | 2018-10-09T17:11:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 943 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 9/24/18
# @Author : Zhiren Yang
# @File : test_US22.py
# @Software: PyCharm
import unittest
from UserStories.US22 import unique_ids
class TestUniqueIds(unittest.TestCase):
def test_unique_ids(self):
self.assertRaises(Exception, unique_ids, [... | [
"noreply@github.com"
] | yang12304.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.