blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5264b881370b18425a4a90f409799984552d35c9 | 21cb4f3f52168e31484c6389a9a08772b78a992d | /basic/list1.py | 7e6bb873cf62559d476044ed498561cfae6d2385 | [
"MIT"
] | permissive | Riverfount/estudos | 806f4592bf0f00fdc62c30ed04a7f61720d943fe | 03e5339de23b9fc49a2e26174d0241e923adb580 | refs/heads/master | 2022-12-11T08:13:19.994566 | 2019-11-02T13:26:19 | 2019-11-02T13:26:19 | 87,834,875 | 0 | 0 | MIT | 2021-02-26T02:35:23 | 2017-04-10T16:46:49 | HTML | UTF-8 | Python | false | false | 3,304 | py | #!/usr/bin/python -tt
# Copyright 2010 Google Inc.
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
# Google's Python Class
# http://code.google.com/edu/languages/google-python-class/
# Basic list exercises
# Fill in the code for the functions below. main() is already set ... | [
"vicente.marcal@gmail.com"
] | vicente.marcal@gmail.com |
ad050bdca9957e37be1ca71048282a0569e623be | 736d1945173d89c0ba50d47e70a1e7ff7be9b432 | /run.py | 354a11aa27a4774879b9bd841f52cf9772f7169d | [] | no_license | cuglilong/Stacking_Algorithm | 1ce0643eae94b4fe908ea9d035d8f2e5d42cbca5 | dc0da245eb9db10576cc2ff56063ce99d4232001 | refs/heads/master | 2022-02-27T09:05:21.741039 | 2019-08-23T09:40:39 | 2019-08-23T09:40:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,189 | py | import Stacker
import Hawaii_Stacker
import Stacker_Test
import sys
from obspy import read
import pickle
from numpy import random
import numpy as np
import clustering_scripts as cs
import plotting_scripts as ps
sys.path.append('./CCP_stacks/Plotting_Scripts')
#import plot_CCP
# Reading in
file =sys.argv[1]
print("R... | [
"mh826@syrma.esc.cam.ac.uk"
] | mh826@syrma.esc.cam.ac.uk |
8d6daaa7554f3704a12d3df4f8a956e1c910f1cc | 027086eff4acaf865f0cf3786a2093f8f8088e46 | /OpenCollegePro/module/Cluster.py | 6a1b48260e9d250df6e117a7447bb8840767f33b | [] | no_license | pxz000git/OpenCollege | c44236b9987e762116f418b7fc209d2eb22d4b31 | da7b0fffa1662a1affad0b5fca4b02246969e969 | refs/heads/master | 2021-05-03T11:18:55.362285 | 2018-03-06T04:06:04 | 2018-03-06T04:06:04 | 120,548,270 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 970 | py | #!/usr/bin/env python
# _*_ coding:utf-8 _*_
# autho:pxz
from pyspark.sql import SparkSession
def spark_context():
spark = SparkSession \
.builder \
.appName("myApp") \
.config("spark.mongodb.input.uri", "mongodb://175.102.18.112:27018/OpenCollege_kw.art2vec_syn") \
.config("spark... | [
"pxz015@163.com"
] | pxz015@163.com |
c304cc7227d2255c4dde942808b00c572699cabc | bbc35e3c7e35b5219e06027c1798ac36775305ff | /LeeCode/topic575/python/topic575.py | 5dbedfc04f4cc9fa5df6110fa5aab30da4507267 | [] | no_license | zabcdefghijklmnopqrstuvwxy/leecode | 7f261dfde880f4755cf3b35b0ca08b36025cd5e9 | 35018a3e0506a77d425d0aff6a1c50bfa67afeaa | refs/heads/master | 2023-03-07T06:27:51.292041 | 2023-02-26T03:50:34 | 2023-02-26T03:50:34 | 211,665,551 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | class Solution:
def distributeCandies(self, candies: List[int]) -> int:
return len(set(candies)) if len(set(candies)) < len(candies)//2 else len(candies)//2 | [
"sai14790085178@163.com"
] | sai14790085178@163.com |
937ca15e0fcc69c211f17b69de785760dbc1afb7 | 9e87897c988af634c3fddc42113992a65ec006f4 | /sims/repfam_fs/test/metrics_v2.py | e6aeb826dec6e7fd91e6f424c75731b25e4345ea | [
"MIT"
] | permissive | luiarthur/cytof5 | 152eb06030785fdff90220f0d0a244a02204c2e9 | 6b4df5e9fd94bfd586e96579b8c618fdf6f913ed | refs/heads/master | 2021-07-20T13:39:45.821597 | 2021-03-02T23:27:35 | 2021-03-02T23:27:35 | 145,253,611 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,927 | py | import collections
import os
import sys
import re
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import rcparams
KTRUE = [4, 5]
def parse_Rs(path_to_Rs_csv):
Rs = pd.read_csv(path_to_Rs_csv).rename(columns=dict(mean='Mean'))
return Rs
def get_ks(results_dir):
# Get dir names for e... | [
"luiarthur@gmail.com"
] | luiarthur@gmail.com |
9f944b69899522352c0060c3f4a975d4d14cda6d | cde99055d9b180e63e01e7230d142b0c83d74243 | /index_calc_0.3.py | db8815b4b88f02e707ad3ef23bdab56629654f85 | [] | no_license | ibobriakov/clickstream | bfbca5611fc9e5921fba6b765fbe01541ab262f4 | 7ac62c607dce1ff1cf8d5c05b68810f6bb0cb942 | refs/heads/master | 2021-01-25T12:14:18.330846 | 2014-06-25T06:52:20 | 2014-06-25T06:52:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,562 | py |
# coding: utf-8
# In[335]:
import pandas as pd
import fnmatch
import os
import numpy as np
# In[336]:
android = pd.DataFrame()
itunes = pd.DataFrame()
# In[337]:
for file in os.listdir('.\data'):
if fnmatch.fnmatch(file, '*android*.csv'):
fname = "data\\" + file
print "appending: " + fname
... | [
"bobriakov.igor@gmail.com"
] | bobriakov.igor@gmail.com |
a4f8110f6f05523eaa4cf4d211ae35fa5e01ed6e | 5f61a5738f7c253c3696eb78cb8fe8f448824733 | /tests/unit/test_fixtures.py | b4da5a15c51ae33e2f68992a2b1f9f7864fca60a | [] | no_license | JuanBer/PyTestBook | 8986779471a3598a068466a4bad60c7343e57b9a | 6ef5843da58f3f7dd872527d8e5d23eb9a67cb23 | refs/heads/master | 2020-04-26T19:13:52.735648 | 2019-03-17T23:50:17 | 2019-03-17T23:50:17 | 173,767,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 635 | py | import pytest
@pytest.fixture()
def some_data():
"""Return answer to last question"""
return 42
@pytest.fixture()
def some_other_data():
"""Raise an exception from fixture."""
x = 43
assert x == 42
return x
@pytest.fixture()
def a_tuple():
"""Returning something more interesting"""
... | [
"jm_bertoni@yahoo.com.ar"
] | jm_bertoni@yahoo.com.ar |
7fa22c168188a99368332d49c68e039d9a147a2b | 4c72e1817245404aeb7caa6be70bdbbacb574053 | /exerciciosCev/Mundo 3/Aula 17/081.py | af84c8df260ba757c0503072626639af8d50d390 | [] | no_license | Viniciusadm/Python | 9b88e1dc626346661ac6a43fc5e9ca9d12fa6610 | 9ee066c99a0f0cbf00865cd82ea61b2464afa425 | refs/heads/master | 2021-09-25T15:31:04.159070 | 2021-09-16T02:28:47 | 2021-09-16T02:28:47 | 251,954,068 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 715 | py | numerosLista = []
cont = 0
while True:
numerosLista.append(int(input('Digite um número: ')))
resposta = str(input('Você deseja continuar? [S/N] ')).upper()
if resposta == 'N':
break
numerosListaContrario = sorted(numerosLista, reverse = True)
print(f'Você digitou {len(numerosLista)} elementos')
p... | [
"viniciusam.22@gmail.com"
] | viniciusam.22@gmail.com |
1f5a4de9ed4c15d42484b3ef33e2021054fbd9b5 | 200896b4c28291d2019d14e1fa7bbdd68abdf47f | /modelv3.py | 25c0ad0ed6bdb1832383cf5d355db28e119699cc | [] | no_license | danielhoadley/caselaw-classifier | 0d382e7d8d65e00a9bce1428b983075aaf7bd997 | f5714e5745a9c20e4a70dc6c7a6dc9af6dc6cc00 | refs/heads/master | 2021-05-04T14:38:30.397200 | 2018-02-04T17:24:37 | 2018-02-04T17:24:37 | 120,206,129 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,568 | py | import sklearn
#from pprint import pprint
import numpy as np
from glob import glob
from sklearn import datasets
from sklearn.model_selection import train_test_split
from sklearn.feature_extraction.text import CountVectorizer
#from sklearn.naive_bayes import MultinomialNB
from sklearn.feature_extraction.text import Tfid... | [
"noreply@github.com"
] | danielhoadley.noreply@github.com |
dd8c8a83f383e751d627d7bf77583460548b6891 | edc73196fd98b01c380ae83696169d427778fe43 | /ex15.py | ef807db295410f013fdebd23c5987af002716b0b | [] | no_license | floatingman/pythonthehardway | 145773c130350cb26a88be8baca87489ad580047 | ab89b119b186e06b090db1a138b858287b8ca3df | refs/heads/master | 2020-03-27T16:53:17.359580 | 2018-09-18T21:55:50 | 2018-09-18T21:55:50 | 146,812,881 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | from sys import argv
script, filename = argv
txt = open(filename)
print("Here's your file %r:" % filename)
print(txt.read())
print("Type the filename again:")
file_again = input(">")
txt_again = open(file_again)
print(txt_again.read())
| [
"dwnewman78@gmail.com"
] | dwnewman78@gmail.com |
83275e5deed513d8e87891c2e7afdb10a3f39919 | 95588c0bb9861fd45a620512cfb798dd5cd4efab | /flask_qaq/forms.py | 42d937b06fe2fa045ba96ad2b9979eca2e8d6806 | [] | no_license | Nauman1971/flask_final_project | ddb5fb07023b7082933a747959098cec794a81ef | 084f92242ee7ad1bb14e5fc56e9ed1d8eae2bb3a | refs/heads/master | 2021-07-08T19:00:42.472388 | 2019-12-18T16:29:59 | 2019-12-18T16:29:59 | 228,384,907 | 0 | 0 | null | 2021-03-20T02:24:11 | 2019-12-16T12:41:32 | HTML | UTF-8 | Python | false | false | 917 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, SelectField
from wtforms.validators import InputRequired, Length, Email
from flask_wtf.file import FileField, FileRequired
class SignupForm(FlaskForm):
username = StringField('Name', validators=[InputRequired(), Length(min=4, max=15)]... | [
"nauman81007@gmail.com"
] | nauman81007@gmail.com |
bb75ababe070a106b7be22792dee5606e5db1fff | 129b47345fc9d0036cf0a3fd6bf9ed0d579d864b | /DataScience/Analytics/sandbox/addressLinkingML.py | 32010a1f5382f23f07eee2f42caae4d9e272f437 | [
"LicenseRef-scancode-proprietary-license",
"MIT"
] | permissive | ONSdigital/address-index-data | 75055c1bbb9427308bfda7506e1e5986e52d55e0 | f14f8a22ed93e23436f43d47a897b895d81f82b0 | refs/heads/develop | 2023-08-17T23:24:40.017213 | 2023-08-15T09:49:00 | 2023-08-15T09:49:00 | 71,133,628 | 15 | 8 | MIT | 2023-08-15T09:49:02 | 2016-10-17T12:00:25 | Python | UTF-8 | Python | false | false | 8,537 | py | #!/usr/bin/env python
"""
ONS Address Index - Address Linking
===================================
This script can be used to test which string distance metrics are more important for
solving identifying correct matches.
Running
-------
After all requirements are satisfied, the script can be invoked using CPython in... | [
"Sami.Niemi@valtech.co.uk"
] | Sami.Niemi@valtech.co.uk |
814f03eadcaab69f52eefd4a56dbfdb84e3b45c7 | 298d6d0d1ccf5e376fb001a3f00a30a5e2dd82cf | /run.py | 3aba6a757d44e46e7d4d1dc06d063b2c2c1dbf8e | [
"Apache-2.0"
] | permissive | srivastavaanuj11/Feedback-using-Pose-Estimation | 4650b0ba1e7387e7bef5870c65285f646f4d3171 | b6e019b6d2e1bd6aea72de6fa4bea649d6d8aef3 | refs/heads/master | 2022-09-13T07:28:26.939174 | 2020-05-28T19:04:07 | 2020-05-28T19:04:07 | 267,564,463 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | import argparse
import logging
import sys
import time
from tf_pose import common
import cv2
import numpy as np
from tf_pose.estimator import TfPoseEstimator
from tf_pose.networks import get_graph_path, model_wh
import tensorflow as tf
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
session = tf.Sessio... | [
"noreply@github.com"
] | srivastavaanuj11.noreply@github.com |
6d9ae5d1e897d019452dba963fae79bc1ac70972 | 94d006caa0abbfd2b4602f8698580af38bf6534d | /todo/models.py | dfe434060f7acbcd4e271e2d15727697646ce6de | [] | no_license | anas4488/django_todolist_freecodecamp | fc0e3b6bbd5fd6286ed91b761e62f4771d67b23f | 441a0f28752bbee253fe5855c26a40abea955ee2 | refs/heads/main | 2023-04-01T11:48:57.624790 | 2021-04-12T06:14:31 | 2021-04-12T06:14:31 | 356,867,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | from django.db import models
# Create your models here
class Todo(models.Model):
title = models.CharField(max_length=1000)
def __str__(self):
return self.title | [
"anassayed63@gmail.com"
] | anassayed63@gmail.com |
1aab06356a5b872431d143f6f90ed5c62541a83c | fad681997737905b8f5f7be126cc74302069f503 | /Sudoku/Solver.py | e666976f27ecb047863c371154c90555d271a4ca | [] | no_license | jerdytjandra/JerdyTjandra_ComputationalMathematics2018_FinalProject | f5766a6f988701c55d05a916b9972b6041a39dcd | b64eeb978d0f20120b526ee72323de9b865a48ee | refs/heads/master | 2020-03-19T04:11:39.190755 | 2018-06-05T11:50:02 | 2018-06-05T11:50:02 | 135,804,010 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,779 | py | def find_empty_location(grid, current):
for row in range(9):
for col in range(9):
if(grid[row][col][2] == 0):
current[0] = row
current[1] = col
return True
return False
def used_in_row(grid, row , num):
for i in range(9):
... | [
"noreply@github.com"
] | jerdytjandra.noreply@github.com |
094154e1bdcc4fe286692401721c016cf778e4f5 | 2228333066709d365d4e59f7ea4e43fe0a2e8b37 | /loja/migrations/0014_pedidos_quantidades.py | 31ea459288fde4164c474e87e7ad365ec457e90a | [] | no_license | MathiasDias/paes_tania | 759f159eb3411d4ed204413b3cddd3d9f2416a9b | 13f24302689f8d9ede9e2675c52696f6db08a440 | refs/heads/master | 2023-01-24T05:00:01.889325 | 2020-12-09T16:14:16 | 2020-12-09T16:14:16 | 274,463,211 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # Generated by Django 3.0.5 on 2020-07-02 17:58
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('loja', '0013_userprofile'),
]
operations = [
migrations.AddField(
model_name='pedidos',
name='Quantidades',
... | [
"mathias.gadias@gmail.com"
] | mathias.gadias@gmail.com |
e05a1a54e6e39d37cc0f1f6579fe22cb3f50df22 | d0ce596ce34a3ec8b3c20e6594dd4ad6ad321d53 | /followunfollow.py | a5d51f00adb368a4421a5c942eafb5e6dc956db7 | [] | no_license | scottyallen/instafan | 6174077f2ddcfc6634d257da789c2e5669e7f1ec | a921c8a0cc7c8a129c2cd44ba2874d4251ea88e4 | refs/heads/master | 2021-01-12T08:02:23.888803 | 2016-12-22T08:31:53 | 2016-12-22T08:31:53 | 77,108,490 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,476 | py | import datetime
import json
import random
import sys
import time
from selenium import webdriver
import instagram
import utils
import gflags
gflags.DEFINE_string('credentials', None,
'Login credentials. Filename for file with USERNAME= and PASSWORD= on separate lines')
FLAGS = gflags.FLAGS
def... | [
"scotty@scottyallen.com"
] | scotty@scottyallen.com |
9273c39ec8598daef4fda559c0c6b1c84d56a0bf | 29bb6f76bff9a9c40d5ca8176d94a5f57e331f0b | /backend/translations/migrations/0015_auto_20210616_1104.py | 0b5169906dc44bf6ea37656dac0e79370fd2dca3 | [] | no_license | zetkin/translators-interface | 697f320ed3e7bf737ebbe2a7ef58ffdba6c245b1 | efa525e76f36d05d7ee2ec10d17b679c97355ada | refs/heads/master | 2023-06-05T09:27:40.923506 | 2021-06-28T11:31:47 | 2021-06-28T11:31:47 | 363,886,140 | 1 | 0 | null | 2021-06-28T11:31:48 | 2021-05-03T09:58:34 | Python | UTF-8 | Python | false | false | 691 | py | # Generated by Django 3.2 on 2021-06-16 09:04
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('translations', '0014_auto_20210611_1148'),
]
operations = [
migrations.AddField(
model_name='translation',
name='delet... | [
"eribloodlust@grrlz.net"
] | eribloodlust@grrlz.net |
f6d7fbc403d0e1a6e8c96270631e6613f7065501 | 7f17c66a7bfdd93877af8f4d1f2dc377cc5ef5ff | /ceph_pool_plugin.py | 0c7d2afbcfe8a233c786b8e2e608deb425fd7fd2 | [] | no_license | ksingh7/ceph-collectd-plugin | 4910b381b3854e66821b87d3d9a2472f5c6863cd | ebaa708769e02d79c9c9bf484d54abde345825a8 | refs/heads/master | 2020-12-25T13:44:53.294780 | 2016-06-04T00:31:36 | 2016-06-04T00:31:36 | 60,381,525 | 2 | 4 | null | 2017-06-06T16:18:29 | 2016-06-03T22:32:52 | Python | UTF-8 | Python | false | false | 4,601 | py | #!/usr/bin/env python
#
# vim: tabstop=4 shiftwidth=4
# 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; only version 2 of the License is applicable.
#
# This program is distributed in the hope th... | [
"karan.singh731987@gmail.com"
] | karan.singh731987@gmail.com |
28256be21b3e08c5125a0dc883ce7faab4d88b3e | 0731fefd8d3fec0a3ba76dcb69ebecf8c378a3a6 | /GenerateArchimedesSpiralPoints.py | 4848c6b3ef417cb0bf8b426d5807c6d95ec5fcfc | [
"MIT"
] | permissive | MrHuman22/Fusion360-Scripts | 38ad46ad49dfdd419e53a8e18ec7932f30c87c6a | 42dd8bd96fee5e395eba95dc27ca66ea3b374e46 | refs/heads/master | 2022-11-07T18:14:59.917355 | 2020-07-01T05:49:07 | 2020-07-01T05:49:07 | 276,012,177 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,238 | py | #Author-Peter Newman
#Description-Generates an archemedes spiral
import adsk.core, adsk.fusion, adsk.cam, traceback
from math import cos, sin, pi
def run(context):
ui = None
try:
app = adsk.core.Application.get()
ui = app.userInterface
des = adsk.fusion.Design.cast(app.activeProduct)
... | [
"pwn394@newcastle.edu.au"
] | pwn394@newcastle.edu.au |
8ef9af340d5e228e081e4752208ca6f0fc86e61c | 45284836ae85685226b1f1e3b83e207e184aee0e | /05_ProbabilityAndStatistics/01_ProbAndStatsInPython_Beginner/01_IntroductionToStatistics/11_MeasuresOfCentralTendency.py | f822187cd0dd31bf9867f58f1fd34ff63b9187d8 | [] | no_license | gaurab123/DataQuest | 5060efc3d3449e6e098cb77d7fed913516aabdbd | a9da9a90fab639d239340edfc7d0b2010edf2b35 | refs/heads/master | 2021-09-14T15:10:13.047034 | 2018-05-02T19:11:23 | 2018-05-02T19:11:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,400 | py | print("this mission cannot be run locally as the data used is loaded \"behind the scenes\" and I really don't have access to it")
import matplotlib.pyplot as plt
# Let's put a line over our plot that shows the mean.
# This is the same histogram we plotted for skew a few screens ago.
plt.hist(test_scores_nor... | [
"kenneth.kite@gmail.com"
] | kenneth.kite@gmail.com |
609b88845909ba5d98028e29508d62209ad9e6bd | 33db7d03970bf12a2e15d256cc4b9b3f7773ca4d | /numsp.py | ffb1932214520ffcc82e6dc73882394f2c622108 | [] | no_license | preethika2308/code-kata | 7f57baeda030eebc4713519d9b94d0c8aafb91ec | 6b9ef096bfb4d46055575af201813ca928b00118 | refs/heads/master | 2020-06-03T03:01:38.693920 | 2019-07-06T02:22:37 | 2019-07-06T02:22:37 | 191,408,292 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | input_string = input()
coun = 0
for s in input_string:
if s.isdigit() == True:
coun = coun + 1
print(coun)
| [
"noreply@github.com"
] | preethika2308.noreply@github.com |
a2b54ee2f3628be86e3954e5c93eea54b2a128c6 | 4f66c3ee8707e8c85c8bf8ba15bb7ceb3fe00608 | /literature/PlanckSZ2015.py | 4e8cf69a704e36beff7220224e431d8f89bf1db1 | [] | no_license | edoaltamura/xl-zooms | bed433b5c272ffc90261be3d65ab109861c056de | fa4634cb999c5867d0349567412f0df2e3926dbb | refs/heads/master | 2023-06-24T23:41:27.419153 | 2021-07-27T18:12:08 | 2021-07-27T18:12:08 | 281,772,466 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,428 | py | import re
import os
import unyt
import numpy as np
from typing import List
from matplotlib import pyplot as plt
import itertools
from .cosmology import Article, repository_dir
comment = (
"Planck 2015 results. XXVII. The second Planck catalogue of Sunyaev-Zeldovich sources"
)
class PlanckSZ2015(Article):
f... | [
"38359901+edoaltamura@users.noreply.github.com"
] | 38359901+edoaltamura@users.noreply.github.com |
8d0af377fef87addec5a8ec9aa2e107cf6ad9be6 | af1c44a718c589ce40efd488adff9466f8d840f8 | /Todos.py | 28f9b5d4348ae828116504fc6f6b218e84f56333 | [] | no_license | ErickdeMauleon/Mineria-en-Python | f5bef0720fc9039febca2df24e65f3755f916aee | e242a545f9a08463bee0817ea5517ede97700a98 | refs/heads/master | 2020-03-30T21:55:03.837349 | 2018-10-04T23:13:29 | 2018-10-04T23:13:29 | 151,646,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,672 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Oct 4 17:37:24 2018
@author: Santillan
"""
import pandas as pd
import numpy as np
from sklearn.datasets import load_iris
from sklearn.model_selection import GridSearchCV, train_test_split
from sklearn.tree import DecisionTreeClassifier
from sklearn.ensemble imp... | [
"noreply@github.com"
] | ErickdeMauleon.noreply@github.com |
88a9307b7a34109f21a0c235a7127e3fb3b294b4 | ddd190a024211ffaa42094ffa6ead4cfec6637c8 | /spiders/some/test.py | f3610ebac21b227015bad71c309c4d7b1285f04a | [
"MIT"
] | permissive | goodking-bq/scrapy_workstation | 82d0bb2996ddf23d915b5f58283be52fc63c0c3f | 76a0897cbde417a7d07bbac9f42958f56109d0d1 | refs/heads/master | 2021-01-23T22:30:04.400939 | 2017-09-09T07:33:36 | 2017-09-09T07:33:36 | 102,935,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | import requests
print 'start'
res = requests.post('http://www2.j32048downhostup9s.info/freeone/down.php',
data={'type': 'torrent',
'id': 'OK18BZy',
'name': 'OK18BZy'
}, headers={
"Content-Disposition": 'attachment... | [
"120225883@qq.com"
] | 120225883@qq.com |
7ba35e17eca92a7be3abb0ee3e77b2ce98eda3bd | c4165e3e4da2c9981a9483fd8bda0721fd4f2b84 | /src/main/google/LRU.py | 164df7594bf5c62bafd8dc5c459d523b77f1ebbd | [] | no_license | tczhaodachuan/LeetCode | 6cd1704651d6d25306a50c583a93202f27e487d2 | df178fa4f97f163aa5890ec28094e6d655bfbc9a | refs/heads/master | 2021-05-24T03:29:48.555117 | 2020-07-22T03:40:50 | 2020-07-22T03:40:50 | 73,576,097 | 1 | 0 | null | 2020-07-22T03:40:51 | 2016-11-12T20:16:58 | Python | UTF-8 | Python | false | false | 1,392 | py | class LRU(object):
def __init__(self, capacity):
self.capacity = capacity
self.cache = dict()
self.head = None
self.end = None
def get(self, key):
if self.cache.has_key(key):
node = self.cache.get(key)
self.remove(node)
self.setHead(no... | [
"tczhaodachuan@gmail.com"
] | tczhaodachuan@gmail.com |
e8a9cbc0dc675c291596b8da02d4e99220ff8c24 | 70745034a4e117b643ee65db59f827ad1174cf53 | /TensorFlow/convolutional_NN.py | c47d4eab5fe27915c522846b4a32a3557edec441 | [] | no_license | mhichen/HandsOnML | 45a33b7bffc2460006f3e1ff0a22df3663402fe4 | bbdd242a546f1409a98737fc1150858963a73052 | refs/heads/master | 2020-03-15T14:51:43.966731 | 2018-05-24T00:43:35 | 2018-05-24T00:43:35 | 132,198,745 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,092 | py | #!/usr/bin/python3
import time
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
import tensorflow as tf
from sklearn.datasets import load_sample_images, load_sample_image
if __name__ == "__main__":
china = load_sample_image("china.jpg")
flower = load_sample_image("flower.jpg")
datase... | [
"mhichen@umich.edu"
] | mhichen@umich.edu |
6f91a39f20fe34c6fdf4363fd8d49ff102161a40 | 7b6da2978e072a6658687eb7a1ac89fb9b87a83b | /ProjetoFinal _Jogo_Gafanhoto_Vermelho/main.py | 741164b60eb4d9f9caa688b705f558b846384399 | [] | no_license | ribeirolivia/Projetos | 52fc6cb44a2a0e1e794acb84caccecb52c346a34 | 08b8c260374036b22305a23586d14d88e7a0ffb3 | refs/heads/main | 2023-06-23T08:07:38.431082 | 2021-07-20T22:28:39 | 2021-07-20T22:28:39 | 386,445,730 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 102 | py | # coding: utf-8
import Introducao
Introducao.introducao()
Introducao.menu_intro()
| [
"noreply@github.com"
] | ribeirolivia.noreply@github.com |
7331e23f58cbfdb1cc393fe29479040421c5b479 | f87c2674bad47cf76d3c05c12ad2f9c307702668 | /psupr_ca2_JT_7496.py | f6ec3afbdfaf4dae6988359d4bd40d5b5d5605d9 | [] | no_license | gengliangyu2008/PRMLS-CA2-project | 5d401a56f230011a03d6d1a4306978b675b77939 | 3706fa7c3b7d53e186e71f78e799938e5064c796 | refs/heads/master | 2022-02-21T18:24:13.220553 | 2019-09-29T15:59:59 | 2019-09-29T15:59:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,842 | py | # -*- coding: utf-8 -*-
"""PSUPR_CA2.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/1KOPmeiyA7s63G7nArAYTy7XikXryYSGj
"""
import numpy as np
import sklearn.metrics as metrics
import matplotlib.pyplot as plt
import h5py
from tensorflow.keras.cal... | [
"noreply@github.com"
] | gengliangyu2008.noreply@github.com |
c4c6e0af2a87a16415a3f0575945f66d748ea0f4 | 2ed1cccb49ee1549f09747061a2513fb053c707d | /20181004/DProposed_gpu3.py | 91281bf826beb09c8480f4a1812fba4e8869a002 | [] | no_license | hhjung1202/Prob_network | 1c766ef5191727a63a38654622e21f0d986b923e | dedd4e525c9393f15452709dda377ceee9849c15 | refs/heads/master | 2020-03-22T11:42:27.705442 | 2018-11-11T14:29:39 | 2018-11-11T14:29:39 | 139,990,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,940 | py | import torch
from torch.autograd import Variable
import torch.optim as optim
from torchvision import datasets, transforms
from DPmodel import *
import os
import torch.backends.cudnn as cudnn
import time
import utils
os.environ["CUDA_VISIBLE_DEVICES"] = '3'
def main(model_dir, model, dataset, batch_size=128):
util... | [
"hhjung1202@naver.com"
] | hhjung1202@naver.com |
5be3582b173c7125710ef92297f6d65604214c6d | cd26139f73a1810e1ea19614cce09835a299d0ca | /kmeans_clustering/lemonade_code.py | 519a319c193b70451684c1c18e493ec16d5081ed | [] | no_license | eubr-bigsea/Lemonade_apps | de8df4e764ba3c796296158b1bb679cc923e579c | 193f0c6248c4cc74b1c53f6d05697c26b5617051 | refs/heads/master | 2021-01-12T06:14:48.372820 | 2017-06-25T21:40:14 | 2017-06-25T21:40:14 | 77,331,294 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,490 | py | # -*- coding: utf-8 -*-
#!/usr/bin/env python
#
# Auto-generated Spark code from Lemonade Workflow
# (c) Speed Labs - Departamento de Ciência da Computação
# Universidade Federal de Minas Gerais
# More information about Lemonade to be provided
#
import os
import json
import string
import sys
import time
import uni... | [
"noreply@github.com"
] | eubr-bigsea.noreply@github.com |
e69f0f7583c1022af9442415e61c2769e37c4122 | dbf770eef8233f7da1850309cc4b7145bd8d67f1 | /PYTHON-ADVANCED-SEPT-2020/PYTHON ADVANCED/03_MULTYDIMENSINAL LISTS/EXERCISE/06_chess.py | 654a9eb872ce75844a3566d42fa88934b8ec214a | [] | no_license | vasil-panoff/PYTHON-ADVANCED-SEPT-2020_repo | 610a37d1681ce9d0aa86628523620e1571b438dd | c63434f91de42d2f1241b6d76a96c7c63711c1d0 | refs/heads/master | 2023-03-22T07:44:53.620221 | 2021-03-15T20:42:14 | 2021-03-15T20:42:14 | 309,829,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,217 | py | possible_moves = (
(-1, -2),
(-1, 2),
(1, -2),
(1, 2),
(2, -1),
(2, 1),
(-2, 1),
(-2, -1),
)
board_size = int(input())
matrix = [['0'] * board_size for i in range(board_size)]
def is_valid(i, j):
if i < 0 or j < 0 or i >= board_size or j >= board_size:
return False
r... | [
"vasil.panov@gmail.com"
] | vasil.panov@gmail.com |
43c082f25a6e6e30257d8c14911f7426fd6de2e1 | 89144239f73e73cde5da4537b13df699d680382d | /themes/pidginicons/pidgin_control.py | aaaf6252399b0c9437256fe570216f22b2a814be | [] | no_license | pspeter3/elementary-pidgin | 60c5b9e929defb72815b320a71c5f239a056c966 | 099eba81034726a916642d7d788aafc5e93846aa | refs/heads/master | 2020-05-18T16:22:20.121439 | 2012-04-09T19:46:48 | 2012-04-09T19:46:48 | 3,856,756 | 0 | 4 | null | null | null | null | UTF-8 | Python | false | false | 6,763 | py | #!/usr/bin/env python
#
# Copyright (C) 2009-2010 Jason Smith, Rico Tzschichholz
# 2010 Lukasz Piepiora, Robert Dyer
#
# 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, eithe... | [
"pspeter333@gmail.com"
] | pspeter333@gmail.com |
de2a869e4886495403457448183507387e5318e5 | f5713ebaee8445d5ce7d64f50a7fc2ece362a22c | /apps/principles/forms.py | bfb6988c7267b54a1b96e11e7c75707e84a984e3 | [
"CC-BY-3.0"
] | permissive | gerlad/greenline | bfacaa15e7481ee9b9d7171072724930396facda | 219082c2d10d815c9fb21ac339349a1cb8b9bd04 | refs/heads/master | 2020-05-19T17:55:22.510522 | 2011-03-21T15:06:44 | 2011-03-21T15:06:44 | 1,227,024 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 394 | py | from django import forms
from principles.models import Entry
from principles.models import Principle
class PrincipleForm(forms.Form):
choices = forms.MultipleChoiceField(choices=(('1', 'Choice One'), ('2', 'Choice Two'),), initial=['1'], required=False,)
'''
class PrincipleForm(forms.ModelForm):
... | [
"gmccollam@gmail.com"
] | gmccollam@gmail.com |
fdb64336cf73e67d472705398ef382a50c520887 | 9b9a02657812ea0cb47db0ae411196f0e81c5152 | /repoData/kushaldas-retask/allPythonContent.py | d19c699f3ba9cd5827f25619f2fb80dfe0dc8340 | [] | no_license | aCoffeeYin/pyreco | cb42db94a3a5fc134356c9a2a738a063d0898572 | 0ac6653219c2701c13c508c5c4fc9bc3437eea06 | refs/heads/master | 2020-12-14T14:10:05.763693 | 2016-06-27T05:15:15 | 2016-06-27T05:15:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,401 | py | __FILENAME__ = conf
# -*- coding: utf-8 -*-
#
# retask documentation build configuration file, created by
# sphinx-quickstart on Tue Jul 3 14:56:38 2012.
#
# This file is execfile()d with the current directory set to its containing dir.
#
# Note that not all possible configuration values are present in this
#... | [
"dyangUCI@github.com"
] | dyangUCI@github.com |
f6462e692332d8b61c7908f67535fbd65c5926db | 1fb230e5382ccbf79898fad3a025f8ffeb957f70 | /raster_development/ee-density-upload-iso3.py | 2f44c821321c11ce0668be27e6661cb8e16c791b | [
"Apache-2.0"
] | permissive | GlobalFishingWatch/psychic-guide-squirrel | fcae6999248357280cc747455468b3fc54f8199c | 7d503abeddce80df7d42cdea5e982131e466305c | refs/heads/master | 2021-01-17T06:12:20.876972 | 2017-02-07T17:16:02 | 2017-02-07T17:16:02 | 55,070,984 | 1 | 1 | null | 2016-12-05T19:44:20 | 2016-03-30T14:42:18 | Jupyter Notebook | UTF-8 | Python | false | false | 12,328 | py | #!/usr/bin/env python
from __future__ import division
import copy
import datetime
import itertools as it
import json
import math
import multiprocessing as mp
import multiprocessing.dummy
import posixpath as pp
import random
import threading
import time
try:
from urlparse import urlsplit
except ImportError:
fr... | [
"davidkroodsma@gmail.com"
] | davidkroodsma@gmail.com |
c0ab8764c55a83565f75e6d16b589701ec260dab | 2aa4feaa6eb3adf74d5e570be27a6ccf0d37d43b | /hello-worldj91.py | f6c4b7b0ad5c0afbbd688dc52588085087a3b541 | [] | no_license | applepie405/Marcel-s-Python-GUI-Window | 483f06c7703144e57c85c2d7058becedd8021c99 | 5386d5a03ad21d2cbbbd26615362c3c8e3cbc225 | refs/heads/main | 2023-03-23T23:25:21.744354 | 2021-03-24T02:02:09 | 2021-03-24T02:02:09 | 337,589,272 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,288 | py | from tkinter import *
root = Tk()
root.title("Goal Tracker")
# Create and set the message text variable
message_text = StringVar()
message_text.set("Welcome! You can deposit or withdraw money and see your progress towards your goals.")
# Create and pack the message label
message_label = Label(root, textvar... | [
"noreply@github.com"
] | applepie405.noreply@github.com |
e3d855b27a0237708ac51b2eaa0fc2658ab2ed91 | 21616c71bae82cbda2727788e049d163d1586884 | /vfb_rest/vfb_rest/wsgi.py | d7dd5ee2d00e1fb9eb37f26d38b1d1804a4d025d | [] | no_license | VirtualFlyBrain/vfb_rest | 25d263099596dd7281e8edfacd8b1eb6075c6e41 | 06959ca042c357bfe0082e4701cf024a8ac4b9f3 | refs/heads/master | 2023-07-06T14:29:23.381265 | 2021-03-24T15:56:59 | 2021-03-24T15:56:59 | 146,908,474 | 0 | 0 | null | 2023-09-06T02:23:00 | 2018-08-31T15:16:07 | HTML | UTF-8 | Python | false | false | 393 | py | """
WSGI config for vfb_rest 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.1/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_SETT... | [
"nicolas.matentzoglu@gmail.com"
] | nicolas.matentzoglu@gmail.com |
69cd60edbe6f2e2089ecca8b242444c3acff3313 | cb935e728ae61c7e8cf367886e99ab568211d580 | /pong.py | 7a19eec8c0554e72fbbce3ac4c8597ad00812fa1 | [] | no_license | andrewhuyha/Pong | 65856f415310c69ce9cf0443faffd71b6a7cce78 | f7ef82c4666956d7b3de30bc657ee47c9a7854ca | refs/heads/master | 2021-06-24T13:53:20.276847 | 2021-04-27T05:12:05 | 2021-04-27T05:12:05 | 223,002,290 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,848 | py | #First Python Game!
#By: Andrew Ha
#Date Started: 10/3/19
import turtle
gameScreen = turtle.Screen()
gameScreen.title("Pong")
gameScreen.bgcolor("black")
gameScreen.setup(width = 800, height = 600)
#Score
playerOneScore = 0
playerTwoScore = 0
#Stops window from updating
gameScreen.tracer(0)
#Paddle 1(Left Side)
pa... | [
"noreply@github.com"
] | andrewhuyha.noreply@github.com |
9804f8564de4716be8abab8b427521211de74d90 | 50f938fe67c3c65c5a95fc8454e1a1817f8ef3d0 | /search insert position.py | f2531843935e0d7c7f0e89580b584ad07c903e25 | [] | no_license | guoziqingbupt/Lintcode-Answer | 44e4d5bab46fd1d3400c2de0b810269eb5606f20 | 4b92bf4ad6f170160550a052011e63c07a068106 | refs/heads/master | 2021-04-06T13:55:35.080919 | 2018-07-02T03:24:27 | 2018-07-02T03:24:27 | 125,335,286 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 507 | py | class Solution:
"""
@param A: an integer sorted array
@param target: an integer to be inserted
@return: An integer
"""
def searchInsert(self, A, target):
left, right = 0, len(A) - 1
while left <= right:
mid = (left + right) // 2
if A[mid] == target:
... | [
"guoziqing@bupt.edu.cn"
] | guoziqing@bupt.edu.cn |
00784a17b99b4077db9e72d37bf5cb26749d3043 | 64bf39b96a014b5d3f69b3311430185c64a7ff0e | /intro-ansible/venv3/lib/python3.8/site-packages/ansible_test/_data/sanity/code-smell/changelog.py | 710b10f6c08ec6f6580b2837b46f9a06e6302fd6 | [
"MIT"
] | permissive | SimonFangCisco/dne-dna-code | 7072eba7da0389e37507b7a2aa5f7d0c0735a220 | 2ea7d4f00212f502bc684ac257371ada73da1ca9 | refs/heads/master | 2023-03-10T23:10:31.392558 | 2021-02-25T15:04:36 | 2021-02-25T15:04:36 | 342,274,373 | 0 | 0 | MIT | 2021-02-25T14:39:22 | 2021-02-25T14:39:22 | null | UTF-8 | Python | false | false | 1,420 | py | #!/usr/bin/env python
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import os
import sys
import subprocess
def main():
paths = sys.argv[1:] or sys.stdin.read().splitlines()
allowed_extensions = ('.yml', '.yaml')
config_path = 'changelogs/config.yaml'
# conf... | [
"sifang@cisco.com"
] | sifang@cisco.com |
1aec4e2930ae7e12ace2baddd555e7260ec9e136 | 1eae467d92ed934a8aad94feff2abf1ba693dae0 | /1/codiceFiscale.py | 40fcad03e411aebd93a45e66a6f3a5596e3305a5 | [] | no_license | marcocolognese/Analysis-of-information-systems-LABHomeworks | 78267dae86bc900ea495395ad2dd3c0c97ec79f8 | effa8d432fda107eb0701d4818adb3198f783537 | refs/heads/master | 2022-06-30T07:40:30.461032 | 2022-06-16T06:52:11 | 2022-06-16T06:52:11 | 139,051,237 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,265 | py | #Moduli
import sys
import string
#Strutture dati Globali
vocali = ('a','e','i','o','u')
mesi = ('a','b','c','d','e','h','l','m','p','r','s','t')
comuni = {'udine':'l483', 'verona':'l781', 'legnago': 'e512'}
#CODICI DI CONTROLLO
regole_pari = {}
alfabeto = string.ascii_lowercase
for i in xrange (0,10):
regole_pari... | [
"marco.colognese1995@gmail.com"
] | marco.colognese1995@gmail.com |
9c7efaaa782f42236b3ee163464ef9d613bc033c | 0a5c103662e2ccea7698480bca28fb5c285aeafb | /info/dicom.py | 033a6a5fb0ed810ef20d7d4d98a1b7d9b7f8d109 | [] | no_license | joanshen0508/image_preprocessing | a8b9dc90e92552ca11af8b220a2ce235a558aef1 | 478e63593884d572a049590588df158c59447bab | refs/heads/master | 2022-04-02T17:08:56.559871 | 2019-10-29T15:24:48 | 2019-10-29T15:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,477 | py | from __future__ import division, print_function
import os
from os.path import join
from pandas import DataFrame
import re
import dicom
from inout.io_common import get_dicom_files_in_folder
class DicomDataSummary():
"""
This function allows the generation of information stored on nrrd files.
"""
def ... | [
"olmozavala@gmail.com"
] | olmozavala@gmail.com |
34d8d879fd1dc1d98ab6c49550b0c42bdac6e2f7 | f90022212ee26a5d5ecb08999a015439f2e01e48 | /ProTwo/AppTwo/forms.py | 0213efeb7eb4ac29e8c2d8b9b380f7afdcd1e505 | [] | no_license | miguelmatosduarte/django-deplyment-example | c389b0ffe348836395338bf5c0fa8152612c0f40 | 73aa51bd0d20ad1500028a0945f14086538c2842 | refs/heads/master | 2020-04-01T21:09:44.843492 | 2018-10-18T15:27:33 | 2018-10-18T15:27:33 | 153,640,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 158 | py | from django import forms
from AppTwo.models import User
class Sign_Up_Form(forms.ModelForm):
class Meta:
model = User
fields = "__all__"
| [
"miguelmatosduarte@gmail.com"
] | miguelmatosduarte@gmail.com |
a250c52c942542c5047617e59af057be46c29e3a | 36cae759a3d67da9b2787327b2a99c2c69525c56 | /B2BSWE/Patterns/Prog_Character_Desc.py | d141d88ca48ed7705e0a7c941df0f0847a6b11de | [] | no_license | solouniverse/Python | a64515695c359e3a6e30288742d0bc432adf20fd | c072c681ae29fce28676de1108d41ca9fc9cbb27 | refs/heads/master | 2022-11-30T20:17:43.715018 | 2022-11-25T13:54:49 | 2022-11-25T13:54:49 | 239,029,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 525 | py | try:
import sys, os
sys.path.append(os.getcwd())
from Utils import Prog_Utils as u
except Exception as e:
print("Exception: ", e)
utils = u.Utils()
n = utils.getNoOfRuns()
while n > 0:
rows, columns = utils.getMatrixSize()
ucAlphaIdx = 65 # A
lcAlphaIdx = 97 # a
for row in range(rows ... | [
"solouniverse19@gmail.com"
] | solouniverse19@gmail.com |
c94d59da1ef5d4f9417d826c016759856c5d32d8 | 1d26bc5d5c086fca8fa8bea30bd4b5779e23d25b | /h/services/mark.py | 74743ff47a80c1de8e94381e05b721a3d5952454 | [
"BSD-2-Clause",
"BSD-3-Clause",
"BSD-2-Clause-Views"
] | permissive | maticanzic/h | 65b34e538261f6682efb8b5bc4539b8cc370c6b1 | dc4890e8a29d187315d4f3de5964c9917f2c47c6 | refs/heads/master | 2020-07-10T18:37:44.845423 | 2020-03-01T21:41:24 | 2020-03-01T21:41:24 | 204,337,322 | 0 | 0 | null | 2019-08-25T18:59:30 | 2019-08-25T18:59:29 | null | UTF-8 | Python | false | false | 2,441 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from h import models
class MarkService(object):
def __init__(self, session):
self.session = session
def marked(self, user, annotation):
"""
Check if a given user has marked a given annotation.
:param user: The ... | [
"matic.anzic@gmail.com"
] | matic.anzic@gmail.com |
1d272705faf2bbdc1fdbd6b49ad2bb71b1a70d85 | 810a8ed334a29b81ddd5a4364c06d0272c3aae39 | /clash-of-code/shortest/hexagon.py | 4fd47cf99b5eb0c26472bb476aeafcc46280b64a | [
"MIT"
] | permissive | charlesfranciscodev/codingame | d7bdfc244cb58fa356dec73fb2f2ec5470755dbc | 37b8e269e40f1b4e9807c305874f3b97f7c03a03 | refs/heads/master | 2023-08-16T23:26:20.818882 | 2023-08-16T17:12:06 | 2023-08-16T17:12:06 | 179,561,845 | 53 | 26 | MIT | 2021-05-19T19:36:46 | 2019-04-04T19:16:12 | Python | UTF-8 | Python | false | false | 24 | py | print(6*int(input())**2) | [
"charlesfranciscodev@gmail.com"
] | charlesfranciscodev@gmail.com |
049ab8dd8552a31c314ba77c550026c4ad2f3698 | f7820f347356ec97d54b4dc81fd4b133371fe364 | /tests/test_events.py | ce6c5fc097e73c13a43ad5d94887f207a1c9853e | [] | no_license | geospatial-jeff/cognition-pipeline | a029c8009dbceb5605bad5cf0dd418b7091c2235 | 7343e7d18e01a3ac2a1646012e4e67f9d1698bec | refs/heads/master | 2022-12-14T15:46:38.086800 | 2019-01-06T22:36:31 | 2019-01-06T22:36:31 | 161,524,087 | 4 | 0 | null | 2022-12-08T01:31:18 | 2018-12-12T17:43:08 | Python | UTF-8 | Python | false | false | 4,010 | py | import unittest
import boto3
import os
import json
from handler import PipelineUnittests
lambda_client = boto3.client("lambda")
class MyPipelineTestCases(unittest.TestCase):
def setUp(self):
self.pipeline = PipelineUnittests()
def test_invoke(self):
message = {"hello": "world"}
resp... | [
"jeff.albrecht@slingshotaerospace.com"
] | jeff.albrecht@slingshotaerospace.com |
d68fceb4204ad57c994d5118e3cce37187d0db18 | 15828ab5229fa53505abdb53e853ea40c6af3083 | /main/urls.py | f467920aad2405a64cb23fe6f5f1503394d97438 | [] | no_license | kudep/conventusdemo | 33cce9d87b379bd46dd6caccb42880d0b8b1d889 | f65563b355ae41a8f0a961ee5a2ae7f6dbd80486 | refs/heads/master | 2021-01-22T23:16:32.562699 | 2017-03-21T21:19:33 | 2017-03-21T21:19:33 | 85,621,622 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 891 | py | """main URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based... | [
"kuznetsov.den.p@gmail.com"
] | kuznetsov.den.p@gmail.com |
9d1e8ffeefbf7cee1e32d4c38a282759cf4dd220 | 577ba42cbf0a3230966ac66ef60fd401486e4c06 | /website/apps/core/migrations/0021_transfer_year.py | 96778623b064dec78ae6724511bdcd803f81ac46 | [
"Apache-2.0"
] | permissive | shh-dlce/pulotu | 984ca86de3ffe03e83bbb15b0d497f1ebf190ecd | 82acbb8a3b7f3ec3acc76baffd4047265a77f7d3 | refs/heads/master | 2021-01-10T03:51:13.337840 | 2015-12-09T09:46:55 | 2015-12-09T09:46:55 | 46,917,922 | 2 | 0 | Apache-2.0 | 2021-11-16T11:51:48 | 2015-11-26T09:48:42 | Python | UTF-8 | Python | false | false | 8,072 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models imp... | [
"xrotwang@googlemail.com"
] | xrotwang@googlemail.com |
11e59e419b0c3729fbdc1c49c14476a7cdcae54a | 2feb2bdda21fb6a077fc19459484599390884ea3 | /t_laplace.py | 4e07761f9117cbe556c32e85dfc0c81f5a373fe9 | [] | no_license | mateussiil/analise-sistemas-lineares | f40082214d8ab3ba689b874beb332a293a17ad96 | 1c39945d07ff58bdbaa14aa40d9e9afb8f9fe0c4 | refs/heads/main | 2023-01-12T03:55:52.397907 | 2020-11-23T12:05:56 | 2020-11-23T12:05:56 | 314,095,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,078 | py | import sympy as sym
from sympy.abc import s,t,x,y,z
import numpy as np
from sympy.integrals import inverse_laplace_transform
import matplotlib.pyplot as plt
from sympy import symbols, fraction, UnevaluatedExpr
import conta as ct
s, w = symbols('s w')
def mod(num , den):
return np.sqrt(num)/np.sqrt(den)
def fase(... | [
"mateus_silva97@hotmail.com"
] | mateus_silva97@hotmail.com |
3a648159b1c2aea371c11614bfded14f7873bb3a | 136512dbc6a4352fbdf60b9324ea1a21aed87569 | /ex31.py | a4dbaaca4c02de91d83da15ae8d07ab51838d61c | [] | no_license | wxlsally1980/For-PY104 | f6c5c3e37db3ac2891cbf5b3e33a7677afffaadb | 15992692733207e054f3947332964b9e5e49d13b | refs/heads/master | 2021-01-02T08:31:06.219634 | 2017-08-02T07:40:36 | 2017-08-02T07:40:36 | 99,016,637 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | print "You enter a dark room with two doors. Do you go through door #1 or door #2?"
door = raw_input(">")
if door == "1":
print "There's a giant hear here eating a cheese cake. What do you do?"
print "1. Take the cake."
print "2. Scream at the bear."
bear = raw_input(" > ")
if bear == "1":
... | [
"noreply@github.com"
] | wxlsally1980.noreply@github.com |
ed5de0c4b11242dea29bd7aa8862a1c803564de6 | d72547d817698b73949bf2ea79a0a1f1de180a33 | /horse_racing/views.py | 824607e4db80e1ee12329708967fc129c16280f1 | [] | no_license | iuvei/horse-racing | 383c19525069c0fb362026e91e12e7709ffc2da5 | 2cdfbdfe4608728f1efd0ab2d931ba41c6723d05 | refs/heads/main | 2023-06-16T08:33:40.685724 | 2021-07-09T13:06:21 | 2021-07-09T13:06:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,317 | py | import string
import datetime
import random
from django.conf import settings
from django.http import JsonResponse
from django.contrib import auth, messages
from django.contrib.auth.models import User
from django.shortcuts import render, redirect
from django.views.decorators.csrf import csrf_exempt
from django.contrib.a... | [
"elahifaiz00@gmail.com"
] | elahifaiz00@gmail.com |
13ffabca7f530817e54a8039cdf0711514574bef | 2f05e458d1516a4fa13a1f177a2eeacff4780248 | /django/AIST_survey/migrations/0008_auto_20190218_2100.py | 615cd12ffc7e8e7ad1a9d7c1e4259cb1fc8bd56b | [
"MIT"
] | permissive | aistairc/voteclustering_aist | ecaee45dd126acf7b66c333145bd51098ec119d4 | f1ee7409698a05a99ce40cdccbe4c2b1f8f81b4c | refs/heads/master | 2023-02-19T00:32:50.433211 | 2021-01-25T05:42:09 | 2021-01-25T05:42:09 | 281,014,975 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 576 | py | # Generated by Django 2.1.3 on 2019-02-18 21:00
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AIST_survey', '0007_auto_20190214_1152'),
]
operations = [
migrations.AddField(
model_name='enquete',
name='has_pass... | [
"watashun@gmail.com"
] | watashun@gmail.com |
97593d01e20dce08a5a4070ab12a31941668ffee | 2dc1e4e9ee004d55fb2ae77f912a826b5689fd39 | /src/domarIRCbot/db.py | 9ccb0b506fbed01a55329299e63866105a9391d8 | [] | no_license | lenzls/eRepCrawler | e8003ee2df23ba9f48be7c2c838b0b2fb7024f4c | e5d44201412ffa65848ef3fe6a3b8a1f1de40107 | refs/heads/master | 2021-05-28T15:34:51.358263 | 2011-04-10T22:55:14 | 2011-04-10T22:55:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,063 | py | #
# Copyright (C) 2010 by Filip Brcic <brcha@gna.org>
#
# Persistent object database support, based on shelve
#
# 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 3 of the Licen... | [
"lenz.simon@googlemail.com"
] | lenz.simon@googlemail.com |
a6cc55e7e446cdc95f81488f5cd85d5dbad8bb7b | 55290a5cb22a87b3affe480c1eaa4653af5394d1 | /apps/storage/migrations/0001_initial.py | 53cd60f40824f7dea0b6724c6500103362b45a1e | [] | no_license | NatanaelMorales/ActividadFinal | 97fd235de51166dde33f89891f1de32d3bf47aac | 3727236b382e5677023f48e4d592c7046cef3840 | refs/heads/master | 2023-08-03T16:07:58.934166 | 2021-09-17T07:50:46 | 2021-09-17T07:50:46 | 407,407,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,123 | py | # Generated by Django 2.0.6 on 2021-09-17 03:04
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Cita',
fields=[
... | [
"rodnymorales739@gmail.com"
] | rodnymorales739@gmail.com |
0cb269eb77b00fc282b0b7a98450a744901f9bee | af4abf0a22db1cebae466c56b45da2f36f02f323 | /parser/fase2/team08/Tytus_SQLPARSER_G8/optimizacion/Instrucciones/C3D/LlamadaC3D.py | dc3d1a8494a7f8ac134381a1aa4f9d6d7c4e705b | [
"MIT",
"BSD-3-Clause"
] | permissive | joorgej/tytus | 0c29408c09a021781bd3087f419420a62194d726 | 004efe1d73b58b4b8168f32e01b17d7d8a333a69 | refs/heads/main | 2023-02-17T14:00:00.571200 | 2021-01-09T00:48:47 | 2021-01-09T00:48:47 | 322,429,634 | 3 | 0 | MIT | 2021-01-09T00:40:50 | 2020-12-17T22:40:05 | Python | UTF-8 | Python | false | false | 594 | py | from optimizacion.Instrucciones.TablaSimbolos.InstruccionC3D import InstruccionC3D
class LlamadaC3D(InstruccionC3D):
def __init__(self, id,linea, columna):
InstruccionC3D.__init__(self,linea,columna)
self.id = id
print("ENTRO A expresiones")
def ejecutar(self, tabla, arbol):
... | [
"michikatrins@gmail.com"
] | michikatrins@gmail.com |
b339fef273a720af6207908c8f0f7f502bff6272 | 920fb0402ccff659f76a6ad8bf5ea9c9fa6e3b48 | /python-oq/openquake/settings.py | 5f3767bb7c7f7b6c9d9e21615473d0eed1bc0832 | [] | no_license | arbeit/openquake-packages | 347eaab58fc5446640bd852ffae1a47eae2fea06 | d253f09d7848e6cf32e8c7756551436da413176b | refs/heads/master | 2020-12-25T17:37:55.058808 | 2012-10-23T08:21:20 | 2012-10-23T08:21:20 | 4,167,935 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,874 | py | # -*- coding: utf-8 -*-
# vim: tabstop=4 shiftwidth=4 softtabstop=4
# Copyright (c) 2010-2012, GEM Foundation.
#
# OpenQuake is free software: you can redistribute it and/or modify it
# under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the Lice... | [
"mh@foldr3.com"
] | mh@foldr3.com |
ffe86aff360fe66f589944e6f4e66d44eefc999a | ddfb17730fd7b9388bf6edc3b2414db6cdd2d6c9 | /zzz_old_stuff/GetVariables.py | e209e191db80a068022d4268b26072cef1bd48eb | [
"MIT"
] | permissive | JaakkoAhola/LES-scripting | eb09258a9acb7ab14b76f00073c8b6c921bdc300 | 1ebe99ce4292e58581bf50615cb8e0aa3d0c0af2 | refs/heads/master | 2020-09-03T14:24:26.332554 | 2020-04-02T12:15:19 | 2020-04-02T12:15:19 | 219,483,540 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,076 | py | def get_ts_variable(fname,var_name,target_time):
# Function for extracting scalar data from NetCDF file based on the given time value.
#
#import numpy
import netCDF4 as netcdf
# Open the target NetCDF file
ncid = netcdf.Dataset(fname,'r+')
# Variable
var = ncid.variables[var_name]
# Time
times = nc... | [
"jaakko.ahola@fmi.fi"
] | jaakko.ahola@fmi.fi |
0c8781f6951eaa7ebc1a3b119337df5890b6014c | 2ff2f6634e3da26c4a69374d0ffb7fc4d9485baf | /player.py | c6ccfc153615e91fdc50f609a5a7cde96ed31ca6 | [] | no_license | nsaenzz/Rock-Paper-Scissors | db59edac3c3e25c3c154eb223f471ae4052177f3 | 49b7b84bc70ac0bb722deba049a1196959b166e5 | refs/heads/master | 2022-12-07T20:36:13.884606 | 2020-09-07T15:55:46 | 2020-09-07T15:55:46 | 293,344,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | import random
"""The Player class is the parent class for all of the Players
in this game"""
class Player:
"""constructor clase, initial values of my_move,
opponent move, and all availables moves"""
def __init__(self):
self.my_move = ""
self.their_move = ""
self.moves = ['rock', '... | [
"neil_saenz@yahoo.com"
] | neil_saenz@yahoo.com |
b93260df15ec3b7ec598572a2cee1d41b1db0c22 | 41a672c9505b5b53c58a01d5455acc410949aa24 | /tests/aoutgoing/negative/group/C_39.py | 2f601a227919b3259ac2e7c4da1ce6d2ad77009c | [] | no_license | Alexsorgo/mobile_iOS | b045a0ea058726841c88158be8407b7ae45e893e | 7e298f890b408cedad9db9d0aefeccd9c10d6002 | refs/heads/master | 2022-12-12T17:26:14.039876 | 2020-03-18T06:34:56 | 2020-03-18T06:34:56 | 248,154,882 | 0 | 0 | null | 2021-06-02T01:13:05 | 2020-03-18T06:25:17 | Python | UTF-8 | Python | false | false | 956 | py | from configs import config
from enums import error_enums
from screens.group.group_screen import GroupScreen
from controls.menu import Menu
from tests.aoutgoing.base_test import BaseTest
from utils.logs import log
from utils.verify import Verify
class TestC39(BaseTest):
"""
User has the ability to create group... | [
"oleksii_mishchenko@epam.com"
] | oleksii_mishchenko@epam.com |
255564aec5fbd2217b5838adab632433649e48fb | 4a5f3b26fca176a80ca8eca796bc646bb225b017 | /LSTM/lstm.py | fd4fa6f6352b46b189efd111d6f07ccf1a6d69d2 | [] | 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 | 8,963 | py | # -*- coding: utf-8 -*-
import os, time
import numpy as np
import chainer
from chainer import cuda, Variable, optimizers, serializers, function, link
from chainer.utils import type_check
from chainer import functions as F
from chainer import links as L
from bnlstm import BNLSTM
from embed_id import EmbedID
activations... | [
"musyoku@users.noreply.github.com"
] | musyoku@users.noreply.github.com |
f9ce80fc7c86f46273b2cd1af74496ed58daa089 | 2fb77cffd832f9d80824913acaba89be286c21de | /polls/urls.py | 9b8b1297de4fcd612de92ff4b9fb16aa5ecfb900 | [] | no_license | eolhc/first_tango_w_django | d353612606511f739ba09f635f407f65bf013508 | cafa1a2228f5ddacc506395edf61cfd073d6aa27 | refs/heads/master | 2021-01-13T12:36:03.286231 | 2017-01-09T12:40:10 | 2017-01-09T12:40:10 | 78,404,570 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | from django.conf.urls import url
from . import views
# urlpatterns = [
# # ex: /polls/
# url(r'^$', views.index, name='index'),
# # ex: /polls/5/
# url(r'^(?P<question_id>[0-9]+)/$', views.detail, name='detail'),
# # # ex: /polls/5/results/
# url(r'^(?P<question_id>[0-9]+)/results/$', views.re... | [
"cqphua@gmail.com"
] | cqphua@gmail.com |
d7ba5806812a2679ca922d44651cc1c3964fc84e | 7d6373ddb734eb8a8b14c694e2b68d391972d7e0 | /talipp/indicators/OBV.py | 5d25726edea04de42c85c5d6d0feb54b385fc650 | [
"MIT"
] | permissive | b1nhm1nh/talipp | eaeda7c35afda62a81cc19b8ea856d6ab7b06422 | 9300aa8b632bcfe7b48ed63c06fb06793a4a5674 | refs/heads/master | 2023-07-20T19:34:25.272972 | 2021-08-31T15:03:58 | 2021-08-31T15:03:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 845 | py | from typing import List, Any
from talipp.indicators.Indicator import Indicator
from talipp.ohlcv import OHLCV
class OBV(Indicator):
"""
On Balance Volume
Output: a list of floats
"""
def __init__(self, input_values: List[OHLCV] = None):
super().__init__()
self.initialize(input_... | [
"28791551+nardew@users.noreply.github.com"
] | 28791551+nardew@users.noreply.github.com |
20669507584ec8d470940c096ab228e4dc37fb86 | 1dbb1f10e2c63997478aa96cf0de252de3e7048a | /leetcode-medium-collection/python3/addTwoNumbers.py | 27a32ea0f436cd2faf565052dbb7f815e956d9a2 | [] | no_license | Zchappie/Garage | 1f2e5e39d5143bb2a37c46696873e52f35d990b9 | db739652737b98818a63a6f8e8b7326e1673ec96 | refs/heads/master | 2020-12-26T17:53:41.586483 | 2020-08-30T08:06:31 | 2020-08-30T08:06:31 | 237,585,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,788 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, x):
self.val = x
self.next = None
class Solution:
def addTwoNumbers(self, l1: ListNode, l2: ListNode) -> ListNode:
# if not l1 or not l2:
# return l1 or l2
# power1 = 0
# num1 = [l1.val]
... | [
"zeek.uni@outlook.com"
] | zeek.uni@outlook.com |
5cff6f6902a20d16ffe5d07ddf2fbc4b5f81a60c | 96c1852886840edfa4aa61a2d9c4f80d4d868015 | /mainCode.py | 10afbd0c42deb2889ebec03721014c1a927f4870 | [] | no_license | rishitaggarwal/Teacher-Helper | 305c9b687320dfe1a95310eed02080c5ef9df47e | bc8213760f27bcfeea7f2f1b24cc8961a605e895 | refs/heads/main | 2022-12-30T06:05:43.768814 | 2020-10-22T11:07:38 | 2020-10-22T11:07:38 | 306,310,100 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | import pandas as pd
import csv
import plotly.graph_objects as px
df = pd.read_csv("data.csv")
studentdf = df.loc[df["student_id"]=="TRL_rst"]
print(studentdf.groupby("level")["attempt"].mean())
fig = px.Figure(px.Bar(x = studentdf.groupby("level")["attempt"].mean(),
y = ["Level 1","Level 2","Level 3", "Lev... | [
"noreply@github.com"
] | rishitaggarwal.noreply@github.com |
16badd2fbe280d1152ca490718023aef3087552f | 78873050d2335f6d6df45813e2ac9d974d7dce47 | /dictionary_data_structure1.py | 275c7d2b216d2eb849cd246343c4fdca403b1bb7 | [] | no_license | harshu1470/dictionary | 07af495c7f4f2642ba86936de769d70c50cf43e9 | a041d37370a53eec1414d9e270baf42885cb8aec | refs/heads/master | 2022-11-16T19:27:29.076444 | 2020-07-17T08:57:27 | 2020-07-17T08:57:27 | 280,376,391 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | #dictionary
dict = {"name": "harshit", "education": "B.Tech" ,"steam": "IT"}
#print dictionary
print(dict)
#print the keys of dictionary
print(dict.keys())
#print the key,values of dictionary
print(dict.items())
#print key for specified value
for key,value in dict.items():
if value=="B.Tech":
p... | [
"noreply@github.com"
] | harshu1470.noreply@github.com |
9544265ec76e9e6bce081dee8ea03c2ea278a212 | c7e0c86a24521a13c3b06c73244e9f5854f47284 | /smarts/env/tests/test_metrics.py | a9d43943678df687bf3dc894e97b9aeab7c2cbb1 | [
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"CC-BY-NC-4.0",
"GPL-1.0-or-later",
"LicenseRef-scancode-generic-exception",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.0-or-later",
"GPL-3.0-or-later",
"BSD-3-Clause",
"MIT",
"LGPL-... | permissive | huawei-noah/SMARTS | 243d1f1fa4d3afe52a1dd8f7c6c500054d4a1a97 | 2ae8bd76a0b6e4da5699629cec0fefa5aa47ce67 | refs/heads/master | 2023-08-31T05:06:29.064270 | 2023-08-28T23:11:31 | 2023-08-28T23:11:31 | 301,903,883 | 824 | 212 | MIT | 2023-08-08T14:52:00 | 2020-10-07T02:11:23 | Python | UTF-8 | Python | false | false | 10,884 | py | # MIT License
#
# Copyright (C) 2022. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 th... | [
"noreply@github.com"
] | huawei-noah.noreply@github.com |
0afb5da3c5bf377521020e90704fbd297b46c016 | e5b778a273e3888ad0575a9dada39d458158127a | /students/migrations/0009_lesson_icon.py | a4f54c33999a2c365ea2cd47c5cf66dca551542c | [] | no_license | SevenLines/django-tealeaf | 896784baead7b9514e83edad8c3c2defdcdd060b | 959dbcbdd37a4e8f45de400e71710c5e746a97da | refs/heads/master | 2021-01-23T00:01:43.793383 | 2015-05-15T15:58:52 | 2015-05-15T15:58:52 | 17,891,988 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 550 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
import filer.fields.image
class Migration(migrations.Migration):
dependencies = [
('filer', '__first__'),
('students', '0008_auto_20141128_1807'),
]
operations = [
migrations... | [
"mmailm@mail.ru"
] | mmailm@mail.ru |
e7a9408e49112ddd9f5aafdb874c3377f4ad2d1c | 767745e9c6207db9f6a9cf4f0be1af4732e7a111 | /raiden/tests/integration/transfer/test_directransfer_invalid.py | d88e7c9f8a32e7f40677ba8b9fc4c75d7c1a3340 | [
"MIT"
] | permissive | gcarq/raiden | ecc91860b99447028baea7fd171c19996644a5ef | 82241c6da9188c4e029aef3bb42f0ab9f055c0e4 | refs/heads/master | 2020-03-10T03:31:55.174762 | 2018-04-11T19:18:21 | 2018-04-11T19:18:21 | 129,167,527 | 0 | 0 | MIT | 2018-04-11T23:52:12 | 2018-04-11T23:52:12 | null | UTF-8 | Python | false | false | 6,738 | py | # -*- coding: utf-8 -*-
import pytest
from raiden.api.python import RaidenAPI
from raiden.messages import DirectTransfer
from raiden.transfer import channel
from raiden.transfer.state import EMPTY_MERKLE_ROOT
from raiden.tests.utils.blockchain import wait_until_block
from raiden.tests.utils.factories import (
UNIT... | [
"hack.augusto@gmail.com"
] | hack.augusto@gmail.com |
b4b91b5d66a9d54dce6d0b77cee372aaf37467af | 76effcf4ae0971e3ea0e69b743c21f98485d1d33 | /Python/spidey.py | cb76d83968ddd0982159b4a7bf1401591d94cf23 | [] | no_license | Vutov/SideProjects | 289684b58fef14d63f83954bb68baeb54f37e3fc | ba0e48825e3f90f9da0e7506c89354622198c4a5 | refs/heads/master | 2021-01-23T07:33:53.818539 | 2018-01-19T10:13:06 | 2018-01-19T10:13:06 | 26,778,882 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 883 | py | import requests
from urllib.parse import urljoin
from bs4 import BeautifulSoup
url = 'http://bg04b.eu/'
urls = [url]
visited = [url]
# Gets page's HTML
while len(urls) > 0:
try:
htmlText = requests.get(urls[0]).text
except:
print(urls[0])
# print(htmlText)
soup = BeautifulSoup(htmlText... | [
"VutovSpas@gmail.com"
] | VutovSpas@gmail.com |
c42d708638a67507a6e3940aec6bc82380a39f72 | 95e792a30d152bcb31f2d19035416349a0bbe1e5 | /galaxyCodeBase/tools/exaremeTools/HEATMAP_HIGHCHART/HEATMAP_HIGHCHART.py | 59a032cfe4821a1b3c7c6135d281cce6a9bae489 | [
"CC-BY-2.5",
"AFL-2.1",
"AFL-3.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | madgik/galaxy | b965f5f3680213b21db811f9fafcddb131df312e | 15f9388666fb8f5faa1d3f0fccbb9bf1c4a178ba | refs/heads/master | 2023-04-19T03:30:58.407359 | 2023-04-11T16:05:11 | 2023-04-11T16:05:11 | 174,144,956 | 0 | 0 | NOASSERTION | 2020-11-12T13:13:34 | 2019-03-06T12:53:27 | Python | UTF-8 | Python | false | false | 3,983 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import json
import sys
def getopts(argv):
opts = {}
while argv:
if argv[0][0] == '-':
opts[argv[0]] = argv[1]
argv = argv[2:]
else:
argv = argv[1:]
return opts
def heatmap(
inputJson,
... | [
"tkarabatsis@hotmail.com"
] | tkarabatsis@hotmail.com |
b2a23f1789cef25f1bf20ca22704a1b29e2ca619 | 607a1413172b9101165efea7eb8e6cdd7231ef21 | /BMI.py | 727c6c1d4ea0deed3f3b41ff86bc4000a9fe4293 | [] | no_license | zhangxiaofeng9971zxf/moocPython | 822479a83290f49e583260a41bcb7b633012ed95 | a35428842a17e051e8e6b2e8cf6cb8e945342276 | refs/heads/master | 2020-04-17T13:20:55.426988 | 2019-01-24T02:10:35 | 2019-01-24T02:10:35 | 166,611,841 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | height = eval(input('请输入身高m:'))
weight = eval(input('请输入体重kg:'))
def BMI(weight,height):
bmih = height*height
bmi = weight/bmih
if bmi <18.5:
print('国际标准偏瘦')
elif 18.5<bmi<25:
print('国际标准正常')
elif 25<bmi<30:
print('国际标准偏胖')
else:
print('国际肥胖')
print('{:.2f}'.f... | [
"zhangxiaofeng9971@126.com"
] | zhangxiaofeng9971@126.com |
366b8ceb78b71f9ddc9827b05f1fed1a6846ef14 | 6e723d5620c6320d3fae1ca7f5d6bbd3413f8953 | /chap13/demo6.py | c017aef0574fdbc001548aa9a8152d49545f486c | [] | no_license | ericprogram/python | 73d55375e931fb0b421d70e85e5dc7ecdf4ab6cd | e992153838a8b7d37e11b225027f394b4fae127f | refs/heads/main | 2023-04-02T21:37:20.350760 | 2021-04-07T13:10:55 | 2021-04-07T13:10:55 | 332,361,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 409 | py | # --*--coding:utf-8--*--
# author : hmchen
# email : hmchen@cenboomh.com
# date : 2021/1/26 16:49
"""
Object 类
"""
class Student():
def __init__(self ,name ,age):
self.name = name
self.age = age
def __str__(self):
return "我的名字是:{0},我今年{1}岁了".format(self.name, self.age)
stu = ... | [
"hmchen@cenboomh.com"
] | hmchen@cenboomh.com |
95f0a6b1dea85668266643f4da2a8db0c7fd0953 | e6b4a7169daec3b0bef0b17698efd7e3d296aa01 | /primerproyecto/manage.py | f2ce52c8085440235e840bb9f173f223f0781571 | [] | no_license | Billgeorge/Django | 3b46a9132726e99efe14def2514987d9aea11f13 | 893497c226a1090e53fc67b0793d79d831b1520d | refs/heads/master | 2022-12-20T09:39:36.881601 | 2016-01-21T01:48:06 | 2016-01-21T01:48:06 | 50,071,448 | 0 | 1 | null | 2022-12-10T20:19:36 | 2016-01-21T00:52:37 | Python | UTF-8 | Python | false | false | 257 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "primerproyecto.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"jorjek4@hotmail.com"
] | jorjek4@hotmail.com |
4b6f4ab0d4309902059bfe4311720cbd57cae1ae | 19b9bc401df28ede4b4a5f6fa00ee17042299719 | /archive/To09-14/09-10/seongbin_09-10.py | 6914e1c9bc761a600e9f8594b7b6879b289c387e | [] | no_license | kibitzing/FluentPython | fb0c21c164e0bf7a543e8c3c0d92c6f6c303ebb6 | 75c743ce4c5e65c2d891babd23f0e4b873924000 | refs/heads/master | 2021-07-10T23:42:58.224235 | 2019-02-12T14:24:06 | 2019-02-12T14:24:06 | 147,219,835 | 7 | 1 | null | null | null | null | UTF-8 | Python | false | false | 571 | py | Contributors = [(1, 'kbitzing', 'Inha University', 'Electronic', 'Male'),
(3, 'kdhht2334', 'Inha University', 'Electronic', 'Male'),
(2, 'khahn0213', 'Seoul University', 'Mathematics', 'Male'),
(4, 'zelabean', 'Inha University', 'Electronic', 'Male'),
(5, ... | [
"noreply@github.com"
] | kibitzing.noreply@github.com |
0d9da472ddc42d26ecd7df9af9a4c9d5fff890c6 | c638d7f179f12bd6fb8f62bb00467e5b5fd97e8e | /python/0015.py | 13e11a869843d9125ea5f619b86c0c7c77cbffb0 | [] | no_license | colblitz/projectEulerTeamCarrot | 32044477fcda892e338e628f4d44db2760029b12 | 23284f4defb8ddab33feefea8f5ee2fa162cfd67 | refs/heads/master | 2021-01-18T20:20:22.758054 | 2014-06-14T08:13:04 | 2014-06-14T08:13:04 | 8,715,736 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 979 | py | from math import *
from util import *
#######################
# Project Euler #0015 #
# Team Carrot: #
# Joseph Lee #
# Benjamin Lee #
# Stephanie Yu #
#######################
'''
Starting in the top left corner of a 2×2 grid, and only being able to move to the right and down, there are ... | [
"z.joseph.lee.z@gmail.com"
] | z.joseph.lee.z@gmail.com |
b724034fa2c2040a7580228001de6c6eafbd8d43 | 10d33e1e6eb2280720937e239f8733d968b85eac | /myplot-new.py | dc880069f339021ab15860f00fd9eae9ab39e426 | [] | no_license | rdangovs/animation | 8259999dcf8af38eff4783fcc6c26c276e609489 | 390a984399541668e145ddc5f60bd8889d493a88 | refs/heads/master | 2021-01-25T10:56:56.258615 | 2018-03-01T03:38:24 | 2018-03-01T03:38:24 | 123,377,709 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,283 | py | import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
ITER = 20000
fig = plt.figure()
ax = fig.add_subplot(111, autoscale_on=False, xlim=(-2.0, 2.0), ylim=(-2.0, 2.0))
ax.grid()
line_lstm, = ax.plot([], [], 'o-', lw=2, color = "blue")
line_eunn, = ax.plot([], [], 's-', lw=2, col... | [
"Darumen@dhcp-18-111-97-46.dyn.MIT.EDU"
] | Darumen@dhcp-18-111-97-46.dyn.MIT.EDU |
9ef06f88374271a107c201be2ffdddafe32e9977 | 369f2d06856d70a6f68b8f81bca203ebce8e3a89 | /wholesale_data.py | 11925ef848f12aea4489e1a25360e244ecb966c3 | [] | no_license | Enantiodromis/Data_Mining_UCI_Machine_Learning | ffec3a22690dcbc2f30a7a08e1ddef1a12141c0e | 79b23b3eeae02befbbbc3a7ed03331122d5d911e | refs/heads/master | 2023-09-01T05:08:27.897012 | 2021-10-23T12:01:04 | 2021-10-23T12:01:04 | 337,441,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,576 | py | # AUTHOR: GEORGE BRADLEY
# LAST EDIT: 18/02/2021
# TITLE: CW_PART_2.PY
import numpy as np
import pandas as pd
from prettytable import PrettyTable
import matplotlib.pyplot as plt
from sklearn.cluster import KMeans
from sklearn.metrics.pairwise import euclidean_distances
import warnings
import matplotlib.cbook
warnings.... | [
"georgerebradley@gmail.com"
] | georgerebradley@gmail.com |
89eea659b56e7e721f9943ae5b3106bc2d905972 | b8a373f6ef648da7eb50b193723a17e1cb793504 | /djangoapp/frecord.py | 3bfb8665c2edd53c1829a8dc70f3269cd0e5d869 | [] | no_license | strongqli/visualstock | 37627e7fe3c8ae21cf2fff646bebd764a97f02da | 18662a34db3734604f59a330babfed6cf7300787 | refs/heads/master | 2016-09-06T01:50:41.566194 | 2014-03-20T09:21:39 | 2014-03-20T09:21:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,878 | 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
# Feel free to rename the models, but don't rename db_table values or field names.
#
# Also note: You'll have to ... | [
"strongqli@gmail.com"
] | strongqli@gmail.com |
a2e56cf287af531ae6f21480a03d26a1ab96e9e5 | cb476c5fdf7e7da1abb4229635a79ea88f465399 | /lianxi/qqmusic.py | 22408b320c1ed8e8d9b7428bfa9ed5970774f9df | [] | no_license | ZHAISHENKING/spiderapp | cb66f68f3ec40f027d8cdbdd1ec357f25c668cda | 51b09dd98e64e6d0612a313ff6c90f6fbd0f63dc | refs/heads/master | 2022-12-15T00:30:44.168143 | 2018-07-17T13:42:57 | 2018-07-17T13:42:57 | 136,556,921 | 0 | 0 | null | 2022-07-06T19:49:39 | 2018-06-08T02:42:16 | Python | UTF-8 | Python | false | false | 2,852 | py | import requests
import json, time
class qqMusic(object):
def __init__(self):
self.date = time.strftime('%Y-%m-%d', time.localtime(time.time()))
def get_json(self):
header = {
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chr... | [
"18700790825@163.com"
] | 18700790825@163.com |
7b193febd0816faa15a5993d96e7648bf84d756e | acbf7d7e61c90786c9535599d4ecb0f378ac44e8 | /Leetcode-100/first_last_in_sorted.py | b27460afdf171ccd0b14e993088c2f1e51bfc1f5 | [] | no_license | kumawat0008/Data-Structures-Algorithms | 61f02e4126de87b8c0a929acb00ea94dce48738b | 5bab125578b4a662c864fd9d5e929861fdbf33ec | refs/heads/master | 2022-06-26T19:45:26.193765 | 2022-06-09T10:50:32 | 2022-06-09T10:50:32 | 239,322,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | class Solution(object):
def first(self, arr, low, high, x, n):
if (high >= low):
mid = (low + high) // 2
if ((mid == 0 or x > arr[mid - 1]) and arr[mid] == x):
return mid
elif (x > arr[mid]):
return self.first(arr, (mid + 1), high, x, n)
... | [
"dkumawat@ciena.com"
] | dkumawat@ciena.com |
3747c58466d61b4927db56413de77336dc18c23c | a29a73de4df917da642adec96286d7ed3b2a0a42 | /myDPPO30/utils.py | 517d56784cc6eb43201f5f64de6650e156de4859 | [
"MIT"
] | permissive | tankche1/Learn-To-Run | 9f0546f2d2c74cf18879579a3ccb2aeb3bea2765 | 27a48c8e1ec5864ab58caa9df4098a1089641cc0 | refs/heads/master | 2021-03-24T11:07:15.949621 | 2017-10-18T14:43:41 | 2017-10-18T14:43:41 | 101,266,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,021 | py | import math
import numpy as np
import torch
import torch.multiprocessing as mp
class TrafficLight:
"""used by chief to allow workers to run or not"""
def __init__(self, val=True):
self.val = mp.Value("b", False)
self.lock = mp.Lock()
def get(self):
with self.lock:
ret... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
af2f6fbc88738658ff7601a7778fe71e41a634e5 | 8959b1441d205e1e875859358e435263e0b1c19f | /Python/debug/td.py | 921eb44824757efc5e7cacce06f443fdcd6b5f23 | [] | no_license | jamesregis/my-bomberman | 01b4a3f065d51f1ec738ffdd18234aa02935c60a | 981c73469c8df127aa1980ac0a683343a4dd58ea | refs/heads/main | 2023-04-18T12:36:20.977097 | 2021-04-22T20:47:05 | 2021-04-22T20:47:05 | 360,639,182 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 185 | py | import threading
def hello():
print "hello, world"
def hello2():
print "hello, world 2!"
t = threading.Timer(5, hello)
t1 = threading.Timer(2, hello2)
t.start()
t1.start()
| [
"james.regis@bara.ca"
] | james.regis@bara.ca |
c60b5a503cfaa9e6f2b04e43b863f1aa2380a421 | ef73a39feb698bf2b8c5d84ca0f05e7d88b3a646 | /Testcase/test_serviceManage.py | 223348b1ddab9a20babadfb3bd92656bfcff5e9f | [] | no_license | hedanhe/ApiTest | ac9d569bce769af76c56ef1b656dc7a5a5266d71 | 0b9aa2e7eff90bfa5f7c98270325fa9dc71bbeaa | refs/heads/master | 2022-11-29T18:35:50.205741 | 2020-08-07T03:58:58 | 2020-08-07T03:58:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,648 | py | #!/usr/bin/env python
# encoding: utf-8
'''
@author: yanghong
@file: test_serviceManage.py
@time: 2020/5/25 11:19
@desc:增值服务管理-服务项管理
'''
import json
import warnings
import allure
import pytest
from Common.Assert import Assertions
from Common.DB import DB_config
from Common.Login import loginAdmin
from Common.logger i... | [
"hong.yang@qizhixinxi.com"
] | hong.yang@qizhixinxi.com |
6d41fea80601f45b88584c7c63c5d46b02129c99 | e828768c2812f1248f5eac46e22482f1095b23f7 | /custom/paceToTotalTime.py | f6d237e9f983a385bdbe3716dd9c1f7f4b43f64c | [] | no_license | derek-watson14/HackerRank | 0ff33d19210350e400b3b8bdd2589e2957e0c4e5 | 957e9c0868d1b82e9f040bd7700c134b80abdf18 | refs/heads/master | 2023-07-16T15:47:24.147976 | 2021-09-03T00:52:33 | 2021-09-03T00:52:33 | 318,676,447 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,237 | py | # Convert a pace + distance to total time or time + distance to pace
class UserInput:
def __init__(self, unit, mode, time, distance):
self.unit = unit
self.mode = mode
self.time = time
self.distance = distance
class Time:
def __init__(self, minutes, seconds):
self.minutes = minutes
self.sec... | [
"derek.watson92@gmail.com"
] | derek.watson92@gmail.com |
cc48085dc7ade65b50e1a12660038561569afbf8 | 9032a759b29da1c5f6a3aeb710e06c2aa6080a54 | /03_zhihu/zhihu/items.py | 2f44ad005e7a4166258e10bfcb1b47949f0accef | [
"MIT"
] | permissive | GongkunJiang/MySpider | 5e5aa89348a8a94cb1b3b807dcbfe1662e534d14 | 8c088f696679b13568843af521279f9f25f40314 | refs/heads/master | 2020-03-27T10:32:14.768792 | 2018-12-07T11:35:18 | 2018-12-07T11:35:18 | 146,427,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 517 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# https://doc.scrapy.org/en/latest/topics/items.html
from scrapy.item import Item, Field
class ZhihuItem(Item):
# define the fields for your item here like:
# name = scrapy.Field()
url = Field() #保存抓取问题的url... | [
"jgk19950903@gmail.com"
] | jgk19950903@gmail.com |
776377c3da71f0b0d361f79fd983ddb6ef38ab0b | 5df19cecae55fd4852d2d89620b059a5d6d76ad0 | /Koo/Fields/Calendar/__terp__.py | 8bcfacca93c271a5be0bcca132ea10ceccebe719 | [] | no_license | gisce/openerp-client-kde | 5f8acbad46f83b9b493029b2f5518dc8576782f7 | b17aabb2e9c6cece0c855f665047d342701ca78f | refs/heads/master | 2023-03-03T01:03:59.272851 | 2023-02-15T11:02:44 | 2023-02-15T11:02:44 | 114,909,552 | 2 | 3 | null | 2023-02-15T11:00:38 | 2017-12-20T16:41:43 | Python | UTF-8 | Python | false | false | 2,057 | py | ##############################################################################
#
# Copyright (c) 2008 Albert Cervera i Areny <albert@nan-tic.com>
#
# WARNING: This program as such is intended to be used by professional
# programmers who take the whole responsability of assessing all potential
# consequences resulting f... | [
"albert@nan-tic.com"
] | albert@nan-tic.com |
764623587649698f98cff8508d79386a867a299d | 5b7f989b51e3fcc626f118c01aae6bc8d1c48144 | /finance/finance/yafinance 10.34.31 PM/migrations/0001_initial.py | d73aca49462fb6547c345c22cf4f4ee2912b4a0a | [] | no_license | Lucysaiheng/Yafinance | 3b2cbf10cfe9ce5d310cbe69aec3459ba3306ba6 | 88bc5c16458aa291580336eb36d7fc73d6926b91 | refs/heads/master | 2020-03-14T18:19:00.262241 | 2018-05-03T02:34:51 | 2018-05-03T02:34:51 | 131,666,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,046 | py | # Generated by Django 2.0 on 2018-04-30 09:21
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Company',
fields=[
('id', models.AutoField(au... | [
"asaiheng@gmail.com"
] | asaiheng@gmail.com |
250d64a708bded929b8db3d0633e5156cedaeb5c | 5c008dad5881eaefe36501628d8d3c16e122b9c0 | /Week_01/week_01_problems/w01_problem_01.py | d303b8e283b07f7443eaaf687b58a2a77d70d43a | [] | no_license | xeusteerapat/MIT-6.00.1x-EDX | 846787898b06cd5223fa825cf9757f2e92449b02 | cae706564efdc41e435b309493484ea9348c908d | refs/heads/master | 2020-07-18T22:30:43.502441 | 2019-11-04T16:16:51 | 2019-11-04T16:16:51 | 206,325,175 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 223 | py | s = 'azcbobobegghakl'
num_vowels = 0
for vowel in s:
if vowel == 'a' or vowel == 'e' or vowel == 'i' or vowel == 'o' \
or vowel == 'u':
num_vowels += 1
print("Number of vowels: " + str(num_vowels))
| [
"xeus085@gmail.com"
] | xeus085@gmail.com |
4937c31eb53c8d0279fb30488f96365137beb3f6 | 136cb5450842633f86d1d806b1d7e93bc8672ea3 | /tests/test_utils.py | cc9036eb40a0f0b3cdd631ad635c085793b52e8e | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | jimr/Showcase | 2f7c647cab31953f0beb08b35bbcac9fded9e2e2 | 1685680954e3df825c1b1102a2140e3395533376 | refs/heads/master | 2023-08-31T01:36:34.360692 | 2021-06-11T10:34:40 | 2021-06-11T10:34:40 | 84,255,929 | 0 | 0 | MIT | 2023-08-21T22:59:31 | 2017-03-07T23:17:53 | Python | UTF-8 | Python | false | false | 967 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import unittest
from showcase import utils
class TestProbablyText(unittest.TestCase):
def path_to(self, fname):
return os.path.join(os.path.dirname(__file__), 'data', fname)
def check_file(self, fname, expected=True):
self.assertEqual(... | [
"jim@jimr.org"
] | jim@jimr.org |
a0f25305534ecd8df21add4bcac177aedf095136 | 57d370a3b4d1255b881787bd89c1ed0ace77714e | /MainApplication/Aggregator/CombineResults.py | 4f3bc09dd8bca1b612efddf816f144c517304e88 | [
"Apache-2.0"
] | permissive | kiliczsh/infinity-search | 908ba715440f262335f44480b77428a66caceb84 | 1c08cbf38157d46a3395127fa258a485e1f8123c | refs/heads/master | 2022-11-28T01:05:22.580663 | 2020-04-01T21:01:47 | 2020-04-01T21:01:47 | 285,981,195 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,765 | py | import SearchEngines.Bing.BingSearch as Bing
import SearchEngines.Mojeek.MojeekSearch as Mojeek
import SearchEngines.WikiMedia.WikiSearches as WikiMedia
formatted_query = ''
# Just making the query in the form of a query string by replacing the spaces with a '+'
def format_query(query):
global formatted_query
... | [
"N/A"
] | N/A |
b1bd4b4e18caf300b155f876311c7836c1d9b4d3 | dfca57356cfabc01b42fdbca21c9692eb552ceb0 | /core_algo.py | 006dd340abcd335d95a0174e31d49bc5e864b381 | [] | no_license | simonZhou86/image-denoising | 8b634c42bd9bb93372335da34f0d64bb192722f4 | 4a57f8a6308256acce329fd528ca9df1740986ef | refs/heads/main | 2023-06-24T16:14:55.519620 | 2021-08-05T07:40:18 | 2021-08-05T07:40:18 | 377,167,696 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,934 | py | import sys, os, math
import numpy as np
from PIL import Image
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
def ft1D( signal ):
return np.fft.fft( signal )
# Input is a 2D numpy array of complex values.
# Output is the same.
def forwardFT( image ):
# YOUR C... | [
"noreply@github.com"
] | simonZhou86.noreply@github.com |
8ef1e4cdfe95348f881050bf452ff59aa6fd624a | 5e3816e1dd190a8e8b90c3a82409c6d910e8c699 | /test.py | 8e711cfe9419d301620ec137f02da35687e401a4 | [
"MIT"
] | permissive | Vignesh-Kumar-07/Twitter-tweets | 8ea90b11b77196e57f7af5a20511c7b09fa9f576 | 1d81ac3e4503d15f8bdf0e67c3559b14c0ecf1f6 | refs/heads/main | 2023-08-17T17:23:15.411209 | 2021-10-11T07:36:14 | 2021-10-11T07:36:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import re
# To Read Tweets directly from Program:
tweet = """Most employees fulfilled with used hardware based on device turns four years old.
Some job categories (hardware or software developer, technical sales, etc.) are eligible at three years.
Recognizing that employee job roles or device request qualities an... | [
"noreply@github.com"
] | Vignesh-Kumar-07.noreply@github.com |
737b5c13e51941c403388b2ef31e09078d6855db | f565655ca13bc13053f6809031bfaab88041a5fb | /analyzer/views.py | 3e59543bfdbeccae60bc408141a1d0e70c2796de | [
"Apache-2.0"
] | permissive | multipathtester/mptcpbench-apps | 7d34fa116295ee50a0d397d08e7a5858c1c37959 | 12a7ff1fbb95041e7e5adf551377c8cb97f62b7c | refs/heads/master | 2020-06-04T06:27:08.342550 | 2019-06-14T08:19:36 | 2019-06-14T08:19:36 | 191,904,136 | 0 | 0 | null | 2019-06-14T08:19:39 | 2019-06-14T08:17:36 | Python | UTF-8 | Python | false | false | 1,720 | py | from django.shortcuts import render
from django.http import Http404
from django.contrib.auth.decorators import login_required
from .mobility_helper import get_mobile_stats
from .benchmark_helper import get_benchmark_stats
from .multipath_helper import get_multipath_stats
from .mobility_detail import get_mobility_detail... | [
"quentin.deconinck@uclouvain.be"
] | quentin.deconinck@uclouvain.be |
5c4659b8640f73ab91097d2497532feefa68587b | 586927f7eb1e6f07bc169353b06dc51520bb11a1 | /src/valdomain.py | bec7e3eeda2c797605916c662226cc8bf6de7586 | [] | no_license | davidvictoria/xibalba | fa71477b6667017dd34e470083d5ddce7633fd4e | a7c21b343d3a78d60db8bf5019eb4b3dae901d22 | refs/heads/main | 2023-08-21T21:58:40.467668 | 2021-09-30T20:25:47 | 2021-09-30T20:25:47 | 410,717,457 | 0 | 0 | null | 2021-09-30T20:25:48 | 2021-09-27T02:30:04 | null | UTF-8 | Python | false | false | 11,303 | py | import socket
from ssl import PROTOCOL_TLSv1
from OpenSSL import SSL
import pendulum
import requests
import json
import time
def get_domains(cert):
san = ''
ext_count = cert.get_extension_count()
for i in range(0, ext_count):
ext = cert.get_extension(i)
if 'subjectAltNam... | [
"devteam@bpm.consulting"
] | devteam@bpm.consulting |
b020ce1d7374b7195c3545ce178c7b9387f9ddd1 | 72b8e2d69cca8b5ecd28e61ef61fef85f9dd0489 | /q190.py | 3bf0f6319123cdb7f2dd25ae44e6f074a9eafef1 | [] | no_license | maples1993/LeetCode | f975bc8570729d998481b097ee04effe5a7c5977 | 032016724564d0bee85f9e1b9d9d6c769d0eb667 | refs/heads/master | 2020-03-27T22:05:07.397746 | 2018-11-07T06:13:56 | 2018-11-07T06:13:56 | 147,203,152 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | """
Date: 2018/9/6
"""
class Solution:
# @param n, an integer
# @return an integer
def reverseBits(self, n):
n &= 0xFFFFFFFF
print(bin(n))
res = 0 & 0xFFFFFFFF
count = 0
while count < 32:
count += 1
res <<= 1
if n & 1 == 1:
... | [
"panchao1993@126.com"
] | panchao1993@126.com |
e1fc43f35600eb1ab30bcb687acd093d5345c74f | 9743d5fd24822f79c156ad112229e25adb9ed6f6 | /xai/brain/wordbase/adjectives/_veritable.py | c4260f18bbed72556a78374e7679857fe6dc69a3 | [
"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 | 488 | py |
#calss header
class _VERITABLE():
def __init__(self,):
self.name = "VERITABLE"
self.definitions = [u'used to describe something as another, more exciting, interesting, or unusual thing, as a way of emphasizing its character: ']
self.parents = []
self.childen = []
self.properties = []
self.jsondata = {}... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
8917e8c28c35145f26b8c83dc4634b8657f48236 | 26317cbbf23c87a8596f490e15741c4a297ed176 | /constr.py | 81807d407aacb5cbd98127b57dab82bfee7db94f | [] | no_license | vishnuhs/mypython | 694a829298ccb28e5a2f5d1969ffee92f3c90c9d | 8069fa24b1cac76392a29881a868325ffede0c32 | refs/heads/master | 2020-04-21T00:15:44.713817 | 2020-04-02T08:02:08 | 2020-04-02T08:02:08 | 169,191,138 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 183 | py | def convert(text):
words=text.split(";")
for word in words:
strwords=word.split("=")
words[words.index(word)]=(strwords[0],strwords[1])
return words
| [
"vishnu.hs1998@gmail.com"
] | vishnu.hs1998@gmail.com |
31af510cc88211d647550bb4b15a5f9689c61f99 | 0a6a908b2c098613bdcad4221fcb0e4e1c1f7d25 | /data Collection.py | 485179c4b6fd9e7ddc74fb4372fc212382195885 | [] | no_license | DanishKumar/Masters-Thesis | e9f1a14bdc28ad3adb4430e741fd50f44649b39b | c1d97dda56692391bb0b83f1b143738e068425ff | refs/heads/master | 2020-06-23T23:31:08.346458 | 2019-07-25T10:37:15 | 2019-07-25T10:37:15 | 198,785,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,713 | py | import tweepy
import csv
import os
ckey = "lTtJFQw7VcSmGuq2rXEPPtiRM"
csecret = "bbEpVT3VLptOw2k8SoVn4HgFP6B0REAxbXwQrxmuGacYb15I5K"
atoken = "2217386142-N9Zg6ySIWmLZm2mHFsBGIf9A32OsKp9jOQZ24gf"
asecret = "cqq2HCyJAzPkbGcWL0ySWqvHuwWYqF7TF4O4czI1Dqqoa"
OAUTH_KEYS = {'consumer_key':ckey, 'consumer_secret':csecret,
... | [
"danish.kumar93@gmail.com"
] | danish.kumar93@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.