blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 220
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 257
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4054a08fa2e0f33fc5e9e743b682974f22fac612 | bf09e7e806aec473bc6a383ef05b443ffa1e415a | /models/yolo_model.py | 572ded1357b2ccb533591a143bf955dee335016a | [] | no_license | reggiehsu111/ml_template | 50522a2528cdf50503da9515b2abbb62046595d9 | 624da8caa02fc693f117e07866db5438684247be | refs/heads/master | 2020-06-26T21:58:07.901631 | 2019-08-07T03:15:36 | 2019-08-07T03:15:36 | 199,768,638 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,392 | py | import torch
from torch.utils.data import random_split
import itertools
from util.image_pool import ImagePool
from .base_model import BaseModel
from . import networks
from .yolo_networks import *
from util.obj_detection_utils import weights_init_normal
from .networks import *
class YOLOModel(BaseModel):
@staticme... | [
"reggiehsu111@gmail.com"
] | reggiehsu111@gmail.com |
c151f1cb971c5514c93deb2d3355846a22aa6971 | 6f21068b31084e81f38db304a51a2609d8af37cd | /2_Scientific_Libraries/plotsine.py | 13f08b42e470e8a434e801048a9ba254ea8288aa | [] | no_license | vickyf/eurocontrol_datascience | 374b889cac7b8d377caa78079fb57098e73bba0a | 0a7c09002e3b5f22ad563b05a6b4afe4cb6791d7 | refs/heads/master | 2020-03-19T06:03:14.864839 | 2018-06-04T07:24:25 | 2018-06-04T07:24:25 | 135,986,678 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | %matplotlib inline
import matplotlib.pyplot as plt
import numpy as np
x = np.linspace(0,2*np.pi, 100)
y = np.sin(x)
plt.plot(x,y)
plt.show() | [
"vicky.froyen@infofarm.be"
] | vicky.froyen@infofarm.be |
be50f5509dae69ae85eaa02caaa1e7f12f6f3064 | c8bfbaf6ee061ea28696ba3d6e557bf684943f13 | /gameplay/models.py | 748bfe44d8fdbec4163b7611753d34723aaa6f0a | [
"MIT"
] | permissive | PyColors/django_game | b5acf83ea98f396e22899919bdea434f4a068f10 | cc7361980fadcd5e6541006cbd22e786e60c1368 | refs/heads/master | 2021-07-09T18:00:45.281095 | 2020-08-20T21:26:40 | 2020-08-20T21:26:40 | 189,754,241 | 0 | 0 | null | 2020-08-20T21:26:41 | 2019-06-01T16:24:25 | Python | UTF-8 | Python | false | false | 3,389 | py | from django.db import models
from django.db.models import Q
from django.contrib.auth.models import User
from django.urls import reverse
from django.core.validators import MaxValueValidator, MinValueValidator
# Set all possibilities value for the status of the game
# with a description string for each value (drop-dow... | [
"patweb44@gmail.com"
] | patweb44@gmail.com |
de790c45b93d28e725e2777bc3ed60430e397d06 | f6afea26e311644dbc83091c2eafe9724d08fdb7 | /pipeline.py | de279d5876f73a6697701b4574fd6cc76ee12c14 | [] | no_license | MechRams/UltimateGoalCV | 38c09b6dc0e12af3aa90816ef5d5e82feb59ff8a | 33c7e166c39b592e3ac62c5bac5e3dabcc2dae18 | refs/heads/master | 2022-12-17T21:02:55.634971 | 2020-09-20T06:07:01 | 2020-09-20T06:07:01 | 296,227,132 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,366 | py | import cv2
import numpy
import math
from enum import Enum
class GripPipeline:
"""
An OpenCV pipeline generated by GRIP.
"""
def __init__(self):
"""initializes all values to presets or None if need to be set
"""
self.__resize_image_width = 640
self.__resize_image_he... | [
"serivesmejia@gmail.com"
] | serivesmejia@gmail.com |
b45fc6b72d0b4ee114c9e2a39ad6ad02c04c851e | 8a0a1035f80debf66fb982931d5d397d68022a66 | /class2action.py | 0b0b985d7132c2ead2f31006b6319001bb4187b5 | [] | no_license | harry1080/scripts-2 | 14e078fd42f79d2e27540e75c590d70f0ced31a5 | 63ef7f6024d4e4b0a3699b6b0dbc9933d771c064 | refs/heads/master | 2020-05-09T23:34:32.113454 | 2019-04-08T09:49:55 | 2019-04-08T09:49:55 | 181,506,139 | 0 | 1 | null | 2019-04-15T14:39:36 | 2019-04-15T14:39:36 | null | UTF-8 | Python | false | false | 447 | py | def user(c):
def F(s,f):
return c(s,f)
return F
class Api(object):
action = {}
def __init__(self,token=None):
self.token = token
@classmethod
def auth(self,k):
if k==2:
return 1
return
def do(self,act,kv):
return getattr(self,act)(kv)
... | [
"46884495+YDHCUI@users.noreply.github.com"
] | 46884495+YDHCUI@users.noreply.github.com |
d77aed3db535b4860c3a22f7c4fe9ef7e3e4f897 | 475d05030e7bb3447fd2022c97cc471a9f8623cd | /create_article_dataset.py | 79c6b54ffd865b00deb410083cd0dee76b4d047f | [] | no_license | sambeettiady/venture | 2e33cbeee02c65c80a2f08ad0e56a907d0041989 | 24e3253730632a7f7fe493bddc6369c5f37e5302 | refs/heads/master | 2020-03-30T03:54:08.581212 | 2018-09-29T07:20:22 | 2018-09-29T07:20:22 | 150,713,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | import pandas as pd
import numpy as np
import os
os.chdir('/Users/sambeet/Desktop/venture/')
companies = os.listdir('articles/')
df = pd.DataFrame(columns=['company','article','text'])
for company in companies:
if company != '.DS_Store':
articles = os.listdir('articles/' + company + '/')
text = [... | [
"noreply@github.com"
] | sambeettiady.noreply@github.com |
561acaa13aab2c2f896707be1a586e74762b6442 | 72c716056fde63f0499bde1fc35c9f3eccb460d3 | /jayprakash/assignment2/Q10. program to create the multiplication table (from 1 to 10) of a number.py | a80fd2e0210fb3ffe7ff80647268bd05c1aa7b20 | [] | no_license | rapidcode-technologies-private-limited/Python | c8a5648185a760d4c4d6a0c3c43033405265f87b | 3e938cc40cde94dab4562794058e44d52fa89d38 | refs/heads/master | 2020-07-02T02:49:38.229488 | 2020-02-12T17:25:08 | 2020-02-12T17:25:08 | 201,391,965 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | while True:
a=int(input('Enter any no. of a='))
if a>0:
print(' Zero Is not multiplicatio')
for i in range(1,11):
print(a,'*',i,'='+str(a*i))
| [
"jayprakash1172000@gmail.com"
] | jayprakash1172000@gmail.com |
07bac4b0659c7151d22ec455cb5bbb340db2a1c5 | 6219e6536774e8eeb4cadc4a84f6f2bea376c1b0 | /common/util_vietnamese_test.py | 3fa3dfa1e91ecf9cc5553850f8be6ef7c293dfd5 | [
"MIT"
] | permissive | nguyenminhthai/choinho | 109d354b410b92784a9737f020894d073bea1534 | d2a216fe7a5064d73cdee3e928a7beef7f511fd1 | refs/heads/master | 2023-05-07T16:51:46.667755 | 2019-10-22T07:53:41 | 2019-10-22T07:53:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,948 | py | #!/usr/bin/env python
# encoding: utf-8
import unittest
from common import util_vietnamese as uv
class TestUtilVietnamese(unittest.TestCase):
def testConvert2Unsign(self):
self.assertEquals(uv.convert2Unsign(u'Dĩ độc trị độc'), u'Di doc tri doc')
self.assertEquals(uv.convert2Unsign... | [
"nguyenchungthuy.hust@gmail.com"
] | nguyenchungthuy.hust@gmail.com |
ecee26c6f963737ad632fe2f9b7806fb872c741f | 1cbfe38b16da00f90b275bd3b0886fe832aa7bc3 | /movie.py | 4e06608756343a2974fe6a317b59d559b606b9f6 | [] | no_license | CrazyLikeABEE/Movie-Trailer-Site | eb445bd3843011a09a5ebedca46d55b46f0f3696 | 4de68339565ebdeede216f7e0d4aee9f6f528939 | refs/heads/master | 2021-04-12T11:51:08.857675 | 2018-04-09T17:01:26 | 2018-04-09T17:01:26 | 126,533,152 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | import webbrowser
class Movie():
def __init__(self, title, storyline, poster, trailer):
self.title = title
self.storyline = storyline
self.poster_image_url = poster
self.trailer_youtube_url = trailer
def show_trailer(self):
webbrowser.open(self.trailer_youtu... | [
"noreply@github.com"
] | CrazyLikeABEE.noreply@github.com |
97b3bf87a736a6ba81767dac4224f7b3907fd82e | f4020b05167f88a18ca0ddf0e9eb98dae0f0d261 | /wedit/apps/orders/schema/order_mutation.py | 779c0adf38a2409494b653a95d8c9febe3645ae9 | [] | no_license | mwibutsa/wedit | 15979c748d92f53feecc5d32c651504fc31aece3 | c2ba07dca32e6bb915b8928e15176233f2a69984 | refs/heads/develop | 2022-12-10T12:11:23.088979 | 2019-10-21T19:24:21 | 2019-10-21T19:24:21 | 206,139,220 | 1 | 0 | null | 2022-12-08T06:36:36 | 2019-09-03T17:54:22 | Python | UTF-8 | Python | false | false | 1,256 | py | import graphene
from wedit.apps.orders.models import Order
from graphql_jwt.decorators import login_required
class CreateOrder(graphene.Mutation):
""" Mutation to create orders. """
owner = graphene.String()
order_title = graphene.String()
order_summary = graphene.String()
order_file = graphene.S... | [
"mflohost@gmail.com"
] | mflohost@gmail.com |
c1b7341897c25e9f6a21ed58039268685b18bd99 | 2815666161ac8593a1282fb22f74964cdf8a573e | /VAN_API/model.py | 56f17ea79d090f0c6b73f89a968e747186882d71 | [] | no_license | vanshikagupta07/Predicting-High-Risk-Countries-for-Political-Instability-and-Conflict | 02d0c80d42cf1bf0ed684155a7011eb0a8db43b5 | 33c4d02420c7ed79edda807f42974808ceecaef8 | refs/heads/master | 2022-10-01T08:35:03.680344 | 2020-06-07T10:16:57 | 2020-06-07T10:16:57 | 270,264,845 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,753 | py | import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import pickle
df=pd.read_csv('Master_refined.csv')
#Replacing 'Czechia' with 'Czech Republic' as both are same countries
df['Country'] = df['Country'].replace('Czechia', 'Czech Republic')
#Replacing 'Eswatini' with 'Swaziland' as both are same co... | [
"vanshikaseby99@gmail.com"
] | vanshikaseby99@gmail.com |
d1076378ce392fc368cb0cfd65323b2257865e3a | b2c6ae2746db8b1d6e8705d441ddcf3b3b9db298 | /Demo/PieChart.py | 930433d35ced2e0dbee9a4cfedf005d2d8aff8ab | [] | no_license | karthigahariharan/The-QA | 4faf05a22ae11e78864da4feaaa89c8f48346f68 | 1ee9cf3f421a67b877abd55456cb7714f8866839 | refs/heads/master | 2021-06-14T21:30:42.891949 | 2019-08-24T19:55:48 | 2019-08-24T19:55:48 | 204,205,689 | 0 | 0 | null | 2021-06-05T09:40:16 | 2019-08-24T19:54:24 | HTML | UTF-8 | Python | false | false | 7,919 | py |
# coding: utf-8
# In[5]:
import plotly
plotly.__version__
plotly.tools.set_credentials_file(username='kyle777', api_key='aDZyXDOPFiN1j5S6btB2')
import json
import plotly.plotly as py
import plotly.graph_objs as go
from pprint import pprint
from plotly.offline import init_notebook_mode, iplot
init_notebook_mode()
im... | [
"karthigahariharan94@gmail.com"
] | karthigahariharan94@gmail.com |
739d271656785b46f69581779f1386627452831c | 4bb399152226477a84781892d50af45abd40c5dc | /clicli.py | c2bb3c48c8f63801eec216ca4d81230390269465 | [] | no_license | senyorjou/clicli | 167b853b3c1f426e3d84fe1dacc2f1c65137f874 | 87fa32635530a8bd260add06956321d88dca9dc3 | refs/heads/main | 2023-04-25T16:33:01.353395 | 2021-05-20T05:49:59 | 2021-05-20T05:49:59 | 369,094,024 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 195 | py | import click
from dotenv import load_dotenv
from commands.ns import cmd_ns
@click.group()
def cli():
pass
cli.add_command(cmd_ns)
if __name__ == "__main__":
load_dotenv()
cli()
| [
"smyslov@gmail.com"
] | smyslov@gmail.com |
2a1962952945bb19fc590008b2c02d3ce88c2b5c | 2aefbdde1481a893153e61385d6a224a1c806731 | /launches/admin.py | 434fd0686cc21ef04d02a8649dcffae53403cc81 | [] | no_license | Felix-FE/P4-BE | f0607958e4c1345f5fe84aedb6a930e3b93e1657 | 8e8b1f5923a6900b0592cb919d8ce4b10d24414c | refs/heads/main | 2023-08-24T15:57:04.890343 | 2021-11-09T14:22:03 | 2021-11-09T14:22:03 | 404,301,873 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | from django.contrib import admin
from .models import Launch, Update
admin.site.register(Launch)
admin.site.register(Update)
| [
"felixfennevans@gmail.com"
] | felixfennevans@gmail.com |
949a33c041675b7ddf0cd974daa9ab5cd08582b1 | f5b8d0a7719355d27f17841f71d236017e6c8dcd | /jumpy_tut12.py | 87e4b5e42459c17210f0c48b1f144832c103449a | [
"MIT"
] | permissive | ShinyShingi/Jumpy | 18216a184a1c7181fec4b7a74634a7f3c970e47f | 93687bc18cd37a553fb0a1a533afceb7d0c23a46 | refs/heads/main | 2023-08-04T22:32:30.137354 | 2021-09-14T19:42:45 | 2021-09-14T19:42:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,333 | py | #import libraries
import pygame
import random
import os
from spritesheet import SpriteSheet
from enemy import Enemy
#initialise pygame
pygame.init()
#game window dimensions
SCREEN_WIDTH = 400
SCREEN_HEIGHT = 600
#create game window
screen = pygame.display.set_mode((SCREEN_WIDTH, SCREEN_HEIGHT))
pygame.display.set_ca... | [
"71890899+russs123@users.noreply.github.com"
] | 71890899+russs123@users.noreply.github.com |
d75cfec04356371e9cb361413293d295f26960ac | b49c04560012e6140692ec5ad8bdf8be8e0696d9 | /dogtor/dogtor/settings.py | fc950f5407215e94b2fda6b4262fc5cf960cf1b1 | [] | no_license | msaldeveloper/python_primera_generacion | c9abada8e24fb9a46660882b07896ca3522ff7b1 | ba21f89df0a9208093642062e3aed16b164c18f7 | refs/heads/main | 2023-03-19T17:55:45.098766 | 2021-03-19T21:59:09 | 2021-03-19T21:59:09 | 348,542,563 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,239 | py | """
Django settings for dogtor project.
Generated by 'django-admin startproject' using Django 3.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
import os
from... | [
"msalda53@gmail.com"
] | msalda53@gmail.com |
21bdb9ebe524c8a4b44d23e8adf7fdb24c9a822e | 12d652d5f53be2481e349a1a5423e7f0d2b02fd0 | /libsaas/services/twilio/__init__.py | e04e99fdeb97eacc20fd0e41bdf7a99b2b1ae2ae | [
"MIT"
] | permissive | piplcom/libsaas | 46d4414844b2ef99e441a9c518d1e90f1adc970c | 25caa745a104c8dc209584fa359294c65dbf88bb | refs/heads/master | 2021-01-19T21:11:58.076814 | 2020-06-08T15:05:02 | 2020-06-08T15:05:02 | 88,621,980 | 1 | 1 | null | 2017-04-18T12:23:00 | 2017-04-18T12:23:00 | null | UTF-8 | Python | false | false | 28 | py | from .service import Twilio
| [
"aitorciki@gmail.com"
] | aitorciki@gmail.com |
d273d31be1fc3f312c06f5395e9b8f3ba259c66e | 45dd9a79cc3a13dc9bcf6d2e52e4ebd9f49f44fa | /migrations/versions/283fb4db0052_autenticacao_do_sistema.py | a3e376390252f4cd5c9fd0ad89fdf3cc8c41d7e1 | [] | no_license | zhasny17/medias-crud | 3a804de2a675f150c2c294a751164c3231e76590 | d77427be26b904a8528b1d7733d8377c96964269 | refs/heads/develop | 2023-01-03T05:08:27.374749 | 2020-10-26T18:47:41 | 2020-10-26T18:47:41 | 292,314,444 | 1 | 0 | null | 2020-10-26T18:47:42 | 2020-09-02T14:59:31 | null | UTF-8 | Python | false | false | 1,522 | py | """autenticacao do sistema
Revision ID: 283fb4db0052
Revises: 0f44243b2485
Create Date: 2020-09-02 14:26:15.171158
"""
from alembic import op
import sqlalchemy as sa
from datetime import datetime
# revision identifiers, used by Alembic.
revision = '283fb4db0052'
down_revision = '0f44243b2485'
branch_labels = None
d... | [
"lucasluz@fortalsistemas.com.br"
] | lucasluz@fortalsistemas.com.br |
abffbf28fffc2cff9a3165f8a00e57f2989d81b9 | 3b219f97d6ad54b8d061c3d7776dad064777ba0a | /matplotlayers/backends/tk/stack_settings.py | 0a2bb5ae0664a6f831bae21c7905a590ab68b033 | [
"MIT"
] | permissive | friedrichromstedt/matplotlayers | f03e94d99d6550e1657023889ad4defe7f1eb64f | a0c883476ac5b0f457e32e8831d87f7a0ca0bb80 | refs/heads/master | 2021-01-10T21:31:36.012401 | 2011-05-24T14:38:36 | 2011-05-24T14:38:36 | 1,793,648 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,303 | py | # Copyright (c) 2010 Friedrich Romstedt <friedrichromstedt@gmail.com>
# See also <www.friedrichromstedt.org> (if e-mail has changed)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without... | [
"friedrichromstedt@gmail.com"
] | friedrichromstedt@gmail.com |
47114303d4036a4aeb4733f34ef927d7095bb970 | ac2c3e8c278d0aac250d31fd023c645fa3984a1b | /saleor/saleor/core/payments.py | 777cdcf229f3af0436638628319a4ed5f6c33a12 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | permissive | jonndoe/saleor-test-shop | 152bc8bef615382a45ca5f4f86f3527398bd1ef9 | 1e83176684f418a96260c276f6a0d72adf7dcbe6 | refs/heads/master | 2023-01-21T16:54:36.372313 | 2020-12-02T10:19:13 | 2020-12-02T10:19:13 | 316,514,489 | 1 | 1 | BSD-3-Clause | 2020-11-27T23:29:20 | 2020-11-27T13:52:33 | TypeScript | UTF-8 | Python | false | false | 1,983 | py | from abc import ABC, abstractmethod
from typing import TYPE_CHECKING, List, Optional
if TYPE_CHECKING:
# flake8: noqa
from ..checkout.models import Checkout, CheckoutLine
from ..discount import DiscountInfo
from ..payment.interface import (
PaymentData,
GatewayResponse,
TokenCon... | [
"testuser@151-248-122-3.cloudvps.regruhosting.ru"
] | testuser@151-248-122-3.cloudvps.regruhosting.ru |
790b20e763c294fc23c22ff01dde9e2435ff065d | 908a81de9a5dd27f6a0b626e9ca016ed50b98085 | /CommomClass.py | 08f6ef735ad8a9dcc3d30832f4387abd7f807371 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | autolordz/docx-content-modify | ad619b0687e74f028b7c0bee1fea292bd4d76af2 | 85c4b972f804e2513834c46791955c28c6c7ca0e | refs/heads/master | 2022-09-09T15:33:25.301672 | 2022-08-09T02:01:27 | 2022-08-09T02:01:27 | 146,964,372 | 6 | 1 | MIT | 2022-07-15T03:36:08 | 2018-09-01T03:34:26 | Python | UTF-8 | Python | false | false | 4,344 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jun 27 20:42:50 2022
@author: Autozhz
"""
import pandas as pd
import re,os,sys
import rsa,datetime
import win32api,win32con
from PrintLog import PrintLog
from Global import current_path
class CommomClass:
def __init__(self, *args, **kwargs):
... | [
"noreply@github.com"
] | autolordz.noreply@github.com |
20a937c65dfbea6b05584dc147b820093b524b73 | e72ce489ebb26c4cb24aaf123ba59148573aebdb | /creatures/physics.py | 34a3374e4332f0f78983c3f1836678b5e021a0bb | [] | no_license | SimonCarryer/mutant_flowers | 6f4e2016a5871214c01b1a79c89ca1c25fcca059 | 4646663410251f6db27861b63f1eacd56c3c1604 | refs/heads/master | 2023-07-13T02:39:55.218853 | 2021-08-21T06:43:56 | 2021-08-21T06:43:56 | 353,199,343 | 6 | 1 | null | null | null | null | UTF-8 | Python | false | false | 342 | py | import numpy as np
def normalise_vector(a, axis=-1, order=2):
l2 = np.atleast_1d(np.linalg.norm(a, order, axis))
l2[l2 == 0] = 1
return (a / np.expand_dims(l2, axis))[0]
def magnitude_vector(vector):
return np.linalg.norm(vector)
def distance_between_points(current, target):
return np.linalg.n... | [
"simoncarryer@gmail.com"
] | simoncarryer@gmail.com |
15b3cfcd42a20500ce5b34dabd3cf34ef53a67b1 | e890fd6988845f95423b00c73cd73b94173881eb | /mainpage/__init__.py | 2fbd40a0f44eb768ac2f4fb0bd04868858873c1a | [] | no_license | wanwanbree/mywork | e541639becadafc7d64358242a7ec62af43a4756 | cb094596b96dc71635e2fba56ba5d92bfa1be349 | refs/heads/master | 2023-03-13T02:14:36.305718 | 2021-03-01T17:39:10 | 2021-03-01T17:39:10 | 333,817,832 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | # -- coding: utf-8 --
# @ModuleName:__init__.py
# @Author:wanwan
# @Time:2021/3/1 23:51 | [
"[15578303150@163.com]"
] | [15578303150@163.com] |
e015be57d3fba1d0cdea0f917b20355a047ff2fe | d1d03bf8b00698efc420e0ebb1e06df0eb6c6379 | /Course1/Part5/5.1.py | 79dfd7971d9a4715eed30a5a352985b2072dddab | [] | no_license | supersowbow/P4E | fb86b1b5819058188e3a81962794772c473903cf | 0749f643a6aff491689c178f7b67f0c6c91eaf24 | refs/heads/master | 2021-08-16T07:04:27.432137 | 2017-11-19T07:50:56 | 2017-11-19T07:50:56 | 111,253,291 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 670 | py | """Exercise 1: Write a program which repeatedly reads numbers until the user enters "done". Once "done" is entered, print out the total, count, and average of the numbers. If the user enters anything other than a number, detect their mistake using try and except and print an error message and skip to the next number.""... | [
"kybow@protonmail.com"
] | kybow@protonmail.com |
541a20915197d5eb3a7603ea78ed0660a5337347 | b92ac6cde56fc83562653486e80d6056bf8435da | /vts/examples_parser.py | 807ed3cb793423d87d13300f07608123828ce82e | [] | no_license | grantpassmore/Real-Algebra-Playground | 3aa800979db44d3b9031a2729c475c0ec12e5421 | be72cb44ea62372266f531c5f81d2003bf6df016 | refs/heads/master | 2020-12-24T16:23:45.835458 | 2014-04-21T15:16:00 | 2014-04-21T15:16:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,160 | py | """Module for parsing GRF format examples.
Supports faster parsing from pickled python objects.
"""
import sys
import os
import errno
import pickle
import itertools
import sympy
import grf_parser as gparser
import isym
x = sympy.var('x')
# "With pyparsing, the default sys recursion limit must be increased for
# ... | [
"kristjan.liiva1@gmail.com"
] | kristjan.liiva1@gmail.com |
95d9264aa5c9795340c3d30446927184fb413a67 | dbf35ec4f640799ffa25d0d30c002fb4e7c82efa | /test/gw/input.py | 80c1972c29062cec0989d99fb31c26c8da2e3a11 | [] | no_license | Shibu778/LaDa | 8962553c2f62882960b402f1a0761a9b80410ca6 | 9c0ab667f94dc4629404a8ec99cbeaa323f0c8b3 | refs/heads/master | 2023-03-16T19:58:44.411851 | 2013-06-16T10:59:11 | 2013-06-16T10:59:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 711 | py | from pylada.crystal.binary import zinc_blende
from pylada.mpi import world
lattice = zinc_blende()
lattice.scale = 5.45
for site in lattice.sites: site.type = 'Si'
functional = GWVasp()
""" VASP functional """
functional.kpoints = "Automatic generation\n0\nMonkhorst\n2 2 2\n0 0 0"
functional.precision = "accu... | [
"mayeul.davezac@nrel.gov"
] | mayeul.davezac@nrel.gov |
cb8577c3dcf6e03871afeb5044afd9a6a6e5b22c | a5e6e0e1a126dadb5b9dd47dd8674c01c6bfb0d3 | /debugComparisonOperatorDrills.py | 4e04206a266b7752e6a45e03b6f68efff2bf6020 | [] | no_license | bvanboxtel/variableDrill | 55bbde205fdd7d6bca3040656516af61ce72fdf3 | 95551f2f1b93b093f9b2d7c7ad15731422f4e10a | refs/heads/master | 2020-09-03T00:39:27.472275 | 2019-11-27T04:46:06 | 2019-11-27T04:46:06 | 219,342,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,142 | py | '''
For this assignment you should look at the code created below and find the error.
For each task, there will be one error that you must find and correct.
Sometimes there will be an explanation of the problem and/or tips that can help you
complete the tasks.
EXAMPLE TASK:
'''
#EX)
# )Broken:
# )5 = 5
# )Correct:
5... | [
"57278831+bvanboxtel@users.noreply.github.com"
] | 57278831+bvanboxtel@users.noreply.github.com |
09e35450b6520f6def9cc7c4b3196fd617f912dc | f7b3c098db4dcea347eac5ee18fc19b84cbf2059 | /scrubadub/scrubbers.py | fa06a388bb3e10f0b9bdd5a8bc93ad220ffe8f15 | [
"MIT"
] | permissive | jb08/scrubadub | f625a4bc265dfb743ab91f0a1449629392233cb2 | 7e7b6acc3938ded1e596960b6f095b7e79ae503e | refs/heads/master | 2021-01-16T22:03:02.271663 | 2016-01-14T20:25:32 | 2016-01-14T20:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,748 | py | import re
import operator
import textblob
import nltk
from . import exceptions
from . import detectors
from .filth import Filth, MergedFilth
class Scrubber(object):
"""The Scrubber class is used to clean personal information out of dirty
dirty text. It manages a set of ``Detector``'s that are each responsib... | [
"dean.malmgren@datascopeanalytics.com"
] | dean.malmgren@datascopeanalytics.com |
dc40bd6b6e3a7c1a27ac23ecaac487a6ac1ddf4e | 362e5473d2d2f154c30e5530c73346d67ee6953e | /leetcode/python/4_findNumberIn2DArray.py | 92be17f270bc6cdaaef5dc609bfe7caacad86208 | [] | no_license | greebear/MyTechnologyStack | 467a0f5abf96e852644502a5c3ef29876eb35860 | 007b323f99e99d762e64fa0ce8fcac6eee89cb76 | refs/heads/main | 2023-06-06T10:52:53.364722 | 2021-06-21T02:12:43 | 2021-06-21T02:12:43 | 354,377,470 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 413 | py | class Solution:
def findNumberIn2DArray(self, matrix: List[List[int]], target: int) -> bool:
if len(matrix) == 0: return False
i, j = 0, len(matrix[0]) - 1
while i < len(matrix) and j >= 0:
if matrix[i][j] == target:
return True
elif matrix[i][j] < tar... | [
"greebear@qq.com"
] | greebear@qq.com |
75bcca176acd9a0af9f6600087c1dea6d24709af | f37b8af090a8da00654a8d94654c9596d6b8df00 | /Data_processing_python/pandas/ftpDownloader.py | 4e7c6661f194f9c92c85a7e93146d6e2cfd19d82 | [] | no_license | harshitkakkar/PythonBasics | 0cfb67242e397b5f5485b1a513586b0b1aa2d428 | 5b6d15a0c6ea1ce686aa8a187d6cbadbfb22bc2d | refs/heads/master | 2021-07-19T20:15:04.574352 | 2020-04-30T08:45:31 | 2020-04-30T08:45:31 | 149,562,901 | 0 | 0 | null | 2020-04-30T08:45:32 | 2018-09-20T06:35:09 | null | UTF-8 | Python | false | false | 1,632 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 12 12:31:46 2020
@author: hkacker
"""
from ftplib import FTP , error_perm
import os
import glob
#import patoolib
def ftpdownloader(stationID,startYear,endYear,
host="ftp.pyclass.com",user="student@pyclass.com",password="student123") :
ftp = FTP(h... | [
"hkacker@deloitte.com"
] | hkacker@deloitte.com |
1db87ae81b0c2047cf759aee09108a756205d110 | d50ba03d9968598669ac0e702ce6e976f2b76960 | /InserirDeletarCards.py | 60b8317c59d92e1b34e70d03f831587926908bd4 | [] | no_license | MelicHamtes/EMA | 6749af41f9a2c0367128462719e4bb38a38f0803 | da97493a8449c5bc17fc3b067f73d815f54cb1e3 | refs/heads/master | 2023-08-19T09:24:44.616832 | 2021-10-07T12:31:00 | 2021-10-07T12:31:00 | 275,916,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,638 | py | import tkinter
from tkinter import messagebox
from Banco_armazenamento.Banco_dados import Banco_dados
from Deck import Deck
import sys
class Editar_cartoes:
def __init__(self, nome_deck):
self.janela = tkinter.Tk()
self.janela.title('Configurações de card')
self.janela.geometry("460x190+850+150")
self.janela.... | [
"sdml.16@outlook.com"
] | sdml.16@outlook.com |
a50ab7354bd04c8263af34a4f7c90352a755304e | d094ba0c8a9b1217fbf014aa79a283a49aabe88c | /env/lib/python3.6/site-packages/scipy/sparse/lil.py | c70f816d9a9118c4cec72b2b2917dca5086450f2 | [
"MIT",
"BSD-3-Clause-Open-MPI",
"BSD-3-Clause",
"GPL-3.0-or-later",
"Apache-2.0",
"Qhull",
"BSD-2-Clause",
"GCC-exception-3.1",
"Python-2.0",
"GPL-3.0-only",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Raniac/NEURO-LEARN | d9274e0baadd97bb02da54bdfcf6ca091fc1c703 | 3c3acc55de8ba741e673063378e6cbaf10b64c7a | refs/heads/master | 2022-12-25T23:46:54.922237 | 2020-09-06T03:15:14 | 2020-09-06T03:15:14 | 182,013,100 | 9 | 2 | Apache-2.0 | 2022-12-09T21:01:00 | 2019-04-18T03:57:00 | CSS | UTF-8 | Python | false | false | 17,782 | py | """LInked List sparse matrix class
"""
from __future__ import division, print_function, absolute_import
__docformat__ = "restructuredtext en"
__all__ = ['lil_matrix','isspmatrix_lil']
from bisect import bisect_left
import numpy as np
from scipy._lib.six import xrange, zip
from .base import spmatrix, isspmatrix
fr... | [
"leibingye@outlook.com"
] | leibingye@outlook.com |
621de074d9e048060460d7b5562145e37a568939 | ac3c3886cdf6899b4e16e3368d0aba39ce5812d3 | /units_list/rangers.py | 2420d9d79d4533726f2b55d53ef1393063e99435 | [] | no_license | karolSuszczynski/GamesName | 786e68f91610fe3d330b79ac3c2c04446b346a64 | 6b4d300b23850c1bb19db881481e7fa0b44469d4 | refs/heads/main | 2023-07-17T15:23:33.309174 | 2021-08-29T13:52:39 | 2021-08-29T13:52:39 | 331,026,724 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | from PIL import Image, ImageTk
from units.base_unit import BaseUnit
from units.unit_with_ammo import UnitWithAmmo
from units.possible_action_map import AirbornActionMapGenerator
from units.attacks import get_sword_attack
class Peasant(UnitWithAmmo):
def __init__(self):
super().__init__("img/peasant.png", ... | [
"karol@suszczynski.eu"
] | karol@suszczynski.eu |
9e8d55b19f819bc5d3bd1235d4e62225b2271730 | b7b2f80ab5e1ee0ea028576e3014b62b8d3a8d7e | /pyedit/pyedit-032/pyedlib/pedync.py | 0ba8b937ecb2f51e498cc3516a5f9b0a422ebcc7 | [] | no_license | pglen/pgpygtk | 4d1405478a714f003984cf3e3db04ff1f767470b | 33f58010e304f1a312f2356de453ecedb7aa21ef | refs/heads/master | 2021-01-22T01:18:52.238415 | 2019-01-01T01:37:24 | 2019-01-01T01:37:24 | 102,215,955 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,693 | py | #!/usr/bin/env python
# Prompt Handler for pyedit
import os, string, gtk, gobject
import pyedlib.pedconfig
# ------------------------------------------------------------------------
def yes_no_cancel(title, message, cancel = True):
dialog = gtk.Dialog(title,
None,
gtk.DIALO... | [
"peterglen99@gmail.com"
] | peterglen99@gmail.com |
a58a9d7303bef7ea14954d5a6376cf8f18b14d02 | fe91ffa11707887e4cdddde8f386a8c8e724aa58 | /chrome/test/enterprise/e2e/policy/safe_browsing/safe_browsing_ui_test.py | 296faf0623b41a371544722ac0962d719d89d5de | [
"BSD-3-Clause"
] | permissive | akshaymarch7/chromium | 78baac2b45526031846ccbaeca96c639d1d60ace | d273c844a313b1e527dec0d59ce70c95fd2bd458 | refs/heads/master | 2023-02-26T23:48:03.686055 | 2020-04-15T01:20:07 | 2020-04-15T01:20:07 | 255,778,651 | 2 | 1 | BSD-3-Clause | 2020-04-15T02:04:56 | 2020-04-15T02:04:55 | null | UTF-8 | Python | false | false | 2,371 | py | # Copyright 2019 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import re
import test_util
import time
from absl import app
from selenium import webdriver
from pywinauto.application import Application
UnsafePageLink = "h... | [
"commit-bot@chromium.org"
] | commit-bot@chromium.org |
61a13c91993c787854fd3d4282aba7d225cc06e8 | 4b32cbc767e8cc0d61e7771b8a6d5c7c9b324a97 | /Python/1676 (팩토리얼 0의 개수,수학).py | 1f1b2191894cf9d0e4754ced7350cb220d5c75dc | [] | no_license | Jongminfire/Baekjoon | 45e554c983fa583ca7a1709e1ac435e1a38e075b | 8dc0ec58ddc43de2dd44b3b1af9346f708c1208e | refs/heads/master | 2023-07-29T10:35:52.648825 | 2021-09-14T15:12:22 | 2021-09-14T15:12:22 | 247,514,920 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | n = int(input())
print(n//5+n//25+n//125)
# 팩토리얼 0의 개수는 5의 x제곱일 때 x만큼 늘어난다
| [
"51112542+Jongminfire@users.noreply.github.com"
] | 51112542+Jongminfire@users.noreply.github.com |
a8b6f5e111d6183e5069a6819cb3177032881f29 | 672c454454cc62a49d0caf74558c265c7db4228f | /Model.py | 428fe5396ea2642e37d6dd7c1f008ff649c0a003 | [] | no_license | nmaypeter/project_nw_200505 | cd0ce01ce07c41683ca96b0dac3960bfac6b8ffd | f0871506f8ed4dbdd8e1b1a0dcbfa20196a652b7 | refs/heads/master | 2022-07-29T23:16:10.271862 | 2020-05-17T16:37:07 | 2020-05-17T16:37:07 | 261,580,722 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42,600 | py | from SeedSelection import *
from Evaluation import *
import time
import copy
import math
class Model:
def __init__(self, mn_list, data_key, prod_key, cas_key, wallet_key=0):
self.model_name = get_model_name(mn_list)
self.r_flag = mn_list[1]
self.mn_list = mn_list
self.data_name = d... | [
"37822464+nmaypeter@users.noreply.github.com"
] | 37822464+nmaypeter@users.noreply.github.com |
1871dc5a236ac1574119220acd73a37bc860d137 | 2f48a4adb131621c7ad4d772af67b2c40f2f41d7 | /Dev/cfehome/src/cfehome/settings/__init__.py | c0df761f17f1f9e599cc3252e83b97aee7a7a926 | [] | no_license | akashbijwe/Python | ad0f6ae36e41e08a4ed24bfdcefde3287cefeb14 | 17948ece6835e240584d6835cce66eb75c4f1b22 | refs/heads/master | 2022-11-02T00:13:19.858003 | 2018-07-27T11:45:13 | 2018-07-27T11:45:13 | 141,707,337 | 2 | 1 | null | 2022-10-21T13:18:59 | 2018-07-20T12:05:30 | Python | UTF-8 | Python | false | false | 103 | py | from .base import *
# from .production import *
# try:
# from .local import *
# except:
# pass
| [
"mr.akashbijwe@gmail.com"
] | mr.akashbijwe@gmail.com |
b1a541ae2823325189c5b0f803ec117c9df66d07 | de69d99db8be567d97060149481091c25907d4ef | /src/trees/binary_trees.py | 84f2bcde422555256b4619c0ba4e877f5b7f152d | [] | no_license | chalam/Pynaconda | 0dd5acdb19c38352ee5d4b92c002d05bd75e452d | e24600d26afbc685e3853a6037f50dfc3fe077d2 | refs/heads/master | 2021-01-10T13:37:54.811250 | 2018-10-13T20:48:44 | 2018-10-13T20:48:44 | 36,340,529 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,556 | py | class Node:
"""
Class Node
"""
def __init__(self, value):
self.left = None # No self-referential Node in python
self.data = value
self.right = None
class Tree:
"""
Class tree will provide a tree as well as utility functions.
"""
def createNode(self, data):
... | [
"dim2dip@gmail.com"
] | dim2dip@gmail.com |
c5ee772862e7f91cab0caa6ad73a7ad70504357b | 6ea3058efb25c490dcb6ea2e6ce519ec4c2cc7b0 | /locust/lib/example_functions.py | 15b0fc6ecfbb85795c8d26e80660ed355fbebc67 | [] | no_license | studio-design/distributed-load-testing-using-kubernetes-locust | c921738e4a4bd9a0ace83776395f27fbd29ca5c7 | d15bf00a491ca8fca05e0fff955c0f3e9e2321e4 | refs/heads/master | 2023-08-24T10:55:58.914353 | 2021-10-31T21:39:46 | 2021-10-31T21:45:57 | 423,021,392 | 10 | 0 | null | null | null | null | UTF-8 | Python | false | false | 132 | py | # -*- coding: utf-8 -*-
import random
def choose_random_page():
pages = [
'/'
]
return random.choice(pages)
| [
"yasuyuki.takeo@liferay.com"
] | yasuyuki.takeo@liferay.com |
c9d62cd28eb6a98c113b079864bf0553c983be35 | 284f4f56aed56573eb5516aa67c99bf41e595522 | /Leetcode/Arrays/p3574.py | 4261a42c73d1469fdff5a35d33f807e57238da87 | [] | no_license | rohangoli/PythonAdvanced | 537a05eff9ec305a6ec32fa2d0962a64976cd097 | 6448a5f0d82c7e951b5e476638e15a3c34966cd9 | refs/heads/develop | 2023-07-20T04:33:50.764104 | 2023-07-14T04:04:18 | 2023-07-14T04:04:18 | 126,811,520 | 0 | 0 | null | 2022-06-10T23:07:10 | 2018-03-26T10:20:16 | Jupyter Notebook | UTF-8 | Python | false | false | 514 | py | ## Squares of a Sorted Array
# Example 1:
# Input: nums = [-4,-1,0,3,10]
# Output: [0,1,9,16,100]
# Explanation: After squaring, the array becomes [16,1,0,9,100].
# After sorting, it becomes [0,1,9,16,100].
# Example 2:
# Input: nums = [-7,-3,2,3,11]
# Output: [4,9,9,49,121]
class Solution:
def sortedSquares(sel... | [
"rohanr27@gmail.com"
] | rohanr27@gmail.com |
0eb2aee59c25c67c7a7ebb47b287de264c836ccb | 083f983919df3c8637668f6e4339742aa9fde761 | /docker/generate_makefile.py | 205da5d6297749ea38cd5b05044cdd97ad6f7dac | [
"Apache-2.0"
] | permissive | liumuqing/fuzzbench | 97174149a7b76b04ccada8010ec5198f36ab4080 | 140e69107d725611290a05d6369f159337d61bdf | refs/heads/master | 2022-11-17T17:12:46.448307 | 2020-07-17T03:33:58 | 2020-07-17T03:33:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,956 | py | # Copyright 2020 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 agreed to in writing, softw... | [
"noreply@github.com"
] | liumuqing.noreply@github.com |
cf12b9fec72682fc2aa7ad9307da65aab512a315 | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/network/azure-mgmt-network/azure/mgmt/network/v2021_02_01/operations/_virtual_network_gateway_nat_rules_operations.py | 8cc37a0f84e06af9a668517eea78cd7432103909 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 22,954 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
48e5cb61a39dc6de5e2779ebd8c76b7464dea846 | 1002160fec10d11ded23ffe3b555cb382a3568ca | /PY4E/exercisesANS/ex10_1.py | 9a1ad3c10fb9b947ee93a73956c6fe6efb4afe19 | [] | no_license | AREKKUSU-hyper/Python-Libraries | 8358a1093f9083286dd02e263f6c9d11d5221bd3 | 07bada98d250d8370706294d78bce04c6b39b0e4 | refs/heads/master | 2022-11-17T02:13:59.933905 | 2020-06-28T09:26:43 | 2020-06-28T09:26:43 | 275,550,573 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # The top ten most common words # tuple用value排序
name=input("Enter file:")
handle=open(name)
counts=dict()
for line in handle:
words=line.split()
for word in words:
counts[word]=counts.get(word,0)+1
lst=list()
for key,val in counts.items():
newtuple=(val,key)
lst.append(newtuple)
lst=sorted(l... | [
"ettoday.alex@gmail.com"
] | ettoday.alex@gmail.com |
367db01aab0f8c4d48fb74c5b3ca470707f4ab2c | 69c5e02afaa3c8b7547b4bdbf2f094a83bd994ce | /AdvLnUtils.py | 9cf8c4e6d6596078a302c9b149ac71ca6b7ff2fc | [] | no_license | yelled1/CarND-Advanced-Lane-Lines | c1e6755a5d73e0b19a9eed5c84b2a789833c6c43 | 78b48f914c2da03cc01f88d94e3ae42586e676e2 | refs/heads/master | 2021-01-22T05:47:02.641520 | 2017-02-14T02:56:55 | 2017-02-14T02:56:55 | 81,703,752 | 0 | 0 | null | 2017-02-12T04:53:26 | 2017-02-12T04:53:26 | null | UTF-8 | Python | false | false | 14,169 | py | import numpy as np
import cv2
import matplotlib.image as mpimg
import matplotlib.pyplot as plt
import imgUtils as iu
from moviepy.editor import VideoFileClip
def absSobelThresh(img, orient='x', sobel_kernel=3, thresh=(20, 255), dbg=0):
if dbg: print('dirThresh=', orient, thresh)
gray = cv2.cvtColor(img, cv2.CO... | [
"mailhyoon@gmail.com"
] | mailhyoon@gmail.com |
ef00affcca72b6372fc92fd1d4ac34052967c4d8 | b186dcdf7e429997ea11c9e8cfc22077c060e489 | /experiment/experiment1/tools_psychopy.py | b628bb6bca5672d9f79afea9e78c98af0e064ceb | [] | no_license | behinger/fixdur | 841599cbd231052dbc77ed0213d9a95c0d7faa1e | 8f6f4a8837b4ca1dd0dfcf9a96fddccc568e51cf | refs/heads/master | 2021-03-27T19:08:37.449607 | 2017-09-25T10:41:58 | 2017-09-25T10:41:58 | 68,902,529 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,976 | py | import numpy as np
import pygame, random, scipy, os
from psychopy import visual, core, event, monitors
from math import atan2, degrees,sqrt,atan,sin,cos,exp,log
from scipy import stats
from pygame.locals import *
from collections import deque
try:
import fixdur_tracker as tracker
import pylink
except ImportEr... | [
"behinger@uos.de"
] | behinger@uos.de |
6c68f9b39b16ce655d14903518141908ac505150 | 9be2ec73d639d3a481dcec50a0496e529de3b105 | /venv/Scripts/day7/lists.py | 0c2208c3e9f8b29e5973e67ac610511d21e1c354 | [] | no_license | huyangh/Learn-python-100-days | 3fd0a107da4d10db0f39db30c64ab610dcd8b123 | 923d5bbcaa28bafdb6b8d0a5d413c1ac17dba3f5 | refs/heads/master | 2022-11-06T04:56:30.809629 | 2020-06-20T07:24:59 | 2020-06-20T07:24:59 | 271,553,876 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,479 | py | """
Time : 2020/6/11 15:47
Author : huyangh
演示列表的使用
"""
import sys
def list_basic():
"""
演示列表基本操作
"""
list1 = [1, 3, 5, 7, 100]
print(list1) # [1, 3, 5, 7, 100]
# 乘号表示列表元素的重复
list2 = ['hello'] * 3
print(list2) # ['hello', 'hello', 'hello']
# 计算列表长度(元素个数)
print(len(list1)) ... | [
"huyangh@sina.com"
] | huyangh@sina.com |
fa8bc5d8dc16ab1a75229528b86ee19088cb0fbb | 675a3767def4356c44c01e75297cca352667a887 | /hw3/load.py | 599fd56336baaa89cdf0dec937dad5f34e7b771e | [] | no_license | XuKaze/NYCdatascience | c63d3f386abba50e4c7b78e95ea9120172ed2b2b | 8d20b19a42746d7c8b00eb350c35d239fa81b5ca | refs/heads/main | 2023-02-28T07:45:52.061059 | 2021-01-31T11:01:36 | 2021-01-31T11:01:36 | 320,242,082 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,930 | py | import os
import numpy as np
import pickle
import random
'''
Note: This code is just a hint for people who are not familiar with text processing in python. There is no obligation to use this code, though you may if you like.
'''
def folder_list(path,label):
'''
PARAMETER PATH IS THE PATH OF YOUR LOCAL FOLD... | [
"46765635+XuKaze@users.noreply.github.com"
] | 46765635+XuKaze@users.noreply.github.com |
1525fa01ca88e86a1491f6968ca7daf25bda962c | c086a38a366b0724d7339ae94d6bfb489413d2f4 | /PythonEnv/Lib/site-packages/win32com/server/exception.py | f84cccdf5e349025e91ae2f9bdf4e87a0bb9e8d9 | [] | no_license | FlowkoHinti/Dionysos | 2dc06651a4fc9b4c8c90d264b2f820f34d736650 | d9f8fbf3bb0713527dc33383a7f3e135b2041638 | refs/heads/master | 2021-03-02T01:14:18.622703 | 2020-06-09T08:28:44 | 2020-06-09T08:28:44 | 245,826,041 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,452 | py | """Exception Handling
Exceptions
To better support COM exceptions, the framework allows for an instance to be
raised. This instance may have a certain number of known attributes, which are
translated into COM exception details.
This means, for example, that Python could raise a COM exception that includes... | [
"="
] | = |
a92c0b47b1e9b1abfaeb5b067f6adb15500dcacc | 615185b5584e3031e3b78498104e52adeb0c49d6 | /example/mpii_kd.py | 683121b3221891c75e3e53c66adec26e5ef1595c | [] | no_license | Alixing/Fast_Human_Pose_Estimation_Pytorch | 55548c195a36f37238829c2a5f13824bbbaf8d15 | 2fcec179084d47b585ba0a1e2b46d36a9f1576fa | refs/heads/master | 2020-04-18T17:46:38.492222 | 2019-01-25T11:32:50 | 2019-01-25T11:32:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,672 | py | from __future__ import print_function, absolute_import
import os
import argparse
import time
import matplotlib.pyplot as plt
import torch
import torch.nn.parallel
import torch.backends.cudnn as cudnn
import torch.optim
import torchvision.datasets as datasets
from pose import Bar
from pose.utils.logger import Logger,... | [
"yuanyuan.li85@gmail.com"
] | yuanyuan.li85@gmail.com |
ca07900e223be5a28c11b92692e858889ed02102 | af26b01d2f308ece3bcd7124d65f854fc0d29a76 | /const.py | 00ff1e5880f26786b6771204117107738557043f | [] | no_license | Xm798/kotlin2docset | ec0f01078aadb9e5b5f57cfe11afa86ad7c8ca51 | c40e4a8d4b093daeae3e7ca1f63cc948ad653f85 | refs/heads/master | 2023-07-19T05:19:15.988644 | 2021-05-05T21:22:43 | 2021-05-05T21:22:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 381 | py | WEB_DOCS_URL = 'https://kotlinlang.org/api/latest/jvm/stdlib/index.html'
DATABASE_PATH = "kotlin.docset/Contents/Resources/docSet.dsidx"
STATIC_ASSET_ICON_PATH = "./static/icon.ico"
STATIC_ASSET_PLIST_PATH = "./static/Info.plist"
DOCSET_DOCUMENT_PATH = "kotlin.docset/Contents/Resources/Documents/"
DOCSET_PLIST_PATH = "... | [
"igorkurek96@gmail.com"
] | igorkurek96@gmail.com |
2f664839edc5b9cc1165a9ba2088d827fb8ab9da | 316632e975cd61d8f7868bba5e28deb95d242944 | /lib/movie.py | 07a7aaa42110af8518d853cf4f4591692fd1f032 | [] | no_license | HumasLin/RingDNA_coding_challenge | 62fefb581da67d8bfba820c14935af921759880e | 5e7a56609f76f1c9e8429f207f59e169568bb482 | refs/heads/main | 2023-05-09T23:11:15.261290 | 2021-05-21T21:25:37 | 2021-05-21T21:25:37 | 369,649,688 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 401 | py | from lib.utils import *
""" Define the class of movie """
class Movie:
def __init__(self, title: str, price_code: int):
self.title = title
""" avoid invalid price code """
if price_code not in logic["amount"]:
raise ValueError("Movie type doesn't exist!")
self.price_code = price_co... | [
"humaslin97@hotmail.com"
] | humaslin97@hotmail.com |
fbd25b29bc32a6570a96d03a9301b261600cabff | f92ae857495064956c039d61f006cde8763dbcfe | /api/views.py | 5ed6c8c869b166d250ca914ceddc6ad70d00a2f3 | [] | no_license | jona-young/django_react | bcfda24a21c9fa1493ee72ab5012092782d4e69e | d43d45930938ccedcd6bc482aed6f2346b0df8d5 | refs/heads/master | 2022-11-26T06:42:29.903611 | 2020-08-11T05:02:08 | 2020-08-11T05:02:08 | 286,154,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | from django.shortcuts import render
from django.http import JsonResponse
from rest_framework.decorators import api_view
from rest_framework.response import Response
from .models import Task
from .serializers import TaskSerializer
# Create your views here.
@api_view(['GET'])
def api_overview(request):
api_urls = ... | [
"young.jon@icloud.com"
] | young.jon@icloud.com |
f1de4f284f6ae6dcbf0e216dae4bd4020b7fe948 | cd5746f8cc7aee1f20606a65b4fae0d5e8ee78dc | /Python Books/Mastering-Machine-Learning-scikit-learn/NumPy-Cookbook/NumPy Cookbook 2nd Edition_CodeBundle/Final Code/0945OS_05_Final Code/ch5code/sobel.py | 7a60c93500bba9e0a6d9825f564f9b66bfa7ba43 | [] | no_license | theGreenJedi/Path | df24fca355590efef0c6cb5c52e7216c6b5d2464 | b5ed2805dbb046480929e49e550bfd8af5bb4d6f | refs/heads/master | 2023-07-27T14:23:37.694546 | 2021-07-16T01:38:55 | 2021-07-16T01:38:55 | 87,686,563 | 8 | 2 | null | 2023-07-11T22:49:03 | 2017-04-09T05:57:30 | Jupyter Notebook | UTF-8 | Python | false | false | 623 | py | import scipy
import scipy.ndimage
import matplotlib.pyplot as plt
lena = scipy.misc.lena()
plt.subplot(221)
plt.imshow(lena)
plt.title('Original')
plt.axis('off')
# Sobel X filter
sobelx = scipy.ndimage.sobel(lena, axis=0, mode='constant')
plt.subplot(222)
plt.imshow(sobelx)
plt.title('Sobel X')
plt.axis('off')
# ... | [
"GreenJedi@protonmail.com"
] | GreenJedi@protonmail.com |
ecfe77500cfc272df2fb4419bc0d4d2ae359e5c6 | c0289248e92097f7225e641c3dbdc080b5e4a9f6 | /project/apps/courses/migrations/0001_initial.py | 2d257c104c65850bc7147f803b2eb89ef4d33342 | [] | no_license | q897586834/MXOnline | fc37f0b97806c1b7277b10ed6fd9f90d01529fd5 | 90d1c604ba87ce044e453dbb6f87179ce414f8b7 | refs/heads/master | 2020-04-06T09:02:22.822156 | 2018-11-20T06:59:47 | 2018-11-20T06:59:47 | 157,326,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,811 | py | # Generated by Django 2.1.1 on 2018-11-15 16:48
import datetime
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Course... | [
"897586834@qq.com"
] | 897586834@qq.com |
bc72caa9c796f2dc83450ced23422f91699e8492 | 9a32ef47da65f9776c8c64b95ececf716b30e11e | /tile base template/Bullet.py | 771dd038a6277fd557d1753dfb1e38abbb3caac5 | [] | no_license | Ericsb52/2021-pygame-projects | 900ca54a81a0131e11966fef520c8b85868eb595 | 2b338c8b4c2ffbfbd0a89f0a65268f37ffdf9b58 | refs/heads/main | 2023-04-19T04:36:04.046921 | 2021-05-04T13:22:02 | 2021-05-04T13:22:02 | 356,379,222 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | # Pygame template - skeleton for a new pygame project
import pygame as pg
import random
import os
from settings import *
vec = pg.math.Vector2
class Bullet(pg.sprite.Sprite):
def __init__(self,game,pos,dir):
self.groups = game.all_sprites,game.bullet_group
pg.sprite.Sprite.__init__(self,self.gro... | [
"ebroadbent@tooeleschools.org"
] | ebroadbent@tooeleschools.org |
1efa0ea37b215cf4aef1d922effc760f4f26fe1e | 76909159ed818b35f121c549a7dccf5494cf814a | /guvi/python pip/intro.py | 0cd522e6be77b333d2acb80e1b9f10dd1c4c93ec | [] | no_license | kiranbakale/guvipysamples | 74dc7760765039af01a97f633137aeea5493401e | 426cd81e79c8666a84f19101ecbe05aaa7cd8ca5 | refs/heads/master | 2023-04-10T11:48:25.253536 | 2021-04-26T08:46:15 | 2021-04-26T08:46:15 | 361,656,047 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 92 | py | /packages
# NumPy
# Pendulum
# MoviePy
# Requests
# Tkinter
# PyQt
# Pandas
# py32
# pyTest
| [
"kiranbakale9@gmail.com"
] | kiranbakale9@gmail.com |
b60dc9b090445d8a1dd0b386f24ac12b84b75313 | 9eeb904f78da5b20f388392cd03932a9ac8b12a3 | /simplebot.py | 15dfdb5575db086d6c9923f4f852ea10d1ada0d3 | [] | no_license | jorgerpo/simplebot | 544adc8ee8310c205a26e7b6d771bbb20a350a44 | fab3b655959d7c5b9a60da7284e13eef9c5a10de | refs/heads/master | 2023-03-07T00:26:14.142833 | 2021-02-19T14:01:44 | 2021-02-19T14:01:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,710 | py | """ Simple rule base chatbot with emotional monitoring """
from textblob import TextBlob
import twily_classifier as cl
import stop_words as stopwords
import json
with open('twilybot.json', 'r') as f:
array = json.load(f)
CONVERSATION = array["conversations"]
BOT_NAME = 'Twily'
STOP_WORDS = stopwords.sw_list
neg_... | [
"bruzual.enrique@outlook.com"
] | bruzual.enrique@outlook.com |
cfb6bb053299436ff3650f8d3757f18b2d75b66f | 98ad82f686b4f3557705c9124dc77334b99d472a | /Lesson 4/Задача 6.py | 918ae8053eb1ac3f1805d47691f53770aa2a60f6 | [] | no_license | BaranovTOP1/Python | b7cc2e6b86d0432e03996f31a85c5f09da1f5840 | dcb251e36b955422ca8915ac2c72d1a38ef441dd | refs/heads/master | 2023-07-13T17:02:57.389664 | 2021-08-13T20:34:06 | 2021-08-13T20:34:06 | 367,494,158 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 363 | py | kostya = int(input('Кубик Кости: '))
vlad = int(input('Кубик владельца: '))
suma = kostya + vlad
suma1 = kostya - vlad
if kostya >= vlad:
print(suma1)
print('Костя платит!')
print('Игра окончена.')
else:
print(suma)
print('Владелиц платит!')
print('Игра окончена.')
| [
"sanbaranoff@yandex.ru"
] | sanbaranoff@yandex.ru |
51af0996835493174bf340129078926632a85db3 | f2802e4bbf492553544f8d84ecc52716e72e7d49 | /finxiapp/models.py | bee44acf1b259736b21f0e4852dd658b09c87194 | [] | no_license | leilaapsilva/TesteFinxi | 6bc8b6ac7c7fdb22ea60ba91558293848e1e1ff9 | 7a555495ed4977d1eec05af02ef58f9a210cc116 | refs/heads/master | 2022-11-28T05:20:39.638186 | 2020-08-06T02:48:21 | 2020-08-06T02:48:21 | 285,158,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,151 | py | from django.db import models
from django.contrib.auth.models import User
#from django.core.exceptions import ValidationError
#from django.utils.translation import gettext_lazy as _
MAX_LENGTH = 200 # Constante que define o tamanho máximo padrão dos campos de texto
class Administrador(models.Model):
user = model... | [
"leilaapsilva26@gmail.com"
] | leilaapsilva26@gmail.com |
d9703a6be1c3daea019c9d1cbd396380fa794f67 | 6537df8cee33033f21afcee1cac0d8b266025a83 | /poems/models.py | c744e4902e28c49dc9c4940a5ae9b52d6d1df5d4 | [] | no_license | AceKnightWalker/Majesty-Link | 66a1caed81e875ad890137f9632ac87148fd926c | c98e272fe1a0c2f7b8ae3914e05572437627d510 | refs/heads/master | 2021-04-10T20:32:26.396350 | 2020-03-21T11:53:06 | 2020-03-21T11:53:06 | 248,963,284 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,126 | py | from django.db import models
from ckeditor_uploader.fields import RichTextUploadingField
from django.utils import timezone
from django.urls import reverse
from django.utils.text import slugify
class Poem(models.Model):
title = models.CharField(max_length=200, unique=True)
slug = models.SlugField(default='', blank=T... | [
"lawalj99@gmail.com"
] | lawalj99@gmail.com |
2abe407839c5f726bf995257481c7bf77080119a | d24ce7c81aa297c2cd5a8383413481ce418d2aa6 | /petshop/urls.py | 1865af22d538240ed43f958aafe4d781e3c3d917 | [] | no_license | usac201314832/ProyectoDjango | 3f22a57cb6abc35abaa088754c81dc3a7ba55de4 | e5b51827d314f7f5de775677f87fd5d1b7610406 | refs/heads/main | 2023-01-07T21:52:08.537992 | 2020-11-10T05:05:54 | 2020-11-10T05:05:54 | 309,443,304 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,146 | py | """petshop URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.1/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Class-based... | [
"2661546380101@ingenieria.usac.edu.gt"
] | 2661546380101@ingenieria.usac.edu.gt |
061a748ff2d46a97b47e03985daf0b96c6b6f048 | fec5ef5564e303e618472192c90a2705bc1cfcc9 | /checkout/apps.py | e15de7f8bd606597b1f84dcfea3118a3dce49349 | [] | no_license | marcin-kli/MS4 | 87b7cbc99eda1aa218ab94ce2865050f43a85c09 | b36c8e719192213d5698b5d30b10cd6221c1fdf7 | refs/heads/master | 2023-05-02T14:51:33.431263 | 2021-05-30T07:02:20 | 2021-05-30T07:02:20 | 345,659,870 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 188 | py | from django.apps import AppConfig
class CheckoutConfig(AppConfig):
name = 'checkout'
def ready(self):
import checkout.signals # this is imported to get signals working
| [
"klimaszewski.m@gmail.com"
] | klimaszewski.m@gmail.com |
9cf95f6dafcc794e9f8a8ef7e764f0e06a0d831b | cd00ece473a09a75754613c83862d4dfaf54cd61 | /CMSSW_10_5_0/src/L5_Cor/Data/test/crabConfig_Data_2018A_JERCL5_cfg.py | 4e4cdff1713429757fa625b15a51587b2c4af4ac | [] | no_license | Sumantifr/ElectronicTopTagger_CMS | ae578c4b6911570516f55b661e14c5035e3b5947 | 76d31243d8595549655d9ca015a94629564e3f84 | refs/heads/master | 2023-01-21T05:22:57.239808 | 2021-04-21T16:08:55 | 2021-04-21T16:08:55 | 232,769,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,520 | py | from CRABClient.UserUtilities import config, getUsernameFromSiteDB
config = config()
config.General.requestName = 'crab_L5JERC_SingleMuon_2018A_Autumn18_JECV19'
config.General.workArea = 'crab_L5JERC_SingleMuon_2018A_Autumn18_JECV19'
config.General.transferOutputs = True
config.General.transferLogs = True
config.JobTy... | [
"s7384705218@gmail.com"
] | s7384705218@gmail.com |
909311dad73eabab7545e458675d1fa25cb23fde | ada2e259d86145dbdafecccfc66cc518d099b999 | /primal_dual_interior_point_NT_scaling.py | d18387156eef101a5f7bd48d7ae0c8f9b3bb87ed | [] | no_license | goodfish94/optimization_non_commuting_variables | 6f32d329c924925f20449bf965a985b86827089a | fa7f9c4bf1ff5a716823660937de4d3c20d8e347 | refs/heads/master | 2022-12-09T04:14:56.812431 | 2020-09-04T23:16:16 | 2020-09-04T23:16:16 | 292,963,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 31,227 | py | from dual import dual
from primal import primal
from constraint import constraint
import numpy as np
import time
from numpy.linalg import inv
from numpy.linalg import eigvals
from numpy.linalg import cholesky
from numpy.linalg import svd
from numpy.linalg import eig
from aux_function import solve
from aux_functi... | [
"noreply@github.com"
] | goodfish94.noreply@github.com |
f997fd9069d35aaaa8ecba2736f34ac589f5ecc0 | f7cf204ba2def42a3b5916b95133ac00c75a03ff | /myprojectvenv/bin/easy_install-3.8 | 0afa2864e46f80881695edb95b8bacef9d6d871d | [] | no_license | nishi1231/myproject_adocare | 4789271e129459ff8e74f3f4d6043b4ff56207a8 | b97272e729f77f2139421e7871827c1226dccc97 | refs/heads/master | 2023-07-31T09:52:58.269336 | 2021-09-30T06:30:06 | 2021-09-30T06:30:06 | 260,941,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | 8 | #!/Users/nishiyamashota/myproject/myprojectvenv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"n.i.s.h.i.4869@gmail.com"
] | n.i.s.h.i.4869@gmail.com |
c2712213a260a6c740b3ea4534a5daea6bd5ff27 | 202fab9762530adfd642ed52fa8088f13bbb7a44 | /Fima/app2/admin.py | 7a2800d355467981f956caed9ec77cd0abe47937 | [] | no_license | Prateek1337/Financial_Management_Webapp | 3d06d820ed4dace2fd07edac88088711c1efe2d3 | 71bf8401ffeaf6ab041cdb4031a545fc04950303 | refs/heads/master | 2020-08-24T17:29:08.075742 | 2020-06-10T16:03:22 | 2020-06-10T16:03:22 | 216,871,542 | 0 | 2 | null | 2019-10-27T16:25:15 | 2019-10-22T17:28:39 | Python | UTF-8 | Python | false | false | 148 | py | from django.contrib import admin
from app1.models import CurrentTransaction
# Register your models here.
# admin.site.register(CurrentTransaction)
| [
"saharshsonu40@gmail.com"
] | saharshsonu40@gmail.com |
0f34936dc8754dd1b30e5c0928f7b5b5f17b7bcd | 9f798471407af5567c9daf3ffc64922142808404 | /Programming_a2/quadratic.py | 4c4937a675331fa4fa5c4bf868e133c1ba2d1334 | [] | no_license | juliafox8/cm-codes | 4440cd75cfa143c35edcafd87330c0940b0d2532 | 7386eb7359a881dc8c9d8a275f7f53d2c4c5ce33 | refs/heads/main | 2023-07-13T22:22:09.959756 | 2021-08-30T15:42:38 | 2021-08-30T15:42:38 | 401,397,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | import math
def quadratic(a, b, c):
x1 = (-b + ((b ** 2) - (4 * a * c))) / (2 * a)
x2 = (-b - ((b ** 2) - (4 * a * c))) / (2 * a)
print ("[x1: ", x1, ", x2: ", x2,"]", sep = "")
| [
"noreply@github.com"
] | juliafox8.noreply@github.com |
2ca20828dac11e26d8d290a5d42bdc6d292f2dd4 | a3aabb5536ed0d71f61b7a99265020652c939af2 | /timetable/management/commands/getdata.py | 41c6fe8d345f34f90cfb317813e322dbae031e8f | [] | no_license | riddlore/InterTime | 911a8c9444f93fc3150fe341f8e2f1f80ecca806 | 565bb56c934106edf64ad03f07d639483fac9841 | refs/heads/master | 2021-01-24T22:02:19.825321 | 2014-01-23T22:17:48 | 2014-01-23T22:17:48 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 920 | py | from django.core.management.base import BaseCommand, CommandError
from timetable.models import Event, Modul, Source, Sportkurs, SportkursEvent
from timetable.parser import process
class Command(BaseCommand):
args = ''
help = 'Parser all sources.'
def handle(self, *args, **options):
kurse = Sportkurs.objects.coun... | [
"jnphilipp@gmail.com"
] | jnphilipp@gmail.com |
c339690c353b42c303c4c6cbac2d545ed7d08393 | bf574334a21f94fd012acf8b8672e7981454c981 | /alert.py | b3f6f0ed5e5a2375389465407369816494a6cfbe | [] | no_license | The-Turing-Machine/Erectus | 27d1ef2f39478cf6d865900bbb5bb233bbd12504 | d54a131a82df706238642f47aa32bf5e653b02b5 | refs/heads/master | 2021-01-10T15:10:05.561764 | 2016-04-11T17:00:57 | 2016-04-11T17:00:57 | 55,841,311 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 450 | py | import urllib
params = {
'api_key': 'c59837ab',
'api_secret': '4ff06601e5826199',
'to': 917838968853,
'from': 918588926652,
'text': 'WARNING! Your area may experience Earthquake after shocks. Kindly move to the government setted relief camps for your saftey. Nearest Relief Camp : [77.227420,28.656... | [
"ashishgupta.3197@gmail.com"
] | ashishgupta.3197@gmail.com |
3061d0751ab9b36b5cf5fa87cc94c7401bd2f4ab | a0bc8b2a66903d32550a620e679f644aefc629e1 | /app/views.py | e2502439034acc42d6fbf72329e109f182badf47 | [] | no_license | Saharsh904/razor_pay | 6a2ced740d5e34b5f3c1f764b2b8bc8173e4db68 | f5e818dac57ef07337a54bf843f02eb13017a626 | refs/heads/master | 2023-06-19T12:41:43.036927 | 2021-07-21T01:19:42 | 2021-07-21T01:19:42 | 387,865,507 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,354 | py | from django.shortcuts import render
import razorpay
from .models import Donation
# Create your views here.
from django.views.decorators.csrf import csrf_exempt
from django.conf import settings
from django.core.mail import send_mail
from django.template.loader import render_to_string
def home(request):
if reques... | [
"kumarsaharsh440@gmail.com"
] | kumarsaharsh440@gmail.com |
3f2079b1e4c24c815959e7a54257986eb1c35628 | 82199bfad7b77d62aa265c8ea463e20df6901801 | /global_variables.py | 0349063285f925772377b500255d2fdee5a359ce | [] | no_license | hyzcn/interactive-behaviour-design | 6119f8685b91226916f06678735fcfea5e6c27ab | 26faa63f0d1494dedd7dd9c3757ab08ec6473119 | refs/heads/master | 2020-05-16T09:04:42.342957 | 2019-04-22T19:26:27 | 2019-04-22T19:38:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 425 | py | # ALE is generally safe to use from multiple threads, but we do need to be careful about
# two threads creating environments at the same time:
# https://github.com/mgbellemare/Arcade-Learning-Environment/issues/86
# Any thread which creates environments (which includes restoring from a reset state)
# should acquire thi... | [
"matthew.rahtz@gmail.com"
] | matthew.rahtz@gmail.com |
142ba9e50afd87b782e27f5d0b0ed1509ac430e6 | 3f2d72e80a44044fccaeaab7073d24d95e6c62f1 | /exercise1/reverse_complement.py | 380c090d3215432aa973391f850fa7c63217aaa2 | [
"CC-BY-4.0",
"MIT"
] | permissive | glennwli/bootcamp | 61b78032a5598e1d312deec9fc4aa69a1c70f864 | f72cc5ee29ba2ac2bc80c221041f0c938268ce9a | refs/heads/master | 2020-12-02T08:14:59.656775 | 2017-07-10T23:04:06 | 2017-07-10T23:04:06 | 96,794,077 | 0 | 0 | null | 2017-07-10T15:40:06 | 2017-07-10T15:40:06 | null | UTF-8 | Python | false | false | 936 | py | def complement(base, material = 'DNA'):
"""This makes a complement of each base"""
# we will use this to complement each base individually
if base in 'Aa':
if material == 'DNA':
return 'T'
elif material == 'RNA':
return 'U'
elif base in 'UuTt':
return 'A'
... | [
"glennli@mit.edu"
] | glennli@mit.edu |
8062794caa0e591317615274788b655fd21e5d0b | 002add10dd206a38482d8641dd0df3117316f5dd | /migrationlib/os/utils/restore/RestoreStateOpenStack.py | d72c9792252729c41179a3eb1de1a082d401be3a | [
"Apache-2.0"
] | permissive | asvechnikov/CloudFerry | 42ececf48b54f7c9c0779119de7214aaf5eef3b0 | 054fd818c5ac65c5b99c9d4cae6793f67aff0d65 | refs/heads/master | 2021-01-18T09:24:43.011471 | 2014-11-07T11:48:39 | 2014-11-07T11:48:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,206 | py | # Copyright (c) 2014 Mirantis Inc.
#
# 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, so... | [
"dsozinov@mirantis.com"
] | dsozinov@mirantis.com |
e79e06cdb3c892d0335ad8066cd1086df0be5530 | 72dbfd37a43199c4a74cb7696ea2b28dbc3c4702 | /tutorial/tutorial/items.py | 26592086ae71388b4b096975cf9c3fe07f1c9ba9 | [] | no_license | denmouse/smtcrawel | da0ef41627e745ac8d48c5a6172f79f7fbd31a9e | d220aaa89f5a450f51cf6d951d68bbb4ad3e60a2 | refs/heads/master | 2021-01-12T01:02:42.053518 | 2017-08-18T23:08:11 | 2017-08-18T23:08:11 | 78,336,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
from scrapy.item import Item, Field
class TutorialItem(scrapy.Item):
# define the fields for your item here like:
# name = scrapy.Field()
title... | [
"root@li82-254.members.linode.com"
] | root@li82-254.members.linode.com |
72d0ee4f03607613f6c8d8670c52490c128c5169 | d4165cff4f3f009420749b85197431bfc1df5922 | /frontend/frontendfactory.py | 9fda688f23638e3473da419242b730859d5077d7 | [] | no_license | smuniz/point-source | 16e39a3aed4e3b2570177e7c21397d56e45b2675 | a35a25cdb810b7e86457cb74d0641df23bdfdac2 | refs/heads/master | 2021-03-27T16:37:46.102970 | 2017-03-15T14:10:29 | 2017-03-15T14:10:29 | 24,759,005 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,730 | py | #
# Copyright (c) 2017 Sebastian Muniz
#
# This code is part of point source decompiler
#
from misc.factory import Factory, FactoryException
import frontend_x86
reload(frontend_x86)
from frontend_x86 import FrontEndX86, FrontEndX86Exception
import frontend_x86_64
reload(frontend_x86_64)
from frontend_x86_64 import ... | [
"sebastianmuniz@gmail.com"
] | sebastianmuniz@gmail.com |
ed1ac5ec2a73929c3a74c239f69b4b514bdcdec1 | 3e594aedf182ccaa7958314fd8d7407b86526731 | /data.py | 1427da596745877804917eea37f6ad4234577bbc | [] | no_license | agrimwood/multi_task | b83c8d8a016ba7e593a9115891ad9b1ec55c23dd | c2b97eaebfe8380f332bd567aa83b32c0038c3e2 | refs/heads/master | 2023-02-20T23:16:57.369863 | 2021-01-25T18:20:46 | 2021-01-25T18:20:46 | 305,517,556 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,362 | py | """ Data loader for LTSM-net """
import datetime
import pandas as pd
from sklearn.utils import class_weight
import os
from tensorflow.keras.preprocessing import image as krs
from tensorflow.keras import applications as mn
from PIL import Image , ImageOps
import random
import numpy as np
# write user-defi... | [
"alexander.grimwood@ucl.ac.uk"
] | alexander.grimwood@ucl.ac.uk |
3db39a881966fe91978f0466727d388dbb672d3a | 7d006c958af758436343d6650d1047f3e6ef5240 | /crowmountain/crowmountain/settings.py | aa56377d446ec3d85d9b138c8588008c611f19c7 | [] | no_license | SarahBethCox/CrowMntFire | 012186ae94b5ec118acae68d800a42c086d7a350 | a147a23a2b096897a469173da99db8cd350f2fb8 | refs/heads/master | 2021-03-09T20:07:55.340303 | 2020-05-04T13:48:48 | 2020-05-04T13:48:48 | 246,375,369 | 0 | 7 | null | 2020-05-04T13:32:17 | 2020-03-10T18:17:07 | Python | UTF-8 | Python | false | false | 3,223 | py | """
Django settings for crowmountain project.
Generated by 'django-admin startproject' using Django 3.0.4.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.0/ref/settings/
"""
import ... | [
"scox20@atu.edu"
] | scox20@atu.edu |
be5db0eeae5cf26bdc23b243a94011090ecce1d9 | 7a851e802f5021bd4c7dd5440e429d60c26649b1 | /pyworks/mp2.py | f5af2222a64533be4ae53fcb6eef07cd2b736899 | [] | no_license | kumak127/Python-introducing | 3c692d629402dc72417d12dae4068b85bd2dd15a | 73cd887f950cd91160b5e1dae9f61cca3c593b10 | refs/heads/master | 2022-12-28T12:27:46.379814 | 2020-09-29T10:00:03 | 2020-09-29T10:00:03 | 299,574,877 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 523 | py | # python3
# mp2.py - multiprocess.terminate関数のテスト用
import multiprocessing, time, os
def whoami(name):
print(f"i'm {name}, in process {os.getpid()}")
def loopy(name):
whoami(name)
start = 1
stop= 100
for num in range(start, stop):
print(f"\tNumber {num} of {stop}. Honk!")
... | [
"noreply@github.com"
] | kumak127.noreply@github.com |
9b43ee53672fb7b8aa059524c4d04d2b92fd2289 | 689a557b32161faafeb0b68076bca96b65c320ce | /restourant/migrations/0003_auto_20170726_1525.py | 3156e7bad15655147d6acc6853903542146c11b9 | [] | no_license | FNSalimov/new | 5d957a5e2543bcecece2fa88e4ff61030eb58203 | e2b15e5e83dbc22d776112fc5859219d7f625e4f | refs/heads/master | 2021-01-01T18:36:54.171096 | 2017-07-27T06:27:24 | 2017-07-27T06:27:24 | 98,386,102 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 740 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2017-07-26 12:25
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('restourant', '0002_order_orderdish'),
]
operations = [
migrations.RemoveField(... | [
"you@example.com"
] | you@example.com |
1fa7e9fa75d8b459cfa080a0d6e94a8b934b495e | 25f4fb575faa264f39f4044c18012a375e7bafc0 | /intent_handlers/get_intents.py | 3292a40d2b1607bce2481f5b7750fda3da4ac204 | [] | no_license | Kabilesh93/Chatbot | f3d4a400e15dfb544a93815774c5497089bd7335 | 8656f0073bb091bd2c5ce2dc619be8aa52042542 | refs/heads/master | 2021-07-16T19:20:39.472436 | 2019-05-02T06:22:13 | 2019-05-02T06:22:13 | 179,050,176 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,831 | py | import fasttext
def get_intent_en(sentence):
root_english = fasttext.load_model('./intent_models/english_intents/root_english.bin', label_prefix='__label__')
english_all = fasttext.load_model('./intent_models/english_intents/english_all.bin', label_prefix='__label__')
english_cpl = fasttext.load_model('.... | [
"kumar.kabilesh93@gmail.com"
] | kumar.kabilesh93@gmail.com |
8519508e4603dd2e130c752354be03bd1e5116b5 | 6cb32cc2ee3ced7ea1a710283633d2cd76c42232 | /commercialoperator/components/organisations/emails.py | cc8911455d416c0462204f47e0455ba75fcf812b | [
"Apache-2.0"
] | permissive | dbca-wa/commercialoperator | 913889973066a5e8bd399835cfbaf948af4ea596 | e29306b1c6213f0f37a6a190e439745965ee3e32 | refs/heads/master | 2023-08-31T01:19:06.803451 | 2023-07-28T01:40:38 | 2023-07-28T01:40:38 | 239,469,350 | 0 | 10 | NOASSERTION | 2023-09-07T07:25:58 | 2020-02-10T09:07:54 | Python | UTF-8 | Python | false | false | 16,300 | py | import logging
from django.core.mail import EmailMultiAlternatives, EmailMessage
from django.utils.encoding import smart_text
from django.core.urlresolvers import reverse
from django.conf import settings
from commercialoperator.components.emails.emails import TemplateEmailBase
logger = logging.getLogger(__name__)
S... | [
"asi@dpaw.wa.gov.au"
] | asi@dpaw.wa.gov.au |
6bf9cdfd3d12f9b6b70c53f90d4cc51c17ecdebb | b83bd5b9b0403223e6a1fbd370dbe74091835534 | /annealing_simulations/FlexWilliams7TL_DF2003_2019ffb_1024xC16_anneal_340-240-340K_100ns/HPC_input_gen_annealing.py | 7a723731800776ee3063b05f5f5596ef4687738d | [] | no_license | eboek/AlkaneStudy.Gromacs | e7403c2de9a16c7df3f7927952c773af8748346c | 88ac8d2248a8638f34ec5106bef0a549d99a3620 | refs/heads/master | 2020-09-03T16:49:12.200265 | 2019-11-01T14:40:29 | 2019-11-01T14:40:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,480 | py |
import sys, os
# Tell script directiory of HPC input gen module
gmxModDir = os.path.join(os.pardir, 'gromacs_hpc_input_gen')
sys.path.append(gmxModDir)
# Load default mdp dictionaries, simulation class
import default_mdp_dicts as mdp
from sim_class import SimGromacs, finalize_simulation
outputDir = os.getcwd()
curr... | [
"stephen.burrows@hotmail.com"
] | stephen.burrows@hotmail.com |
11b133f2953ec9b1dd48a1bc46505c9513aa2dd5 | 4f399f904c1c751299cc60470ff675aba08d66c1 | /elice-algorithm/행성 조사.py | 183d9cce58f347ec45d18cbee5fff3eb9b98b331 | [] | no_license | rheehot/codingtest-2 | 677bf0ead976e1d9b66b36017a29057946316119 | cf9308f8445e5277dc91d06a93fa67d89074d6b1 | refs/heads/master | 2023-04-24T05:10:46.487001 | 2021-05-18T14:56:42 | 2021-05-18T14:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,065 | py | def solution(m,n,maps,a,b,c,d):
info = {'S' : 0, 'O' : 0, 'R' : 0}
for i in range((a-1), (c)):
for j in range((b-1), (d)):
info[maps[i][j]] += 1
return list(info.values())
if __name__ == '__main__':
m,n = map(int,input().split())
k = int(input())
maps = [input() ... | [
"youngminieo1005@gmail.com"
] | youngminieo1005@gmail.com |
7263a68d87f21b4ea91d391b6d4f9ed8b297e855 | f82757475ea13965581c2147ff57123b361c5d62 | /gi-stubs/repository/Clutter/TextPrivate.py | b4fbac1eab470075b4b2e86eeac89087a5a7d5ff | [] | no_license | ttys3/pygobject-stubs | 9b15d1b473db06f47e5ffba5ad0a31d6d1becb57 | d0e6e93399212aada4386d2ce80344eb9a31db48 | refs/heads/master | 2022-09-23T12:58:44.526554 | 2020-06-06T04:15:00 | 2020-06-06T04:15:00 | 269,693,287 | 8 | 2 | null | 2020-06-05T15:57:54 | 2020-06-05T15:57:54 | null | UTF-8 | Python | false | false | 4,373 | py | # encoding: utf-8
# module gi.repository.Clutter
# from /usr/lib64/girepository-1.0/Clutter-1.0.typelib
# by generator 1.147
"""
An object which wraps an introspection typelib.
This wrapping creates a python module like representation of the typelib
using gi repository as a foundation. Accessing attributes of ... | [
"ttys3@outlook.com"
] | ttys3@outlook.com |
e4379a99b14799daf5bc0222f50f423a0529080b | f9be9d0ff9e92eace1f983b9d526e0a72760d1a4 | /vending_machine.py | 534c26bde7179c6a8ad64cd9946daf860ad43901 | [] | no_license | jtuck15/test-driven-development-python | 71fa171e7f30199967f3521922710f4f5a817fb0 | 784fc19504ec0e037162e9122fafcd43fc4b15fa | refs/heads/master | 2020-04-23T16:48:49.798156 | 2019-02-19T22:24:56 | 2019-02-19T22:24:56 | 171,310,930 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 776 | py | from byotest import *
usd_coins = [100, 50, 25, 10, 5, 1]
euro_coins = [100, 50, 20, 10, 5, 2, 1]
def get_change(amount, coins=euro_coins):
change = []
for coin in coins:
while coin <= amount:
amount -= coin
change.append(coin)
return change
test_are_equal(get_cha... | [
"jim.tuck15@gmail.com"
] | jim.tuck15@gmail.com |
d494097bbf187d0379fca24dc86a72af79decb28 | 7fa71198fcd80d78c55090616a3929f88bd749f7 | /Spider/you-get_download_video.py | 4836ee2d2b07bfb6b2685d48857832091510333f | [] | no_license | py503/win10_pycharm_project | 97a7ee99dae7189e0e14ade232bcf18ebda1ba10 | 5a12e56bb72b22231c72c3b968278d28977f94fe | refs/heads/master | 2020-08-18T19:50:46.866409 | 2019-10-25T07:36:25 | 2019-10-25T07:36:25 | 215,827,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import os
path = r"C:\\Users\\Administrator\\Desktop\\youtube\\"
# 使用you-get 下载网络视频
def download(url):
cmd = 'you-get -o {} {}'.format(path, url)
print(cmd)
os.system(cmd)
print("下载完成")
if __name__ == '__main__':
# url = input("请输入你要下截视频的url: ")
url = "https://v.youku.com/v_show/id_XNDI0N... | [
"172409222@qq.com"
] | 172409222@qq.com |
f44499d267dd8e234c6c753a888ab64ee817e509 | d63c4b9e05638d6abb68333edf43936134b97570 | /tests/core/models/test_template.py | 981933fcd9a8e20f4d54ca7c320469541ac33f2a | [
"Apache-2.0",
"Python-2.0"
] | permissive | SwissDataScienceCenter/renku-python | 316dc83646e9014803dff268438d34e844ba0b54 | e0ff587f507d049eeeb873e8488ba8bb10ac1a15 | refs/heads/develop | 2023-08-31T20:33:09.342385 | 2023-08-24T08:15:46 | 2023-08-24T08:15:46 | 100,947,017 | 30 | 25 | Apache-2.0 | 2023-09-12T21:52:34 | 2017-08-21T11:49:21 | Python | UTF-8 | Python | false | false | 9,532 | py | #
# Copyright 2019-2023 - Swiss Data Science Center (SDSC)
# A partnership between École Polytechnique Fédérale de Lausanne (EPFL) and
# Eidgenössische Technische Hochschule Zürich (ETHZ).
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licen... | [
"noreply@github.com"
] | SwissDataScienceCenter.noreply@github.com |
1e3af897399b49e9505ad1e9fd475ae609f63e29 | 29fd1454d19dc5682f751cff58e85023fe1a311d | /py/problems/datachallenge/tests/util.py | c2e8866bc24e6521d16742f8bc05977ce6be5f2d | [] | no_license | rags/playground | 5513c5fac66900e54a6d9f319defde7f6b34be5e | 826ad4806cacffe1b3eed4b43a2541e273e8c96f | refs/heads/master | 2023-02-03T04:30:46.392606 | 2023-01-25T13:45:42 | 2023-01-25T13:45:42 | 812,057 | 0 | 6 | null | 2022-11-24T04:54:25 | 2010-08-02T10:39:19 | Python | UTF-8 | Python | false | false | 859 | py | import sys
import contextlib
#comment this like uncomment next for python 2.7.x
from io import StringIO as SOut #3.x
#from StringIO import StringIO as SOut #2.7.x
from collections import Iterable
import re
@contextlib.contextmanager
def mock_console_io(input_str):
oldout, oldin = sys.stdout, sys.stdin
try:
... | [
"r.raghunandan@gmail.com"
] | r.raghunandan@gmail.com |
96d5c25adfdc1afb3dd294bdc4c627890827a2eb | fea771620aa3e6702ff7f2ca7d39c00faeeec6dd | /Python/5-starter-files/solution.py | 519055f1806c57ce233aa6b0a5324034f4aa8367 | [] | no_license | edmond-chu/OldStuff | c863e16333da8188e489bf3ff84c850aed2840e8 | d8ae7a74fdbebe47e22ee3fd16902c55302aeac9 | refs/heads/main | 2023-05-29T07:18:40.221968 | 2021-06-10T22:16:41 | 2021-06-10T22:16:41 | 375,829,528 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 582 | py | # Given a sorted array A of size n (with n at least 1) where A is uniquely
# filled with integers in the range 1 to n + 1 such that there is one “missing
# integer” (the “missing integer” is defined as the integer in the
# range 1 to n + 1 that is not in A), return that “missing integer”.
# Return -1 if the input is ... | [
"echu12@umd.edu"
] | echu12@umd.edu |
180427ed2a72ccf7a27005623a6bfcd708d778aa | 7e31d4d5d273c3812c5a9670e53d9bcc94730175 | /EBS/ouforms/models.py | 88ac60c4b9742d5fb15b93fe9c05f5606deea240 | [] | no_license | JChen6592/SE_ElectronicBusinessSystem | c654a35048317d95cb20e4ef5fc4b0517e61d196 | ad2a0f06f1028a326dc1542a7c22bb851277023d | refs/heads/master | 2020-05-23T12:43:51.555580 | 2019-05-16T01:18:59 | 2019-05-16T01:18:59 | 186,763,571 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 665 | py | from django.db import models
from django.utils import timezone
# Create your models here.
applying = (
('OU', 'Apply for Ordinary User'),
)
class OUForm(models.Model):
subject = models.CharField("Subject", max_length = 100, choices = applying)
first_name = models.CharField(default='', max_length=20)
last_name = m... | [
"PJ@Johns-MacBook-Pro.local"
] | PJ@Johns-MacBook-Pro.local |
7c078ebae1b3d841abcf5d8b430fd8f19475b58d | 5e46a4506e002db6d62e4a6ab38c7af1fa5c0eb9 | /hw1/code/5/test.numpyExtend.py | 51382fb73d66e336a1bcc43096a03fa21b6dd1be | [] | no_license | king1224/Cryptography-and-Network-Security | 050ff51033290674f301d87a8ec0d8db18261f4a | f51b01b65a48f3a7e0d743d2d3cf2a68c1c18f52 | refs/heads/master | 2020-05-05T10:14:01.216079 | 2019-04-07T13:24:18 | 2019-04-07T13:24:18 | 178,863,981 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,912 | py | #!/usr/bin/python
from numpyExtend import getNonZeroInRow;
from numpyExtend import getNonZeroInColumn;
from numpyExtend import changeColumn;
from numpyExtend import changeRow;
import numpy as np;
def returnDefaultList():
return [
[1, 1, 0 , 0],
[1, 0, 1 , 0],
[1, 0, 0 , 1],
[0, 1, 1 , 0],
[0, 1, 0 , 1],
... | [
"a0987856762@gmail.com"
] | a0987856762@gmail.com |
87db130e21a172d48ce24cd1480dd27f518ba1f0 | 8313b823a755694cfd71e57ad63760ba1c7009d4 | /Classification/kernal_SVM.py | adcd73f8c99e84b0ddc56f69991b888dba8e9c20 | [] | no_license | KRBhavaniSankar/Machine-Learning | 49063374a8b243563212cf52a933da03b41bb576 | 339f146362aa5960794d8ddcef50d502955c24c4 | refs/heads/master | 2021-06-07T17:09:57.259971 | 2020-02-18T13:40:03 | 2020-02-18T13:40:03 | 143,809,260 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,638 | py | # Kernal-SVM Classification
# Importing the libraries
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
# Importing the dataset
dataset = pd.read_csv('Social_Network_Ads.csv')
X = dataset.iloc[:, [2, 3]].values
y = dataset.iloc[:, 4].values
# Splitting the dataset into the Training set and Test ... | [
"krbhavanisankar@gmail.com"
] | krbhavanisankar@gmail.com |
97b6760b3c49af66653a8bbdce4d15bc99b5d52c | cd28af2edfe92b20a8d438eccd1be4dca82926fb | /Servo.py | 86de271770ca242cacd6cf15dc60f93b09f9f702 | [] | no_license | DatPham123/MyApplication | ccdb30203c434d0bde87568775009fe5291eeeb8 | f5b7aa8548e26a85dc882e29d3978af1b0207968 | refs/heads/master | 2020-04-23T18:07:17.505310 | 2019-04-23T01:12:47 | 2019-04-23T01:12:47 | 171,355,425 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | import RPi.GPIO as GPIO
import time
control = [5,5.5,6,6.5,7,7.5,8,8.5,9,9.5,10]
servo = 11
GPIO.setmode(GPIO.BOARD)
GPIO.setup(servo, GPIO.OUT)
p= GPIO.PWM(servo, 50) #50hz frequency = 20 ms
p.start(2.5) #starting duty at 0 degree
try:
while True:
for x in range(11):
p.ChangeDutyCycle(control[x])
time.... | [
"noreply@github.com"
] | DatPham123.noreply@github.com |
5feaa7de4cb28d27aa5cf50cc0daa4d89a2fed56 | a590cb0c9b232ad98d17a9917a36930c6a2c03f8 | /8kyu/8kyu interpreters HQ9.py | b0236dc360274759dbaabb6e495a1fd40a998e01 | [] | no_license | AbbyGeek/CodeWars | 6e10c10cbdb11f2df17a657d11ff5ffa79a5fb0b | 64dddda9f2a14a0592cc946b35302c4bd9bc569e | refs/heads/master | 2020-12-21T00:14:53.665879 | 2020-01-26T01:16:41 | 2020-01-26T01:16:41 | 236,252,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,148 | py | def HQ9(code):
if "9" in code:
return "99 bottles of beer on the wall, 99 bottles of beer.\nTake one down and pass it around, 98 bottles of beer on the wall.\n98 bottles of beer on the wall, 98 bottles of beer.\nTake one down and pass it around, 97 bottles of beer on the wall.\n97 bottles of beer on the wal... | [
"abbyrosewest@gmail.com"
] | abbyrosewest@gmail.com |
f2713f64b045adf1069395bfe4d9c24d90f7c5e2 | 93da9b43ae9b0ec648cdaf448a705821fb8f91b1 | /LostMobileReporter/lostupdater/migrations/0001_initial.py | 1db6b966da90c1092fd12afcbd24405ddeb4f223 | [] | no_license | JigarJoshi04/LostMobileReporter | f926e27eac39f8207fb78c3c4873a64ad12fffdc | 4506970ec4de9a1da8425301dffb388a62e531d0 | refs/heads/master | 2022-11-26T05:12:39.369837 | 2020-07-16T07:23:17 | 2020-07-16T07:23:17 | 280,083,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 767 | py | # Generated by Django 2.2 on 2020-07-16 05:34
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='ReportModel',
fields=[
('id', models.AutoFiel... | [
"jigar.pj@somaiya.edu"
] | jigar.pj@somaiya.edu |
adcc99a09b7467c4aa785baaf844f7c46206fc94 | d6b262ba14567b97a114c75f8aa358deb17740e4 | /chaos/provider.py | 9fb2d4c3abffc37f0d2bf6780ef91568dfe15255 | [] | no_license | WilixLead/script.elementum.chaos | 2d8f521a0122c5e1024bbf19798389ab91b112d5 | cb451cd4f666a07ddaa33f167051747e15af3ac5 | refs/heads/master | 2021-04-26T23:18:18.065411 | 2018-03-05T19:19:00 | 2018-03-05T19:19:00 | 123,966,797 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 13,393 | py | # -*- coding: utf-8 -*-
"""
Provider thread methods
"""
import os
import re
import json
import urllib
import xbmc
import xbmcaddon
from client import Client
from elementum.provider import log, get_setting, set_setting
from providers.definitions import definitions, longest
from utils import ADDON_PATH, get_int, clean_... | [
"lead@w.wilix.ru"
] | lead@w.wilix.ru |
8a3e322773fda54fc1bccdaf01f3d1691fc37bc6 | fc5c86802bf1e3a4cbe7d9bf933e644a60f4ef6c | /apps/quotes/views.py | a47de24ed55058d26ab8be5dae53343ad97f5ef8 | [] | no_license | ryandecoster/pythonexam | ec4cc62d27f4b113e8548cd18c7333edc4aeba6c | 333fe8048d92b1254a4080585b79a9e1baba0071 | refs/heads/master | 2020-03-21T15:54:28.533848 | 2018-06-26T18:31:52 | 2018-06-26T18:31:52 | 138,739,557 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,680 | py | from django.shortcuts import render, HttpResponse, redirect
from .models import User, Quote, UserManager, QuoteManager
from django.contrib import messages
from django.db.models import Count
import bcrypt
def index(request):
return render(request, 'quotes/index.html')
def login(request):
if User.objects.filte... | [
"ryandecoster26@yahoo.com"
] | ryandecoster26@yahoo.com |
0dad5e1d305a873fa56187c074313e2abafcd989 | a57a79bd2cb2397c6d879751e7041e9142390acc | /apps/tags/management/commands/migrate_tags.py | ba82af97368ac66dbcffd52844782f5c57617454 | [] | no_license | cephey/country | b41e85bfd5df20caec5d6f54b409ffe4f1b11ac3 | 774800e79417122876119246bb5b6e9b2e186891 | refs/heads/master | 2021-01-22T23:15:46.934125 | 2017-09-10T21:53:16 | 2017-09-10T21:53:16 | 85,618,298 | 0 | 0 | null | 2017-05-11T11:34:16 | 2017-03-20T19:36:45 | Python | UTF-8 | Python | false | false | 911 | py | import csv
from django.conf import settings
from django.core.management.base import BaseCommand, CommandError
from apps.tags.models import Tag
class Command(BaseCommand):
help = 'Migrate tags from csv'
def add_arguments(self, parser):
parser.add_argument('--path', help='/path/to/file.csv')
def... | [
"andrey.ptitsyn86@gmail.com"
] | andrey.ptitsyn86@gmail.com |
04f24b285f9fbb2a43edf32265cd0119c8b0abd0 | 6b46d1ed3eade452255016ea31452494b21ad879 | /model.py | 38a287831d76ba7725b54870051e2262ae1b60e5 | [
"MIT"
] | permissive | yang-jiawen/snphot | c994357bd25f00d041323ab1f1f437ca6a7adcb6 | b7d5d5e33bb2d4f1c8902f55043b1899d3eeca55 | refs/heads/main | 2023-08-26T16:17:27.398725 | 2021-11-05T02:36:18 | 2021-11-05T02:36:18 | 424,099,280 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,418 | py | from scipy.interpolate import interp1d
import numpy as np
import pycmpfit
# phase, mean, _, _, _, _, = np.loadtxt(
# '/Users/jiawenyang/Packages/LCfitter/LCfPCA_He/bandSpecific_B.txt',
# skiprows=1, unpack=True) # FIXME
def stretch_model_val(t, template_phase, template_mean, theta,
fit_ran... | [
"37666860+jiaweny@users.noreply.github.com"
] | 37666860+jiaweny@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.