blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
38bb806085f83c9f2e467791d7d0f916a662d9f8 | 12fd73b5e92684756a921f12b4c1e10d3c325c11 | /sample/handlers.py | f895fd3afdd60a41d49a6f417cd1dd7489fd8764 | [] | no_license | techmaxsolucoes/airy-sample | 12207ecffcd75c2e2065a57a8111bea55759be8f | 27dba234153eaec27f372b2430e85831f170ce1e | refs/heads/master | 2021-09-08T15:33:57.753083 | 2012-04-30T16:11:51 | 2012-04-30T16:11:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 242 | py | # Create your handlers here
from airy.core.web import *
class SampleHandler(AiryHandler):
def get(self):
#some logic here
variable = 'assign data'
self.render('#content', 'sample/index.html', variable=variable)
| [
"oleg@oleg-VirtualBox.(none)"
] | oleg@oleg-VirtualBox.(none) |
24f7a855b2bfe631459fccaa7db80583160ea706 | c31b6590dadc3383c8a09150f703240a40c74686 | /lists/tests.py | 63883493d563df5e60bb53f575d51e7dff7319ff | [] | no_license | MtzwOsk/TDD | 1be652380416379cd9ddfadc501ce755237e1f1a | 2dd1de57dde84cac92db7a1b2fd6ad02778d9c0c | refs/heads/master | 2021-01-17T08:04:14.344637 | 2016-07-20T17:45:32 | 2016-07-20T17:45:32 | 61,835,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,674 | py | from django.core.urlresolvers import resolve
from django.test import TestCase
from django.http import HttpRequest
from django.template.loader import render_to_string
from lists.views import home_page
from lists.models import Item
class HomePageTest(TestCase):
def test_root_url_resolves_to_home_page_view(self):
... | [
"tomaszgaj80@gmail.com"
] | tomaszgaj80@gmail.com |
446c51902ff2d2eaba0a2eb86d08da348892252c | 5351ad2613349410868f4df7552f55e656826e47 | /project/dia_pckg/__init__.py | bbb367885a9d57bd2c6e2caab3531756a5d08a40 | [] | no_license | damiano1996/DataIntelligenceApplications | b861a5b4143bca1ded9eeb253db0f93405463168 | 125147257fb8d7bbbe0deef070b0c3c0bddeffe0 | refs/heads/master | 2023-06-12T23:46:56.193956 | 2021-07-09T06:04:46 | 2021-07-09T06:04:46 | 250,608,258 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 18 | py | name = 'dia_pckg'
| [
"damiano.derin@gmail.com"
] | damiano.derin@gmail.com |
d041ac4f1d2db52cd6f610107af054aa806f1e9e | 593bdfb9c7ed5bdcd3b4f67cc88c55a7b1507a84 | /env/bin/pip-2.7 | c3fc832e27425918e86f6669249e6b2c1080bbc1 | [] | no_license | megapunk/tutorial | 586d7058554c89a30ab25cc3c10aba00d60f566e | 59253ce06a9e53e8c6b6aa1cb5980a4c357946ca | refs/heads/master | 2016-09-01T20:43:38.636171 | 2014-03-03T16:58:57 | 2014-03-03T16:58:57 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 315 | 7 | #!/home/neptune/Documents/Tutorial/env/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==1.1','console_scripts','pip-2.7'
__requires__ = 'pip==1.1'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('pip==1.1', 'console_scripts', 'pip-2.7')()
)
| [
"simon.szatmnari@twelvecubes.com"
] | simon.szatmnari@twelvecubes.com |
c23cfe53e55fba034a83f79fbd851b19f36b0956 | 9620dd7eb34b9cfd9b8b3c653d962e0dd3fe15a4 | /setup.py | 22678495759d3cd86419a42f05ae6dc9be71a934 | [
"MIT"
] | permissive | jakublala/LatticeDNAOrigami | 920494d61f43856c5329968b8820547e5babf377 | efd1147deea534f1c9cd0ab22bc3c5dec89c3c52 | refs/heads/master | 2022-12-20T05:34:17.629326 | 2020-09-28T07:16:57 | 2020-09-28T07:16:57 | 288,698,440 | 1 | 0 | MIT | 2020-08-19T10:10:06 | 2020-08-19T10:10:06 | null | UTF-8 | Python | false | false | 219 | py | """Setup script for analysis module and related scripts LatticeDNAOrigami"""
import glob
from setuptools import setup
setup(
name='origamipy',
packages=['origamipy'],
scripts=glob.glob('scripts/*/*.py')
)
| [
"alexandercumberworth@gmail.com"
] | alexandercumberworth@gmail.com |
1857e98731a98fbbf1200a924206070e99daf9c6 | bb853b657537eca893032ad08e4c843b5195fa35 | /dateandtime2.py | ff50587bccebcdb78c87b2dd95e50b62bff026b6 | [] | no_license | PrathameshDhumal/Artificial-Intelligence-Assistant-With-Python | 584064e5219479576244d74aafb6f4e4dcbd16cc | 6afcdf792a2e0e1d6168dfb732add3d63158f38d | refs/heads/main | 2023-05-31T01:31:19.202678 | 2021-06-30T19:57:53 | 2021-06-30T19:57:53 | 379,478,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 472 | py | import pyttsx3
import datetime
engine = pyttsx3.init()
def speak(audio):
engine.say(audio)
engine.runAndWait()
def time():
Time = datetime.datetime.now().strftime("%I:%M:%S")
speak(Time)
time()
def date():
year = int(datetime.datetime.now().year)
month= int(datetime.datetime.... | [
"noreply@github.com"
] | noreply@github.com |
ea578155edc28e2faf16b6489123349cb41a4afa | 949df7aa5f768c6da29dc1fdce482157758967a3 | /guns.py | fa08d491bfcce549dccfd25e08e028639d09649f | [] | no_license | datMen/Guns-Plugins | 905dad1027e69dcf9404a74822651cba2463fbe8 | 78646f0f2c668910d6ab279e09f8db9d7213158f | refs/heads/master | 2021-01-20T07:52:36.093050 | 2014-02-23T18:10:44 | 2014-02-23T18:10:44 | 14,366,690 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 21,394 | py | __author__ = 'LouK'
__version__ = '3.0'
import b3, random, time, thread, threading, re, string
import b3.events
import b3.plugin
#--------------------------------------------------------------------------------------------------
class RandomGuns:
weapons = ['G', 'H', 'D', 'S', 'J', 'E... | [
"8thelouk8@gmail.com"
] | 8thelouk8@gmail.com |
867cd817aec62728f6657bc87f203efa55746fb4 | 350c96dc9322722f146e618f6fda8b53012e8cfa | /python3/thinkcs-python3/14.8.py | b0855382bd117d0e9ade86689b11ab5074035177 | [] | no_license | jhn--/sample-python-scripts | a5f896b0ad78eee6fe6ea51b4d5f695275a7cc5f | 980724da60372a31e23aff902dcead3a03efcc6f | refs/heads/master | 2021-01-25T06:06:12.717869 | 2020-01-03T19:55:40 | 2020-01-03T19:55:40 | 22,878,856 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,998 | py | #14.8. Eight Queens puzzle, part 1
from unit_tester import test
bd1 = [[0,0,0,1,0,0,0,0],
[0,0,0,0,0,0,1,0],
[0,0,1,0,0,0,0,0],
[0,0,0,0,0,0,0,1],
[0,1,0,0,0,0,0,0],
[0,0,0,0,1,0,0,0],
[1,0,0,0,0,0,0,0],
[0,0,0,0,0,1,0,0]]
bd2 = ["a6", "b4", "c2", "d0", "e5", "f7", "g1... | [
"john.hoe@gmail.com"
] | john.hoe@gmail.com |
20faeb6e0aaeded085a9b74e0096cda53876ccb9 | 06fc0d78be8df25d0beedfba3b1944b3b0c980a7 | /backend/tests/backend_test.py | a3b2f19ec3eb62fae0868853726c63eb08e47eb6 | [] | no_license | uKev/pastee | 10b185fbebf58392820a596f03754c5b0225833c | f8dc0d7de3d2a357e85fd3c04d743aa4977f5c81 | refs/heads/master | 2020-04-08T22:43:43.385069 | 2011-09-06T05:26:32 | 2011-09-06T05:26:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,168 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
from nose.tools import *
import json
import os
import subprocess
import sys
import time
import urllib
import urllib2
# Global instance of pastee backend process.
PASTEE_PROC = None
# Path to pastee.py, the backend.
PASTEE_PATH = os.path.join(os.path.dirname(__file__),
... | [
"ms@quadpoint.org"
] | ms@quadpoint.org |
8e9d02bdcc56d37c2e27a895f040ac1a479244c1 | 07701558c05e6de90819b24110b8f886d035a2a3 | /src/api/views/trip.py | 57a7067302042642b4ec009cb842359a53d3f67a | [] | no_license | mobiliwatch/backend | c8061a29508828567fa7fc9eb019f283af58deac | ce09c0faf872c1168a186ca895bc37e61c64aeff | refs/heads/master | 2022-12-13T05:11:25.161625 | 2017-06-13T18:26:00 | 2017-06-13T18:26:00 | 225,344,395 | 0 | 0 | null | 2022-11-22T01:22:43 | 2019-12-02T10:11:31 | Python | UTF-8 | Python | false | false | 597 | py | from rest_framework.generics import RetrieveAPIView
from users.models import Trip
from django.http import Http404
from api.serializers import TripSerializer
class TripMixin(object):
"""
Load trip from id in url
"""
def get_trip(self):
try:
return self.request.user.trips.get(id=self.... | [
"bastien@nextcairn.com"
] | bastien@nextcairn.com |
2f167b5a9bd0dc459aa87415a30c103af343f999 | 28bdfca0131db38323fc28f6178425dc2c86e6ca | /contactApp/__init__.py | d5c7ce7bab4ecaf90d75d91a360af75fe5d769d5 | [] | no_license | my-xh/hengDaProject | d8879d6755b24f230361b25d0e88d205fec98a1d | 45aa43aabc798652a0f05d4e93d1c2c7ae819e4c | refs/heads/master | 2023-04-20T07:04:57.424269 | 2021-05-13T11:46:48 | 2021-05-13T11:46:48 | 345,997,472 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 56 | py | default_app_config = 'contactApp.apps.ContactappConfig'
| [
"2435128850@qq.com"
] | 2435128850@qq.com |
6b70b1f70767410eacbb50d2f7d0f47e775fec35 | b8ead9d297fe504789f2ac2db50baddf7c1858a6 | /python/main.py | 39701e4688ce675f634f35112ea005ef873ecab0 | [] | no_license | SiweiWang/learning | ae94b9210c02091633eaab0934a646c584a8d5b4 | 313be41262264885bfbbe89d7df844a7cbd74da7 | refs/heads/master | 2021-01-12T02:11:01.595400 | 2018-11-16T21:26:42 | 2018-11-16T21:26:42 | 78,483,986 | 0 | 0 | null | 2017-08-11T19:01:27 | 2017-01-10T01:04:00 | Python | UTF-8 | Python | false | false | 112 | py | import reader
r = reader.Reader("./test.bz2")
print(r.read())
r = reader.Reader("./test.gz")
print(r.read())
| [
"wangsiwei2003@hotmail.com"
] | wangsiwei2003@hotmail.com |
c7677d6c0cf51b99c6017e582606debfc63f5c01 | 9bc6179be0043b541a0db39c79118c3a9def94da | /shutterbug/home/models.py | e8a92d518ed363a5fc44fbe83f8258159ddcee04 | [] | no_license | rajkumar-009/shutterbug | 70013702297c58ce29412050016245ea17bca9af | 0266d76e09ab6146398f1ab189dde16b31fe17b9 | refs/heads/master | 2023-06-20T03:16:10.736714 | 2021-07-17T22:21:54 | 2021-07-17T22:21:54 | 387,045,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 91 | py | from django.db import models
from django.db.models import base
# Create your models here.
| [
"rajmummies@gmail.com"
] | rajmummies@gmail.com |
bdf98cdeef8805f129ae8cb389f5f5b033dde4ad | 551984f784df2f7e1c5bb6d62e58902bf0d54e44 | /pi/FileHelper/__init__.py | 6432b86afaaedd20956140c5ba861eb18c42d971 | [
"Apache-2.0"
] | permissive | sammyhaq/gaitmate | 4724ceff08110536d317f456cfa93c8927624cff | 2f172ef81473eea1fe8aacd544c24eac0b1f64cd | refs/heads/master | 2020-03-19T12:04:35.012163 | 2019-01-25T20:12:43 | 2019-01-25T20:12:43 | 136,493,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 44 | py | import LoadFileHelper
import SaveFileHelper
| [
"sammy.haq1@gmail.com"
] | sammy.haq1@gmail.com |
eb659c5c2bffe18f96a114decc814cc9d84a4cba | 5006ff31deb9a8c33d877113db9997ebeed3c969 | /P2C12Ex1-readCensusExcel.py | e40caa57f248192813a93ce2336ef0fb0e38f19c | [] | no_license | vinothpandian/atbswp-refreshing-python | 15cc1dc442af3c24957241e6875ead52c8d1e9de | 8e853bd43c9d444aeb9d2f0a51ea63a1aa4fb040 | refs/heads/master | 2022-12-14T03:18:39.391002 | 2017-10-18T00:23:59 | 2017-10-18T00:23:59 | 99,948,081 | 0 | 0 | null | 2022-12-08T00:37:48 | 2017-08-10T17:20:22 | Python | UTF-8 | Python | false | false | 904 | py | #! python
import openpyxl, os, pprint
FOLDER_NAME = "./P2C12/"
os.makedirs(FOLDER_NAME, exist_ok=True)
os.chdir(FOLDER_NAME)
print("opening the workbook.............")
workbook = openpyxl.load_workbook("censuspopdata.xlsx")
sheet = workbook.get_sheet_by_name("Population by Census Tract")
countyData = ... | [
"vinothpandian@live.com"
] | vinothpandian@live.com |
770681d3dbbe5a567c39708a2f499a677b0b69a4 | c6ce21e5b8a906b0bf95cfcac9d84e243c876723 | /PARALLAX/CODE/resnet_train.py | c41dca46d825c0b593e8b6d0f4d047ab9e5385a9 | [] | no_license | yuchanmo/cloud_class | 6450b08017fbe72dde810620365a87cda7ae8abd | b3d2c6589f7a9b8c0340e00487f610a097373ec6 | refs/heads/master | 2020-06-01T06:48:19.669550 | 2019-06-07T04:04:51 | 2019-06-07T04:04:51 | 190,685,867 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,012 | py | #Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"mojjijji@gmail.com"
] | mojjijji@gmail.com |
f59f42e965c722ec562962ce4a16473199bd7913 | c75adb5dd35224017afe9dc669db06a850d026b1 | /posts/migrations/0024_auto_20210421_1847.py | 47663de87825e6b4220bc25d6664e941f7aef23a | [] | no_license | bobrolevv/hw05_final | fd74358c1bc23f9c65ff2ae6a015a2b832e869b0 | 263f6de2a617d49f1c7a09fa22274117a3f37ab4 | refs/heads/master | 2023-08-23T18:16:59.657035 | 2021-10-23T15:59:11 | 2021-10-23T15:59:11 | 359,149,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | # Generated by Django 2.2.6 on 2021-04-21 11:47
from django.conf import settings
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('posts', '0023_auto_20210421_1839'),
]
operations... | [
"bobrolevv@yandex.ru"
] | bobrolevv@yandex.ru |
f4850aed962c3460094182316ff7933229ed1cb1 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/380/usersdata/310/97316/submittedfiles/minha_bib.py | d6b2c61dad7783f3393a133c2502721a863c2a10 | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 499 | py | # -*- coding: utf-8 -*-
import random
def solicitaSimbolodoHumano(a):
a = input('Simbolo que quer jogar: ')
while a!='O' and a!='X' and a!='o' and a!='x':
a = input('Simbolo que quer jogar: ')
return 1
def sorteioPrimeiraJogada(a):
a = random.choice((0,1))
if a ==1:
print('Vencedo... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b8f3ca1ba85090585d03615a4e4cb1e7fa58e0d2 | 87b13f38cc8b865acf76e692a930e43683753418 | /list/prog3.py | e62f3d375ec24145c17fc3b2e51b75bdb5c3ed6c | [] | no_license | Sandeep-2511/Python-Practise | 016b68592937b137d30cc1855f9798b933a94ff5 | 8b875183b6e295795a8ce8c80cb1e84661c3e9ae | refs/heads/master | 2022-01-29T21:50:05.931622 | 2019-07-15T08:29:12 | 2019-07-15T08:29:12 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 74 | py | a=[1,2,3,4,5,6,7,8,9]
print(a)
a.append(0)
print(a)
a.insert(3,5)
print(a) | [
"potdukhesandeep7@gmail.com"
] | potdukhesandeep7@gmail.com |
e35eab04b4ce20dd8da6bb6a25d0598607247c43 | 2a0e6a7c7a71d254b6132d23c13681cd4dd6c15a | /main.py | 56eb5ca02cc7530c5418b3211cf8420a1667c912 | [] | no_license | BarneyLu/blog-with-users-end-github | a5a9c1e623e3401a662fa6f91891dff650ced0e4 | 03db879ea8580e1588732a5ed3d42d26d9d463b7 | refs/heads/master | 2023-08-29T21:16:46.057979 | 2021-10-18T07:54:07 | 2021-10-18T07:54:07 | 416,209,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,058 | py | from flask import Flask, render_template, redirect, url_for, flash, abort
from flask_bootstrap import Bootstrap
from flask_ckeditor import CKEditor
from datetime import date
from werkzeug.security import generate_password_hash, check_password_hash
from flask_sqlalchemy import SQLAlchemy
from sqlalchemy.orm import relat... | [
"asebarneylu@gmail.com"
] | asebarneylu@gmail.com |
7872929cfbde81dd0d2e6306e71245e055ce886e | d1c661981c1b4a4f544e4afe4a769c9a7cb014fa | /prb-005.py | 15feb6573ef65c6a5ec614ed81d12ef69196cb26 | [] | no_license | vsuh/eiler.py | e231dcc51a8cf70479a4c8d0dd7da1b1a8d74479 | 34840f922f48eb743a019836807132d40a0a3d98 | refs/heads/master | 2020-05-20T07:00:42.513156 | 2019-05-20T06:25:40 | 2019-05-20T06:25:40 | 185,441,835 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 745 | py | # VSCraft
'''
задача: https://projecteuler.net/problem=5
перевод: http://euler.jakumo.org/problems/view/5.html
2520 - самое маленькое число, которое делится без остатка на все числа от 1 до 10.
Какое самое маленькое число делится нацело на все числа от 1 до 20?
'''
# solved 07.05.2019 15:32 (232792560)
for i in rang... | [
"sukhikh@moscollector.ru"
] | sukhikh@moscollector.ru |
2723f05ae52166fd49c226cbe286bdf68ac57e8e | c5085e4c8194134fd31521e506109c57d721e992 | /py/py-redis-cluster.py | ac5fc728b694895124ed216869790656e53057b5 | [] | no_license | younglinuxer/awesome-yuan | f18901b8f2df30dc11e774c051ccdb8cad5bc252 | 2cdbd9803a207b4066a42a9255feba8401d4d5c1 | refs/heads/main | 2023-04-02T03:20:00.278259 | 2021-04-12T14:23:14 | 2021-04-12T14:23:14 | 343,272,894 | 8 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,168 | py | #!/usr/bin/env python
#-- coding:utf8 --
from rediscluster import RedisCluster
import redis,uuid
# r = redis.Redis(host='192.168.123.151',port=6380,db=0,password='yuan',retry_on_timeout=60) #单机redis连接
startup_nodes = [{"host": "192.168.123.151", "port": 6380}]
r = RedisCluster(startup_nodes=startup_nodes, password="yu... | [
"a52419589"
] | a52419589 |
6321a92b239f65d266baddd409d0323cffabd579 | 89b6997b24e404c176358073626a8bfad7bcdb8e | /.history/courses/models_20210412233123.py | f22ac53d1746d99cb174542b2a8b300401606f5f | [] | no_license | mohamedhawas123/Education-platform-django | 513e64ac112880385402ce609077796578b4e9ee | 7b83e66bba66b8b2b1a007f5818a534653e6abfb | refs/heads/main | 2023-07-18T16:19:52.177886 | 2021-09-24T12:04:09 | 2021-09-24T12:04:09 | 352,306,462 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,324 | py | from django.db import models
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.contrib.contenttypes.fields import GenericForeignKey
from .fields import OrderField
class Subject(models.Model):
title = models.CharField(max_length=200)
slug = model... | [
"mohamedhawas123@gmail.com"
] | mohamedhawas123@gmail.com |
a34c95589899f412fad66ad53b16e11918bdcf84 | 3c70d878ab4cda8550a8bd181d4b15f551b54bcb | /LED_Button_test.py | 3765d608b2725591165750e9533a91d2365e94dc | [] | no_license | rfair404/WP-REST-RASPBERRY-PI | 6926efb1524b2fab307882690e98ea6c7a1dd891 | 967ccde0c4a178067795aaebcdeccfe2d057c525 | refs/heads/master | 2021-01-10T05:04:25.106406 | 2016-03-18T11:37:38 | 2016-03-18T11:37:38 | 54,196,770 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | import RPi.GPIO as GPIO
import time
GPIO.setmode (GPIO.BOARD)
GPIO.setup (12, GPIO.OUT)
GPIO.output (12, 0)
GPIO.output (12, 1)
time.sleep(10)
GPIO.cleanup()
| [
"rfair404@gmail.com"
] | rfair404@gmail.com |
9d452f69e846718fd2cc84f675566da6c840c37e | 791b790ce8a4ad93ab88cf9a2aea3b2dd70652dc | /Competitions/Codechef/MARCH17/Xenny and Alternating Tasks.py | b6e1e5fcced9841b3dcdab65f1ad2f9859b3d986 | [
"MIT"
] | permissive | Debasmita-01/Competitive-Programming | 16d8778db5ff225519404e88afa4cccf830006b7 | 547859d6ded88a0d3977c2f6e747d80235c054cd | refs/heads/master | 2022-12-25T11:14:55.129524 | 2020-10-01T05:22:01 | 2020-10-01T05:22:01 | 300,511,195 | 3 | 1 | MIT | 2020-10-02T06:06:30 | 2020-10-02T05:32:52 | null | UTF-8 | Python | false | false | 361 | py | t = int(raw_input())
for i in xrange(0, t):
n = int(raw_input())
x = [int(j) for j in raw_input().split(" ")]
x.sort()
for j in xrange(1, n-1):
if x[j-1]+1 != x[j] and x[j-1]+2 != x[j+1]:
print x[j-1]
break
elif x[j-1]+1 != x[j] and x[j]+1 != x[j+1]:
print x[j]
break
elif x[j-1]+2 != x[j+1] and x[... | [
"manish.bisht490@gmail.com"
] | manish.bisht490@gmail.com |
34cb2b4b02b23893a122f73ed94d8cb0a7fcab44 | d4ea02450749cb8db5d8d557a4c2616308b06a45 | /students/njschafi/Lesson03/mailroom.py | d969848a3bfb272458eebb4f2ec9b5aaefc96976 | [] | no_license | UWPCE-PythonCert-ClassRepos/Self_Paced-Online | 75421a5bdd6233379443fc310da866ebfcd049fe | e298b1151dab639659d8dfa56f47bcb43dd3438f | refs/heads/master | 2021-06-16T15:41:07.312247 | 2019-07-17T16:02:47 | 2019-07-17T16:02:47 | 115,212,391 | 13 | 160 | null | 2019-11-13T16:07:35 | 2017-12-23T17:52:41 | Python | UTF-8 | Python | false | false | 4,132 | py | #!/usr/bin/env python3
# NEIMA SCHAFI, LESSON 3 Assignment - mailroom part1
#Using lists as the data structure since they are mutable (can change the contents).
donors = [
['Leon Dechino',200.43,30.23,1.50], ['Rupert Everton',23.99],
['Zordon Lagasse',400.00, 500.00, 600.00],
['Kavinsky Mega', 23.... | [
"njschafi@gmail.com"
] | njschafi@gmail.com |
2349ed1324f02177bd079c2dff3d764d6855d135 | a7c5fdacfb4db3496dbf86c3f6ae096db2b8c39e | /howiseverybodydoing-solution.py | a58f3dc64d505606770154ef1561c0fa5e461425 | [] | no_license | chloenh/Codecademy-Python | 125bac49b2ece480710cd91e3867d48df208356b | 49d4cd4af93d15855c3cdb607dbc89dae04ca6e6 | refs/heads/master | 2020-04-15T02:55:54.410161 | 2019-02-03T11:37:17 | 2019-02-03T11:37:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,376 | py | #Find the average grade of the class. Print this numerical grade to the terminal.
#Finally, determine the letter grade for the class's average and print it to the terminal.
lloyd = {
"name": "Lloyd",
"homework": [90.0, 97.0, 75.0, 92.0],
"quizzes": [88.0, 40.0, 94.0],
"tests": [75.0, 90.0]
}
alice = {
"name"... | [
"noreply@github.com"
] | noreply@github.com |
7d9c1c37687134af6b5864674dbd42ead9ea5025 | c4a32dc9fb26d72721864982b52578e2aea31db4 | /7.SEPTIMA EXPOSICIÓN/FOURIER-PRESIÓN.py | a4c7034b8db9d72cd8fd750fa9c00fd12905510d | [] | no_license | yordanarango/CODE_TRABAJO_GRADO | 30eee8778bf4d61706fd5e7dc26b609ad1214fd3 | 5eb55e90b864359942e40ac8d4672c28dea1e1de | refs/heads/master | 2021-04-15T12:18:33.032433 | 2018-03-22T14:19:35 | 2018-03-22T14:19:35 | 126,347,319 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,361 | py | # -*- coding: utf-8 -*-
"""
Created on Wed Oct 12 21:59:37 2016
@author: yordan
"""
from mpl_toolkits.basemap import Basemap
import matplotlib.pylab as pl
import numpy as np
import netCDF4 as nc
import matplotlib.pyplot as plt
from scipy import linalg as la
import pandas as pd
#from FuncionesFourier import consulta_m... | [
"yuarangoj@unal.edu.co"
] | yuarangoj@unal.edu.co |
e8544684fabdd241c121afa87187603468af938e | 3dfc8a03bb7b7efc8c2d71ee5e7776f880366e85 | /shor/shnor.py | 1524039b6f63380480b9c01d02a15a915e82dee7 | [] | no_license | gendsbk/Labs2 | 98b7426470bc4c3a577130764b9b9766597512d3 | 76e1948eaba414af3887b001f08f6edf440f7baa | refs/heads/master | 2021-01-22T06:03:27.658068 | 2015-02-01T15:21:20 | 2015-02-01T15:21:20 | 27,713,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,396 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
import bint
import sys
import random
def evklid(a, b):
if a == bint.bint(0):
return 0, 1, b
if b == bint.bint(0):
return 1, 0, a
px = bint.bint(0)
ppx = bint.bint(1)
py = bint.bint(1)
ppy = bint.bint(0)
while b > bint.bint(0):
q = a / b
a, b = b, a % b... | [
"schastemet@mail.ru"
] | schastemet@mail.ru |
d147f9ef58fd331ae6390cd02761d31653517218 | 0faaa33d091e7f79b055948d4ce1c2d88e77f348 | /jobs/app.py | a164cb4356888131ae095b475509237ea916b71a | [] | no_license | Rock-sa/PythonFlask-JobBoard | a563e787cd4b915ab0b21e9c7e940d75e961ce12 | eeb23a00555c1ab3b24baf14c8769bd45d373c36 | refs/heads/master | 2023-05-12T22:07:32.629999 | 2021-06-05T14:42:59 | 2021-06-05T14:42:59 | 370,082,146 | 0 | 0 | null | 2021-05-30T12:14:53 | 2021-05-23T15:00:33 | Python | UTF-8 | Python | false | false | 2,780 | py | #app = flask.objects(__name__)
from flask import Flask, render_template, g, request, redirect, url_for
import sqlite3
import datetime
PATH = 'db/jobs.sqlite'
app = Flask(__name__)
def open_connection():
connection = getattr(g, '_connection', None)
if connection is None:
connection = g._connection = sq... | [
"shakshi103103@gmail.com"
] | shakshi103103@gmail.com |
be241ba060b511089e7364993d57f36288bcc7ff | fb39cb876ef866dcc876645d0218742bad64dfb4 | /pages/views.py | acc10313856a12951f448e96a4021b435eca2510 | [] | no_license | SergioChairez/pages-app | a94283628c46ea9861e7c357cab037fd775f14f5 | 240d6be274e6a3b479a25282df3e0f1d327809b2 | refs/heads/main | 2023-03-20T21:01:36.758547 | 2021-03-16T07:46:03 | 2021-03-16T07:46:03 | 345,947,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 200 | py | # pages/views.py
from django.views.generic import TemplateView
class HomePageView(TemplateView):
template_name = 'home.html'
class AcercadePageView(TemplateView):
template_name = 'acercade.html' | [
"chairez1934@gmail.com"
] | chairez1934@gmail.com |
5d2d8a99ce51656c2de49abdff3ce2e9b74c6fa7 | c12fa4da989b3d833fbe2ef26a5fd543c2d66d0b | /graph_plots.py | 23f262440bff2878bd291f8ce52cccac93f813f6 | [] | no_license | nhuthanh2610/DataStreams | 183b01efb8263039de1b0282d2510f864a05e190 | 7312937edc4db5f18f2ef245eb8807d66a2ca083 | refs/heads/master | 2020-06-20T13:15:55.580866 | 2016-12-06T04:13:44 | 2016-12-06T04:13:44 | 74,862,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,372 | py | import cPickle as pickle
from q4_code_questions import load_variable,save_variable
import matplotlib.pyplot as plt
import numpy as np
def plot_error_hist(exact_freq,error,n_hashes,n_buckets):
plt.hist(np.log10(error),np.sqrt(len(error)),'b.')
plt.title('n_hashes = ' + str(n_hashes) + ', n_buckets = 3*10^' ... | [
"nhuthanh2610@gmail.com"
] | nhuthanh2610@gmail.com |
89a0785d067ba85fdb5f0718923cb544b67b8140 | 00b1fe62aff1bbad885a1b13354239b07925c5c1 | /catalyst_rl/rl/scripts/load_db.py | e27de3d61db62001fe0d5978f118d899921047fa | [
"Apache-2.0"
] | permissive | catalyst-team/catalyst-rl | a78675c477bef478d73cd1e7101be6dbb7b586aa | 75ffa808e2bbb9071a169a1a9c813deb6a69a797 | refs/heads/master | 2021-09-22T08:36:12.161991 | 2021-09-13T05:59:12 | 2021-09-13T05:59:12 | 247,928,934 | 50 | 8 | null | null | null | null | UTF-8 | Python | false | false | 1,791 | py | #!/usr/bin/env python
# usage:
# catalyst_rl-rl load-db --db=redis --in-pkl ./my_db_0.pkl ./my_db_1.pkl
import argparse
import pickle
import numpy as np
from tqdm import tqdm
from catalyst_rl import utils
from catalyst_rl.rl.db import MongoDB, RedisDB
def build_args(parser):
parser.add_argument("--host", type=... | [
"scitator@gmail.com"
] | scitator@gmail.com |
f29b950b524eaa47635daa485d8672eb911a9b7d | dc30e8bb53dbc244b8096523928ee9a0d4e875c0 | /etabotsite/etabotapp/django_tasks.py | 489b38578a706d87c07bbedda7c6195876904f68 | [
"Apache-2.0"
] | permissive | ShanshanHe/pmp | a393ed8c90ed599138e33ba08bfdf26ed8a78220 | ea39b13b2eabe77cc67c67563c8c57cefb4cf329 | refs/heads/master | 2023-03-17T21:26:19.413086 | 2019-10-16T12:33:09 | 2019-10-16T12:33:09 | 129,642,869 | 3 | 9 | Apache-2.0 | 2022-06-21T21:21:23 | 2018-04-15T19:22:49 | Python | UTF-8 | Python | false | false | 2,242 | py | from datetime import datetime
from celery import shared_task
from celery import Celery
from .models import Project, TMS
import TMSlib.TMS as TMSlib
import eta_tasks as et
import logging
# BROKER_URL = getattr(settings, "BROKER_URL", None)
# celery = Celery('tasks', broker=BROKER_URL)
@shared_task
def estimate_all... | [
"alexander.radnaev@gmail.com"
] | alexander.radnaev@gmail.com |
4cdc6b4d468c8ce11e8f6bafbe4e091e22cf7685 | 80642a9db76d98e1b956ed447ca29fe1f448394b | /tsoc/signal_dependent_offset_analysis.py | ffb4a4727fa99c1b8992cd0e69a6311a3d685f42 | [] | no_license | nischalmishra/tempo | 4af5f699535d209a2e8c1e7655abd689faf6a90d | cddb489de999edf6963e87a74ed58ff1a208d474 | refs/heads/master | 2021-05-15T16:02:19.033202 | 2017-10-18T16:42:37 | 2017-10-18T16:42:37 | 107,434,048 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,334 | py | # -*- coding: utf-8 -*-
"""
Created on Tue May 9 13:22:55 2017
@author: nmishra
"""
import os
import numpy as np
import pandas as pd
#from scipy.io.idl import readsav
import matplotlib.pyplot as plt
from scipy.io.idl import readsav
from outlier_detection import identify_saturation,\
rej... | [
"nischal.mishra@gmail.com"
] | nischal.mishra@gmail.com |
544db4f17ad75b9e1af8ced5dc1375a46ecdb184 | dc16aae01ffb886f785c3b03a61475dd705ece87 | /contrib/spendfrom/spendfrom.py | 29a3ee46872ab233ce82fc7c191e247b2a2b9396 | [
"MIT"
] | permissive | forkee/gaon | ef02153a96acc702dee7873f34cb0adc29506b16 | 93f94f7d268c0f9abd0b7ef82791945349fcb40c | refs/heads/master | 2021-04-12T11:09:46.870852 | 2018-02-22T18:05:44 | 2018-02-22T18:05:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,948 | py | #!/usr/bin/env python
#
# Use the raw transactions API to spend gaons received on particular addresses,
# and send any change back to that same address.
#
# Example usage:
# spendfrom.py # Lists available funds
# spendfrom.py --from=ADDRESS --to=ADDRESS --amount=11.00
#
# Assumes it will talk to a gaond or Gaon-Qt r... | [
"gaoncoin@gmail.com"
] | gaoncoin@gmail.com |
6a20e5f8abbe7f63a1bdaa934e00d7d7693ebcfb | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p03014/s911800035.py | b678df13f7f47ee72f75b442123a31cda6f77d04 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,186 | py | h, w = map(int, input().split())
s = [list(input()) for _ in range(h)]
u_light = [[0]*w for _ in range(h)] #上をてらせる数
d_light = [[0]*w for _ in range(h)] #下
l_light = [[0]*w for _ in range(h)] #左
r_light = [[0]*w for _ in range(h)] #右
def count_light(i, j):
if s[i][j] == '.':
return 1
else:
retur... | [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
c9788b267999cf0193e34feb9f9479d146db440f | b5979e038aa08124bd436f451c808690e7ab8834 | /holamundo.py | 7f642c131ab6719d26f10954c4aeced9f2b62eec | [] | no_license | alexandrajimenezc/pythonrepaso | 191486ff3b31e76e2546e215dd0f4e8dda3ebabb | b1f7fe57cca3ad1cec5c8cb1b30a220cb2a96470 | refs/heads/master | 2022-07-30T12:39:04.459780 | 2020-05-26T11:58:23 | 2020-05-26T11:58:23 | 267,030,814 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 691 | py | print('hola mundo con jose y marle')
print("hola mundo con jose y marle")
print(100 + 70) #son nros
'hola me llamo alexandra 18-01-1994'
print('hola me llamo alexandra 18-01-1994')
print(5654)
print('5654')
print(2000+5000)
print(type(5654)) #integer
print(type('5654')) #string
print(type(5 + 15.2))
#marle es may... | [
"artesalexj@gmail.com"
] | artesalexj@gmail.com |
4092c818c7d35c0d2df1c02d413357967feac052 | 0ec1562f6817616328635226283e14f19b44eb95 | /app/forms.py | a4611b7e50dc68450f58bc0c4a1f4abd9c835e40 | [] | no_license | jackfreilich/jack-s-microblog | 9da12125a2c621f3f60f19cf048e481580052371 | 3d007a602076e7098850763d0d650836ccdab3ef | refs/heads/master | 2020-06-09T06:26:37.635866 | 2019-06-23T20:11:49 | 2019-06-23T20:11:49 | 193,390,483 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,141 | py | from flask_wtf import FlaskForm
from wtforms import StringField, PasswordField, BooleanField, SubmitField, TextAreaField, SubmitField
from wtforms.validators import ValidationError, DataRequired, Email, EqualTo, Length
from app.models import User
class LoginForm(FlaskForm):
username = StringField('Username', valid... | [
"jfreilich@Jacks-MacBook-Pro-4.local"
] | jfreilich@Jacks-MacBook-Pro-4.local |
ae840fe20c619f8d2961c0f81ef2c28c2d18b336 | 96400564402484baff113d048c201da7144c1548 | /vgg16.py | 0bd3984b982556cb3299fae3c58d4935f5dc63b6 | [] | no_license | JontyYang/pyStudy | fc536988a66c69d333c044aeac004ee0332252df | e1dba720b6ccfb9bd1cf49dd636d314dd97126a7 | refs/heads/master | 2023-02-22T20:16:47.490847 | 2021-01-23T02:40:25 | 2021-01-23T02:40:25 | 332,105,229 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 415 | py | import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import requests
import cv2
import torch
from torch import nn
import torch.nn.functional as F
from torchvision import models
from torchvision import transforms
from PIL import Image
# 导入预训练的Vgg16网络
vgg16 = models.vgg16(pretrained=True)
# 读取一张图像,并对其进... | [
"1624635413@qq.com"
] | 1624635413@qq.com |
a9e81cf666f862a936932691eb91b60940bcab8b | 5874a063e615e8d74000b3e8b827674d1d28f58d | /lesson-one/sentence_generator.py | 4861e43e8a43654039b201981814789e845c1684 | [] | no_license | colaghost/ai-nlp | ee9961dd992131df2f01362fef05abe576d2cbb6 | 19350be77edbe2c695d5dcbd786a25a4c174cfdf | refs/heads/master | 2020-04-05T00:29:44.719977 | 2019-02-09T14:02:17 | 2019-02-09T14:02:17 | 156,399,033 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,205 | py | #coding:utf8
import random
simple_grammar = """
sentence => noun_phrase verb_phrase
noun_phrase => Article Adjs noun
Adjs => null | Adj Adjs
verb_phrase => verb noun_phrase
Article => 一个 | 这个 | Adj
noun => 女人| 篮球|桌子|小猫
verb => 看着 | 坐在| 听着 | 看见
Adj => 蓝色的| 好看的 | 小小的 """
def GenGrammarSymbolTable(grammar):
symbol_... | [
"colaghostno.1@gmail.com"
] | colaghostno.1@gmail.com |
a5ea4d3ac6c27618d48a4e9573b5cf881dbed320 | 9bcb054fa53e1ff749f2ba06c7477b60c0a1dccf | /vehicle.py | 8e666d58d870afe88ae7b9adf58274bdc75250e8 | [] | no_license | thatscoding/Hacktoberfest-2023 | e67594420d39340095dde77e02bcf20353a5f645 | 40cfc950487e040b192a304a9d387dda2988845b | refs/heads/main | 2023-08-28T07:28:41.110272 | 2021-10-30T11:48:00 | 2021-10-30T11:48:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 919 | py | class Vehicle: #define class
def __init__(self, number_of_wheels, type_of_tank, seating_capacity, maximum_velocity): #constructor
self._number_of_wheels = number_of_wheels
self.type_of_tank = type_of_tank
self.seating_capacity = seating_capacity
self.maximum_velocity = maximum_v... | [
"noreply@github.com"
] | noreply@github.com |
21dd4ab7cf1b6b6388979cb664f61fbe10bb4e4f | b8c5586bd47a3504012a12dc7eefcaec1e553874 | /images/hearts-1338692163.py | 674f1a9b2f94b547f1729f22accc98ce2d1e4d91 | [] | no_license | lolwat999/Image-code-Project | 66f65c2c62eeb00a47b96de6f6a483f1854a78b8 | 6c4468ed96c3b855c675c0a3957e911ff7d2a843 | refs/heads/master | 2021-01-18T04:03:31.033108 | 2012-06-03T05:25:44 | 2012-06-03T05:25:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 246 | py | def getPixel( x,y ):
xm = x*2 - 1
ym = y * 2 - 1
xm *= 8
ym *= -10
x2 = xm**2
y2 = (ym - (2 * (abs(xm) + x2 - 6)) / (3 * (abs(x) + x2 + 2)))**2
g = 0
b = 0
r = 255- (x2 + y2)*10
return r%256,g%256,b%256 | [
"brenton.a.milne@gmail.com"
] | brenton.a.milne@gmail.com |
20992508982f1c306ae4612ed1751a1a497b6692 | 680d8f8009635a6e1b30e6cfac4ff2140fc8d539 | /blockchain.py | f117b253dc361c6737661c67e90edaf22d105c28 | [] | no_license | koukoudo/NMBlockchain | 912672b4683095f427883ddb3176d000c57c1a8f | 3850f4d778221a185ea9a5efd34c803b3775dc7b | refs/heads/master | 2023-04-03T14:06:50.050967 | 2021-03-30T13:22:50 | 2021-03-30T13:22:50 | 311,763,247 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,547 | py | import time
import hashlib
import urllib.parse
from urllib.parse import urlparse
import json
import random
class Block:
def __init__(self, index, timestamp, transactions, previous_hash, nonce=0):
self.index = index
self.timestamp = timestamp
self.transactions = transactions
... | [
"noreply@github.com"
] | noreply@github.com |
cbf8f20c899dacdae30660a48ae14d72862fe8d5 | 405297a2eaf9c50066c9426579ba4edd7c89cb45 | /write_article/views.py | af970262cd2ee2d599de4cbe8d14471358f6cc26 | [] | no_license | adobecs5/first_django_board | c4aa9fa9d69f89bb9169fa7d4df06897e13ad514 | d68fb7ba402ae82c68f948676921d7f5a726237f | refs/heads/master | 2016-08-12T07:41:08.439701 | 2016-01-20T11:58:18 | 2016-01-20T11:58:18 | 49,820,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 687 | py | from django.shortcuts import render
from list_posts.models import Post
from django.http import HttpResponseRedirect as HRR
from pprint import pprint
def basic_view(request):
return render(request, "write_article.html")
def handle_article(request):
if request.method == "POST":
pprint(vars(request))
... | [
"adobecs5.kaist@gmail.com"
] | adobecs5.kaist@gmail.com |
6a10fdec032287788f43ac694db394d334627b95 | cd8f7ecd20c58ce1ae0fe3840f7c7ee961aa5819 | /Find Duplicate File in System.py | ac5ae45decb6dd46daedbe7378173039d67c8773 | [
"Apache-2.0"
] | permissive | sugia/leetcode | 9b0f2a3521b088f8f7e5633c2c6c17c76d33dcaf | 6facec2a54d1d9f133f420c9bce1d1043f57ebc6 | refs/heads/master | 2021-06-05T07:20:04.099488 | 2021-02-24T07:24:50 | 2021-02-24T07:24:50 | 29,124,136 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,859 | py | '''
Given a list of directory info including directory path, and all the files with contents in this directory, you need to find out all the groups of duplicate files in the file system in terms of their paths.
A group of duplicate files consists of at least two files that have exactly the same content.
A single dire... | [
"noreply@github.com"
] | noreply@github.com |
a2e180959faad219b2828611ca3414bdb2f4c8d7 | 4fb1e370b7466f9e5244be16e1d34a578592cf68 | /tests/scratch-code/nb-model-lemma-incorrect.py | 23a6dec84aef08f3617963aa0d13df809c3d5f7a | [
"Unlicense"
] | permissive | malakhovks/nb-terms | 36800d2549b6ee0ffc48acfe55be085f9ea71e73 | c59018c5d605d849e9a8b55f2995584d72ecf9ea | refs/heads/master | 2023-06-08T00:54:10.642806 | 2020-06-29T19:20:35 | 2020-06-29T19:20:35 | 263,589,508 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 706 | py | import spacy
# load SnowballStemmer stemmer from nltk
from nltk.stem.snowball import SnowballStemmer
# Load globally english SnowballStemmer
NORWEGIAN_STEMMER = SnowballStemmer("norwegian")
nlp = spacy.load("nb_core_news_sm")
doc = nlp("Formuesskatten er en skatt som utlignes på grunnlag av nettoformuen din.")
# doc1 ... | [
"malakhovks@nas.gov.ua"
] | malakhovks@nas.gov.ua |
8eda686d17e766c928f529e53f7e401855efade9 | 7dc5c8a3c2b7b54d50a229f02b95b39ff92c14cb | /fast_config.py | 7e419f793a6274071555288082c631e872a796e0 | [
"BSD-3-Clause"
] | permissive | playHing/ctrl-gen | be61c6099dbbd893c82642aa3c71c6ab7f5f97cd | 705a40c9f0cb4590b0b55960a849b3a921252a66 | refs/heads/master | 2020-04-14T20:28:51.035720 | 2019-01-19T06:42:17 | 2019-01-19T06:42:17 | 164,095,264 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 777 | py | class FastConfig:
def __init__(self, emb_dim, h_dim, z_dim, c_dim, n_vocab,
unk_idx, pad_idx, start_idx, eos_idx,
max_sent_len=15, word_dropout_prob=0.3,
pre_trained_embeddings=None, freeze_embeddings=False, gpu=False):
self.emb_dim = emb_dim
self.... | [
"wyhing548@gmail.com"
] | wyhing548@gmail.com |
a887c48538b070bc949cb678b712fd5ea562c029 | e0980f704a573894350e285f66f4cf390837238e | /.history/streams/blocks_20201029145758.py | 3227cd805384affb4014e12555cfee402b57bfa8 | [] | no_license | rucpata/WagtailWebsite | 28008474ec779d12ef43bceb61827168274a8b61 | 5aa44f51592f49c9a708fc5515ad877c6a29dfd9 | refs/heads/main | 2023-02-09T15:30:02.133415 | 2021-01-05T14:55:45 | 2021-01-05T14:55:45 | 303,961,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,497 | py | from django import forms
from wagtail.core import blocks
from wagtail.images.blocks import ImageChooserBlock
from wagtail.contrib.table_block.blocks import TableBlock
class TitleBlock(blocks.StructBlock):
text = blocks.CharBlock(
required = True,
elp_text='Tekst do wyświetlenia',
)
class ... | [
"rucinska.patrycja@gmail.com"
] | rucinska.patrycja@gmail.com |
1078df62d155c3b588af48e3053a8fc2d2f2228f | b91bc02a5650597b8c217750c4fef238cb2b3363 | /test/test_stream_result_of_etcdserverpb_snapshot_response.py | b2f65e30d999ddab6a6d2c6d0fdf6b610fc7528a | [] | no_license | NimbleBoxAI/etcd-client-python | 6d578fd5c588e7b691e6a41a45cb5f93afab279b | 4d67692b0d75e4b14747f34f3d13998529216a3f | refs/heads/master | 2023-07-13T19:04:36.118319 | 2021-08-21T15:29:11 | 2021-08-21T15:29:11 | 390,751,648 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,178 | py | # coding: utf-8
"""
api/etcdserverpb/rpc.proto
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: version not set
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import a... | [
"cshubhamrao@gmail.com"
] | cshubhamrao@gmail.com |
2192542daa7db256e391f937f6fb5e46b53a97eb | d71fac1a3dab9abf51e0528e65d1981f855c52e4 | /admin/documentation/Python/NumPy_v1.19/qthelp_generator.py | dcd64a291fad191fafc547d9f91a5bcd70543df4 | [
"CC0-1.0"
] | permissive | KDE/cantor | d9fa87ab3017bb3cc9ca5cfd568d3c5cfd1b6428 | 82bc4916e3c2a08205aaa6b3f7b60f4216d9fe18 | refs/heads/master | 2023-08-31T09:26:43.793469 | 2023-08-29T01:40:35 | 2023-08-29T01:40:35 | 42,720,167 | 51 | 12 | NOASSERTION | 2020-03-21T21:57:13 | 2015-09-18T12:18:18 | Jupyter Notebook | UTF-8 | Python | false | false | 4,930 | py | #
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
# This program is distributed in the hope that it... | [
"aryan100jangid@gmail.com"
] | aryan100jangid@gmail.com |
db568f0d0ba67031f458fe449c4802b018a9c04e | 974c54018773ef7c971e7ad2c80304fe07ce765c | /build/robot_localization/catkin_generated/pkg.develspace.context.pc.py | d2597ccb5f54c46a5e1f22e44fc105b5897e3e80 | [] | no_license | lucasmarbatista/Husky_ROS | efd0c51cf79aa7dbc74b7313946685cfb4e47a3e | 003821a45579f89b1595b1c99b6fc9e7b5613d19 | refs/heads/master | 2020-04-05T05:08:57.105904 | 2018-11-30T13:00:15 | 2018-11-30T13:00:15 | 156,582,909 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,203 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "/home/lucasbatista/catkin_test/devel/include;/home/lucasbatista/catkin_test/src/robot_localization/include;/usr/include/eigen3".split(';') if "/home/lucasbatista/catkin_test/devel/include;/home/lucasba... | [
"lucasmarbatista@gmail.com"
] | lucasmarbatista@gmail.com |
a75e694a550a267a68e836d58a9fc35da2060429 | 1912d8551c1d6e6a71aa991e180e124e776b909e | /Easy/1790. Check if One String Swap Can Make Strings Equal.py | 48a5c9b9396a0f23b749d986293d4a0e8c11e4b7 | [] | no_license | ishan190425/LeetCodeIshanR | 1473fb3c5719e487aee03f2fccf18e4827e73e93 | d9ae2781a2ed0a4c2bf2d254089b6cfa7e7b4562 | refs/heads/main | 2023-06-10T22:41:25.709844 | 2021-07-05T02:46:19 | 2021-07-05T02:46:19 | 350,840,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 429 | py | class Solution:
def areAlmostEqual(self, s1: str, s2: str) -> bool:
ind = []
for i in range(len(s1)):
if s1[i] != s2[i]:
ind.append(i)
if len(ind) > 2 :
## need to swap more than one time
return False
if len(ind) == 0:
... | [
"noreply@github.com"
] | noreply@github.com |
b18a2b8e878ac6dab0ef153d54eb8846e3615e8d | 1424812c4f211d3d5e356e8b3889a689162062f3 | /arcade/python/62_check_participants.py | f8957ee5841a7be2c906e5af02edf03edd07382b | [] | no_license | nazomeku/codefights | cb7d3c40be0809695ec524a87c88dbebcf5b47bc | b23f6816f9b5b0720feac1c49c31163923e0a554 | refs/heads/master | 2021-01-22T12:49:35.905165 | 2017-11-21T19:03:37 | 2017-11-21T19:03:37 | 102,357,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | """Given the list of participants, your task is to return the list of
games for which too few people signed up."""
def check_participants(participants):
return [a for a, b in enumerate(participants) if a > b]
| [
"cols.nazo@gmail.com"
] | cols.nazo@gmail.com |
640953c1ccf6250f36738f2bd64157482193f652 | 45050b0a72db4a7121900f75f7e23acb72be5e73 | /management/manage.py | 35fbebda6adbb79be26ba059b54067b5e0391c1b | [] | no_license | folse/MongoWine | 2b102fc006dea8388896abbd2912550fe682c97f | d9878cf3ab800c6cb42af434d9a59498de2998b8 | refs/heads/master | 2021-01-12T13:40:37.420358 | 2016-10-29T15:45:42 | 2016-10-29T15:45:42 | 69,217,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | #!/usr/bin/env python
import os
from wine import app
from wine.models import User
from flask_script import Manager, Server, Shell
from werkzeug.security import generate_password_hash
manager = Manager(app)
manager.add_command("run", Server(host="0.0.0.0", port=80, use_debugger=True))
@manager.option('-u', '--name', d... | [
"folsee@gmail.com"
] | folsee@gmail.com |
19280aa9b5205cfb4b3e115b73029117af55a39a | f524c132340474bf80784095321753e083a2563a | /GearBot/Util/GearbotLogging.py | 231080a511b781af383ff0de23f0818d6375e2c1 | [
"MIT"
] | permissive | JohnyTheCarrot/GearBot | 51bf4f1e641908725ab70ccc766e861b7ec0af23 | 8a32bfc79f997a154c9abccbf6742a79fc5257b0 | refs/heads/master | 2020-04-10T17:03:22.403295 | 2018-12-10T08:14:05 | 2018-12-10T08:14:05 | 161,163,866 | 0 | 0 | MIT | 2018-12-10T11:24:11 | 2018-12-10T11:24:11 | null | UTF-8 | Python | false | false | 8,957 | py | import asyncio
import logging
import os
import sys
import traceback
from datetime import datetime
from logging.handlers import TimedRotatingFileHandler
import discord
from discord.ext import commands
from Util import Configuration, GlobalHandlers, Utils, Translator, Emoji
LOGGER = logging.getLogger('gearbot')
DISCOR... | [
"aenterprise2@gmail.com"
] | aenterprise2@gmail.com |
3c5e37ad68b14f786bcb851d9cefb82615aaa74c | ecf53ca75324e9a293c2aecd46b27888ec541bf7 | /test/test_inline_response20029_message.py | e0bf0b56f7bf28a586d7807e6995840aff7d2e04 | [
"MIT"
] | permissive | RiskAmerica/api-client-python | 9bcede4cac091ca42b7c534555c63223fb1c315f | 468c554a0440bef5086828631e25d99d41e28571 | refs/heads/main | 2023-07-07T14:02:25.601988 | 2021-08-20T19:33:36 | 2021-08-20T19:33:36 | 329,913,363 | 0 | 1 | MIT | 2021-08-20T19:33:37 | 2021-01-15T13:01:30 | Python | UTF-8 | Python | false | false | 1,996 | py | # coding: utf-8
"""
APIs RISKAMERICA
A continuación les presentamos la documentación las **APIs** **de** **RiskAmerica**, el cual es un servicio pagado ofrecido por RiskAmerica que se contrata por separado a nuestras otras ofertas de software. Algunas consideraciones que debe tener al momento de usar las API... | [
"p.guzman.salas@gmail.com"
] | p.guzman.salas@gmail.com |
6c6a42fa3986a8b39b8537437c0b24934789edd1 | 7c1037806263ad35caaeb92da29159c411b62882 | /xp-calculator.py | 4d459485277254701a279e71e28174df18e38941 | [
"Apache-2.0"
] | permissive | Krimax0/xp-calculator | 477c9c882143e53ec56348621b284ce17154d5ed | a94d4ad3cffbaf682817564a046391a68da14453 | refs/heads/main | 2023-02-10T12:34:41.042872 | 2021-01-12T16:15:13 | 2021-01-12T16:15:13 | 329,041,565 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,310 | py | f = open('text.txt', 'w')
language = int(input("Eng-1, Rus-2:"))
if language == 2:
exp = int(input("Начальное кол-во XP:"))
Levels = int(input("Кол-во уровней:"))
dsa = int(input("Режим(0-С показателем уровня, 1-Без показателя):"))
textlevel = " - уровень:"
else:
exp = int(input("Initial quantity XP:"))
Levels ... | [
"noreply@github.com"
] | noreply@github.com |
24d0293db4c4da28e8dcbdb081b1ca13f6d8bde4 | 55e28e35db5bf6a844df3fb47080500b115a893e | /day6/test/fan2.py | d15faad00febdceb92f9769a970ee29416ca85f6 | [] | no_license | pylarva/Python | 5743ffa4a69db42b642d51b62f9e9b69ddbc1a72 | 71b484950e6dbdcf708726a68a3386d0d6ddc07f | refs/heads/master | 2020-04-19T09:11:11.195393 | 2017-11-16T07:32:59 | 2017-11-16T07:32:59 | 67,507,687 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 447 | py | # !/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:lichengbing
# import fan1
#
# user_input = input('输入编号:')
# if hasattr(fan1, user_input):
# func = getattr(fan1, user_input)
# func()
# else:
# print('no module...')
user_input = input('请输入URL:')
k, v = user_input.split('/')
obj = __import__('lib.' + ... | [
"1326126359@qq.com"
] | 1326126359@qq.com |
9c815cabe77e23e9be83080f49ab89d662239654 | f7c8e09495e83392ef7eb2c5350956ffd66fcde1 | /web/equisight/__init__.py | bc31ffeb10ad5faf341ec619571a9af234cd8aa5 | [] | no_license | Besler/I4H-Equisight | 6047fe5244a4a04f25ff8fe1ffc9c2976a2ab8cc | 2a41b58692203a983b32b681c91d31b0dc9f15d8 | refs/heads/master | 2020-04-08T03:27:42.561578 | 2018-11-25T20:29:46 | 2018-11-25T20:29:46 | 158,976,667 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27 | py | from .equisight import app
| [
"babesler@ucalgary.ca"
] | babesler@ucalgary.ca |
b380a27a06ec8692b35f0b91a016c7c304b88d40 | 3725d30b943302269d592e219befc0ee6e2bdbd2 | /newspaper/version.py | 8165971c72708172cb11d0f334f7399a386880a7 | [
"Apache-2.0",
"MIT"
] | permissive | leezqcst/newspaper | b0cb828da7d80317840d7f750c4beefc49b5b09a | 87d69e7c7420f90edfb735665d4e183e4575a9ba | refs/heads/master | 2021-01-25T09:26:03.446919 | 2017-06-07T07:14:19 | 2017-06-07T07:14:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 296 | py | # -*- coding: utf-8 -*-
"""
To change the version of entire package, just edit this one location.
"""
__title__ = 'newspaper'
__author__ = 'Lucas Ou-Yang'
__license__ = 'MIT'
__copyright__ = 'Copyright 2014, Lucas Ou-Yang'
version_info = (0, 2, 0)
__version__ = ".".join(map(str, version_info))
| [
"lucasyangpersonal@gmail.com"
] | lucasyangpersonal@gmail.com |
74bd64671b35ac5628a47b451c89308827aa3fd5 | 81103d849988bcfcc68e26f2779a06fe2e046d6d | /learn_python/时间.py | 8f778cfc6650fa726c5d5fb4ae6722d050a94c4b | [] | no_license | zzwshow/python | 426845c5c4cb4e7a4db7e72c6a3359836c7cab8a | 0b28d7e4f33f331a02985a21efed19e9619aabd1 | refs/heads/master | 2021-01-15T21:30:50.226102 | 2018-03-16T10:02:38 | 2018-03-16T10:02:38 | 99,870,712 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,087 | py | #coding=utf-8
import time
print(time.time()) #返回当前系统时间戳
print(time.strftime('%Y-%m-%d-%H:%M:%S')) #返回自定义格式时间字符串
print(time.ctime()) #输出字符串格式时间:Sun Aug 14 16:04:02 2016 ,当前系统时间
print(time.ctime(time.time()-86640))
#----------------------------------------------------
import datetime
print(datetime.date.today()) #获... | [
"wei3511@126.com"
] | wei3511@126.com |
635ee85a769a42b4134901dfa869be204eaf3850 | b2fafe86e7df13d324ba1afb915a61699667c28c | /data_preprocessing1.py | 9d4a2690b53011ccbd8a58f32eb1bd2a39cfd93f | [
"MIT"
] | permissive | skygxsky/yolov5_slider | ce2d09029ff387b9bc1f06daa3d801c519960e55 | 06648864c8e10cbd9dc78d5c111580d200d0642a | refs/heads/main | 2023-05-30T09:33:14.705584 | 2021-06-11T06:27:58 | 2021-06-11T06:27:58 | 375,924,728 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,234 | py | import os
import random
import argparse
parser = argparse.ArgumentParser()
parser.add_argument('--xml_path', default='my_trains/Annotations', type=str, help='input xml label path')
parser.add_argument('--txt_path', default='my_trains/labels', type=str, help='output txt label path')
opt = parser.parse_args()
trainval_... | [
"1814618295@qq.com"
] | 1814618295@qq.com |
e618a7e49c3c9bc4aff546f16d7fce83f46161f3 | a25d87599b598a6b2939b495f5b07a53808b9d8e | /双指针/three_sum.py | db4953fffbd14f8399c031161f4db34e41aee1c7 | [] | no_license | turbobin/LeetCode | ef0c8e3a130da28bf889cf43314b4eee8d7f3579 | 46dd37f7c2e73cd5ea4aa5b485ee84a1fe76de73 | refs/heads/main | 2023-02-07T23:38:23.978561 | 2021-01-03T10:35:31 | 2021-01-03T10:35:31 | 307,217,757 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # -*- coding: utf-8 -*-
"""
15. 三数之和
给你一个包含 n 个整数的数组 nums,判断 nums 中是否存在三个元素 a,b,c ,
使得 a + b + c = 0 ?请你找出所有满足条件且不重复的三元组。
注意:答案中不可以包含重复的三元组。(链接:https://leetcode-cn.com/problems/3sum)
"""
class Solution:
def three_sum(self, nums):
nums = sorted(nums)
n = len(nums)
result = []
for i i... | [
"turbobin.cao@gmail.com"
] | turbobin.cao@gmail.com |
51a5626eab03a761b954145f5a4fd05fa7263418 | 1cad4c67b5dc7c2737f57d174a01e5b20cc14d48 | /score.py | e562864bc0c52eb82958ab1def6aac0ce765376a | [] | no_license | naveenkaushik2504/mlops_azure | 921abf9348463751e60531d5acc73722d5bec1a2 | 6a3872e265f797a217dc4af93e6c3c379bf91941 | refs/heads/main | 2023-07-17T22:32:34.765083 | 2021-09-02T04:02:42 | 2021-09-02T04:02:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,541 | py |
# imports up here can be used to
import pandas as pd
import json
import datetime
import os
import joblib
import argparse
from azureml.core import Workspace, Datastore, Run, Dataset, Model
from azureml.core.authentication import ServicePrincipalAuthentication
from utils import get_run_config, set_run_config
parser = ... | [
"noreply@github.com"
] | noreply@github.com |
2f3661bcd3e8e368c24e6fe59b25d648193f022c | 7af9d70e230e7f8e47834506140f36c98a0ba02f | /__init__.py | 4eb2d785b13cb4d3fbc679dfb3d1047083ceca47 | [] | no_license | MarcTheSpark/marqt | e90ca0f6cd13c760937eba2624d9becf35ddfed8 | 0ff89d8822b6b2b906d948d735c025f70ee7b589 | refs/heads/master | 2021-04-28T13:14:51.594449 | 2018-02-19T17:55:19 | 2018-02-19T17:55:19 | 122,099,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 22 | py | __author__ = 'mpevans' | [
"marc.p.evans@gmail.com"
] | marc.p.evans@gmail.com |
a84f4bd68c4feec5edc682ef5b42af7769dd6c8e | feb8fc09243d0dfdc0f5df8afcc3989e9590ae00 | /practice_scripts/math_and_numbers.py | a9d54148361f5dd7e16cec3d6fca967ee81e12fb | [] | no_license | tabeals/casino | 584c8f88e1051f805a0dc0d459b49ff0e5acb70b | d2adc470efc7bc377b2e4eb0876aba694b52e590 | refs/heads/master | 2020-07-12T11:37:16.222671 | 2019-11-19T20:36:14 | 2019-11-19T20:36:14 | 204,809,736 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | #! ~/.virtualenvs/ecgps/bin/python
#any time that yo uwould like to do math you can do it in the interactive mode of the python shell
#by typing python and just writing out math equations python will act a a calculator for you
#python rounds floating point numbers so if you want the math equations that work with floa... | [
"thomas.beals@greenphire.com"
] | thomas.beals@greenphire.com |
60607269149bb7b05e8525dcb734eb5b71346bb1 | de6d98d3ab5904bacc0e367371fedaca6b5fb49a | /simulation/filters/iir_filter.py | 7ba96bd166a9df6bcb046f33600113139592d2a6 | [
"MIT"
] | permissive | ZiGaMi/StewardPlatformEvaluation | 68b22eaa351976951203cdf04b3eae8523813bbe | 9995507ec70156ec950fc79a388cfcd08ab7e65a | refs/heads/main | 2023-02-25T09:20:58.939157 | 2021-02-03T18:35:29 | 2021-02-03T18:35:29 | 329,382,432 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,173 | py | # ===============================================================================
# @file: iir_filter.py
# @note: This script is evaluation of IIR filter algorithm
# @author: Ziga Miklosic
# @date: 06.01.2021
# @brief: Evaluation of IIR filter design.
# =====================================================... | [
"ziga.miklosic@gmail.com"
] | ziga.miklosic@gmail.com |
fce324c6496b5a5fd24b5262554147cad286f36a | 3efe2059de4c7efd1f58a385656d19098b7efd63 | /deepiu/tools/ensemble-inference-v2.py | 436205085a0efdf481c2d9609e180ad472bc2c8b | [] | no_license | yangyaoyunshu/image-caption-ai-challenger2017 | 5d2e82b2f8d70ac6d4eb7a0e70f6b406e551189b | 7f2c556587ea1e5c4583fe3b12b8d40c5a2aa2cc | refs/heads/master | 2021-08-31T22:48:55.886186 | 2017-12-23T07:27:04 | 2017-12-23T07:27:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,927 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# ==============================================================================
# \file ensemble-inference-v2.py
# \author chenghuige
# \date 2017-10-21 14:56:40.017795
# \Description This is time cosuming 1hour and 12 mintues, and not... | [
"29109317@qq.com"
] | 29109317@qq.com |
10f9fb4ce08fadc4c883812b498268f782833828 | 05fa76ed23fa9d2e103f9f38a15861225c12efab | /venv/bin/django-admin | 6517175006f8e56cddc0d1498b29ef886b9127e7 | [] | no_license | nancykhullar08/todo | 219568bafa9e667193f0645dfb3284a1d210aa5e | cc1f33948d345aa740320687bae86249004333c9 | refs/heads/master | 2020-06-26T12:28:03.972429 | 2019-08-02T09:49:04 | 2019-08-02T09:49:04 | 199,629,523 | 0 | 0 | null | 2019-08-02T09:49:05 | 2019-07-30T10:26:18 | Python | UTF-8 | Python | false | false | 283 | #!/home/nancy/Todo/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from django.core.management import execute_from_command_line
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(execute_from_command_line())
| [
"nancy.khullar@mobicules.com"
] | nancy.khullar@mobicules.com | |
5817c79a09e5e569d6a193b8a3db4da14d3e95a8 | 1cf5c517ae4ad13bfeeb8bb5e1a471cca73ac114 | /goods/migrations/0001_initial.py | 13e3b25f36d2132be84e5e5d886dc4a94da4c7f0 | [] | no_license | ITLZJ/netshop | 4b60c8cd25b59d707ec3da89e67187a805b7d510 | 9fa53ac8689f8f5f75ff575a435ec65f0f78d74f | refs/heads/master | 2023-03-18T11:01:08.140482 | 2021-03-09T09:31:06 | 2021-03-09T09:31:06 | 345,952,299 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,233 | py | # Generated by Django 3.0.10 on 2021-03-09 05:59
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"1132677988@qq.com"
] | 1132677988@qq.com |
a3f050568b35e8be3ac8a3be6c54bc944ea3bdaf | 83e436d062adf45591b737b804de76d849446130 | /factories/DataFrameFactory.py | 025de3606bb7a229e798a0478710dea46bb9df5d | [] | no_license | MateuszChmielewski99/CollardRecommendation | 423783a316a8fcea063038f096af3b3ad0e2d1d5 | 46ea6cb384976176bd34f625f9806c857ac64bf5 | refs/heads/main | 2023-02-17T18:32:15.959255 | 2021-01-18T23:21:00 | 2021-01-18T23:21:00 | 330,805,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,073 | py | from dataframe import df
from columns import genres_columns
class DataFrameFactory:
def create_data_frames_array(self, first: bool, second: bool, third: bool):
if not first and not second and not third:
return [df.copy()]
if first and not second and not third:
return self... | [
"chmielewski079@gmail.com"
] | chmielewski079@gmail.com |
8aff246bd7dd09558f4bb6becdae7f01d5fbfee1 | f9e38d859bdbfa62292cc88e93cf966f52bbdc2c | /main7.py | c71c0aebde90ff02a42e3021c9fc0a7585ae3748 | [] | no_license | mmaglanq/test2 | 119508dd3286bcf0291b11d4b6fd2228027faf5f | 3d6289997da9f10411adbc86b91326c101eace38 | refs/heads/master | 2021-01-20T12:58:12.286832 | 2017-05-06T08:41:25 | 2017-05-06T08:41:25 | 90,433,819 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 293 | py | import pexpect
child = pexpect.spawn("telnet 54.250.134.6 32773")
child.sendline("\n\n")
child.expect(">")
child.sendline("enable")
child.expect("#")
child.sendline("config t")
child.expect("#")
child.sendline("hostname Router1")
child.expect("#")
child.sendline("end")
child.expect("#")
| [
"jonel.mawirat@bugomi.com"
] | jonel.mawirat@bugomi.com |
fb209165b29b3cd9a1cb5aab568c36acf85440a6 | 0017ce82303cde1c27e48d41af7860efa8c079eb | /python_boilerplate/tests/test_os_utils.py | 8fea3f3399204a333984705b65d13a90d41aa187 | [
"MIT"
] | permissive | lincoln-harris/python_boilerplate | b50c40700f7081563350fd6f33c8fd5fa972959a | 79cb48219f5a1ac822cd3c9ffa0c97b6342b1ac5 | refs/heads/master | 2020-05-04T18:52:14.644826 | 2019-04-03T21:00:34 | 2019-04-03T21:00:34 | 179,369,797 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,162 | py | """
test_os_utils.py
Tests for operating system utilities
"""
import os
import pytest
# Fixtures are functions-turned-variables that can be used across multiple
# tests. conftest.py contains fixtures that can be used by any test file
@pytest.fixture
def folder():
return "test-folder"
def test_sanitize_path()... | [
"lincoln.harris@czbiohub.org"
] | lincoln.harris@czbiohub.org |
14a5e926462e9e5f247aaccdde310403ad9d7673 | b4214ee88bfd3161df3ca5fe24c447ad2224f872 | /AES_encoder/aes_encoder/flow/script/filelist.py | b734214a0961ab03f99dc042ebe6da17e3d5ea8e | [] | no_license | Anizetho/Flow-conception | 6281ba2eb636e0cff8ea57e0a35a811914977740 | 1b42f0f1cd81f71262fe20caa2b7123a377e841f | refs/heads/master | 2020-04-08T19:17:04.768711 | 2018-12-12T10:18:03 | 2018-12-12T10:18:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 402 | py | import os
prj_dir = os.environ['PRJ_ROOT']
file_dlist = open("dirlist.txt","r")
file_flist = open("filelist.txt","w")
for line in file_dlist:
path = prj_dir + "/" + line.replace('\n','');
print(path)
for elem in os.listdir(path):
full_path = path + "/" + elem
if not (os.path.isdir(full_path)):
... | [
"thomas.anizet@hotmail.com"
] | thomas.anizet@hotmail.com |
7312f6cf58e998f437b6c78d7899d2052673a83c | 1b4b65f6223d54f44315c816d11546291c0b6840 | /Database/ETL_SwSh_Series.py | 49cc2dbd2893399d45a003dbdaf7a700ff9c714a | [] | no_license | benaziziasmae/squirtle_squad | c7f563d7e6e0f435b753f38820eec832e53baa30 | 2684ae16fd9f37f2639e52121d58313aca396554 | refs/heads/main | 2023-06-12T05:29:03.657750 | 2021-07-02T19:24:33 | 2021-07-02T19:24:33 | 366,905,848 | 4 | 5 | null | 2021-07-02T19:24:36 | 2021-05-13T02:00:56 | Jupyter Notebook | UTF-8 | Python | false | false | 3,514 | py | # import dependencies
import pandas as pd
import requests
import datetime
import sys
import os
sys.path.append(".")
from config import tcgapikey, SQLALCHEMY_DATABASE_URI
from sqlalchemy import create_engine, dialects
from re import search
# Initial API call & get request
url = 'https://api.pokemontcg.io/v2/cards?q=set... | [
"ian.fan13@gmail.com"
] | ian.fan13@gmail.com |
71a5a6949a9e38fd6f0986a717811663d5af6685 | ae85a80cf17b0a80ad2bde3522ea8874e278e590 | /speed typing.py | 46a4c47ca453e834e0f0d3c592aa755353119676 | [] | no_license | Akaash-Agarwal/Typing-Speed-Tester | 301d0540a0c26e606accdd58126f01c11755ceb9 | 6c0e2e141c953ba6e1bd4cdc19b372de9a0a8faf | refs/heads/main | 2023-07-11T00:16:48.570419 | 2021-08-20T21:02:08 | 2021-08-20T21:02:08 | 398,398,692 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,910 | py | import pygame
from pygame.locals import *
import sys
import time
import random
# 950 x 500
class Game:
def __init__(self):
self.w=750
self.h=500
self.reset=True
self.active = False
self.input_text=''
self.word = ''
self.time_star... | [
"noreply@github.com"
] | noreply@github.com |
df046cea96dc9c637451a57cb013fb2cc7882f94 | 99f9b3c8358a8ef26eb3f0a60bc2d4e5e5845733 | /build.py | 777a99d51b639e708eb652836acbb4fcdf3b270e | [
"MIT"
] | permissive | darkliang/blog | 2708cc6017b8fb37260ec360c92dc48d1d64e337 | 84ab91a2845a04ab244733c4a43ab447feccaa74 | refs/heads/master | 2023-07-22T00:26:07.776440 | 2023-07-18T13:42:10 | 2023-07-18T13:42:10 | 341,156,891 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,052 | py | # -*- coding: utf-8 -*-
"""Maverick
Author: AlanDecode | 熊猫小A
Link: https://www.imalan.cn
GitHub: https://github.com/AlanDecode
"""
from Maverick.Utils import print_color, Color
from Maverick.Builder import Builder
from Maverick.Config import g_conf
import os
import sys
import getopt
def main(argv):
try:
... | [
"11710911@mail.sustech.edu.cn"
] | 11710911@mail.sustech.edu.cn |
96bdd87b9aeea99dcc2b5b22002ba5e48f88519a | 70e0c9cc78d8e1883a7b2f10be206193bf674811 | /node_modules/dtrace-provider/build/config.gypi | 83ca67d3e0144a44342e972861bcfdfc6a5f4b34 | [
"BSD-2-Clause",
"MIT"
] | permissive | niyonx/ghost-blog | c90873e3856ce13af837fecba2e5bcfac2702e1e | e01da1d32c03700d12359e7fcfdd636f45a3fa21 | refs/heads/master | 2022-12-24T00:36:54.379510 | 2020-09-12T17:40:06 | 2020-09-12T17:40:06 | 294,878,083 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,845 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"debug_ngh... | [
"kenkenysy@gmail.com"
] | kenkenysy@gmail.com |
cbb187e7d59019198c646d702aff8fbadc4169a3 | fa89010f366aa33967c12636bf6cfae6105a9ee5 | /ex7/nation_mood.py | cee5016c3dfd5694fae9bb9cc3434bbd28db8739 | [] | no_license | borgr/intro2cs | 4db1985b789d0938d7c9cecddbe5a302f284bd95 | 9030d9831a168d9636093bd5211926666298d80f | refs/heads/master | 2020-05-29T19:35:20.829664 | 2016-10-22T06:07:22 | 2016-10-22T06:07:22 | 15,959,512 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,976 | py | #############################################################
# FILE : nation_mood.py
# WRITER : Leshem Choshen + borgr + 305385338
# EXERCISE : intro2cs ex7 200132014
# DESCRIPTION:nation wide tweet functions
#############################################################
from data import load_tweets
from geo import us_... | [
"noreply@github.com"
] | noreply@github.com |
8ab8e5f98c41b9fb41c80d47225b946e72e9c11b | 09e57dd1374713f06b70d7b37a580130d9bbab0d | /data/p3BR/R1/benchmark/startPyquil365.py | 7bd3571d7cf4002ea5c98aabb057ee26101e6441 | [
"BSD-3-Clause"
] | permissive | UCLA-SEAL/QDiff | ad53650034897abb5941e74539e3aee8edb600ab | d968cbc47fe926b7f88b4adf10490f1edd6f8819 | refs/heads/main | 2023-08-05T04:52:24.961998 | 2021-09-19T02:56:16 | 2021-09-19T02:56:16 | 405,159,939 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,533 | py | # qubit number=2
# total number=67
import pyquil
from pyquil.api import local_forest_runtime, QVMConnection
from pyquil import Program, get_qc
from pyquil.gates import *
import numpy as np
conn = QVMConnection()
def make_circuit()-> Program:
prog = Program() # circuit begin
prog += H(0) # number=1
pr... | [
"wangjiyuan123@yeah.net"
] | wangjiyuan123@yeah.net |
0506fa6a486ad43932a07600c4d00d1ddc5a40b9 | 7bd9be7f25be80791f9220b62025f06170273293 | /end-plugins/pycerebro/examples/create_tasks.py | ed3f5c9a50d7b348f9c12a77fad2a31adcebc5f9 | [] | no_license | cerebrohq/cerebro-plugins | ab46b4844adcb12c51d14e21f2c0d8b758b0bb57 | e2e0f97b548ef22957e13d614200027ba89215e0 | refs/heads/master | 2021-11-12T16:25:48.228521 | 2021-10-22T11:25:58 | 2021-10-22T11:25:58 | 143,178,631 | 5 | 3 | null | null | null | null | UTF-8 | Python | false | false | 14,092 | py | # -*- coding: utf-8 -*-
"""
Примеры создания задач.
Этот модуль демонстритует, как можно устанавливать соединение с базой данных,
создавать задачи и связывать их между собой без использования графического интерфейса Cerebro.
Также в модуле продемонстрировано создание сообшений и прикладывание к ним файлов.
Модуль исп... | [
"41910371+cerebroSupport@users.noreply.github.com"
] | 41910371+cerebroSupport@users.noreply.github.com |
3c21849b572848e17c219d6d9115dda9eaf3d56e | d66818f4b951943553826a5f64413e90120e1fae | /hackerrank/Algorithms/Cut the Tree/test.py | 71dbf8141286bc70cf3538beaf3323dcc9737296 | [
"MIT"
] | permissive | HBinhCT/Q-project | 0f80cd15c9945c43e2e17072416ddb6e4745e7fa | 19923cbaa3c83c670527899ece5c3ad31bcebe65 | refs/heads/master | 2023-08-30T08:59:16.006567 | 2023-08-29T15:30:21 | 2023-08-29T15:30:21 | 247,630,603 | 8 | 1 | MIT | 2020-07-22T01:20:23 | 2020-03-16T06:48:02 | Python | UTF-8 | Python | false | false | 796 | py | import unittest
import solution
class TestQ(unittest.TestCase):
def test_case_0(self):
self.assertEqual(solution.cutTheTree(
[100, 200, 100, 500, 100, 600],
[
[1, 2],
[2, 3],
[2, 5],
[4, 5],
[5, 6],
... | [
"hbinhct@gmail.com"
] | hbinhct@gmail.com |
4b64e334ec6098e943ae82960173c1f721806d30 | f9fb57a94f61fe000085b06eb6049168952efe9e | /API-valorImovel/web.py | ffe121a3de26e3a9019b360a481f4cf0e0280ab4 | [] | no_license | rafaelct/imobpy | ea5a569ab06018cb9bb1ea4a29ffac456b1590c2 | d8a8ee851f1bc5c01fca8abcb169f7ff9f77c04b | refs/heads/main | 2023-06-02T18:02:01.700832 | 2021-06-18T22:25:20 | 2021-06-18T22:25:20 | 376,086,824 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 602 | py | from flask import Flask, jsonify, request
from controllers.ValorImovelController import ValorImovelController
import os
app = Flask(__name__)
@app.route("/valorimovel", methods=['GET'])
def epValorGET():
valorImovelController = ValorImovelController()
try:
return valorImovelController.methodGet(requ... | [
"rafa@rafael.cteixeira.nom.br"
] | rafa@rafael.cteixeira.nom.br |
0fef9a8eeb0b4196f5724b5962260fecb67d80db | 99055f0b6dcb72f847f34330bd5fdb5f02817b42 | /deepsight/train.py | 597a8dd179d07d40a1e78a86b2c48e3114a34c0e | [
"MIT"
] | permissive | aitrek/deepsight | 50cad1da47350a2b5759fb4f1cbd3b95992ee485 | ab78c8a6dcaa183c0d6a6e8f591460d88a85e4e6 | refs/heads/master | 2020-07-09T07:04:27.999358 | 2019-11-28T03:27:31 | 2019-11-28T03:27:31 | 203,911,601 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 861 | py | """Class to train model"""
import toml
from torch.utils.tensorboard import SummaryWriter
class Train:
def __init__(self, log_dir):
self._writer = SummaryWriter(log_dir)
def run(self, net, criterion, train_loader, test_loader):
raise NotImplementedError
class DynamicTrain(Train):
"""
... | [
"aitrek.zh@gmail.com"
] | aitrek.zh@gmail.com |
55776e8e0524d577530666bd7da773280267d159 | d92f5c072babb1ea2f0ecdd35c633f5253d2074d | /main.py | 58a4391b5328cecdba5c1967e159238ca0764184 | [] | no_license | treb214/trbvc | 899bed850a5c5d5e4b4fcc35096e8d75ea2fddf7 | c141a9c27cb2ef77b00f354acf94f91e9758fa74 | refs/heads/master | 2020-05-15T17:09:47.806638 | 2019-04-27T11:56:27 | 2019-04-27T11:56:27 | 182,401,317 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 174 | py | from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello():
return "Hello Valeriya!"
if __name__ == '__main__':
app.run(host='0.0.0.0', debug=True)
| [
"noreply@github.com"
] | noreply@github.com |
4ec1580124da712dd704951e37c5972e118899c2 | 29739eeb360199971aa501706bf7d3ad09c7c412 | /app.py | 677eb0979f656c373e57874e932845ec2d5ecda9 | [] | no_license | Artro01/practica | bf826d87a6ca7c7d7ba83c717f90b5866e53a4b5 | 551d84ec3249fd47705af4c89262db397e702a3f | refs/heads/master | 2021-04-28T20:32:18.840052 | 2018-02-18T07:11:53 | 2018-02-18T07:11:53 | 121,928,019 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,318 | py | # Author : Salvador Hernandez Mendoza
# Email : salvadorhm@gmail.com
# Twitter: @salvadorhm
import web
import config
#activate ssl certificate
ssl = False
urls = (
'/', 'application.controllers.main.index.Index',
'/login', 'application.controllers.main.login.Login',
'/logout', 'application.controllers.m... | [
"00123654@red.unid.mx"
] | 00123654@red.unid.mx |
f81a3b9aa0d08ebcc9c61c9d2ebb3edf275c0928 | 81f24c378cc9aa0cddd90c28a22034988de9b9dd | /spartan/model/eaglemine/run_waterleveltree.py | 2f36579dc169f88ad8d7234293b0d27603662bde | [
"BSD-3-Clause"
] | permissive | GitYangshanglin/spartan2 | 2f852639f7bc7477666fcb6231ea3df84204ec8d | 0b30fa342299199b5df65655a712d3591bfa10e8 | refs/heads/master | 2023-06-03T08:36:29.122157 | 2021-06-23T10:02:29 | 2021-06-23T10:02:29 | 293,672,841 | 0 | 2 | BSD-3-Clause | 2020-09-08T01:47:02 | 2020-09-08T01:47:01 | null | UTF-8 | Python | false | false | 2,172 | py | #!/usr/bin/python2.7
# -*- coding=utf-8 -*-
##################################################################
# WaterLevelTree Test
# Goal: Test script for WaterLevelTree algorithm
# Author: wenchieh
#
# Project: eaglemine
# waterleveltree.py
# Version:
# Date: November 29 2017
# Main Contact... | [
"wenchiehfeng.us@gmail.com"
] | wenchiehfeng.us@gmail.com |
a962ff1bdbf5794c6ccf3662675aacd15b94ab20 | de4c5ecaf541d67e7cbf02837d93cf303d23b5da | /tests/app/views/home_tests.py | 457f11123076d3a77c42d472cd58e5fe3b42dc01 | [
"Apache-2.0"
] | permissive | shadowmint/py-test-watcher | d140064cafeb0b2efce8a403a3abd63322f812d0 | 36d33206b104c81e2d6acebdbed2dddee71fe2a7 | refs/heads/master | 2021-01-19T14:07:13.441335 | 2013-07-01T06:07:56 | 2013-07-01T06:07:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,641 | py | # Copyright 2013 Douglas Linder
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at:
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing... | [
"linderd@iinet.net.au"
] | linderd@iinet.net.au |
7014883ea18df58db09ad7585e7ba9077592e201 | c1c6ba125527a140dff6c418b79cd9b3729437e1 | /profileapp/models.py | e49d9b68d8dcfa5d61e3a2537bf2f72c458ead0e | [] | no_license | Uh-hub/git_4ban_1 | 268efaccb9b49d836c6b910f560a790ba77b5948 | a5684e8a50552b305c957e941b4eda10bf82198d | refs/heads/master | 2023-08-15T13:43:44.105291 | 2021-09-29T11:13:08 | 2021-09-29T11:13:08 | 382,210,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 442 | py | from django.contrib.auth.models import User
from django.db import models
# Create your models here.
class Profile(models.Model):
user = models.OneToOneField(User, on_delete=models.CASCADE,
related_name='profile')
image = models.ImageField(upload_to='profile/', null=True)
ni... | [
"tabacal3590@gmail.com"
] | tabacal3590@gmail.com |
152fe7cb69fa2f01590149d95dc4b52c08b9ff09 | f9fbecc97515f10baaea7010c19e1012b621320e | /preprocess.py | 6809c11af1e09f1f2b3d240fa33999f5cabd77f9 | [] | no_license | Canis-Ignem/text_generation_chat_bot | cf2d4ed8790317ec0c9ae800697e4205b940fab4 | 6a10906cffaf7ed329761badc4f097febd4e13c7 | refs/heads/main | 2023-07-18T22:35:26.855957 | 2021-09-06T18:08:42 | 2021-09-06T18:08:42 | 402,919,303 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,705 | py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
import csv
import re
import os
import codecs
from io import open
# Splits each line of the file into a dictionary of fields
def loadLines(fileName, fields):
lines =... | [
"jonperezetxebarria@gmail.com"
] | jonperezetxebarria@gmail.com |
2fc98b738bd56aa8aff7591590b98098af6a04b0 | 37b014820aef8b83e3eca3f102b3d04ef504066e | /readcsv/settings.py | 65777c4908e4034159ad3c696a1251fa850b447a | [] | no_license | juniorcarvalho/readcsv | d8ae35efe65c90363920a1049c17554b0757fe15 | 0a20ad4f96929b9f5bab703f2c47f6c0ff345bc3 | refs/heads/master | 2022-05-25T08:00:16.372555 | 2021-04-08T20:38:00 | 2021-04-08T20:38:00 | 208,878,426 | 1 | 0 | null | 2022-04-22T22:17:01 | 2019-09-16T19:14:28 | Python | UTF-8 | Python | false | false | 5,052 | py | """
Django settings for readcsv project.
Generated by 'django-admin startproject' using Django 2.2.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.2/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.2/ref/settings/
"""
import os
fr... | [
"joseadolfojr@gmail.com"
] | joseadolfojr@gmail.com |
76eb8ab4db188cd464763f02327f4729a56fa0c4 | 20058c68d244a650230c73e40ca3734516b17a79 | /zuoye1.py | 2267c81cee2ade397e86a7db54bb7a62b18af742 | [] | no_license | trafficker/8 | c116cdcd8db49216393d8ca055894437259b2257 | 0f34915f8993969769d707832bb900d3b607d6ad | refs/heads/master | 2021-05-04T13:52:40.048158 | 2018-02-05T15:22:20 | 2018-02-05T15:22:20 | 120,324,470 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,629 | py | import numpy as np
#import matplotlib.pyplot as plt
def readData():
"""
Read data from txt file.
Return:
X1, y1, X2, y2, X3, y3: X is list with shape [50, 4],
y is list with shape [50,]
"""
X1 = []
y1 = []
X2 = []
y2 = []
X3 = []
y3 = []
... | [
"136528864@qq.com"
] | 136528864@qq.com |
b47869a08569b3ca28532266056d8d21a75f48ba | 8131e58b4db00725452a544adb2b71dfe7810e45 | /src/tournamentRunner.py | 55d5fba6aea17763c500cd5d534426508cacb31a | [] | no_license | prlombaard/tournamentRunner | 6f756f46c52bd56b44acb4774af319513fbbbefa | f169d40e7ebc0d498de25c3e84027bfac83ebc9c | refs/heads/master | 2016-09-05T22:50:52.009015 | 2015-04-17T09:02:53 | 2015-04-17T09:02:53 | 34,038,338 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,760 | py | import os
from os.path import join, getsize
import itertools
import subprocess
import json
import sys
import collections
import time
pipe_r, pipe_w = os.pipe()
def roundRobin():
"""
Runs SpaceInvadersDuel
"""
def calculateStats(tournament_times):
print "Gathering stats"
stats = []
# walk th... | [
"prlombaard@gmail.com"
] | prlombaard@gmail.com |
c843c8f5ac94babd9d6dda5862e4393a08c25abd | b0a1884cd6c40362085dc08c7a091ed7cf1ece7f | /eelbrain/tests/test_mne.py | 06e2009c988be2ab9c2632f8d57ae4e63439b6be | [] | no_license | LauraGwilliams/Eelbrain | 4f37dbcc314063e92425dadf9b1f9f2aeea69a9c | d04fa2e7108c5f683fc145fc44a794d39928f2cb | refs/heads/master | 2021-01-18T16:00:36.727474 | 2015-10-23T13:38:17 | 2015-10-23T13:43:17 | 34,459,099 | 0 | 0 | null | 2015-04-23T13:51:09 | 2015-04-23T13:51:09 | null | UTF-8 | Python | false | false | 7,674 | py | """Test mne interaction"""
from itertools import izip
import os
from nose.tools import eq_, ok_, assert_less_equal, assert_not_equal, assert_in
import numpy as np
from numpy.testing import assert_array_equal, assert_allclose
import mne
from eelbrain import datasets, load, testnd, morph_source_space, Factor
from eelb... | [
"christianmbrodbeck@gmail.com"
] | christianmbrodbeck@gmail.com |
699cc070311cdbe28faab2769294208a1fb3e22e | cb40f68976757e192036c3687ac72a6f293efebd | /Speech Model/Parselmouth_Results/Results/MLP/RAVDESS/Clean/MLP_Parselmouth_RAVDESS_Clean.py | 1ef7c5ec0af899e0e9edcb4ec097a7fe6613fff2 | [] | no_license | RezwanM/ASDEmotionRecognition | dbcad337c0d453df2995cb1951ef8beb5e28e75d | 9b622fbf3f36adb100a5583e57bffc261734fe98 | refs/heads/master | 2023-04-05T14:11:36.933481 | 2021-04-02T16:30:23 | 2021-04-02T16:30:23 | 237,095,646 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 7,620 | py | #************************************************************************************
# Rezwan Matin
# Thesis B
# Filename: MLP_Parselmouth_RAVDESS_Clean.py
# Date: 10/24/20
#
# Features:
# 36 features - Functionals on Pitch (f0), Loudness(Intensity), MFCC, formants, formants BW, HNR, Jitter, and Shimmer.
#
#*... | [
"noreply@github.com"
] | noreply@github.com |
be41226a5a51288ece78ea6a8101e94652515a8a | 74b812828a80190636523cbad4f3a6fc239484ba | /openff/bespokefit/executor/services/optimizer/app.py | cb29e0c1ed66c8e77bb693ced204a9a750190e59 | [
"MIT"
] | permissive | openforcefield/openff-bespokefit | ef438ddc9a072a280e155d1e2d097068a369f73f | 97262756c5c014e9bd5f799d64755b7f73a6160e | refs/heads/main | 2023-08-17T07:09:11.715404 | 2023-08-04T09:43:57 | 2023-08-04T09:43:57 | 241,694,600 | 29 | 4 | MIT | 2023-09-08T06:14:39 | 2020-02-19T18:31:38 | Python | UTF-8 | Python | false | false | 1,559 | py | import json
from fastapi import APIRouter
from qcelemental.util import serialize
from openff.bespokefit.executor.services import current_settings
from openff.bespokefit.executor.services.optimizer import worker
from openff.bespokefit.executor.services.optimizer.models import (
OptimizerGETResponse,
OptimizerP... | [
"noreply@github.com"
] | noreply@github.com |
84ce9b9537a18d7d6b4343f82c335f4d7c2876c5 | fb9270eefb2f81dfb090c8109d32670ae1f0ca61 | /yeminwu2_PE10.py | db6cdd58c7b6fb4e073da637f62d622b5b771f06 | [] | no_license | Zoeoez/452 | 0df075fd106d0e610347127c82b108e9d05b9201 | 3575871ea3bf69ebe6dd670e64d30f14185cc289 | refs/heads/master | 2021-02-04T05:08:35.240127 | 2020-02-27T21:38:25 | 2020-02-27T21:38:25 | 243,622,146 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 684 | py | #PE10
count=0
length=0
phrase=input("Please enter the phrase you want to get the average length:",)
words=phrase.split()
for one_word_str in words:
count=count+1
length=length+len(one_word_str)
print(length/count)
# To calculate the average word length in a sentence entered by the user, I need count as count
#... | [
"zoe@ZoedeMacBook-Pro.local"
] | zoe@ZoedeMacBook-Pro.local |
ad4e649b239537eddb6800ce370c12e1249de392 | 1d08d78e4118a7d843c16fbb5391586167419e50 | /RNA_secondary_structure_prediction/app/rna_takefuji.py | 342fedfb3c57ad4d3b143b56820ba21949e00142 | [
"MIT"
] | permissive | Debapriya-Tula/RNA_sequence | 0863a1e28384b6495a3ddc1e591e8f4d708ffced | 392948606e97990440e036753c9cfd61bdfdeb60 | refs/heads/master | 2021-07-13T10:11:32.365152 | 2020-06-21T15:53:44 | 2020-06-21T15:53:44 | 164,237,197 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,058 | py | # Importing necesary modules
import numpy as np
import pandas as pd
import networkx as nx
#import networkx.algorithms.approximation as nxaa
import matplotlib.pyplot as plt
import igraph as ig
import io, base64
def takefuji(seq, bases, keep_seq):
# Defining weights of base-pairs for use in tables
main_dict = {'GU':... | [
"tdebapriya@gmail.com"
] | tdebapriya@gmail.com |
576a5caebe9274dbe6a976f5be2cda765413cea2 | 0faf534ebb6db6f32279e5bee25b968bd425ce3a | /tests/extension/thread_/stream_sink_fifo/test_thread_stream_sink_fifo.py | 2fbe7fdf2573c48b8a204e9797df3ef6b7351a35 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | PyHDI/veriloggen | e8647cb2d40737d84e31d6b89c5799bab9cbd583 | f2b1b9567150af097eed1b5e79ba2b412854ef43 | refs/heads/develop | 2023-08-09T10:02:35.626403 | 2023-08-09T00:50:14 | 2023-08-09T00:50:14 | 37,813,184 | 282 | 60 | Apache-2.0 | 2023-07-20T03:03:29 | 2015-06-21T15:05:30 | Python | UTF-8 | Python | false | false | 547 | py | from __future__ import absolute_import
from __future__ import print_function
import os
import veriloggen
import thread_stream_sink_fifo
def test(request):
veriloggen.reset()
simtype = request.config.getoption('--sim')
rslt = thread_stream_sink_fifo.run(filename=None, simtype=simtype,
... | [
"shta.ky1018@gmail.com"
] | shta.ky1018@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.