blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e1c89bb6ae45adc09778546ef4ded2df3e23d3a | 287118f0a80d4cc07cf40c4c2cd08734a792bf90 | /python/manage.py | 3f154b0e92a0525b01db81a5024af2f3673463c5 | [] | no_license | bfincher/bfim | 13818acd272fbacf677f16b21ee76a9d2ed55051 | cabfa434a9daedb47be4786fb7e980379407296b | refs/heads/master | 2020-07-13T21:37:20.736140 | 2015-06-30T01:26:03 | 2015-06-30T01:26:03 | 73,883,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 262 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "bfim_site.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"brian@fincherhome.com"
] | brian@fincherhome.com |
ff3754cab9ef652c3ac4d38fae0ec01e44e120e9 | c7c7faf8e30e45cd9c74e86f467eff5bc6aab34d | /mulgen.py | 2cd03430b30da1f339034fdc5a0981d481e8ff4c | [] | no_license | linaaan/Graduation-design | 0cc9329916ad723965511b50689b2805d2e01bfc | 0180cc013c38da40ccccac74e4922c0d17192547 | refs/heads/main | 2023-04-12T04:00:47.917844 | 2021-05-11T11:53:01 | 2021-05-11T11:53:01 | 366,047,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 419 | py | import RandomInitialPoint as RI
import GenerationNode as GN
import numpy as np
def multgr(n, v):
# n 是圈数 v是速度
i = 0
x = []
y = []
for i in range(n):
x1, y1 = RI.InitialPoint(v)
x1, y1 = GN.Generation(x1, y1, v)
x = np.append(x, x1)
y = np.append(y, y1)
return(x,... | [
"807605729@qq.com"
] | 807605729@qq.com |
ab53f17683a218aa029fd6013d35ccf0601a5433 | 91cce084c57639a636c5e4ddae7f8d9e5db3b3ab | /starter_code/migrations/versions/108af48a152f_.py | 7c5f8777c1633a0e797b9060869f40a15286d16e | [] | no_license | Aishwarya1403/Udacity-Fyyur_project-FullStack | 42209286b59d3164381b532e02b2822d4dde5f5f | 721d5d8af835b13ad87b2670856a9fb221618d36 | refs/heads/master | 2022-11-26T22:15:43.680217 | 2020-08-05T09:45:39 | 2020-08-05T09:45:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 828 | py | """empty message
Revision ID: 108af48a152f
Revises: 6acad7d52248
Create Date: 2020-05-19 04:05:39.462836
"""
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import postgresql
# revision identifiers, used by Alembic.
revision = '108af48a152f'
down_revision = '6acad7d52248'
branch_labels = None... | [
"a.srivastava1403@gmail.com"
] | a.srivastava1403@gmail.com |
32f6b9fff9acce58bdc331e9f0ec63770932d681 | 0a639bda0058ac76cca97d6123f6c39229f202f1 | /companies/models.py | 9092279495371d6cf60c4e5d5b187922621a9bb7 | [] | no_license | sanchitbareja/occuhunt-web | bb86e630c2caff5815b164435464424b5cf83375 | fab152e2ebae3f4dd5c8357696893065bdd30504 | refs/heads/master | 2020-05-21T01:15:48.973953 | 2015-01-13T04:03:18 | 2015-01-13T04:03:18 | 12,552,735 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,089 | py | from django.db import models
import datetime
# Create your models here.
class CompanyType(models.Model):
type = models.CharField(max_length = 256)
def __unicode__(self):
return self.type
ORGANIZATION_TYPES_LIST = (
('Accounting Services', 'Accounting Services'),
('Aerospace/Defense', 'Aerospace/Defense'),
('... | [
"sanchitbareja@gmail.com"
] | sanchitbareja@gmail.com |
a6e3f9ad5215ff8793eca41e06d25c666424ff69 | 18567c0f5d32d220939bf249c53d046b43aa5acb | /crypto_test/check_user_password.py | 21de9f1f3435dce019b373e2e6f94f311f0eda74 | [] | no_license | MARConthemove/covid-test-web-site | aaf618227da0ffc920ee57ccd42f3c6d1cc63589 | e926368a3563d8b43fb8a3a207770d0e8e0e6dab | refs/heads/master | 2022-12-29T10:14:51.574318 | 2020-10-05T18:10:53 | 2020-10-05T18:10:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,016 | py | #!/usr/bin/python3
# Let's assume a user has entered this data on the result query web form
form_data = {
"barcode": "ABCDEF",
"password": "ErikasPW"
}
# Here is how to check whether the password is valid
import binascii, hashlib
hashes_found = set()
with open( "test.csv" ) as f:
for line in f:
barcode, time... | [
"sanders@fs.tum.de"
] | sanders@fs.tum.de |
ca5197c4632cb5c88a4dbc9e707acb06e8f609c7 | 406b08dac8f90b855309be77c3ad3a7926aaa02e | /iron2/admin.py | 5cb81a061b1b344c54a53bd1209b388c353df3a6 | [] | no_license | DragonovAk47/SocialQuery1 | 46cdb51dc137cc9f739f2f778bcf2bdaf6cff8dd | 2d20bc48f04f1bdbcc3eddfe57a1bb1e9278cb21 | refs/heads/master | 2020-06-24T06:29:39.179380 | 2019-07-25T18:00:06 | 2019-07-25T18:00:06 | 198,880,431 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 580 | py | from django.contrib import admin
from iron2.models import UserProfile
# Register your models here
# .
class UserProfileAdmin(admin.ModelAdmin):
list_display=('user','Website','Mobile','user_info')
search_list=('Mobile','description',)
list_display_links=('user_info',)
list_editable=('Website',)
def user_inf... | [
"35777944+DragonovAk47@users.noreply.github.com"
] | 35777944+DragonovAk47@users.noreply.github.com |
26b5572ac0a822370e8ce622fbd232f24cebdcaa | 51521862877916257fb965dcf6114f5402fa8b35 | /code/test55.py | 659dccfd09b71613c95709701dab0a194e2ceec9 | [] | no_license | 404akhan/proj3-math | 592170e032ea7f55830a3c66eaff3c01a02af34b | bdccf3d769e3d7c0ab6ea923e3442dd304edc002 | refs/heads/master | 2021-01-21T17:28:30.531798 | 2017-05-21T20:34:33 | 2017-05-21T20:34:33 | 91,953,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,417 | py | # lasso
from helpers import *
import matplotlib.pyplot as plt
top = 70
train, test = get_tr_cv()
cells = pickle.load(open('data/very_new_cells_one_hot-%d.p'%top, 'rb'))
print train.shape
print cells.shape
print 'top', top
version = 67
lr = 0.03
aver_loss, aver_corr = None, None
bsize = 10000
arr_loss = []
for lamb... | [
"404akhan"
] | 404akhan |
fbf6bf8a92fdbb61a7f72ca93c5ac06aaadfbe41 | 997c24e536f27d3871c293d1f14abc2410e1ae39 | /config/settings/local.py | f67a181d9a2eccb02377cb2f7fe5a2731c62e63c | [
"MIT"
] | permissive | arsenalstriker14/imagetraccloud | 4b195e407cfd7dec41115c8cf5cb931dcc35cbd0 | 04004d5eabc82e85596bc9e110c9250d5f882e17 | refs/heads/master | 2021-01-11T16:58:48.619218 | 2017-02-02T22:18:31 | 2017-02-02T22:18:31 | 79,710,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | # -*- coding: utf-8 -*-
"""
Local settings
- Run in Debug mode
- Use console backend for emails
- Add Django Debug Toolbar
- Add django-extensions as app
"""
import socket
import os
from .common import * # noqa
# DEBUG
# ------------------------------------------------------------------------------
DEBUG = env.bo... | [
"accounts@chukesinteractive.com"
] | accounts@chukesinteractive.com |
c07eaaf18f9a7002308b7ea958242eb11f4115bc | b1d7310f3b9199b582251b2b2de72593e27c5e02 | /env_utils.py | c1c645398addccf10f2bb56ffade6b38fd659bab | [
"MIT"
] | permissive | Louiealbp/ContrastiveLearningGoalReaching | c753081e4ab8c886b87a8498a0d84bc676db6ea1 | 4ef3e22cb8276a8c2f4f313e2b27138b9cd361b3 | refs/heads/main | 2023-07-23T05:18:48.126964 | 2021-09-03T21:49:31 | 2021-09-03T21:49:31 | 402,890,443 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,705 | py | import numpy as np
import gym
import os, sys
from arguments import get_args
from mpi4py import MPI
from rl_modules.ddpg_agent import ddpg_agent
import random
import torch
import dmc2gym
from collections import deque
def get_state(env):
##Gets the current state of the environment to allow for true reward calculatio... | [
"noreply@github.com"
] | Louiealbp.noreply@github.com |
889ae073854d8de68add087030c54420209502d8 | 89a1e4e9d928ee3b0f962fa7f8e20ffbbc34c941 | /quest_extension/migrations/0035_correctlyansweredquestion_time_modified.py | 72f45bde31c766673acacda3121bb720bc81e344 | [] | no_license | tdesai2017/Akamai_Quest_Extension_Training_Application | ff24b161cf7d0ca831dad56a010aa203e2c50ee7 | 97b8501a49e4c316c7859e3679f46d344db971cd | refs/heads/master | 2022-12-12T17:09:34.295929 | 2019-11-04T19:42:38 | 2019-11-04T19:42:38 | 182,309,352 | 0 | 0 | null | 2022-12-08T05:14:45 | 2019-04-19T18:33:44 | Python | UTF-8 | Python | false | false | 423 | py | # Generated by Django 2.0.13 on 2019-06-19 13:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('quest_extension', '0034_auto_20190613_1447'),
]
operations = [
migrations.AddField(
model_name='correctlyansweredquestion',
... | [
"tdesai@prod-gtm-app10.bos01.corp.akamai.com"
] | tdesai@prod-gtm-app10.bos01.corp.akamai.com |
286c2725fa2a7c64423fb359d8742ff3a8f7170a | 3f7bd5c0db79b7fbf24b99d93f9a7bb285513fe6 | /tools.py | 620b108fe0598eaba2693dc7b9cd63b1686e0422 | [] | no_license | mfldavidson/dfs_nsc_import_prep | f550d393a66f64329c6671dfac1b74344be9dc79 | 579b7aa0446070f9f372d5dc4346d6be5284b5bb | refs/heads/master | 2022-12-20T21:16:29.971461 | 2020-11-02T15:59:55 | 2020-11-02T15:59:55 | 250,892,888 | 0 | 0 | null | 2022-12-08T10:21:23 | 2020-03-28T21:02:36 | Jupyter Notebook | UTF-8 | Python | false | false | 2,680 | py | from collections import OrderedDict
import pandas as pd
import numpy as np
def extract_record(d):
'''
Given an OrderedDict, extract the records and return a list of attributes and a list of columns.
'''
record = []
cols = []
for var in d:
if var not in ['attributes', 'url']: # Skip th... | [
"jmagdavidson@gmail.com"
] | jmagdavidson@gmail.com |
90fd031fae54e494378fc6f6718d5c9db90f9693 | 254a8334ec71770310173137e5b57b7daf9e8294 | /launchlist/urls.py | 9d37ad64892fc68cb6ed9d96c05df81baf841222 | [
"MIT"
] | permissive | Mabvuto/LaunchList | 15931793d10120c53865fd5e0653013f5677fd62 | 7018c139e029f87db11e32a2397b186a82950487 | refs/heads/master | 2021-01-12T22:14:38.023734 | 2015-04-13T05:02:52 | 2015-04-13T05:02:52 | 64,088,903 | 1 | 0 | null | 2016-07-24T22:44:03 | 2016-07-24T22:44:03 | null | UTF-8 | Python | false | false | 723 | py | from django.conf.urls import patterns, include, url
from django.contrib import admin
from launchlist.views import *
urlpatterns = patterns('',
# Examples:
# url(r'^$', 'launchlist.views.home', name='home'),
# url(r'^blog/', include('blog.urls')),
# URLs for testing
# url(r'^admin/', include(admin... | [
"tachk@rocketeeringetc.net"
] | tachk@rocketeeringetc.net |
6fdd24a3d6b6ce8ba8f54ce5147babfcf93ea7c7 | 6d44e17911050ff2516c2c025b852ffe1b864a59 | /superlists/urls.py | 4b8a451669ee5a9f577b3105f7a4f9bfff21077d | [] | no_license | coa1esce/clash | e0086e9dd93eced80333ad95a46548618a54eedb | b3ef85733f762d6724783257cf816506214a1906 | refs/heads/master | 2021-01-10T13:08:49.868155 | 2016-04-07T22:45:21 | 2016-04-07T22:45:21 | 55,635,947 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 812 | py | """superlists URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.9/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-... | [
"william.deguire@gmail.com"
] | william.deguire@gmail.com |
8166e51901c32ec077752710fc5398034116a218 | 8665fe18231acd4dd591391a10215616f861a307 | /backend/todo/forms.py | 9c425349de6409986124a82b6b101c088bfea330 | [] | no_license | MrZhengXin/database_td_lte | 40bf74a4714ce16a1d177b870c770f3b72ceb5fb | 7c41e4f713fd8347b3b5a72eecb71ab7ada772d9 | refs/heads/master | 2022-12-12T01:45:52.318358 | 2020-08-10T08:43:24 | 2020-08-10T08:43:24 | 282,181,665 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 147 | py | from django import forms
from .models import Post
class PostForm(forms.ModelForm):
class Meta:
model = Post
fields = ['file'] | [
"510546841@qq.com"
] | 510546841@qq.com |
1c165f1ccad36c215f56ef5613cea7ee2101c812 | 1facfd9d94b0f08ddde2834c717bda55359c2e35 | /Python programming for the absolute beginner - Michael Dawson/Chapter 8 - OOP beginning/8.3.py | 58bad4a7400168c26ceaa2894583a1b3bd76ba4e | [] | no_license | echpochmak/ppftab | 9160383c1d34a559b039af5cd1451a18f2584549 | f5747d87051d837eca431f782491ec9ba3b44626 | refs/heads/master | 2021-09-15T07:23:06.581750 | 2018-05-28T14:33:13 | 2018-05-28T14:33:13 | 261,880,781 | 1 | 0 | null | 2020-05-06T21:18:13 | 2020-05-06T21:18:13 | null | UTF-8 | Python | false | false | 3,000 | py | # The material form the book in polish
# Opiekun zwierzaka
# Wirtualny pupil, którym należy się opiekować
class Critter(object):
"""Wirtualny pupil"""
def __init__(self, name, hunger = 0, boredom = 0):
self.name = name
self.hunger = hunger
self.boredom = boredom
def __str__(self):... | [
"mateuszszpakowski@wp.pl"
] | mateuszszpakowski@wp.pl |
2170705885ec02edbec127709a97f58b54329cc5 | dba6e34fa96ca6ea478a9f877b26ab0da4c72b94 | /main.py | 7bd96bbd7b1ec79c0b156ba4f655ddf2141469b7 | [] | no_license | acekun141/getreq | 7a5bd0dfc7701c275ea2f8da0ee238cbed2c1264 | bd8635bce2181bf767232198914d532a262dde35 | refs/heads/master | 2020-06-16T14:19:02.155166 | 2019-07-10T14:20:29 | 2019-07-10T14:20:29 | 195,606,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,797 | py | import requests
import time
import json
import bot
from bot import telegram_bot
with open('config.json') as config_file:
data = json.load(config_file)
list_urls = [
{
'link':'http://127.0.0.1:8000/Page1',
'name':'Page1'
},
{
'link':'http://127.0.0.1:8000',
'name':'Home... | [
"acekun141@gmail.com"
] | acekun141@gmail.com |
af2bbcc8ef30479f1f105c85962d48fc4fbeaac4 | d5e134c4287e2a8e6e676ee6877418c9727e06e3 | /LINDE799_FinalProject.py | e47f61c91a2815d440da0d9025feb8237885717f | [] | no_license | ErikLindeman12/CSCI_1133 | 6fcc93f047d0d0ee199a628a4d854070f6da19be | 91d8ff08b7a327427c9a274442e6ab951f0731ee | refs/heads/master | 2020-03-28T14:54:00.870836 | 2018-09-12T19:57:29 | 2018-09-12T19:57:29 | 148,532,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,117 | py | #Final Project
#Erik Lindeman, LINDE799, 5424984
#CSCI 1133
import turtle
class County:
def __init__(self,name,population):
#setting up instance variables
self.name = name
self.population = population
#Finding which population was the highest for scaling, checks each population to ... | [
"eriklindeman12@gmail.com"
] | eriklindeman12@gmail.com |
171918eacf53dc68cdf837f4e9b33d81ba426350 | a533010ba7e74422c5c7c0193ea2d880e427cb9d | /Python_auto_operation/bin/mlogvis | 69b36f81947475e66d1dde10eb0cb5c3e1d112c6 | [] | no_license | gateray/learning_python | 727b3effe4875f27c86c3e5e66655905f3d5d681 | bc08a58f3a5c1f1db884398efa9d27834514199f | refs/heads/master | 2021-01-19T06:31:01.616421 | 2016-06-30T07:39:23 | 2016-06-30T07:39:23 | 62,290,273 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | #!/home/gateray/PycharmProjects/Python_auto_operation/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'mtools==1.1.9','console_scripts','mlogvis'
__requires__ = 'mtools==1.1.9'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('mtools==1.1.9', 'console_scri... | [
"gateray.example.com"
] | gateray.example.com | |
d3001ec4f08bd4736214ae79c2c8e5734486bf4c | a4266b32b04df49a7d6251b5e125ef92369cbea8 | /projects/01_fyyur/starter_code/migrations/versions/8d395419b3cd_.py | da0bc42269b7c95e489d73d4441a617333480d18 | [] | no_license | Crazychukz/udacity-fyyur | 9fed779f82bf406ea80d9c79710318cc4b95f708 | 7cda6fe4bf7490cfe00707c1e06dd43f2959bc49 | refs/heads/main | 2023-02-20T17:13:39.050992 | 2021-01-22T05:20:22 | 2021-01-22T05:20:22 | 329,382,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 656 | py | """empty message
Revision ID: 8d395419b3cd
Revises: 4192c431ec89
Create Date: 2021-01-19 13:00:11.229361
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '8d395419b3cd'
down_revision = '4192c431ec89'
branch_labels = None
depends_on = None
def upgrade():
# ... | [
"chukwuemekacharles88@gmail.com"
] | chukwuemekacharles88@gmail.com |
61f6dfee794cce2f3c3049caa511c66cc76090fd | 6119f01302e1412bb6987266bf49b037d5560d30 | /up_load/migrations/0001_initial.py | 39feac41ed81c4509a2636739088af12ed6b7016 | [] | no_license | wangdiaodiao520/Marketing-data-management | ce3a92b7531f823633a74e95542cc30d694c2619 | e1864423229bbe26d1a661ef3db2e6f779a00fb7 | refs/heads/master | 2023-02-01T10:09:00.158293 | 2020-12-17T09:26:54 | 2020-12-17T09:26:54 | 310,980,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,516 | py | # Generated by Django 2.0 on 2020-11-03 17:49
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Channel',
fields=[
('id', models.AutoField(pr... | [
"15075747143@163.com"
] | 15075747143@163.com |
26aa690ec62cb1867208234cd0c19ab8f7a9663a | 3d19e1a316de4d6d96471c64332fff7acfaf1308 | /Users/S/stefanw/kommunalverwaltung_nrw.py | aef5bdefc3a1b54035f7bc556bd8da592cd801c6 | [] | no_license | BerilBBJ/scraperwiki-scraper-vault | 4e98837ac3b1cc3a3edb01b8954ed00f341c8fcc | 65ea6a943cc348a9caf3782b900b36446f7e137d | refs/heads/master | 2021-12-02T23:55:58.481210 | 2013-09-30T17:02:59 | 2013-09-30T17:02:59 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,508 | py | import scraperwiki
import lxml.html as lh
from lxml import etree
LIST_URL = 'http://www3.chamaeleon.de/komnav/kundensuchergebnis.php?Ort=&PLZ=%s&OBGM=&Bundesland=Nordrhein-Westfalen&anfrage=imnrw'
DETAIL_URL = 'http://www3.chamaeleon.de/komnav/kundensuchedetail.php?schluessel=%s&anfrage=imnrw&PLZ=%s&Ort=&Bundesland=N... | [
"pallih@kaninka.net"
] | pallih@kaninka.net |
5be6010f3a856a416a0282d5b935f9e45d4e5abb | 03f5ab2084198aa585be4a305c60d70cb16a93ee | /ex19.py | 19cecb1d9194f814e48327fd85bf9a98b2545582 | [] | no_license | Izaya-Shizuo/lpthw_solutions | b156c0f2f80ad002464e62783c65f36ace2b54db | b2be3c4d849265f952652c2680028fd582c3a67a | refs/heads/master | 2021-01-10T16:26:53.208425 | 2015-12-24T07:51:37 | 2015-12-24T07:51:37 | 48,531,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,114 | py | # Defining the function here with two arguments. The function prints the values of the arguments
def cheese_and_crackers(cheese_count, boxes_of_crackers):
print "You have %d cheeses!" %cheese_count
print "You have %d boxes of crackers!" % boxes_of_crackers
print "Man that's enough for a party!"
print "Get a blanket... | [
"izayaikebukro@gmail.com"
] | izayaikebukro@gmail.com |
55ffff92327e8de2093937623f78cd5e42b87c18 | 38f4a7ab5d174baab0fe7c0e45b7bd0b23fa9b91 | /Python/Exe04.py | 14952f564b92c2cdf562dc9a24f731824d9e05a3 | [] | no_license | ranjiewwen/Everyday_Practice | 764b7d89d6aecea3423980d30acc1985a40e7715 | b12855d0414d7d64571093ec0b69ba775eda2068 | refs/heads/master | 2020-04-15T14:30:23.139626 | 2018-12-28T05:14:27 | 2018-12-28T05:14:27 | 54,867,492 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py |
# coding: utf-8
var1 = 1
var2 = 10
del var1
#var3=ceil(4.3)
var3='hello world!'
var4='Python Rundo!'
print 'var1[0]:',var3[0]
print 'var2[1:5]:',var4[1:5]
var5='hello world!'
print '更新字符串:-',var5[:6]+'Runoob'
a='hello'
b='python'
print a+b
print 'H' in a
print 'M' not in a
print r'\n'
print 'my name is %s and w... | [
"532685734@qq.com"
] | 532685734@qq.com |
5ee18fe1c627d044dd94b31a4ae22fcca29f5c5f | f228c0aedc6d66676d52a87a4780cad43ca1af68 | /manage.py | f92873d395d95c58e73995b20873d7ef0d4177f0 | [] | no_license | MdShohoan/Django-Curd-operation | 2e749c86d97b685e19a245c9063771376452b7d3 | d62470a26b72368b9759a494ed881531e7b2beb0 | refs/heads/main | 2023-01-25T03:07:27.141933 | 2020-12-07T05:52:51 | 2020-12-07T05:52:51 | 319,217,445 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 632 | py | #!/usr/bin/env python3
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'Django_rest.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise I... | [
"shohoankhan@gmail.com"
] | shohoankhan@gmail.com |
af363d021e5648986bed5c80abd2f2829a4eac67 | 7024f5e954fa46dc266eedcde54b5bd32e5cd8c0 | /users/views.py | 1a6e718191a843d270f45fe705f9c5fd16e18b0b | [] | no_license | rahulg510/blogger | 25e9a6105dd37ef3102386e6d2b8924cdfa0b0d1 | 8bb62d16908a5bb61e8d3e1b8b8057092d73cdfd | refs/heads/master | 2022-04-27T03:13:43.511502 | 2020-04-18T07:02:05 | 2020-04-18T07:02:05 | 255,612,691 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 666 | py | from django.shortcuts import render, redirect
from django.contrib.auth import authenticate, login
from .forms import RegistrationForm
def register(request):
if request.method == 'POST':
form = RegistrationForm(request.POST)
if form.is_valid:
form.save()
username = request.PO... | [
"rahulg510@live.com"
] | rahulg510@live.com |
d04d6b9893f5f78f3475521db16a4084f2eb7651 | 1ddacfc9d8e1096799d3e29d03f48a11b0d9b1cc | /compare_directories.py | 806bfc49e967309193ef0b0e4eed850e9903c354 | [] | no_license | fladd/CompareDirectories | 275dece69ce8e1063bf49d9f77629ec5dda6af2e | f65a4f2b25de11135e358b098703c41e5cd1b22c | refs/heads/master | 2021-01-01T03:59:29.730206 | 2016-05-04T12:41:31 | 2016-05-04T12:41:31 | 57,979,582 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,754 | py | """
Compare Directories.
This tool will binary compare all files of a directory recursively to all
files of a reference directory. Erroneous (not readable), differing, missing,
new and identical files are reported.
"""
__author__ = "Florian Krause <fladd@fladd.de>"
__version__ = "0.1.0"
import sys
import os
impor... | [
"fladd@web.de"
] | fladd@web.de |
c5cf8aee1be268414aa93dbc592e7fed079198c0 | d84ac0465808797072ee6da70a42113b938777c1 | /distance/traj_dist/lcss.py | 504292478e3672893ea2963457dacedb65b72ad7 | [] | no_license | mattkennedy416/Big-Time-Series-Analysis | d0c4520d7db27c2d805c5353a3e9e813dd9b1995 | ae60833095fe99ee2dd2a85c1f69cf8748d95883 | refs/heads/master | 2020-04-16T08:30:20.064962 | 2019-02-21T04:58:39 | 2019-02-21T04:58:39 | 165,427,239 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,916 | py | from distance.traj_dist.basic_euclidean import eucl_dist
from distance.traj_dist.basic_spherical import great_circle_distance
######################
# Euclidean Geometry #
######################
def e_lcss(t0, t1, eps):
"""
Usage
-----
The Longuest-Common-Subsequence distance between trajectory t0 an... | [
"mattkennedy416@gmail.com"
] | mattkennedy416@gmail.com |
0abd1c788cd3722d148b30f9bf0fad0685983d00 | 42e3621158be2fead9fe4af2e351a34dca1fac53 | /jobs/app.py | 0d765039d72c7cff5a4410977dfab438ee0e23e5 | [] | no_license | Manofdesign/PythonFlask-JobBoard | 24aabbbec933b2bf4a1898c6b1106d1259422756 | 6399aaf147471cef93c424a1bb6005b31bc5c908 | refs/heads/master | 2023-01-01T16:41:36.403832 | 2020-10-28T22:17:13 | 2020-10-28T22:17:13 | 298,415,492 | 0 | 0 | null | 2020-09-24T23:09:30 | 2020-09-24T23:09:29 | null | UTF-8 | Python | false | false | 2,927 | py | import sqlite3
from flask import Flask, g, request, redirect, url_for
from flask import render_template
import datetime
PATH = "db/jobs.sqlite"
app = Flask(__name__)
def open_connection():
connection = getattr(g,'_connection', None)
if connection == None:
connection = sqlite3.connect(PATH)
g.... | [
"43456962+Manofdesign@users.noreply.github.com"
] | 43456962+Manofdesign@users.noreply.github.com |
78374d045b6f66c2b39d4930157a45720df92186 | 2474ddeb131e641f097ed137d0f25b378c4b1a30 | /migrations/versions/4b754e76ffe5_.py | 51a9200cf0185a7eb77729acee7ca9ee8a853a42 | [] | no_license | fatetwist/blog | 7f44c6546b818c2bc2d66697ee78b1c1bcc27008 | 68ff35c6f71813c70df7427820683c39d84298e4 | refs/heads/master | 2021-08-28T04:49:58.051933 | 2017-12-11T08:02:13 | 2017-12-11T08:02:13 | 112,607,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 804 | py | """empty message
Revision ID: 4b754e76ffe5
Revises: 77f969a8abc1
Create Date: 2017-11-30 20:01:27.313714
"""
# revision identifiers, used by Alembic.
revision = '4b754e76ffe5'
down_revision = '77f969a8abc1'
from alembic import op
import sqlalchemy as sa
from sqlalchemy.dialects import mysql
def upgrade():
# ##... | [
"591210216@qq.com"
] | 591210216@qq.com |
2014ec8e685ef502f09049145c975e7d7d1c2fc0 | 97b6d53ed1306db1c284ad9df7034ef035523ad1 | /Headline/GetHeadlineCookie.py | b5ecb4d85fb6113ccbf2e20ac2600f5d126b2a2d | [] | no_license | molefuckgo/Spiders | cd7174e65650d10397e4f3f194b58add9fc6c5cc | 6c8ba40b1f5258783c1842e5945eed8da6fa0079 | refs/heads/master | 2022-12-13T23:50:57.498843 | 2020-01-09T20:06:16 | 2020-01-09T20:06:16 | 232,619,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,166 | py | # !/usr/bin/env python
# coding=utf-8
"""
@File: GetHeadlineCookie.py
@Time: 2020-01-09 16:04
@Desc:
"""
from selenium import webdriver
import time
window=webdriver.Chrome()
window.get("https://www.toutiao.com/")
c1={u"name":u"uid_tt",u"value": u"1f46d8d4bfcbefe9bc65e11e68f7d548",u"domain":u".toutiao.com"}
c2={u"name":... | [
"17647361832@163.com"
] | 17647361832@163.com |
db19624cb6bca80ea8e281560b363a90983a931b | ab13fe1bd925fc20f60b8bdfb44d8ed9ca437462 | /Python/tempCodeRunnerFile.py | 626dbfa1170c4ccf7320fbcf717fbffa8d7b21ef | [] | no_license | chaitanyakette/TechFiles | a5fc9b2f1f81cef3e3aaa47e08ace3a1f5ffb3cc | cfe66811439cdfe98ce965df1428887818ccc4b0 | refs/heads/master | 2023-07-13T23:57:12.714638 | 2021-08-23T17:28:53 | 2021-08-23T17:28:53 | 399,188,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14 | py |
c=c+1 | [
"chaitmoun@gmail.com"
] | chaitmoun@gmail.com |
1f284369bfbe954056b67fc0947ca8007b2caf08 | beab30a1bb6ea08abc6bb63e6f22b1ed36c28af3 | /pommerman/fight.py | 978069671958a5f911bfa025bd3758221cdb3652 | [
"Apache-2.0"
] | permissive | davnn/deep_pommerman | e350f2e6d657c5240000357494ed46f100273d75 | 98375ffbd076ade584309b9feef248e30de77120 | refs/heads/master | 2023-05-29T17:30:58.582056 | 2021-06-18T19:22:48 | 2021-06-18T19:22:48 | 375,286,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,080 | py | """Run a battle among agents.
Call this with a config, a game, and a list of agents. The script will start separate threads to operate the agents
and then report back the result.
An example with all four test agents running ffa:
python run_battle.py --agents=test::agents.SimpleAgent,test::agents.SimpleAgent,test::age... | [
"muhrdavid@gmail.com"
] | muhrdavid@gmail.com |
d9bec0f6c57a3c8732298f0a3c6a95177cd043cd | c9ddbdb5678ba6e1c5c7e64adf2802ca16df778c | /cases/synthetic/tree-big-6378.py | 52a0e4f72cbae1d4e1737577e4ff7f5cd9ab764f | [] | no_license | Virtlink/ccbench-chocopy | c3f7f6af6349aff6503196f727ef89f210a1eac8 | c7efae43bf32696ee2b2ee781bdfe4f7730dec3f | refs/heads/main | 2023-04-07T15:07:12.464038 | 2022-02-03T15:42:39 | 2022-02-03T15:42:39 | 451,969,776 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 23,288 | py | # Binary-search trees
class TreeNode(object):
value:int = 0
left:"TreeNode" = None
right:"TreeNode" = None
def insert(self:"TreeNode", x:int) -> bool:
if x < self.value:
if self.left is None:
self.left = makeNode(x)
return True
else:
... | [
"647530+Virtlink@users.noreply.github.com"
] | 647530+Virtlink@users.noreply.github.com |
c5f52c7666b606152434f9ac8390f8a97c2b6e24 | 611f6102af951691aa3108bcf16b0f13da0ce734 | /tests/test_example_dags_system.py | cbf549d8edf21129a85952f566c8d1833597a6c3 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT",
"Python-2.0"
] | permissive | marwan116/airflow | 6b74dcdd1c7e1819a0160a634a355f90a89983da | e7b8eb7f3189fa587c49a2856dfd570f7625ca78 | refs/heads/master | 2021-02-07T09:16:40.246909 | 2020-02-29T17:05:56 | 2020-02-29T17:05:56 | 244,007,975 | 2 | 0 | Apache-2.0 | 2020-02-29T17:06:22 | 2020-02-29T17:06:21 | null | UTF-8 | Python | false | false | 1,108 | py | #
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not... | [
"jarek.potiuk@polidea.com"
] | jarek.potiuk@polidea.com |
4661588400a58471995f03dc263819540a3d00a2 | fcd6647e9e8861bf05aa678faba4b913074edf3e | /mbed-os/tools/build_travis.py | 13a3d6f0c81cae1ba74a0d81b80d6ad54240383b | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ashok-rao/BLEClient_mbedDevConn_Watson | a23386def82d0da5fc8bbbe3fc79cbeb93a37e92 | f162ec8a99ab3b21cee28aaed65da60cf5dd6618 | refs/heads/master | 2020-06-23T07:50:16.852047 | 2017-07-14T09:10:05 | 2017-07-14T09:10:05 | 74,658,976 | 1 | 3 | NOASSERTION | 2020-03-06T23:26:39 | 2016-11-24T09:40:20 | C | UTF-8 | Python | false | false | 12,313 | py | #!/usr/bin/env python2
"""
Travis-CI build script
mbed SDK
Copyright (c) 2011-2013 ARM Limited
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
Unle... | [
"Ashok.Rao@arm.com"
] | Ashok.Rao@arm.com |
323a4c7eddab68f041ff6fe4f9828b26f769b0ca | 525c6a69bcf924f0309b69f1d3aff341b06feb8e | /sunyata/backend/chainer/core/map/power.py | f883795e8d4b0bb7d086f28a97f498406b350ed9 | [] | no_license | knighton/sunyata_2017 | ba3af4f17184d92f6277d428a81802ac12ef50a4 | 4e9d8e7d5666d02f9bb0aa9dfbd16b7a8e97c1c8 | refs/heads/master | 2021-09-06T13:19:06.341771 | 2018-02-07T00:28:07 | 2018-02-07T00:28:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 406 | py | from chainer import functions as F
from ....base.core.map.power import BasePowerAPI
class ChainerPowerAPI(BasePowerAPI):
def __init__(self):
BasePowerAPI.__init__(self)
def pow(self, x, a):
return F.math.basic_math.pow(x, a)
def rsqrt(self, x):
return F.rsqrt(x)
def sqrt(se... | [
"iamknighton@gmail.com"
] | iamknighton@gmail.com |
fd494bed9ae526726c9566484dca2746fcf315b4 | a024eb30d51fd73d1366def184b91f2b4159f3d1 | /python/專案3LBOT/抓天氣.py | 18c5bd47caa4184adb51426a0a234af274aa1bd9 | [] | no_license | ooxx2500/python-sql-for-test | e4e084719374157cc8bd87e0f62fb2f5d71eb397 | 66f6ce9f500d2a5eeac162bfc5de321b305c0114 | refs/heads/master | 2023-02-19T08:19:10.541402 | 2021-01-18T17:04:16 | 2021-01-18T17:04:16 | 266,665,158 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,207 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Jul 25 01:25:37 2020
@author: 莫再提
"""
import requests
from bs4 import BeautifulSoup
def check_weather(city):
citynumber=[20070335, 20070568, 20070569, 20070570, 20070572, 22695855, 22695856, 2295794, 2296315, 2296872, 2297839, 2301128, 2303611, 2304594, 2347336, 2306179,... | [
"ooxx2500@gmail.com"
] | ooxx2500@gmail.com |
40fe45b75cd461748963249eac96f4ea46ba7896 | 516f48aab1445f03601507faa8e0be4aa0066b09 | /485.Max Consecutive Ones/Solution.py | 6b3266f03291485f14b10a4e118d0505db1c3730 | [] | no_license | LCKYN/leetcode | 5894da8935a15f15aa01f11275f012a8f85113e6 | 4ccf010cfefee2849b41b3f63c23a88e814e1888 | refs/heads/main | 2023-07-14T20:23:14.833791 | 2021-08-08T13:20:11 | 2021-08-08T13:20:11 | 364,069,672 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | class Solution:
def findMaxConsecutiveOnes(self, nums: List[int]) -> int:
for i in range(1,len(nums)):
if(nums[i]):
nums[i] += nums[i-1]
return max(nums)
| [
"root@lckyn.com"
] | root@lckyn.com |
a9824d0d81388e7a1c86015a10f71b7baff98af1 | 1ab8048dee0b503c9371c7ec47979f6135964262 | /src/DenseNet/Model.py | c8e0fc8f4252bf97d15086412dc5b12589890cfa | [] | no_license | MoZhouting/ADDetect | 7e60e8970dbf04341a19393740213bd469f3604f | 881e49b4e73f0470401f16bd637bc35ebe4db4b1 | refs/heads/master | 2020-04-26T16:27:41.331473 | 2018-06-19T05:42:57 | 2018-06-19T05:42:57 | 137,845,119 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,035 | py | # coding = 'utf-8'
import tensorflow as tf
import numpy as np
from tensorpack.graph_builder.model_desc import ModelDesc, InputDesc
from tensorpack.models.conv2d import Conv2D
from tensorpack.models.batch_norm import BatchNorm
from tensorpack.models.pool import AvgPooling, GlobalAvgPooling
from tensorpack.m... | [
"1090898535@qq.com"
] | 1090898535@qq.com |
7a7e1ce328c51f102ed2cf7acf2c61434b1b49d9 | 93f73e263f1cb286376da9ea8b23a654a3060f58 | /setup.py | ad37fa00f376050751cf92a428b36f9c01dc375f | [] | no_license | chriscz/capstone_wrapper | d71f07157c1819857c9a13767de3935e43246616 | 26ca3d92d8f67ab295baf85727cabdc24b819f67 | refs/heads/master | 2021-01-20T03:01:26.466335 | 2017-02-24T20:07:13 | 2017-02-24T20:07:13 | 82,589,737 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from setuptools import setup
__version__ = '0.2.2'
setup(
name='capstone_wrapper',
version=__version__,
description='A functional wrapper for capstone Python',
url='',
author='Chris Coetzee',
author_email='chriscz93@gmail.com',
license='Mozilla Public License 2.0... | [
"chriscz93@gmail.com"
] | chriscz93@gmail.com |
5f578f05e9eeca2e7a85d76fb6cb42a0d606f54b | 8ec910de801b424540abb4e6e955838a287663b6 | /Bucles/ManoMoneda.py | 7ea1f29e4f99d1de6ef426446f1d5ad4a59e551a | [] | no_license | hector81/Aprendiendo_Python | f4f211ace32d334fb6b495b1b8b449d83a7f0bf8 | 9c73f32b0c82f08e964472af1923f66c0fbb4c22 | refs/heads/master | 2022-12-28T03:41:20.378415 | 2020-09-28T09:15:03 | 2020-09-28T09:15:03 | 265,689,885 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | # El programa simulará el juego de adivinar en qué mano está la moneda.
# Le preguntará a la persona el nombre y cuantas partidas quiere jugar,
# luego calculará el ganador.
import random
def introducirNumero():
while True:
try:
numeroVecesPartida = int(input("Por favor ingrese un... | [
"noreply@github.com"
] | hector81.noreply@github.com |
6b57aa51eb80cb2ba879e3fe19dc47e190d2b60e | 65cefe621c2444d9b793d7969d2e2c3ff54373d1 | /analyze/api.py | c831cbc8c9d0c07781dd86cede87b9b4f346509d | [
"Apache-2.0"
] | permissive | leekangsan/HanziSRS | 01585e694fbf81428085b8a162acf101f7f5bec1 | 50f84a9171b61df3305e8922b645b553e895a509 | refs/heads/master | 2020-03-29T05:19:19.583429 | 2018-04-28T04:37:35 | 2018-04-28T04:37:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 486 | py | import requests
from bs4 import BeautifulSoup
def jukuu(word):
params = {
'q': word
}
res = requests.get('http://www.jukuu.com/search.php', params=params)
soup = BeautifulSoup(res.text, 'html.parser')
for c, e in zip(soup.find_all('tr', {'class':'c'}), soup.find_all('tr', {'class':'e'})):... | [
"patarapolw@gmail.com"
] | patarapolw@gmail.com |
5f0c9801ddd45972b8b510d2b70081f2894354c1 | b21967593e233242681d5a1879acad00ee2d52c7 | /dongtai/apps.py | a939561a0601142fde86b2bb1713361a58d7d96f | [
"Apache-2.0"
] | permissive | Darius-1024/dongtai-core | 0796498fee39e14306579ac00a51cfaab10101e7 | f98ba3b36897c30f6fd7139de36fae38e607e8c1 | refs/heads/main | 2023-07-18T11:21:49.166162 | 2021-08-31T15:44:37 | 2021-08-31T15:44:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 89 | py | from django.apps import AppConfig
class DongTaiConfig(AppConfig):
name = 'dongtai'
| [
"dongzhiyong@secnium.cn"
] | dongzhiyong@secnium.cn |
b33fb5e2e744096ee753cca7e42a61f4e3f7efdd | a7092612d3b9f53d8e9585006a0f69fe8de10c55 | /blog/blog_api.py | 26446cb07e8f52ac2f6ccddac3addceaf99d2949 | [] | no_license | Surfingbird/PythonTPRep | bc2fc80869a85d30c178325bc5221c23fb1a6a56 | dc94822e966fa6b7af1630be13bc44a97716b062 | refs/heads/master | 2020-03-30T04:47:15.722204 | 2018-12-10T21:11:50 | 2018-12-10T21:11:50 | 150,761,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,322 | py | import pymysql.cursors
from hashlib import md5
import configparser
class BlogAPI:
def __init__(self, path_to_config=None):
path_to_config = path_to_config or 'settings.config'
config = configparser.ConfigParser()
config.read(path_to_config)
host = config.get('Settings', 'host')
... | [
"a.baronskiy@mail.ru"
] | a.baronskiy@mail.ru |
7a47ac5c645e3e4674a4ab2a914c4082fd04d90d | 5b6663056169ca85db13993adba9fe5a7a9bd164 | /art_gallery_app/urls.py | 897bde8e3fc4dee43a7ea1dc394595a5a21eadb2 | [] | no_license | parthbhope/art_gallery_git | 4302f78178a67cde5903d9daeef7207f2217de04 | 4dff6864d8df0eafeeba432b8115536c61861673 | refs/heads/master | 2022-12-07T06:10:24.876989 | 2020-09-07T18:10:14 | 2020-09-07T18:10:14 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 151 | py | from django.urls import path
from . import views
app_name = 'art_gallery_app'
urlpatterns = [
path('', views.HomeView.as_view(), name='home'),
] | [
"nikhil.sangwan95@gmail.com"
] | nikhil.sangwan95@gmail.com |
0698c99303800807bd68f06413f3d56b2238d786 | ba2fa46d365a8aaf4db689dbcece501eceb4021d | /DSA/array/REVERSE ARRAY/bySlice.py | 2a6d03393db81d44e871baa51a0830a0c3358719 | [] | no_license | itzsoumyadip/DSA | 81283fb6197d49c242784711d4768230f9ada24d | 97188f11b88ed6097679f7ab0682dc3c1c7424f0 | refs/heads/main | 2022-12-29T23:40:47.051109 | 2020-10-23T10:17:07 | 2020-10-23T10:17:07 | 306,034,999 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 194 | py | #Using Python List slicing
def reverseList(A):
print( A[::-1])
# Driver function to test above function
A = [1, 2, 3, 4, 5, 6]
print(A)
print("Reversed list is")
reverseList(A)
| [
"noreply@github.com"
] | itzsoumyadip.noreply@github.com |
dc626b4ebb260142009e22ea191beae6612323fb | 64f1558d2549c2f0b9d3a6fa3200eaf7cc3e486b | /openodia/_understandData.py | 52ab2b14e9f0c776897248d7085a7c7388e828fc | [
"MIT"
] | permissive | JanviRaina/openodia | e38b02abd261fdb50f0a634b4279326d77802eff | f33d095afcb2e87108986ecf16a5ee0f59568502 | refs/heads/main | 2023-08-19T01:43:51.503249 | 2021-10-10T17:08:26 | 2021-10-10T17:08:26 | 411,574,369 | 0 | 0 | MIT | 2021-09-29T07:32:43 | 2021-09-29T07:32:42 | null | UTF-8 | Python | false | false | 2,286 | py | import re
from typing import Any, Dict, List, Union
from openodia.common.constants import STOPWORDS
from openodia.common.utility import LOGGER
class UnderstandData:
"""Tokenizer implementation"""
@classmethod
def word_tokenizer(cls, text):
"""Split the text into words"""
# TODO: Do not r... | [
"soumendra.s@outlook.com"
] | soumendra.s@outlook.com |
28eb7a405c2e0bd1f3d508e0392db692e874d22d | 0db39ede175595a1cbe397fe76266e41841a072f | /mysite/settings.py | b0e51e58323834d417a941f9f1e1eb8441f53050 | [] | no_license | vandlaw7/my-first-blog | a3b382b5bc0ee79d29d2962a60a02a24c1c7817b | cb8b9ce64ea1958b77ef100d140d82c9c2c99ff8 | refs/heads/master | 2020-12-12T04:38:51.774083 | 2020-01-15T12:04:15 | 2020-01-15T12:04:15 | 234,043,972 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,187 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 2.2.9.
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
# ... | [
"vandlaw@naver.com"
] | vandlaw@naver.com |
f472b761fec7406623071220b5224871d1110572 | 1cce4bbf7e6719661e63a05a10e6ca1022f2fc28 | /briana_bennett/django_FS/courses/courses_app/urls.py | 225ab6d618c92aa38a55cf90c8f9e73b697a0cdd | [] | no_license | mthwtkr/python_april_2017 | f85ff49ff27e5ccf677da9a9dadce0b26af66b79 | 974d2e78ecb0fb9f03cbd4af3f935ed55e2c7545 | refs/heads/master | 2021-06-18T01:05:40.783921 | 2017-06-17T17:17:29 | 2017-06-17T17:17:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 263 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^$', views.index),
url(r'^create$', views.create),
url(r'^courses/(?P<id>\d+)/delete$', views.delete_page),
url(r'^courses/(?P<id>\d+)/destroy$', views.destroy_or_not),
] | [
"bri.bennett89@gmail.com"
] | bri.bennett89@gmail.com |
f721fab446ec3c64e7791814788840c03215dd1d | 1979325574fdff56026cac0b654dadfd41574ae1 | /src/expts/allinPHS.py | 39377f0c20a70cc3dcdc02f18cf0e53a15e76221 | [
"Apache-2.0"
] | permissive | daStrauss/subsurface | 5e45bac80d64a543c7f02fae83266109698b071f | 0277c57aa777196d8e6b7d0a3b3f58c2fd39bab8 | refs/heads/master | 2021-01-23T12:11:39.043513 | 2013-07-09T06:21:03 | 2013-07-09T06:21:03 | 10,812,381 | 1 | 1 | null | 2016-02-23T09:39:29 | 2013-06-20T04:44:39 | Python | UTF-8 | Python | false | false | 1,284 | py | '''
Created on Jan 9, 2013
Copyright © 2013
The Board of Trustees of The Leland Stanford Junior University.
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.apac... | [
"dstrauss85@gmail.com"
] | dstrauss85@gmail.com |
bfac869f0436a17893a452f29634f8a5de14a7c7 | 3c2dcf75aab54af8e621d53b2c66dbca6bbc70de | /Lc_solution_in_python/0966.py | 80de192dcd34cad900a2a150f72ad4c3ccf7948b | [] | no_license | Chenlei-Fu/Interview-Preperation | 2169cbd4409dff78590d0ce1d842f1840abea9f3 | 5dc755560b453d852cc56855515f03a2c69e921a | refs/heads/master | 2023-07-08T11:03:39.069933 | 2021-08-24T02:56:29 | 2021-08-24T02:56:29 | 366,813,424 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 904 | py | class Solution:
def spellchecker(self, wordlist: List[str], queries: List[str]) -> List[str]:
"""
the trick is vowel part
since the vowels ('a', 'e', 'i', 'o', 'u') can be replaced
they can be translated into *
"""
def translate(word):
return ''.join('*' i... | [
"chenlei.fu@outlook.com"
] | chenlei.fu@outlook.com |
b9b94499cb2c65d677f9882700d36123591c641a | 1888c630bed201cf97e4f047c7392270dfba749f | /scripts/utils.py | 7e50f55f1375ab308e989d7fd7b94ff40562385e | [] | no_license | matchVote/matchvote_ops | ba4ca38df087db61adeb8cadf5b6ed2fc4100e3d | 20f00763f43f99ad00ad8e294ec3a15701cf922b | refs/heads/master | 2023-03-31T15:18:55.159226 | 2019-12-23T16:13:55 | 2019-12-23T16:13:55 | 103,915,269 | 0 | 0 | null | 2021-03-25T21:42:29 | 2017-09-18T08:49:41 | Python | UTF-8 | Python | false | false | 163 | py | from contextlib import contextmanager
import sys
@contextmanager
def log(message):
print(message, end='')
sys.stdout.flush()
yield
print('Done')
| [
"jimbonkgit@gmail.com"
] | jimbonkgit@gmail.com |
44c6d72d5f21383b6d928195d79e3ad79f27b826 | 5a208abf60e7ca0f7076426e3ec8f37b71883665 | /system/storage.py | f9717c7d158eb7e861a5e9c4b61c3cd23c766233 | [] | no_license | heynick/weChatIT | c076fd3c05e82c4b09c548b226484768bff9d77c | 73911da2d9847b8e759a5ab8cf6d5e4cb54d10aa | refs/heads/master | 2021-10-23T08:01:24.326967 | 2019-03-15T08:39:16 | 2019-03-15T08:39:16 | 175,779,792 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 877 | py | # -*- coding: UTF-8 -*-
from django.core.files.storage import FileSystemStorage
class ImageStorage(FileSystemStorage):
from django.conf import settings
def __init__(self, location=settings.MEDIA_ROOT, base_url=settings.MEDIA_URL):
# 初始化
super(ImageStorage, self).__init__(location, ba... | [
"hey.nick@outlook.com"
] | hey.nick@outlook.com |
29da5c21f55c6f0560b8849c7880343c04b3024c | ab4d24f955b179190966e1bb90ea71f45c420b38 | /scripts/pre-processing/gen_star_results.py | 9291da14679e41e9a0f567223aa0ca572760fed4 | [] | no_license | ludmercentre/rna-seq_workflow | b59cf88699bf328d0f9f441c15ae3dd5e9773887 | df2e1aae95d84bcb491297b1e910871ed203d5a9 | refs/heads/master | 2023-05-08T03:33:51.385617 | 2021-05-26T21:00:07 | 2021-05-26T21:00:07 | 277,873,548 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,380 | py | import os
import sys
import numpy as np
import pandas as pd
input_folder = sys.argv[1]
output_file = sys.argv[2]
# Import all STAR output files and append them in results_l list:
results_l = list()
for file in os.listdir("../{}/".format(input_folder)):
if file.endswith("ReadsPerGene.out.tab"):
results_l.... | [
"pedrobordignon@hotmail.com"
] | pedrobordignon@hotmail.com |
8e4b245285f07713e1c4369fdee8f87e0bfeb513 | 6bee67a6684bb47d45b476b3b3db44608cd6b89f | /main/admin.py | 64f7e6e656ea93017b7832dcc31f5e3635b815a7 | [] | no_license | crutchweb/mrgsh | 729032cf7728fe8311ae4ceab9489cf3781b4716 | 541bee0a46f07e74429a6256e6d18d5684bfe981 | refs/heads/master | 2020-06-27T01:11:26.861729 | 2019-07-31T08:17:45 | 2019-07-31T08:17:45 | 199,807,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,757 | py | from django.contrib import admin
from django_mptt_admin.admin import DjangoMpttAdmin
from main.models import *
from django.utils.html import format_html
def get_picture_preview(obj):
if obj.pk:
return format_html('<img src="{}" style="max-width: 200px; max-height: 200px;" />'.format(obj.image.url))
re... | [
"ilya@MacBook-Pro-Ilya.local"
] | ilya@MacBook-Pro-Ilya.local |
068d8dce5daa9ac6705c8b77bd447240a513c227 | a38bf459ae380f67e0de22f7106a8df4385a7076 | /tests/integration/goldens/logging/samples/generated_samples/logging_v2_generated_config_service_v2_list_views_sync.py | b273c465d3ec976b018c54a7b83e2a4218b81327 | [
"Apache-2.0"
] | permissive | googleapis/gapic-generator-python | 73ce9d52f6f5bb2652d49b237b24263d6637b1da | 4eee26181e8db9fb5144eef5a76f178c1594e48a | refs/heads/main | 2023-09-04T11:12:14.728757 | 2023-09-02T10:34:44 | 2023-09-02T10:34:44 | 129,809,857 | 116 | 65 | Apache-2.0 | 2023-09-12T18:57:01 | 2018-04-16T21:47:04 | Python | UTF-8 | Python | false | false | 1,852 | py | # -*- coding: utf-8 -*-
# Copyright 2023 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | googleapis.noreply@github.com |
296283618e61a02a6f6c8c8516a5ae54f984803f | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p02766/s873846892.py | 1b5165713fefb3469a152f09d2a75411c31b81ee | [] | 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 | 241 | py |
def main():
N, K = map(int, input().split())
ans = base10to(N, K)
print(len(ans))
def base10to(n, b):
if (int(n/b)):
return base10to(int(n/b), b) + str(n%b)
return str(n%b)
if __name__ == '__main__':
main()
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
86235f3224799eb00ea074017b73aa199c9f3ccc | 86510b47b768d80127adcbd53b06fdff58fd95a4 | /python/problem_010.py | c20fb3db3973ee559120b86ea5f3fdacea78b2cd | [] | no_license | Kimbsy/project-euler | d018ad759ae599147e11431f818c9bfd3fc82f73 | e1eda2779b6499a6d33a848eacc5e1c15405bf70 | refs/heads/master | 2021-08-27T16:22:19.167892 | 2021-08-16T17:09:08 | 2021-08-16T17:09:08 | 50,948,043 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 379 | py | import math
"""The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17.
Find the sum of all the primes below two million.
"""
def is_prime(num):
for i in range(2, int(math.sqrt(num)) + 1):
if num % i is 0:
return False
return True
target = 2000000
total = 2
for i in range(3, target, 2):
... | [
"lordkimber@gmail.com"
] | lordkimber@gmail.com |
6cbec5e2430ea9ccfe0c2fe991f77e6418b25aff | fb942ec75797204fbe4a5b0e292797d5c76e4272 | /yatube_api/settings.py | ecf707054678490423a6403c9ab64e13c61870cc | [] | no_license | hexhowk/api_final_yatube | 682f64367a0437a245a5da4f4923e78b649764bd | 57f0d6dd857ff808089a866f796171dab46c6eb1 | refs/heads/master | 2022-05-20T07:09:32.376754 | 2020-04-29T00:56:53 | 2020-04-29T00:56:53 | 259,788,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,293 | py | import os
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
SECRET_KEY = 'hhz7l-ltdismtf@bzyz+rple7*s*w$jak%whj@(@u0eok^f9k4'
DEBUG = True
ALLOWED_HOSTS = []
INSTALLED_APPS = [
'django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessio... | [
"57973073+Rimmini@users.noreply.github.com"
] | 57973073+Rimmini@users.noreply.github.com |
c35530d38480de046393b7f5b8eeaa544d902652 | 34bec6ee7a2e5c6ae90e8b646b34cfaa58bf65bb | /network/embedding.py | b8074b3f7088af7ab2eafb1a9c8058e887e2e744 | [] | no_license | ninjatrick/Factored-Neural-Network | b5d68ad6e40bf17397268f76f4abd84f9257bfd1 | d7139b78c47019107314174aa10bc9a778198c6f | refs/heads/master | 2020-03-26T00:38:45.730539 | 2018-08-24T06:24:27 | 2018-08-24T06:24:27 | 144,329,793 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,608 | py | import tensorflow as tf
import numpy as np
FLAGS = tf.app.flags.FLAGS
class Embedding(object):
def __init__(self, is_training, word_vec,pos_vec, word, pos1, pos2,pos3):
temp_word_embedding = tf.get_variable(initializer=word_vec, name = 'temp_word_embedding', dtype=tf.float32)
unk_word_embedding =... | [
"noreply@github.com"
] | ninjatrick.noreply@github.com |
9fded41e53994926b9987688f2a0c3d676ccb209 | 869447f4d4ab7620dc71c01d97f4a45b67ef7080 | /custom_py/validate_rate.py | 91f61320f63d8e7a42818e49e58dbdd418659ed0 | [] | no_license | gsnbng/gsn_erpnext_fixtures | 1daf08d81489a22a7c8d6471be2c07175474ebbd | 3f84b25979208485f7c40e95cd711a97e4b2fce5 | refs/heads/master | 2020-04-17T11:05:55.090160 | 2016-12-12T15:04:52 | 2016-12-12T15:04:52 | 66,152,624 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,926 | py | from __future__ import unicode_literals
import frappe
from frappe.utils import cint, formatdate, flt, getdate
from frappe import _, throw
from erpnext.setup.utils import get_company_currency
import frappe.defaults
import ast
import logging
import string
import datetime
import re
import json
from frappe.utils import get... | [
"sheshanarayanag@gmail.com"
] | sheshanarayanag@gmail.com |
fdacb5b821ae1e0631dd4fb0cba3ca063ba60457 | 74264a37ad1b8e4bbdc1069edf7301b7f88dfecf | /eigen_pair.py | 37e9b7263d68e74f4ddda50c698342b85b39c637 | [] | no_license | JakeStubbs4/MTHE-493 | 89aceb507bcad52f52e199672af0f0c3de043409 | 5228ea157f94eb9ce0daff9866cd9a0a390ba8a4 | refs/heads/master | 2020-08-30T10:50:57.178588 | 2020-04-02T05:48:54 | 2020-04-02T05:48:54 | 218,356,612 | 1 | 0 | null | 2020-01-21T15:14:35 | 2019-10-29T18:32:37 | Python | UTF-8 | Python | false | false | 259 | py | class EigenPair:
eigen_value = None
magnitude = None
eigen_vector = None
def __init__(self, eigen_value, eigen_vector):
self.eigen_value = eigen_value
self.magnitude = abs(eigen_value)
self.eigen_vector = eigen_vector
| [
"jmichaelt98@gmail.com"
] | jmichaelt98@gmail.com |
22b0d7305194d18157b442fd91971e5029a6d26e | 3587a975786bb743c13603f4ad28ed2bac2c18d5 | /Python/Exercise/ex28.py | 1565a2a852a20e598b627ce630b103f67d9883af | [] | no_license | Joycici/Coding | 378ee84b8a172e0bf23cb2fbd61a61b4e2312927 | c3975017c3aeaa54e94fea3a19befbfc352e2e20 | refs/heads/master | 2021-04-29T07:36:21.359565 | 2017-02-21T15:23:43 | 2017-02-21T15:23:43 | 77,978,547 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,786 | py | #!/usr/bin/env python
# -*- coding:utf-8 -*-
'''
Exercise 28: Boolean Practice
This practice should be running on python shell, so there is no coding on this
Or, we can use print to show results.
'''
"""
__author='Joycici'
__version__='1.0'
"""
print "The result should be True, isn't it? Type the result: %r" % (True ... | [
"xuci123@qq.com"
] | xuci123@qq.com |
330aee838bcfa337faecb71ec4cf47d8f2d01a0b | 98c95fde2fadb00764769b8ef3c07d50e6e21778 | /petsie/migrations/0001_initial.py | a5eb7a7f63d15e2739776b68bef75486e30b7e54 | [] | no_license | golrizr/pets | a08c06719b78717297f25f88b78f2c3c13dd8970 | 67692074a0c33a457755cc10a0ec15482a6cdd6f | refs/heads/master | 2021-01-13T01:54:19.907503 | 2014-08-22T18:00:54 | 2014-08-22T18:00:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
pass
def backwards(self, orm):
pass
models = {
}
... | [
"golriz25@hotmail.com"
] | golriz25@hotmail.com |
73f8dacb0a6fd98a99721e8a113c12641950a990 | 175522feb262e7311fde714de45006609f7e5a07 | /code/nprd/visualize_PTB.py | aab1cc504cd8b84b3cb1e24016f16bf6ca0b9dde | [] | no_license | m-hahn/predictive-rate-distortion | a048927dbc692000211df09da09ad1ed702525df | 1ff573500a2313e0a79d68399cbd83970bf05e4d | refs/heads/master | 2020-04-17T13:49:36.961798 | 2019-06-20T12:37:28 | 2019-06-20T12:37:28 | 166,631,865 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,051 | py | # Was called runMemoryManyConfigs_NeuralFlow_Words_English.py
from matplotlib.ticker import MaxNLocator
import math
import subprocess
import random
import os
from paths import LOG_PATH_WORDS
import numpy as np
ids = [x.split("_")[-1][:-4] for x in os.listdir("/home/user/CS_SCR/CODEBOOKS/") if "nprd" in x]
print(ids)... | [
"mhahn29@gmail.com"
] | mhahn29@gmail.com |
f230add663cb646c6a58b790057e3589310fff4a | d2a128ac5e73affa7baed75f8a76b3f9f30bea30 | /spiders.py | 1d596a902f100c54920345d2136dcb849d68dda9 | [] | no_license | EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE/Free_proxy_pool | 11049451f2123bf12af2e50cc83cc888a7948ca7 | 1eb2318262a59830be46ac07e7766e29bfe76b2d | refs/heads/master | 2021-07-16T22:38:44.724117 | 2017-10-23T03:50:08 | 2017-10-23T03:50:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,996 | py | # -*- coding: utf-8 -*-
'''
@author: yaleimeng@sina.com (C) Copyright 2017.
@desc: 爬虫类。为代理池提供抓取代理IP功能。
@DateTime: Created on 2017/10/16,at 8:47 '''
import chardet, re, time
import requests as rq
from bs4 import BeautifulSoup as bs
class Proxy_Spider(object):
proxies_got = set()
de... | [
"noreply@github.com"
] | EEEEEEEEEEEEEEEEEEEIEEEEEEEEEEEEEEEEEE.noreply@github.com |
feb03a00a8935db7f4557b8168f6365946ed2470 | 7479c35c5e3290a24892237871b9ff0c67554892 | /mycoffee/admin.py | f8482772d211e93c9a2fcd9b28a0f6a11df8d8ca | [] | no_license | waed123/PrimeRose-Coffee | 974e1267f67300b8daccb6ec0ac91a5beccc7ae2 | 7b8cb9b37177bba0da45a9c8c254c1425d03a3a3 | refs/heads/master | 2021-08-28T15:02:15.015045 | 2017-12-12T14:31:34 | 2017-12-12T14:31:34 | 113,331,896 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 227 | py | from django.contrib import admin
from .models import Bean, Roast, Syrup, Powder, Coffee
admin.site.register(Bean)
admin.site.register(Roast)
admin.site.register(Syrup)
admin.site.register(Powder)
admin.site.register(Coffee)
| [
"waed@AUBs-MacBook-Pro.local"
] | waed@AUBs-MacBook-Pro.local |
b6e77859e8bbd31e695a444d619c0d2c0cdd7b2b | 2965ef9b397ff45748d9dbdb4aa7aada275c52c7 | /airflow_blog_dag.py | 9ec6e4040c7e4cf394f6fde9afd5901a8f19cb35 | [] | no_license | caglarkeskin/airflow_blog_example | a2dc95bf2a8068140db4de3e710f56b377384484 | 72dae7f9fa2ae16211d9293603313a5fbc753337 | refs/heads/main | 2023-04-06T18:02:31.205534 | 2021-04-11T19:11:03 | 2021-04-11T19:11:03 | 356,876,498 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,738 | py | from airflow.example_dags.spider import Cls
from datetime import timedelta
from airflow import DAG
from airflow.operators.bash import BashOperator
from airflow.operators.python import PythonOperator
from airflow.utils.dates import days_ago
spider = Cls.spider
read_db = Cls.read_db
db_to_s3 = Cls.db_to_s3
report = C... | [
"caglar.keskin@zingat.com"
] | caglar.keskin@zingat.com |
e1deceb39a471d45d08bfbacced76cdca43b001a | ccdc81165a6bfb65fd4d7956ed223dec94b3057d | /src/services/LogService.py | 93a883d9145e9ba623769550a4e1f9d240283b3c | [] | no_license | asimyildiz/webservice-for-xibo1.7-python | 1a1f76e161526061094b012f6446b83115fa21a9 | d6e27825a627d0f8b7f514c93c5f636a338b0b06 | refs/heads/master | 2020-10-01T17:42:35.248951 | 2019-12-13T05:27:03 | 2019-12-13T05:27:03 | 227,589,335 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 903 | py | # To change this license header, choose License Headers in Project Properties.
# To change this template file, choose Tools | Templates
# and open the template in the editor.
__author__ = "asim"
__date__ = "$03.Kas.2015 16:18:39$"
import logging
class LogService(object):
DEBUG = "debug"
WARNING = "warning... | [
"asimyildiz@istanbulmd.com"
] | asimyildiz@istanbulmd.com |
e07cea74af325bc2f4c384e1e7cf10621696e0c4 | 5419846a9e7010847fdbd232aa031fbd3e53e2bd | /Flask/ElasticBeanstalk/Request_Beanstalk.py | 54e8f27c0df3f9a3c33df245136e699cc3db59ec | [] | no_license | RubensZimbres/Repo-2018 | 432d492df83bb6cf9268131d34b03241e0a2cbf5 | 4880ff9f85e5a190f6515d16a810b1cda9288c68 | refs/heads/master | 2021-12-14T08:25:45.171826 | 2021-12-06T22:14:48 | 2021-12-06T22:14:48 | 114,630,397 | 180 | 88 | null | null | null | null | UTF-8 | Python | false | false | 673 | py | import requests
import boto3
from io import BytesIO
import matplotlib.image as mpimg
client = boto3.client('s3')
resource = boto3.resource('s3')
my_bucket = resource.Bucket('bucket-vecto')
image_object = my_bucket.Object('dog.jpg')
image = mpimg.imread(BytesIO(image_object.get()['Body'].read()), 'jpg')
KERAS_REST_A... | [
"noreply@github.com"
] | RubensZimbres.noreply@github.com |
12b340cd3ef8ebe5393bbdda0a5384ff90b2db85 | 07af7ff63c39f07441f0aeee401b6adb2a964b2d | /Model/XGBoost/lightgbm_model.py | 0e7c2ce4e4b1ed5970f5e4dc0e2ffeb85daa0748 | [] | no_license | LuckyTiger123/TimeSeries | aa4b5de5dfc9e871f1f3dbc4c3e32b9b633c196e | 350515a1f6912dac196eb76ec697cbd17fae5b98 | refs/heads/main | 2023-02-19T13:31:25.894511 | 2021-01-10T08:07:25 | 2021-01-10T08:07:25 | 313,842,543 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,357 | py | import os
import time
import lightgbm as lgb
import pandas as pd
import numpy as np
train_data = pd.DataFrame()
train_label = pd.DataFrame()
test_data = pd.DataFrame()
test_label = pd.DataFrame()
# define sample proportion
proportion = 4
g = os.walk('/data/luckytiger/shengliOilWell/train_data')
for _, _, file_list ... | [
"747837496@qq.com"
] | 747837496@qq.com |
7e3a97d42210041be00fe78eac7fdc797d8027a2 | e74e89592d8a3b1a0b465a7b1595708b224362d2 | /pset_pandas1_wine_reviews/data_cleaning/solutions/p8.py | 3d5b21f733b7e5400eea8fc4cc02f3214b41120a | [
"MIT"
] | permissive | mottaquikarim/pydev-psets | 016f60f1e9d9a534bd9a66ecde8eb412beee37d1 | 9749e0d216ee0a5c586d0d3013ef481cc21dee27 | refs/heads/master | 2023-01-10T11:15:57.041287 | 2021-06-07T23:38:34 | 2021-06-07T23:38:34 | 178,547,933 | 5 | 2 | MIT | 2023-01-03T22:28:27 | 2019-03-30T11:09:08 | Jupyter Notebook | UTF-8 | Python | false | false | 564 | py | """
Cleaning Data VIII - Find Null Values
"""
import numpy as np
import pandas as pd
wine_reviews = pd.read_csv('../../winemag-data-130k.csv')
wine_reviews.rename(columns={'points': 'rating'}, inplace=True)
# Use the below df for these problems:
wine_ratings = wine_reviews[['title', 'country', 'rating', 'price']]
... | [
"jgarreffa112@gmail.com"
] | jgarreffa112@gmail.com |
89f84e5991577b3aaefe1cd98c93a8b80579f788 | ae0434c20e5604a2beeb8183e577e8f1d91020f8 | /Python/valid_parentheses.py | 9008937d67f86b117651e8d7d11bf3bfe9bfc855 | [] | no_license | savadev/leetcode-4 | d0324078b9cdded4801888427ce1a13a83ef9e07 | aec4b06b3bccc640ecfe5c349ccf9e71d5a33474 | refs/heads/master | 2020-12-31T20:04:22.904153 | 2016-05-07T20:46:43 | 2016-05-07T20:46:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 707 | py | #!/usr/bin/env python
# Given a string containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.
# The brackets must close in the correct order, "()" and "()[]{}" are all valid but "(]" and "([)]" are not.
class Solution(object):
def isValid(self, s):
"""
... | [
"rayzhang1011@gmail.com"
] | rayzhang1011@gmail.com |
b6d2755a36f48a61ed029eb35bd4add95a9a0fc2 | c343eb7934cb5e4aa7de1bf7fcbb914546b31f96 | /glusterfsrest/fs/lock.py | fbef2691b50e6555101f104eed6f76299d593a87 | [] | no_license | farfou/glusterfs-rest | 1fa96ce0edcdf150cf79a02435044a44979eb586 | 2b9c299737c11eb483a1e8e78ebb1ebdc28c8823 | refs/heads/master | 2021-01-18T01:26:04.352485 | 2016-03-05T22:35:02 | 2016-03-06T11:46:39 | 53,226,576 | 0 | 0 | null | 2016-03-05T22:33:15 | 2016-03-05T22:33:15 | null | UTF-8 | Python | false | false | 823 | py | from threading import Lock as threading_Lock
storlever_lock_factory = threading_Lock # default is threading.Lock
def set_lock_factory(lock_factory):
"""set lock factory for storlever
This lock should has a context interface(support "with")
"""
global storlever_lock_factory
storlever_lock_fa... | [
"fabien.alin@gmail.com"
] | fabien.alin@gmail.com |
47157eb7e1d8d2f5101413c4a384d3e2cb7d69b6 | ace88a8f0a8644a8bf816d659f663c315eddfa64 | /dnd/map_utils/dedge.py | de770f5b5bf6494a8b0d75772146aa0d2249c947 | [] | no_license | ekrakar/Pathfinder-Toolkit | 70808a8ef4f0e9c6a28a71e66c4b7410b41a22fa | 2fc66a1d2de8fee36fb5589570a9cfbc9d8a5385 | refs/heads/master | 2020-03-26T17:04:21.857032 | 2018-08-17T16:10:36 | 2018-08-17T16:10:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | from dnd.map_utils import *
class dedge(object):
def __init__(self, point1, point2, number):
self.number = number
self.point1 = point1
self.point2 = point2
self.river = 0
| [
"41119473+zefenzile@users.noreply.github.com"
] | 41119473+zefenzile@users.noreply.github.com |
5ed1168c6daa809a0d2e8373f1dab54ae662f419 | 495ba1416e1aec34be69ded0b34eeb728896f25e | /tests/test_math.py | be32bcb4880ae7f021fb05dfcb8e5693b2f0b55e | [] | no_license | Brunorodrigoss/pytest_structure | a8ebdebc7380e8768a54f4c7b343f11ad70fec30 | cf3bec49800c3caa06e7b6812c3016f9bd65fe1a | refs/heads/main | 2023-01-19T07:58:16.854743 | 2020-11-21T20:24:42 | 2020-11-21T20:24:42 | 314,825,331 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,107 | py | import pytest
"""
This module contains basic unit tests for math operations.
Their purpose is to show how to use the pytest framework by example.
"""
# ------------------------------------------------------------------------
# A most basic test funcion
# --------------------------------------------------------------... | [
"bruno.rodrigo@farfetch.com"
] | bruno.rodrigo@farfetch.com |
8043bf4f0fcdecc59ee5421189b23a4884fc8599 | ac5e52a3fc52dde58d208746cddabef2e378119e | /exps-sblp/sblp_ut=3.5_rd=0.65_rw=0.04_rn=4_u=0.075-0.325_p=harmonic-2/sched=RUN_trial=30/params.py | d0a52d0abffd2812cb65883935448f5d49c0ec13 | [] | no_license | ricardobtxr/experiment-scripts | 1e2abfcd94fb0ef5a56c5d7dffddfe814752eef1 | 7bcebff7ac2f2822423f211f1162cd017a18babb | refs/heads/master | 2023-04-09T02:37:41.466794 | 2021-04-25T03:27:16 | 2021-04-25T03:27:16 | 358,926,457 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | py | {'cpus': 4,
'duration': 30,
'final_util': '3.528333',
'max_util': '3.5',
'periods': 'harmonic-2',
'release_master': False,
'res_distr': '0.65',
'res_nmb': '4',
'res_weight': '0.04',
'scheduler': 'RUN',
'trial': 30,
'utils': 'uni-medium-3'}
| [
"ricardo.btxr@gmail.com"
] | ricardo.btxr@gmail.com |
6d8979e0e0896e0486d44fe100a07499207bbae9 | 00ddd642a75e3c66321ac690ef4bffadfcf298c0 | /framework/utils/rnn/rnn.py | 109cafee737646a7207c86114cd7dd0aca677df5 | [
"MIT"
] | permissive | Francesco-Sovrano/Combining--experience-replay--with--exploration-by-random-network-distillation- | 51f444e58a53a051334a1152785c71f4007ec320 | bf6f2b9a8703227dc40b06bbb170cbb89c04e76f | refs/heads/master | 2020-05-01T11:42:24.393414 | 2020-01-03T21:09:58 | 2020-01-03T21:09:58 | 177,449,608 | 5 | 2 | null | null | null | null | UTF-8 | Python | false | false | 9,126 | py | # -*- coding: utf-8 -*-
import tensorflow as tf
import numpy as np
from tensorflow.contrib.cudnn_rnn import CudnnLSTM, CudnnGRU
from tensorflow.contrib.rnn import LSTMBlockCell, LSTMBlockFusedCell, GRUBlockCellV2
from utils.tensorflow_utils import gpu_count
class RNN(object):
def __init__(self, type, units, batch_s... | [
"toor@MacBook-Pro-di-Toor.local"
] | toor@MacBook-Pro-di-Toor.local |
5b421ca138ad52f140295d34f8ee1fdfc8559474 | bc01e1d158e7d8f28451a7e108afb8ec4cb7d5d4 | /sage/src/sage/modular/cusps_nf.py | ea7befba4c0d9a2601835cf1167a18323322bd32 | [] | no_license | bopopescu/geosci | 28792bda1ec1f06e23ba8dcb313769b98f793dad | 0d9eacbf74e2acffefde93e39f8bcbec745cdaba | refs/heads/master | 2021-09-22T17:47:20.194233 | 2018-09-12T22:19:36 | 2018-09-12T22:19:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,980 | py | r"""
The set `\mathbb{P}^1(K)` of cusps of a number field K
AUTHORS:
- Maite Aranes (2009): Initial version
EXAMPLES:
The space of cusps over a number field k:
::
sage: k.<a> = NumberField(x^2 + 5)
sage: kCusps = NFCusps(k); kCusps
Set of all cusps of Number Field in a with defining polynomial x^2 + 5... | [
"valber@HPC"
] | valber@HPC |
4cb7933f1486a3aa55f92c6eca146b5e08994939 | 4fc5c590e90e973da8602c032eb9bc19c0d45dda | /super-hero-level/beautifulsoup2.py | cb4894529425fc3869cca8e4a3c1151b42a84e42 | [] | no_license | shazam2064/python-excercises | 6b27e39df30ec48a3aafa71253e911b2a09b3590 | df7632150d4e64bfb5579996737dd4036ad91c7b | refs/heads/main | 2023-03-30T20:13:49.910990 | 2021-03-31T12:27:22 | 2021-03-31T12:27:22 | 334,925,542 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,260 | py | # Extracting webpage elements by tag
# Extracting the head - creates a Tag object
# Will return only the first tag by that name
from unittest import result
head = result.head
type(head)
# Extracting h2 heading - creates a Tag object
# Will return only the first tag by that name
h2 = result.h2
type(h2)
# Extractin... | [
"gabriel.salomon.2007@gmail.com"
] | gabriel.salomon.2007@gmail.com |
5f3eb0adbedd522f2f753458e0903b5e7b4e8430 | decce7f88ac26892896802fd8508342f58889219 | /typeidea/comment/migrations/0001_initial.py | 78ff329fc3ff4c21d3ead9245fcd7e40a7ed65a7 | [] | no_license | woxidadiaosi/typeidea | 2c59cce8aa6e6c59b28798fabd99943473a4b773 | cfe3db444f1ba72f0076c121aee86f5cd4c88c34 | refs/heads/master | 2020-12-28T17:51:50.622748 | 2020-02-07T04:04:36 | 2020-02-07T04:04:36 | 238,428,970 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Generated by Django 2.2 on 2020-02-07 03:46
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Comment',
fields=[
('id', models.AutoField(au... | [
"hty1194123800@163.com"
] | hty1194123800@163.com |
334f2e09ecf33e29d0f56df23a63fab3582e9ffb | d09a1fae642abf1a68c4f0563a40045a688be20d | /Module-3/3-1-4-4-Lists-collections-of-data-Operations-on-lists-Removing-elements-from-a-list.py | 30b89896d32dd466857cbc7342942e1d49d35e1b | [] | no_license | rolandoquiroz/CISCO_PCAP-Programming-Essentials-In-Python | fdbf02b16f47c89d7d8c457159e8eb079ca8d307 | 7ae5e1e65bb1c9982b9789e382cf626c863ffcb3 | refs/heads/master | 2022-11-13T20:26:48.549176 | 2020-07-08T14:06:12 | 2020-07-08T14:06:12 | 267,685,762 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | #!/usr/bin/python3
"""
It may look strange, but negative indices are legal,
and can be very useful.
An element with an index equal to -1 is the last one in the list.
Similarly, the element with an index equal to -2 is the one before
last in the list.
"""
numbers = [111, 7, 2, 1]
print(numbers[-1])
print(numbers[-2])
| [
"rolandoquiroz@gmail.com"
] | rolandoquiroz@gmail.com |
d27a3896f5fa3feb5f17cd7861eb6378cabfc5d6 | 867846ed1df7f560ccc473413a70020155f66ad4 | /writeImageToBinary.py | 8ebf38106007bbfc86bd7004a67293c4219d32a9 | [] | no_license | abhineet123/PTF | 84297bf5aa95320dbc2d34f422f2dd563ff65a58 | 0c63f7f8251af0d70c329b2cef53694db76c1656 | refs/heads/master | 2023-08-18T18:34:40.513936 | 2023-08-09T17:28:51 | 2023-08-09T17:28:51 | 157,794,848 | 5 | 1 | null | 2021-05-16T18:48:32 | 2018-11-16T01:24:05 | MATLAB | UTF-8 | Python | false | false | 4,088 | py | # from DecompUtils import *
# from distanceGrid import applyFilter
# import time
import os
import cv2
import numpy as np
# from Misc import getParamDict
if __name__ == '__main__':
db_root_dir = 'C:/Datasets'
track_root_dir = '../Tracking Data'
img_root_dir = '../Image Data'
dist_root_dir = '../Distance... | [
"asingh1@ualberta.ca"
] | asingh1@ualberta.ca |
ef227b68a8ef96872a75eda2e6d46bd3f4e313fb | 2d2268e2e1ab883c6532b86345e7f54a9769a29e | /grupos/migrations/0005_auto_20190218_1137.py | 32fa0e257cbbb8244daba2001071261a91a5dde6 | [] | no_license | thygolem/pyadminGrupos | 3ddd2553aec5b2186f936f98012d16b28cafc0fe | d1a9479ec836365d50247ccdd8b9437fb382433d | refs/heads/master | 2021-10-25T12:18:35.013425 | 2019-03-11T11:57:37 | 2019-03-11T11:57:37 | 179,463,429 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,408 | py | # Generated by Django 2.1.5 on 2019-02-18 10:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('grupos', '0004_auto_20190215_1043'),
]
operations = [
migrations.RenameField(
model_name='grupo',
old_name='timestam... | [
"ivansimo@industria40.me"
] | ivansimo@industria40.me |
0a94e8b28ffb9b780fef50e6b6ab2f2f57064e96 | 8842fdf7738b51469fda6803688d5e66ce7bdc20 | /MD5.py | 45326261e43b1d54f014ad1f23c3ff82ea90a5fe | [] | no_license | yadav-umesh/DATA | bf1c79b5db426e125774e5ed99dd243345cc76fa | d83ac5a4f789b36c828229703d0c67da697eac40 | refs/heads/master | 2020-09-21T07:24:41.874695 | 2019-11-29T06:14:06 | 2019-11-29T06:14:06 | 224,723,488 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,596 | py | import math
rotate_amounts = [7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22,
5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20,
4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23,
6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15... | [
"noreply@github.com"
] | yadav-umesh.noreply@github.com |
f78847b795173c43b7152e277ae789321145022a | 82bae57f5e5e591a645b7e81b445153c8fcc3c6d | /Glider/GliderFull.py | d8f479c573f8b7e0ad317b5ae6cf95795ae99ae9 | [] | no_license | Aerothon-2020/Adv2019Aircraft | ed74ef5ffc65bb8044c36d974c2b9662a6e0459b | eb8cb724578628ff5bf9a9858817632b64a6fa3b | refs/heads/master | 2020-08-04T01:30:57.995223 | 2019-09-30T20:48:05 | 2019-09-30T20:48:05 | 211,953,382 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,734 | py | from __future__ import division # let 5/2 = 2.5 rather than 2
#from os import environ as _environ; _environ["scalar_off"] = "off"
from scalar.units import M, FT, IN, ARCDEG, RAD, LBF, SEC, KG, SLUG, OZF, gacc, GRAM, OZM
from scalar.units import AsUnit
from Aerothon.ACAircraft import ACTailAircraft
from Aerothon.ACWing... | [
"41376231+mwybo@users.noreply.github.com"
] | 41376231+mwybo@users.noreply.github.com |
1e1bed689d29fc1001498014cc02e0800969be85 | a22c3c1d13fa01e1a61718393dbf89f4dc406bee | /week3/usepack.py | ae11d4ea6e720549f2c28ce8beb6c1d59554d325 | [] | no_license | jumirang/python-test | f6a6c35059a8b62a6888a3bace0045b9a95f176f | 5e12dbeea6ba3334ca0780fc42144efee646d1f0 | refs/heads/master | 2021-01-19T15:54:53.297888 | 2018-11-07T05:17:55 | 2018-11-07T05:17:55 | 88,233,883 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 129 | py | # import game.sound.load as LOAD # 축약어 사용
# LOAD.load1()
# LOAD.load2()
from game.sound.load import *
load1()
load2()
| [
"minseok.hwangbo@lge.com"
] | minseok.hwangbo@lge.com |
79ec1a1ca8c7622eb1730afafe9b0ba4277f92e5 | 61fa6dd1672bcef50c0acde02cd0ec7d689254d0 | /pyats/csr1kv/bin/yamllint | 6709d236df4be9d1f69cf40d4a2557acd6475f1c | [] | no_license | jholsteyn/devnet-src | 46364d993d83f24eede40f88c83c05044f2ad286 | 615893b7af0b08684af161fa99316d06703fcbbc | refs/heads/master | 2023-05-12T08:49:42.488958 | 2021-06-08T16:50:10 | 2021-06-08T16:50:10 | 354,581,999 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 427 | #!/home/devasc/labs/devnet-src/pyats/csr1kv/bin/python3
# EASY-INSTALL-ENTRY-SCRIPT: 'yamllint==1.26.1','console_scripts','yamllint'
__requires__ = 'yamllint==1.26.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.... | [
"holsteynjohan@hotmail.com"
] | holsteynjohan@hotmail.com | |
d710a089b2dc8dcb65b7b3f939796b6203abf478 | 74b7a3165c1ef143fc648e83c228795ee70c0e26 | /cs253.py | 5fae75f99073dd8fb38c3317de33dcf9deb9b433 | [] | no_license | Nandan1996/Intro-To-Backend | 98d90ada4bf6c89187a4f85c042746d33d0badf6 | c8015ccd28a8186b122f32a3287580b982cba847 | refs/heads/master | 2021-01-13T14:13:19.693056 | 2016-11-04T10:23:39 | 2016-11-04T10:23:39 | 72,839,234 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,473 | py | import os
import re
from string import letters
import random
import hmac
import hashlib
import webapp2
import jinja2
from google.appengine.ext import db
#setting up jinja environment
template_dir = os.path.join(os.path.dirname('__file__'),'templates')
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(tem... | [
"choudharynandan260@gmail.com"
] | choudharynandan260@gmail.com |
5159d1ced08d025941903ecb69f0c155b3a03343 | 20c1fbd31cdab2b198574fa13d36aa46f7ab093f | /Chapter3_2.py | 27adf263d210068d0948ff92465d46738aa6f313 | [] | no_license | EyeMyData/INFX501 | 093fd879a84673b61b54f7db18f305a3ca62b86d | 2243e425725e3214f0d5d0c067bf125f0e64e237 | refs/heads/master | 2021-01-15T16:28:33.583772 | 2015-12-07T02:19:26 | 2015-12-07T02:19:26 | 44,037,011 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 631 | py | ## Exercise 2: Rewrite your pay program using try and except so that your
## program handles non-numeric input gracefully by printing a message
## and exiting the program. The following shows the output from three
## executions of the program:
hours = input('Enter Hours: ')
rate = input('Enter Rate: ')
try:
hours... | [
"rtbrush@yahoo.com"
] | rtbrush@yahoo.com |
56cc9c7aab8b053852097bf92de03832d5bbbbe3 | 3a6a9bd8cb6a977b77c9313282b769177bf1e0c6 | /src/data_access/via_DMS/DMSDatabase.py | 3fdc487f0c8cc8bfabf09c2f02b32b31692bdfb0 | [] | no_license | PNNL-Comp-Mass-Spec/NMDC-Proteomics-Workflow | d34dd04ac1e32b7cfc77df3252ebec6a873f2ee2 | 1c8d04a6cdb497905a42e026663b39417ffdad02 | refs/heads/master | 2022-11-24T22:56:20.454860 | 2020-08-06T02:33:35 | 2020-08-06T02:33:35 | 266,201,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,553 | py |
import pymssql
import logging
import sys
class DMSDatabase:
''' Database connection class'''
def __init__(self, config):
'''
:param config:
'''
self.SERVER = config.db_server
self.USER = config.db_user
self.PASSWORD = config.db_password
self.DATABASE_NA... | [
"anubhav@pnnl.gov"
] | anubhav@pnnl.gov |
f5654ebb548102ad5967c419da8d9acc2be6c724 | 84ce2afa75e1fede9ec5dad94381f8a406e8b44f | /hello-world/quotes.py | 41bc03835b643b05fb88efd6d6599f923f1cd08a | [
"MIT"
] | permissive | selvendiranj-zz/python-tutorial | c920b0b3565a90792743414b1c357f77d04ce62f | e3fd0855fc06b1b3ec45079cd6bd055a439d2e84 | refs/heads/master | 2021-09-05T15:18:30.150647 | 2018-01-29T07:20:55 | 2018-01-29T07:20:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 369 | py | """
Python accepts single ('), double () and triple (''' or ) quotes to denote string literals,
as long as the same type of quote starts and ends the string.
"""
word = 'word'
sentence = "This is a sentence."
paragraph = """This is a paragraph. It is
made up of multiple lines and sentences."""
days = ['Monday', 'Tues... | [
"selvendiranj@gmail.com"
] | selvendiranj@gmail.com |
70136f71853311d56750505b916562c57a3ecfe2 | 91d550f23c8716eb06171f41f2fd54d3e2d17a04 | /TODO/TODOapp/migrations/0017_auto_20181117_0124.py | 4feaeaaff74fa0b0a16b0a819a278b1664088d0d | [] | no_license | johannesWestenhoeferGit/scalors-assignment-backend-todo | b5c5470b6d9112452f1a82732ee946f1108e1df9 | 362d974430f85e52086d79fc4220290c751a1c08 | refs/heads/master | 2020-04-07T10:51:13.982057 | 2018-11-19T23:24:20 | 2018-11-19T23:24:20 | 158,300,412 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 490 | py | # Generated by Django 2.1.3 on 2018-11-17 00:24
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('TODOapp', '0016_auto_20181117_0115'),
]
operations = [
migrations.AlterField(
model_name='todo'... | [
"45103219+johannesWestenhoeferGit@users.noreply.github.com"
] | 45103219+johannesWestenhoeferGit@users.noreply.github.com |
791aa3c7a4424a4e38c935d847f9fa57c01e7616 | 780c28373887ae0ef1ced41732987ace7647384f | /vinmonopol/env/bin/pip2.7 | 948c3172dfc3d73761e1c3750d2fc4dd30a769f6 | [] | no_license | Paalar/AlcoSearch | 1803262018098f2a59fc4689e7ad4da629a68909 | a3a7cece79e5efd132e4295c114544398aa43ee4 | refs/heads/master | 2021-03-30T17:57:03.354123 | 2018-05-31T08:37:02 | 2018-05-31T08:37:02 | 107,410,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 272 | 7 | #!/Users/GPD/Desktop/python-docs-samples/appengine/standard/django/env/bin/python2.7
# -*- coding: utf-8 -*-
import re
import sys
from pip import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"paaledward@gmail.com"
] | paaledward@gmail.com |
72a2fc5198d4c85f8cce4bbdb3d5833ef90ac973 | ccd0d58fc77536f289ef2da4b66406966b514162 | /Cluster.py | 26edfe154ce91a59662b957412429384949fa882 | [] | no_license | hiafi/cs497_project | 07d2ea2a6e492196aaed35edec0fa5bf0473959a | 6acc554180e0bdef2c31eacd6d59ecc4dc843512 | refs/heads/master | 2016-09-08T05:06:06.424951 | 2013-06-03T19:07:44 | 2013-06-03T19:07:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,920 | py | #!/usr/bin/python
#--------------------------------------------------------------------------------
#Jonathan Roberts, Nathaniel Nguyen, and John Ho
#Computer Science 497B
#Spring Quarter 2013
#Network Intrusion Project
#------------------------------------------------------------------------------
# Credits to pando... | [
"nnguyen939@gmail.com"
] | nnguyen939@gmail.com |
bc538b379293fe63b0ba139868e58411d965d740 | 6b511b69062ad8cfee9dcc2b44cfe4fb2db5d229 | /QuoraQuestionChallenge/preprocessing_util/parsetree_operations.py | cd8bab13651341c097bf342bb0d3685067738f07 | [] | no_license | ahmorsi/QuoraQuestionChallenge | 3b0421b92f2322767af7311d953674750614e78c | 15bac05d258a5c147c731f59d31dd67b2c3f7174 | refs/heads/master | 2021-01-23T00:05:58.570102 | 2017-04-07T19:47:00 | 2017-04-07T19:47:00 | 85,693,384 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,702 | py | from pattern.text.en import parsetree, parse
import pickle
from question import Question
import unicodedata
from itertools import chain
with open("./stored_data/lemmatized_questions_pairs.pickle", "rb") as loader:
lemmatized_questions_pairs = pickle.load(loader)
with open("./stored_data/clean_question_pairs.pickl... | [
"ahani.fcis@gmail.com"
] | ahani.fcis@gmail.com |
bd8c5e0702e994db9f0374d5bbc3e2dbd3556e83 | 83dfcc05045a2dbe797bb7869932a03881d6f33a | /tools/preprocess_pascal_voc.py | 6703656b4110e2f9a3cc5930ca20ea89d12d53e4 | [] | no_license | deepaksinghdangi/Yolo-DNA | 8de4bc488603ec178dcff38f168ab6c3ab3c7235 | 870424e67c02edc38489acdce98acec194342ff5 | refs/heads/master | 2021-04-28T13:51:11.982694 | 2018-04-01T13:49:07 | 2018-04-01T13:49:07 | 121,951,015 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,323 | py | """preprocess pascal_voc data
"""
import os
import xml.etree.ElementTree as ET
import struct
import numpy as np
PASCAL_OP='data\\pascal_voc.txt'
YOLO_ROOT_PATH='data\\VOCdevkit2007'
classes_name = ["aeroplane", "bicycle", "bird", "boat", "bottle", "bus", "car", "cat", "chair", "cow", "diningtable", "dog", "horse", ... | [
"noreply@github.com"
] | deepaksinghdangi.noreply@github.com |
e9f6eacfaf01a7fff4da4c15768700dfd006c709 | 423cc7775d1ab9874729ba304d7682a12b4a4d43 | /plugins/analyzer/previewcomparer.py | 6cc2539edc04ea1fb6f7350dfbf6e684d05043bc | [] | no_license | eyeyunianto/ghiro | 7ec2dc5ae2b766883da6f26975fd41829336e8f8 | 24ce80244893fc94300e1c4f5e3305bd182d65a6 | refs/heads/master | 2020-04-06T04:33:07.155509 | 2015-06-21T21:30:27 | 2015-06-21T21:30:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,807 | py | # Ghiro - Copyright (C) 2013-2015 Ghiro Developers.
# This file is part of Ghiro.
# See the file 'docs/LICENSE.txt' for license terms.
import logging
from itertools import izip
from lib.analyzer.base import BaseAnalyzerModule
from lib.utils import str2image
from lib.db import get_file
try:
from PIL import Image
... | [
"alessandro@tanasi.it"
] | alessandro@tanasi.it |
336b66817aeb69caf5a08e2b80c1beac92d48c6d | de01cb554c2292b0fbb79b4d5413a2f6414ea472 | /algorithms/Easy/1275.find-winner-on-a-tic-tac-toe-game.py | b051c0e2d84dffb8192059fd3585ceb77ed909e8 | [] | no_license | h4hany/yeet-the-leet | 98292017eadd3dde98a079aafcd7648aa98701b4 | 563d779467ef5a7cc85cbe954eeaf3c1f5463313 | refs/heads/master | 2022-12-10T08:35:39.830260 | 2020-09-02T23:12:15 | 2020-09-02T23:12:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,576 | py | #
# @lc app=leetcode id=1275 lang=python3
#
# [1275] Find Winner on a Tic Tac Toe Game
#
# https://leetcode.com/problems/find-winner-on-a-tic-tac-toe-game/description/
#
# algorithms
# Easy (52.88%)
# Total Accepted: 17K
# Total Submissions: 32.2K
# Testcase Example: '[[0,0],[2,0],[1,1],[2,1],[2,2]]'
#
# Tic-tac-to... | [
"kevin.wkmiao@gmail.com"
] | kevin.wkmiao@gmail.com |
5280e76f15eda7f59c1e3df3589cfef7933ddb8c | b04e7039549ab26aee5b8f8e41d6508cc5a12815 | /Logic/functionalitati.py | 84742e194c6aa264ea41e9064166070ac96f94e6 | [] | no_license | H0R4T1U/Asociatii | bb5da881178607ffdd8bbf20d0c1c8f53cb64b04 | ce75b121803c86c19dcb9c1a151e77df927e75ca | refs/heads/main | 2023-01-02T17:30:49.630560 | 2020-10-28T21:56:36 | 2020-10-28T21:56:36 | 308,148,343 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from Logic.crud import get_nr_apt
def sterge_toate_cheltuielile(nr_apt,lista):
[cheltuiala for cheltuiala in lista if get_nr_apt(cheltuiala) != nr_apt]
| [
"horatiubanciu11@gmail.com"
] | horatiubanciu11@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.