blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3df555d0e491ab0d8a6876dfbca0bd6868a7d90 | 8656da2c1ad850de4f8c9a310c0cbd187111e61a | /Solutions/Set-01/TestChallenges.py | 0bba34cdbe4d5df8c151edba09934e221f1fd9ca | [] | no_license | zeecnla/CryptopalsCryptoChallenges | d3ad7c72c01bb05d4e891a5c54e547645147c3a4 | 46d57dd0f8770880611dd80b218c13e1e965fef0 | refs/heads/master | 2021-09-09T20:32:32.591638 | 2018-03-19T15:22:48 | 2018-03-19T15:22:48 | 107,307,661 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,215 | py | import Challenge01
import Challenge02
import Challenge03
import Challenge04
import Challenge05
import unittest
# Will begin to review the challenges to finally complete them
class TestChallengesSet1(unittest.TestCase):
def test_challenge_1(self):
answer = "SSdtIGtpbGxpbmcgeW91ciBicmFpbiBsaWtlI... | [
"csrmelchor@gmail.com"
] | csrmelchor@gmail.com |
31d7b4e178e802fb9796fbd72f7a12870fc5c5d1 | 93cc63c3bb664346a63736d30c71f7ef1f37849e | /client_app/management/commands/create_client.py | 1e7b16a4382aaac3b582813724fa5c96d649058c | [] | no_license | bikashsaud/client | 84a6baf9a220f1bfe72c289620fae9ac3d84ffba | 9123a620a22775ddf8e4db3179e967d03e37c5af | refs/heads/master | 2023-01-24T01:24:24.530842 | 2020-12-03T16:57:43 | 2020-12-03T16:57:43 | 318,256,131 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 504 | py | from client_app.models import Client
from django.core.management.base import BaseCommand
from django.utils.crypto import get_random_string
from django_seed import Seed
seeder = Seed.seeder()
class Command(BaseCommand):
help = 'create 10 clients'
def handle(self, *args, **kwargs):
Client.objects.all().... | [
"saudbikash514@gmail.com"
] | saudbikash514@gmail.com |
362467cd5e32cd4dcb90e29eaca44d0b17706341 | 3b030444b2d1d9d57197ccba41387b447114b210 | /config.py | fb716512cf2763712c551c3b4015a4743de47d8e | [] | no_license | popfido/PairCNN-Ranking | ec85e45ef54f05a6b1778297cd316b2fa8a23a90 | b29bbe774888e154a8bad5dafa67ec24aba33256 | refs/heads/master | 2020-03-09T10:21:58.509310 | 2018-04-09T09:27:02 | 2018-04-09T09:27:02 | 128,735,443 | 14 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,261 | py | # coding:utf8
import warnings
class DefaultConfig(object):
env = 'default' # visdom 环境
model = 'PairCNN' # 使用的模型,名字必须与models/__init__.py中的名字一致
train_dir = './'
train_data_root = './data/train/' # 训练集存放路径
validate_data_root = './data/validate' # 验证集存放路径
test_data_root = './data/test/' # 测... | [
"wanghailin317@gmail.com"
] | wanghailin317@gmail.com |
ca29a865d887f29d1515775ed8d07b25e1e41db0 | c3bf5f549830623c723d053e9f61d40c6470bd5a | /scripts/filter_mutations/02_generate_csv.py | aa834a23f33513504a3817483b72d985656380c5 | [] | no_license | yeemey/dvh_mms2 | 93117172095640620939249d912464ae56ec315e | 768186e01e5212846862faf7073140a0ce050fb1 | refs/heads/master | 2020-05-26T02:17:46.627745 | 2019-08-01T00:29:14 | 2019-08-01T00:29:14 | 84,984,912 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,601 | py | import numpy as np
import pandas as pd
import tidy_breseq as tb
# Start data input
input_dir = '~/Repositories/dvh_mms2/depth_mle/'
d2mut, d2ev = tb.subset_gd_to_df(input_dir + 'd2/annotated.gd', 'D2-0', 'D2', '0', cov=True)
m1mut, m1ev = tb.subset_gd_to_df(input_dir + 'm1/annotated.gd', 'M1-0', 'M1', '0', cov=True)
... | [
"yeemey@users.noreply.github.com"
] | yeemey@users.noreply.github.com |
033e102e9ec3869d874a2d7ed46fda3ca7595e17 | b2d9974c711c7271a67759c205dbf774103ac870 | /adminregistrationfinal/settings.py | 53b10cc203204c1d2ac3948f5f756550851f4a78 | [] | no_license | Vidhyasagarudayakumar/adminregistrationfinal | 9a10b29450d5dedb474d0d2de771eee21ad9b882 | 5b2f9f67f4155106d94c231f692547fd47d04da9 | refs/heads/master | 2020-05-23T09:10:24.377716 | 2017-01-31T16:49:25 | 2017-01-31T16:49:25 | 80,444,555 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,367 | py | """
Django settings for adminregistrationfinal project.
Generated by 'django-admin startproject' using Django 1.10.4.
For more information on this file, see
https://docs.djangoproject.com/en/1.10/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.10/ref/settings/... | [
"sagar.vidhya816@gmail.com"
] | sagar.vidhya816@gmail.com |
53e59ee464307278ddc231f1e727417ac63c6650 | d3bf6f4f6c5ee567057a8b8b97f72ace2e9159e0 | /sample/migrations/0010_auto_20210929_1728.py | ca1bacd70e58b1c0a3aebb7a755fa63c4c9e33ee | [] | no_license | shelu-edi/idesiignred | 82a56f7a9bcaf8f116ae60f2b7af6f043941d22c | 5fe37605a73d97005462c3d81a186a8bac504b1a | refs/heads/main | 2023-08-29T12:42:10.669403 | 2021-10-18T06:06:30 | 2021-10-18T06:06:30 | 406,770,818 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,913 | py | # Generated by Django 3.1.2 on 2021-09-29 11:58
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('sample', '0009_auto_20210929_1723'),
]
operations = [
migrations.RenameField(
model_name='boyspant',
old_name='pain_cost',
... | [
"61077989+shelu-edi@users.noreply.github.com"
] | 61077989+shelu-edi@users.noreply.github.com |
1828255c8961c73638bab006e6d09f999240db93 | 4445c7d94554d548aedd8f7220f1bf7007594104 | /helper.py | 07c1f44fdf3a76da8a57deb2fdf933829713f9c2 | [] | no_license | Justin19960919/Chess-Game | ebf668a7fd9bcbd4a1ee4b9bbd5d932de44ab3d1 | 333c66363910d05c91d2de242359ebf645edd268 | refs/heads/main | 2023-03-06T03:58:19.966962 | 2021-02-20T05:24:52 | 2021-02-20T05:24:52 | 340,567,503 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 778 | py | from constants import SIZE_OF_SQUARE
def get_coordinates_given_index(x_index,y_index):
'''
Method -- get_coordinates_given_index
Given x_index and y_index of the positions array in
gamestate, we return the bottom left corner coordinates
of the square
Parameters:... | [
"jclee1996@gmail.com"
] | jclee1996@gmail.com |
e4e396bdb9c9ff1453ea79cb8ca39725235f75db | 8e1f493ce9fc34b42637bc7d69560aab20c384a3 | /simple_filter/scripts/simple_kalman.py | 7f10fadc9c8eb8b01238b66e7502fb534f4f3abd | [] | no_license | AmyPhung/comprobo20 | 6f980a82174b3938527fb5939cdd539420aaff42 | 2eff4918275542d2d28828df97c8100d2391cfb0 | refs/heads/master | 2023-04-28T21:49:52.085491 | 2021-05-17T22:27:14 | 2021-05-17T22:27:14 | 290,074,022 | 0 | 0 | null | 2020-08-25T00:47:21 | 2020-08-25T00:47:21 | null | UTF-8 | Python | false | false | 4,471 | py | #!/usr/bin/env python3
"""
This script implements a Kalman filter for the system:
x_0 ~ N(0, sigma_sq)
x_t = x_{t-1} + w_t, w_t ~ N(0, sigma_m_sq)
z_t = x_t + v_t, v_t ~ N(0, sigma_z_sq)
"""
import matplotlib.pyplot as plt
import rospy
from numpy import arange
from numpy.random import randn
from math... | [
"paullundyruvolo@gmail.com"
] | paullundyruvolo@gmail.com |
e39f77286b08e140ace992fada902db7cebe9a2d | 38ba110ce37dbb930c76f2e33afcfbe416f26ee1 | /analysis/pyFinder/entryChecker.py | 028cf171b9f566596fa62c044e1ac227c9a3b508 | [
"Apache-2.0",
"BSD-2-Clause"
] | permissive | gitter-badger/DockerFinder | 295d17aebd3820ac745ed10b9cd8d60a7a34498e | a8d0a99969a101543275192272140aa5904220e2 | refs/heads/master | 2020-05-23T10:17:23.313005 | 2017-01-30T10:33:33 | 2017-01-30T10:33:33 | 80,413,188 | 0 | 0 | null | 2017-01-30T10:50:46 | 2017-01-30T10:50:46 | null | UTF-8 | Python | false | false | 2,334 | py | from pyfinder import Checker
from docopt import docopt
import time
from os import path
import logging.config
__doc__= """Checker.
Usage:
entryChecker.py run [--interval=<10>] [--path-logging=</data/crawler/log/stats.log>] [--key=<images.scan>] [--amqp-url=<amqp://guest:guest@rabbitmq:5672>] [--ex=<dofinder>] [--queu... | [
"davideneri18@gmail.com"
] | davideneri18@gmail.com |
2c797dce206728933f0809dc69e3834e9b33077d | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/span/ldestination.py | 9a6afadcebc410e9ab61d574a95437569b884b82 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,545 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
a1a41d18acaad2da2a50f52d33f420d7b5794950 | a54c9239370e279def187ac604a8c20523e61167 | /PA1/Knn/knn.py | 2686bed73242c5fe7ede4ced42396c2e772983dc | [] | no_license | ZhengyiWang/CSCI567 | 14edc586c22f17a59940da4a3b9d6736f9bb730e | 210fb823c3b2b286a8bd5c34e163c2bbd25bb77f | refs/heads/master | 2020-12-10T19:10:41.611374 | 2020-01-13T20:11:27 | 2020-01-13T20:11:27 | 233,682,599 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,987 | py | import numpy as np
from collections import Counter
class KNN:
def __init__(self, k, distance_function):
"""
:param k: int
:param distance_function
"""
self.k = k
self.distance_function = distance_function
# TODO: save features and lable to self
def train(se... | [
"wbswzy@163.com"
] | wbswzy@163.com |
6b7db1315ed670a06db67503fedbfdaff88c9de0 | cf3e9b05f2d1751c2358b631f2c06c898dabc9a8 | /storyboard/plugin/scheduler/base.py | 8f227d22a7336228f4a157149b887a71c7e3ddde | [
"Apache-2.0"
] | permissive | Sitcode-Zoograf/storyboard | 130d5151aba7db3b29d257d6c140ad0a63bc914a | 5833f87e20722c524a1e4a0b8e1fb82206fb4e5c | refs/heads/master | 2020-04-11T22:46:27.045263 | 2018-12-04T15:51:58 | 2018-12-04T15:52:17 | 162,147,547 | 0 | 0 | Apache-2.0 | 2018-12-17T15:01:50 | 2018-12-17T15:01:49 | null | UTF-8 | Python | false | false | 1,707 | py | # Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
#
# 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... | [
"krotscheck@gmail.com"
] | krotscheck@gmail.com |
f4c3288cf1c1417cd9ed9515fb2741abe00f3bb9 | 07b4dd9a88f3404c4851ea7cbb57c67035bc9a54 | /eric.py | b4e8a8f25539f10b194515115cc8fd428448ebe5 | [] | no_license | surajgholap/python-Misc | 9c9d02c42bb37b7378d7336343f8bef7cd802edf | 4a8ce4bfa5a959692d98663b7b5c0b67a165835f | refs/heads/master | 2021-06-17T19:19:25.021038 | 2021-01-27T20:54:03 | 2021-01-27T20:54:03 | 142,781,295 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,012 | py | from collections import Counter
import requests
def top_five(corpus):
count_map = {}
for i in corpus:
try:
count_map[i] += 1
except:
count_map[i] = 1
# words = corpus.split()
# counter = Counter(words)
# most_fav = counter.most_common(5)
# for i in mos... | [
"surajgholap27@gmail.com"
] | surajgholap27@gmail.com |
948ea6a3930199dc069fd25e26ed627e48dd2685 | a4228f707e918dc7d4d99850428db574848480e7 | /findECGRmutationsindimers/test_findpointmutationsindimers.py | 427882b300cebd2c44b1110454211a7aff5968e7 | [] | no_license | lvn3668/naivevariantcaller_ECGR_variantdetection | 09461bb6e17d3b50ab51659ba9c070b501a79fbd | 2dbbe193b3e6f928ffc18bd00025b2b22471b96f | refs/heads/main | 2023-08-28T05:04:57.412295 | 2021-10-19T15:37:19 | 2021-10-19T15:37:19 | 391,140,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 137 | py | from unittest import TestCase
class Test(TestCase):
def test_findpointmutationsindownstreamdimers(self):
self.fail()
| [
"lalitha.viswanathan79@gmail.com"
] | lalitha.viswanathan79@gmail.com |
afe31b960321c7edb54f5abc62e659f06f9bc691 | e18ad3935053a9447f5147fbbeac56d85d4b5b91 | /2019/12/12.2.py | 2078a7a9d98d6cfd1e9425916d12247a6e09d337 | [] | no_license | bo0tzz/AdventOfCode | edb2aaa6fac4e6646c86fe9c9d9de9a809508690 | 4a5a01df12ce67d464841cb7462d238753225de1 | refs/heads/master | 2023-01-13T23:18:51.454093 | 2022-12-22T11:56:38 | 2022-12-22T11:56:38 | 225,330,875 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,820 | py | import re
from math import gcd
regex = re.compile(r"<x=(?P<x>-?\d+), y=(?P<y>-?\d+), z=(?P<z>-?\d+)>")
class Moon:
def __init__(self, x=0, y=0, z=0):
self.x = x
self.y = y
self.z = z
self.dx, self.dy, self.dz = 0, 0, 0
def apply_grav(self, to):
if self.x > to.x:
... | [
"boet@pescheck.nl"
] | boet@pescheck.nl |
b44857c46d895f4857faeac4e3deb4dff8e60872 | c7a1406b2230acaf412542124ef744c83171fa9a | /perdiem/campaign/apps.py | d14c5e8fe339d634cbe6cded1f0c73ad9cefa0c4 | [] | no_license | GilbertRoy/perdiem-django | de2f1351088597fb2b5e739388f28ff346e5e824 | 3d1f00b21a28f71cb89e49986d07b893e5abe1d9 | refs/heads/master | 2020-03-14T03:30:21.445845 | 2018-04-21T21:44:20 | 2018-04-21T21:44:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 146 | py | from django.apps import AppConfig
class CampaignConfig(AppConfig):
name = 'campaign'
def ready(self):
import campaign.signals
| [
"lucas.revolutiontech@gmail.com"
] | lucas.revolutiontech@gmail.com |
3e1b8b7774e09da34f792a1b856a1a8dd9deb5f6 | 32789a85e97053969b94c6d0b33b8b381e87842d | /Function/Code/2_func_param.py | 4a7382c40b73ed132565503f1ae27b03198bf243 | [] | no_license | abs51295/Python-Summer-School | 6607e00dba5cd06e395aa1fffde6a501d5d10a5e | 57ba177880869dbd80928b6625d8bdd6cf6c011b | refs/heads/master | 2021-01-19T03:45:35.867408 | 2017-03-01T14:36:52 | 2017-03-01T14:36:52 | 61,949,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 99 | py | def greet_user(username):
print("Hello, " + str(username).title() + "!")
greet_user(12)
| [
"noreply@github.com"
] | noreply@github.com |
7a03a57714a7e1e7c4be0d714266f119ffbe2667 | 5abc60a40ed26b7d1553c8777d0ebf5fae14f6bf | /chapter3.py | ddb5f017208e4cd531f6c2775aab53bce51f94f7 | [] | no_license | pankaj-raturi/python-practice | d72637b867c8c0cc118da7dd36dff9ed1a8693f2 | 968185f8dad51ebfbb1f9110dfe43964fd90c795 | refs/heads/master | 2022-11-21T19:56:24.253159 | 2020-07-26T17:55:04 | 2020-07-26T17:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,086 | py | #!/usr/bin/env python3
separatorLength = 40
lname = 'Raturi'
name = 'Pankaj ' + lname
# Get length of the string
length = len(name)
# String Function
lower = name.lower()
print (lower)
# * is repetation operator for string
print ( '-' * separatorLength)
# Integer Object
age = 30
# Convert Integers to string obj... | [
"panakj@tripatinfoways.com"
] | panakj@tripatinfoways.com |
4ecf20d8722cab3c69e0ac1735765e8be64ebaaf | 2657a8cc69af7f4e805e62af30d204df49bd0bb4 | /domain/controller/icontroller.py | a7f60202a32374a97819aa18eef1d4fd13880efc | [
"Unlicense"
] | permissive | gajoc/indexing-api | 905cf6fa5b2fa68f15d100dcefa23e8b465ff078 | ce1663b3c6ff30d60557a4da521e48388b866260 | refs/heads/master | 2023-03-27T03:30:49.530020 | 2021-04-02T14:18:01 | 2021-04-02T14:18:01 | 226,409,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 247 | py | from abc import ABC, abstractmethod
from utils.constants import UserAction
class IController(ABC):
@abstractmethod
def wait_for_user_action(self) -> UserAction:
pass
@abstractmethod
def before_exit(self):
pass
| [
"pawel.maciejski@gmail.com"
] | pawel.maciejski@gmail.com |
e871199a0c8a30d8eeef55c5dcd37eb21f00c5ad | 404378e736e3b9c8b22cedda872af2da7562b58d | /Class Project/ClassProject_SenWang 2/FiPy-3.1.3/fipy/variables/distanceVariable.py | 99aec464772849bedb2044fc2604c1479e4df37f | [
"LicenseRef-scancode-public-domain"
] | permissive | wangsen992/bayesian-surrogate-modeling-coursework | d6d13b8fb457bc685d9fe51ef30c14c9cd3539b9 | 7abe9e6c5761b27ac99960fb2e4b98f4dda746eb | refs/heads/master | 2020-09-09T23:15:20.088030 | 2019-11-14T02:29:07 | 2019-11-14T02:29:07 | 221,593,138 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 22,920 | py | #!/usr/bin/env python
## -*-Pyth-*-
# ###################################################################
# FiPy - Python-based finite volume PDE solver
#
# FILE: "distanceVariable.py"
#
# Author: Jonathan Guyer <guyer@nist.gov>
# Author: Daniel Wheeler <daniel.wheeler@nist.gov>
# Author: James Warren ... | [
"wangsen992@gmail.com"
] | wangsen992@gmail.com |
10c09cc8d92c76de700e05fe1be530bbb786fb3b | 9b5b97b6a5278b6fa5998deb2abdaa9254772982 | /dcc/__init__.py | c607c1950e0b91e9b6d3ad5fd4b31578e580c03c | [] | no_license | majkee15/Dynamic-Credit-Collections | add4b8208e0bfa77f986e8b9d36b21c85cd9fbd8 | aa3af53f09da34c60578750bd0a2702a5d60766d | refs/heads/first_feature | 2023-07-31T18:45:02.758024 | 2020-03-20T10:55:51 | 2020-03-20T10:55:51 | 248,341,936 | 1 | 0 | null | 2023-07-06T21:32:35 | 2020-03-18T21:00:44 | Python | UTF-8 | Python | false | false | 177 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
__version__ = "0.0.1"
__author__ = "Michael Mark"
from dcc.aav import AAV
from dcc.oav import OAV
from dcc.oav import Parameters
| [
"92mark.michael@gmail.com"
] | 92mark.michael@gmail.com |
9d93162fa5e6cbd885e8b781ec062cc14951d04e | 595c2c372a4dad5429eca7e1383fe5eeae53b8fa | /src/restoran/migrations/0002_auto_20151203_1858.py | e5c6daeb980ed412882a0ea688b82a71f56db6f9 | [] | no_license | micic1marko/ISAProjekat | 89496a3ed316488fb1b64b2831f4e775dd3620fd | 9da1a90900f993f7ce45170ec6ca5ade97532ce4 | refs/heads/master | 2021-01-10T06:37:56.806232 | 2016-01-20T17:12:29 | 2016-01-20T17:12:29 | 50,045,739 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 993 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.9 on 2015-12-03 17:58
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('restoran', '0001_initial'),
]
operations = [
... | [
"chakmi1@gmail.com"
] | chakmi1@gmail.com |
c9bb6bbe1d55ee3cb293d76cf55d2a8caf940bc9 | 5ae710faf55925b64648ff45c804f9b92713a3ce | /common/basics_setting.py | cdc69f9ab77a7f41fab96b7fd28696f1007106f2 | [] | no_license | baobaobaozhu135/webupdate | b731a7376cf6f934f2131033a06fcd2e818e821b | 58e473f0c1d39374c2ca5e831263cb3f8f0a47f0 | refs/heads/master | 2020-04-17T03:20:31.726507 | 2019-01-17T07:07:36 | 2019-01-17T07:07:36 | 166,177,597 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24 | py | # _*_encoding:utf-8_*_
| [
"jiayunxiaoju@sina.com"
] | jiayunxiaoju@sina.com |
899a70babc2e3061c78a33d1cedabf110f87a464 | 70e4234519613fa6d680691ebe99f5174df660d3 | /Fabio02_P01/F2_P1_Q24_EQUACAO2GRAU.py | 8dc2c2e5b201a9ebcce6b09c4d47f6e60f869cba | [] | no_license | erickcarvalho1/ifpi-ads-algoritmos2020 | 061a39454f487adb9be82879b9270379486498ba | 26258c1457fe53a086e206c129e5bcd93edf1113 | refs/heads/master | 2021-04-15T02:02:16.074706 | 2020-03-22T22:48:16 | 2020-03-22T22:48:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 396 | py | #Leia os coeficientes (A, B e C) de uma equações de 2° grau e escreva suas raízes.
#coeficiente A deve ser diferente de 0 (zero).
a = int(input('Digite o coeficiente A '))
b = int(input('Digite o coeficiente B '))
c = int(input('Digite o coeficiente C '))
delta = (b**2) - 4 * a * c
raiz_1 = (-b + delta**... | [
"noreply@github.com"
] | noreply@github.com |
91e49ed8baadda13eddc5efb65f249231f7cd04f | 73c85588aa13c39dfaf698da0a38ae7f43f5ad33 | /blog/models.py | a222cf1baeb757c2cec7d431d8b34061f4d1d4bd | [] | no_license | hlorofilka/YoutubeTutorial | dfa23d6757533381b64a7c9683ac3b39de7dc1f2 | 93abf1a3f140f0a90ab602be40464e1b23802f44 | refs/heads/master | 2022-05-12T08:14:16.161641 | 2019-07-30T20:59:25 | 2019-07-30T20:59:25 | 195,212,613 | 0 | 0 | null | 2022-04-22T22:05:50 | 2019-07-04T09:34:36 | Python | UTF-8 | Python | false | false | 519 | py | from django.db import models
from django.utils import timezone
from django.contrib.auth.models import User
from django.urls import reverse
class Post(models.Model):
title = models.CharField(max_length =100)
content = models.TextField()
date_posted = models.DateTimeField(default = timezone.now)
author ... | [
"hlorofilk@mail.ru"
] | hlorofilk@mail.ru |
d9c99610497792b9b638da1136aec4848607694b | d9a8510e2adb2bae13114d3367f6a2e29ff1c1fb | /FeatureSelection.py | 5783fcda2dace225596a0db1080083a602788c00 | [] | no_license | shayantanikar/Team_Xplore_fake_news_classifier | da16789fdcb2112f12593e871155b57e38c26b3c | 0d7f246ed634a24476ed4f72578ffba195fb8d9d | refs/heads/main | 2023-04-05T04:25:32.469316 | 2021-04-11T07:03:28 | 2021-04-11T07:03:28 | 356,785,499 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,091 | py | # -*- coding: utf-8 -*-
"""
Created on Fri Apr 9 14:13:38 2021
@author: Shayantani Kar
Note: before we can train an algorithm to classify fake news labels, we need to extract features from it. It means reducing the mass
of unstructured data into some uniform set of attributes that an algorithm can understand. ... | [
"noreply@github.com"
] | noreply@github.com |
ce72b7bb239177efb435d6cc7d06c93e1377518a | 3fa8eead6e001c4d5a6dc5b1fd4c7b01d7693292 | /ros _navigation_in_5_days/src/initialize_particles/scripts/init_particles_caller.py | e82c4f46632c1080b34ac406afdbf5a7b7ed4ca5 | [] | no_license | MarzanShuvo/Ros_from_the_construct | 09261902841cdd832672658947790ec5fbba4cd3 | 4798234284d9d0bab3751e9d8ac2df95ae34a5bf | refs/heads/master | 2023-08-24T17:28:09.182113 | 2021-10-23T07:57:02 | 2021-10-23T07:57:02 | 339,105,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 329 | py | #! /usr/bin/env python
import rospy
from std_srvs.srv import Empty, EmptyRequest
import sys
rospy.init_node('service_client')
rospy.wait_for_service('/global_localization')
disperse_particles_service = rospy.ServiceProxy('/global_localization', Empty)
msg = EmptyRequest()
result = disperse_particles_service(msg)
prin... | [
"marzanalam3@gmail.com"
] | marzanalam3@gmail.com |
3b431301daa97683f32e90c2dbabcb8bda107f42 | 6babbfa6c4225d358236a0a285675311d132be54 | /Flask/MyApp/app/__init__.py | 88b19c8af31e8bdec441221d858887417f97548d | [] | no_license | NurFaizin/SDP | 6bc9610511b2d3ce17de76eddc5c7a3d2bb2b271 | 79fcb32fde22e29bde4790e2ae556b17ef4167ad | refs/heads/master | 2021-01-19T10:38:47.077038 | 2015-06-27T02:57:32 | 2015-06-27T02:57:32 | 33,845,719 | 0 | 1 | null | 2015-04-14T20:51:42 | 2015-04-13T03:25:09 | Shell | UTF-8 | Python | false | false | 1,460 | py | import os
import sys
from flask import Flask, render_template
from flask.ext.sqlalchemy import SQLAlchemy
app = Flask(__name__)
app.config.from_object('config')
db = SQLAlchemy(app)
########################
# Configure Secret Key #
########################
def install_secret_key(app, filename='secret_key'):
"""... | [
"nur.faizin91@gmail.com"
] | nur.faizin91@gmail.com |
52dc39a488a2ce7850783f9f271c8550f4b50866 | fa83f4972b02537046174b7f7b9baa43e8a6bb71 | /household/asgi.py | fb139b8d0598b1d0f738df36d91ee1c4c8c33bcf | [] | no_license | arsen-movsesyan/household-api | fe0e1ab7b00ddec70737a625b0b099d59362759c | 3d74635465c2f44b077b18ae8c20d3a4d9c7216c | refs/heads/master | 2023-04-24T20:02:27.356126 | 2021-05-11T16:34:10 | 2021-05-11T16:34:10 | 363,224,081 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for household project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"arsen.movsesyan@gmail.com"
] | arsen.movsesyan@gmail.com |
9d69ab143b4f3cc545752c84e558324779dd61ee | 2a140fcf596163995b7d3099b9aaf4a73cb1b292 | /Lab2_DatabaseCreation/CARS-build-cars-data.py | 4aa216c4053c1083fc47dd10828ee725e8225719 | [] | no_license | mmurdock95/csc365-Database-Systems | e528dcebefab947f4deb96edf25b8c5b9527a19d | ab4cf7a239f0dac829bd388cb4cddbf62861ef73 | refs/heads/master | 2021-05-04T21:06:45.303722 | 2018-02-01T20:18:59 | 2018-02-01T20:18:59 | 119,885,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | #Michael Murdock
#rmurdock@calpoly.edu
#CSC365 EBuckalew
#Lab 2
import csv
#read in the csv file and seperate the columns
fileName = "cars-data"
file = open(fileName + ".csv", 'r')
fileOut = open(fileName + ".txt", 'w')
f1 = "id"
f2 = "mpg"
f3 = "cylinders"
f4 = "eDispl"
f5 = "horsepower"
f6 = "weight"
f7 = "accelera... | [
"mmurdock95@gmail.com"
] | mmurdock95@gmail.com |
0962bef45d9ca756726838812c5b8a2ba32a87c2 | 1e1ae5560e41ba63c30f6763a80f71fb4360c091 | /4_실시간_환경이슈_분석_웹App/ME_KF_RTA.py | 1838bd4726802159746e1f68a5a066a35bd25264 | [] | no_license | keibigdata/dyjin_2019 | 268d75a19bd8265ebed708d0b1ca9b89d6e85d8d | d295bece5717541d5e64cffd88dd9278c6efb3cb | refs/heads/master | 2020-11-29T19:08:51.076019 | 2019-12-26T05:08:41 | 2019-12-26T05:08:41 | 164,393,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,302 | py |
# coding: utf-8
# ## 네이버 환경뉴스 실시간 분석
# ### 라이브러리 import
# In[96]:
import re
import gensim
import mglearn
import numpy as np
import pandas as pd
import os
import matplotlib.pyplot as plt
from konlpy.utils import pprint
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.feature_extraction.tex... | [
"noreply@github.com"
] | noreply@github.com |
e54ec4f0ccafb701f112bd15334220e6981686a3 | 519e0431a0d59db5cac646e5f21dd6c207e8c33c | /1P/meuprojeto/Atividades 1VA/Nova Aula/Lista de Exercicios 1/Testando Atividades/Teste_aula1.py | 80c32c5687ecf1076dfed74e6d085261422ac707 | [] | no_license | vinny0965/phyton | 1c79cc394b72202e53117502c3c58054a68541b5 | 5ba3fe7875ba30d052e357426c8869d3d9a6dbf5 | refs/heads/master | 2020-07-28T08:54:50.828084 | 2019-10-22T23:29:45 | 2019-10-22T23:29:45 | 209,371,958 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 780 | py | """nome=input("Qual Seu Nome")
print("Olá",nome,"Seja Bem Vindo")
"""
"""dia=input("Qual dia de Seu Nascimento?")
mês=input("Qual mês de Seu Nascimento?")
ano=input("Qual Ano do Seu Nascimento?")
print("Voce Nasceu em", dia , "de", mês, "de", ano)
"""
"""n=int(input("Um numero"))
s=n + 1
p=n-1
print(s,p)
"""
"""n1=int(... | [
"carvalho.vinicius163@gmail.com"
] | carvalho.vinicius163@gmail.com |
db5c50f07d52f16dd6cdd4c8ce821122231ba200 | 015011f99ac6315906871cd7f7f170550c16591c | /figpay-backend/figpay_backend/urls.py | e3ac9410573a3480aea00d873505673a12b0dab7 | [] | no_license | bochackathon-fintech/Figpay | dd6be1dc68e8a563bde060d6ac8df1d35028d2dc | 001e40781d9514953b29c81c051d577071c8438c | refs/heads/master | 2022-12-10T18:59:56.114010 | 2017-06-11T13:25:41 | 2017-06-11T13:25:41 | 93,884,731 | 0 | 2 | null | 2022-12-07T01:14:19 | 2017-06-09T18:07:08 | CSS | UTF-8 | Python | false | false | 2,376 | py | """figpay_backend URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.11/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')
C... | [
"kyriakos@pixelactions.com"
] | kyriakos@pixelactions.com |
6766ef7f01a731433633f6e43353c5a7ea766ba7 | 09795761625073e46aeffe8b7344136c2c4486ca | /lop.py | 98d62653a844fc46e4cdd03223a0a6668bf218dc | [] | no_license | lolwentx/klllol | b7665eee3ba22ecaa757918f95b15ae58051b7df | ccd47a16b7d5bb4a6516fd04d2ffe065622a9396 | refs/heads/main | 2023-06-21T17:06:16.231733 | 2021-08-05T11:30:05 | 2021-08-05T11:30:05 | 393,016,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,599 | py | name = input('привет, как вас зовут? ')
import sys
print ('ясно ' + name)
print ('очень приятно')
вуфлч = input('как дела? ' + name )
n = 'ясно' if name != ("отлично") else 'ооо у меня тоже!'
print (n)
import time
time.sleep(3)
print ('хы')
import time
time.sleep(2)
print ('нууууууууу')
print("(1)Общение"... | [
"noreply@github.com"
] | noreply@github.com |
0f82bdd29163e123703bec8c3b5a6232a6cedbb0 | 686a2f942e466a9bf7b1c7c03d29dbb303643a20 | /reference/tf2.py | 9e032ae13270e69d371259be10faba7e9742858e | [] | no_license | shaxinlei/TrafficSignRecognition | c7c3679181c7f12d53ed470c09805b5b59462525 | c335dc413702cd007c1eed60296b0cacc0ff27e2 | refs/heads/master | 2021-10-09T03:16:45.589457 | 2018-12-20T14:07:20 | 2018-12-20T14:07:20 | 88,011,397 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 365 | py | import tensorflow as tf
matrix1 = tf.constant([[3,3]])
matrix2 = tf.constant([[2],
[2]])
product = tf.matmul(matrix1,matrix2) #matrix multiply np.dot(m1,m2)
#method1
# sess = tf.Session()
# result = sess.run(product)
# print(result)
# sess.close()
#method2
with tf.Session() as sess:
res... | [
"shaxinlei@gmail.com"
] | shaxinlei@gmail.com |
0cd829b2989f164150f7deb6916ef2a5ae4c33ba | ec20b8f649fdc54199dc3205461e847f6e07b753 | /Exercise2_5.py | 7dd2c392e66f7f397e235524d91bd220d610af52 | [] | no_license | nibsdey/PythonToy1 | 69e4b1a306e6949d62e168a898c652eec7126913 | 1a42c823c0e10cda78740dcf512446871f7cd144 | refs/heads/master | 2021-01-23T16:04:48.255533 | 2017-06-10T22:38:45 | 2017-06-10T22:38:45 | 93,281,446 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 108 | py | celsius=input("Enter temperature in celcius: ")
print("Temperature in Farenhite: ")
print(float(celsius)*32) | [
"nibs.dey@sas.com"
] | nibs.dey@sas.com |
77d284e2b345dc9df82af95355126cbf386ca2fd | a74a0317d8b8e1cf5135cbd0821617f70c8879ca | /old/python_resume/file.py | a0b117dbafe07691e133591f387574ae6e1beeb9 | [] | no_license | chuck1/python-resume | cbd3c0eb2fe3d0894b3809a2ac1526d171d6afc2 | 5b83fa831525faba17f72173cfff9c2155bd21fc | refs/heads/master | 2021-01-10T19:14:08.036676 | 2017-01-04T01:23:03 | 2017-01-04T01:23:03 | 42,127,786 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,042 | py | import os
import json
class Manager(object):
def __init__(self, root):
self.root = root
def get_path(self, filename):
return os.path.join(self.root, filename)
def read_text(self, filename):
path = self.get_path(filename)
with open(path, 'r') as f:
text... | [
"charlesrymal@gmail.com"
] | charlesrymal@gmail.com |
74989ae2cd432e488d25d367702718af2d75802f | 897554d1ffe398f701df82cdf390bf185f97bf20 | /django-stubs/core/management/commands/squashmigrations.pyi | 27a81d61e9c264f3a40349a263d3523ab8ee5bb0 | [
"MIT"
] | permissive | maximmasiutin/django-stubs | c0a7bac533b03c81704755c5e4a8eff9a178010d | 55366fbf087522f860aa242c200f87b36c6c24a7 | refs/heads/master | 2023-04-15T09:47:51.980794 | 2021-04-20T12:18:22 | 2021-04-20T16:07:45 | 359,802,871 | 1 | 0 | MIT | 2021-04-20T12:12:03 | 2021-04-20T12:12:03 | null | UTF-8 | Python | false | false | 940 | pyi | from django.apps import apps as apps
from django.conf import settings as settings
from django.core.management.base import BaseCommand as BaseCommand, CommandError as CommandError
from django.db import DEFAULT_DB_ALIAS as DEFAULT_DB_ALIAS, connections as connections, migrations as migrations
from django.db.migrations.mi... | [
"noreply@github.com"
] | noreply@github.com |
b0869b0623a35197e22092fc0de9bf69224da267 | 52ef9a347e9fd725ee9a99a389bfde83e057e5c8 | /2020/d06.py | 86a77b213b0464465aa85563ec2bd554dc9e162f | [] | no_license | slapersonne/adventOfCode | 0fd2ba8e7a2567f648e7fae77074913bfe6c1436 | 963b5916db42b2b99a3972fb2b56163e5820444d | refs/heads/master | 2023-02-02T22:21:50.334972 | 2020-12-21T19:43:24 | 2020-12-21T19:43:24 | 317,586,813 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 734 | py | import functools
def parse_forms(lines, join_operation):
split_indexes = [i for i, val in enumerate(lines) if val == ""]
total_count = sum([
len(grouped_form) for grouped_form in
(functools.reduce(join_operation, form) for form in
(map(lambda str_form: {char for char in str_form}, str_... | [
"simon.lapersonne@gmail.com"
] | simon.lapersonne@gmail.com |
af7e81d7814d9de33c0ee5c697544569178afbd6 | 58b7edf062ad3c568dc9710dbb0a5ca4c4146278 | /pct/utils/data_reader_test.py | f05aecc6198748864c11a02c4e4cb49b41c19517 | [
"MIT"
] | permissive | murphyyhuang/mini_transformer | f00b4b65a843f3f035a96a50d2ac5dee7a7b0208 | dc6fc270c573e613bc2f5cad62534c6416e7dbd5 | refs/heads/master | 2022-02-23T15:37:11.686110 | 2019-10-24T02:36:46 | 2019-10-24T02:36:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,003 | py | # coding=utf-8
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import os
from pct.utils import data_reader
from pct.utils import hparam
import tensorflow as tf
tf.enable_eager_execution()
def create_generator_test():
yaml_dir = os.path.join(os.path.dir... | [
"huangyhq@gmail.com"
] | huangyhq@gmail.com |
98fddd7d3b5f78ec7b9a0b3a6e52fca40a3f5363 | 114af993838bc6ef4c8e876a298aa7138493e0d5 | /extra-agencia/ticket/wizard/__init__.py | 6bfc59a69455a48e7b981b183c4065fb383562bd | [] | no_license | xtqgroup/agencias_comercio | f27b0a4d265de1256857680ac3f1d50200d3ba98 | 364ea6ba14ca962c50697e249e781883116eb97d | refs/heads/master | 2020-03-24T08:17:58.651913 | 2018-07-27T21:36:24 | 2018-07-27T21:36:24 | 142,591,377 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 55 | py | # -*- coding: utf-8 -*-
from . import pos_down_ticket
| [
"omarrodrigo.rp@gmail.com"
] | omarrodrigo.rp@gmail.com |
a50e4c86ed9764db44777c7fcb47ec51f6780d04 | 6b2dcf691bc7f019d86270ec0588f5232fc3e2b0 | /inflearn_practice/section7/최대점수 구하기.py | e8be936e34aa64f6cf45a818cae04129b1c64022 | [] | no_license | limgeonho/Algorithm | 02c55fbf5b09b718dbc2aee83a887143d121ddaf | 3d4d1ccd6ee3c52dc36ac3cf5f681690fcfdb6ab | refs/heads/master | 2023-06-01T21:05:00.100998 | 2021-06-21T15:04:26 | 2021-06-21T15:04:26 | 371,552,176 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 494 | py | #최대점수 구하기
#다음문제를 푸는 지 풀지 않는지에 대한 선택(O, X)문제
def DFS(L, time, sum):
global res
if time > m:
return
if L == n:
if sum > res:
res = sum
else:
DFS(L+1, time + t[L], sum + v[L])
DFS(L+1, time, sum)
n, m = map(int, input().split())
v= list()
t = list()
for _ in r... | [
"ghlim909@gmail.com"
] | ghlim909@gmail.com |
2c602f15eb747e68cdcf7c1763bf993220d7650d | c9ed63e95644dadf6d5221f8df7c59e6fdf98a6f | /api/serializers.py | 2edf8bb4094c46611283daa82bfbefb336fbe88b | [] | no_license | takasaki376/drf-car-api | 952006f5494baaa22188b3ba5a79ac8291542369 | c359b3a751dd8b2fe4e277add2ab6a517b325108 | refs/heads/master | 2023-06-08T20:57:42.650304 | 2021-07-03T14:26:18 | 2021-07-03T14:26:18 | 382,635,030 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,183 | py | from rest_framework import serializers
from .models import Segment, Brand, Vehicle
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ['id', 'username', 'password']
extra_kwargs = {'password': {'write_only': True... | [
"75880059+takasaki376@users.noreply.github.com"
] | 75880059+takasaki376@users.noreply.github.com |
8d5b8f5a59be2454689b9a71c4726da252ece4dd | 985139b2e13a524a5eee9fe98b1b3561f4e842ad | /bitcoin_checker.py | 4a692f625a08d9f8840179dc11c9590cc682acad | [] | no_license | intelpol/Bitcoin_checker | 8e129dcfa216977c27bb9c9b19e0a6b85405471c | 9d7319314e35c3b10de43efd0d291d9e41b06af3 | refs/heads/master | 2021-06-14T19:39:17.121206 | 2017-03-01T20:46:52 | 2017-03-01T20:46:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,972 | py | from block_io import BlockIo
import os
import datetime
import time
import csv
import os.path
import sys
print "********* Bitcoin wallet checker started *********\n\n"
# check to see if config and results .csv files exist. If they don't create them. Also check for api_keys.csv
api_keys = [] # list to hold... | [
"noreply@github.com"
] | noreply@github.com |
a28ff0048e62de940dbd8dff215196a4fb481b90 | b0d98c5fd2e1f0cd87d443229e85c548f7c40f2d | /剑指Offer-Python版本/2.替换空格.py | 96f5cb8459dd7f871dd4c715d6ca82c59ff9a34d | [] | no_license | Kiiiiii123/CodeGym | 7c7e623e43e79189f295ba79c0f4fa99bdc46dc1 | fb66d5d6aa707153e78fefd70e2aac6567a899b0 | refs/heads/master | 2020-04-06T21:58:56.531115 | 2019-11-05T09:29:15 | 2019-11-05T09:29:15 | 157,820,933 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,673 | py | '''
题目:请实现一个函数,将一个字符串中的每个空格替换成“%20”。例如,当字符串为We Are Happy.则经过替换之后的字符串为We%20Are%20Happy。
'''
'''
方法一:先计算最终需要给出的长度,然后建立两个指针p1,p2,p1指向原始字符串的末尾,p2指向替换后的字符串的末尾。同时移动p1,p2, 将p1指的内容逐个复制到p2, 当p1遇到空格时,在p2处插入 %20, p1向前移动一个位置,p2向前移动3个位置,当p1和p2位置重合时,全部替换完成。时间复杂度O(n)
运行时间:24ms
占用内存:5864k
'''
class Solution:
# s 源字符串
def rep... | [
"noreply@github.com"
] | noreply@github.com |
690bf90029924555962d2aa02c4d1d296434d857 | 4bf53a42b336e67ce75e220dc87f75af9911f036 | /tapiriik/urls.py | 4ced6e6a50e2b58565261db7601a7cafecb0b985 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | patricksan/tapiriik | 5cee925d256f5e2b23397487ef807b5766b710ba | 1628f8759c9e2d0562b92dd25561a347389f6cf3 | refs/heads/master | 2020-12-11T08:07:10.991800 | 2018-02-27T13:14:59 | 2018-02-27T13:14:59 | 38,956,416 | 0 | 0 | Apache-2.0 | 2018-02-27T13:15:00 | 2015-07-12T09:22:01 | Python | UTF-8 | Python | false | false | 7,197 | py | from django.conf.urls import patterns, include, url
from django.contrib.staticfiles.urls import staticfiles_urlpatterns
from django.views.generic import TemplateView
# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
urlpatterns = patterns('',
ur... | [
"cpf@cpfx.ca"
] | cpf@cpfx.ca |
e5524585750dc71d44126d50fdf1be0d81d5ef80 | 2e2288db8e4d6b7c34416986a3b567080b84fc68 | /Project1/bin/symilar | 47b0457ca0e6200104489b3966a32bd6bdb109f0 | [] | no_license | icseibel/Django_testing | 15b767e91c7fd887c2dc8194b921d1afa6488808 | 1a17a566e5135cf3f282f8fd025543b79e2bde91 | refs/heads/master | 2020-03-25T00:37:36.159849 | 2019-02-12T18:25:20 | 2019-02-12T18:25:20 | 143,195,552 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 251 | #!/home/igor/Python/django/Project1/bin/python
# -*- coding: utf-8 -*-
import re
import sys
from pylint import run_symilar
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(run_symilar())
| [
"igor@gaviao.DOM_QP.COM.BR"
] | igor@gaviao.DOM_QP.COM.BR | |
f8301a31535d82f006fc513834c7c3df4900a415 | ec0fb459fd5e3711eb128c741e024c393745ba8f | /Numero de ocupacion.py | 15ff92da2ad4ff444c2c71f529e8c9048cd5b226 | [] | no_license | Aitor-Fernandez/Proyecto-Termodinamica | 77689ab2d62be7fdd84b87851c7e28d8590ea254 | 1092635a8a03754c3278aa688aedf2c470d073cb | refs/heads/master | 2022-06-13T21:11:57.891262 | 2020-05-07T15:20:32 | 2020-05-07T15:20:32 | 262,085,914 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,577 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 26 15:17:20 2020
@author: afern
"""
# -*- coding: utf-8 -*-
"""
Created on Sun Mar 22 00:45:29 2020
@author: afern
"""
import matplotlib.pyplot as plt
import numpy as np
from matplotlib.widgets import Slider
KT=2.5
def p1(c,E,J,c0):
E=KT*E
J=... | [
"noreply@github.com"
] | noreply@github.com |
1418789cec3d7f2c86bded4e3b07d899b55fb91b | 1f6fe8847ca9741de4d48bd958a60c562ae54ef3 | /m2m-relations/articles/migrations/0011_auto_20210808_1902.py | 27e5b384dd9db2938617c8a6b04b5c557556b3fb | [] | no_license | opavelo/Django-HW-2.2 | ff897aecf11f10de410d10c4121129cc92b68359 | 9f28e92ab3f66e61cc0308b3a0418d2da7540bbf | refs/heads/master | 2023-07-06T20:07:41.627632 | 2021-08-15T14:23:53 | 2021-08-15T14:23:53 | 396,107,530 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 627 | py | # Generated by Django 3.2.6 on 2021-08-08 16:02
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0010_auto_20210808_1840'),
]
operations = [
migrations.RenameModel(
old_name='Scopes',
new_name='Scope',... | [
"opavelo@gmail.com"
] | opavelo@gmail.com |
2e3a3c24699f253c7671d55206bcd6aa7151e478 | 5522054c40e9a35b68351bfa546c2e9fffd01340 | /mobileoperators/settings.py | 9fc9e98b471b6627856ba177fb3dccefadbf3c3f | [] | no_license | thepylot/Mobile-Networks-App | 6ee36243c4861063da8b1c086fc0db882a27cb09 | 4893b810b697e399564e1fb1bb6f738b61950b76 | refs/heads/master | 2021-11-27T14:22:13.843167 | 2019-02-08T10:37:25 | 2019-02-08T10:37:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,330 | py | """
Django settings for mobileoperators project.
Generated by 'django-admin startproject' using Django 2.1.5.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
impo... | [
"charliescene512@gmail.com"
] | charliescene512@gmail.com |
7d3882b1e196af38f720155251a182727eb79c77 | 42a9553bc6906f6c4d70f532477140b66183b1ef | /vLPR/convert_data.py | d9aeb6faa2122c7db2cc5836ee655ad134ad8165 | [] | no_license | jinlukang1/issue-Notebook | 5fb0f859245a1f8c78b3f1a6c6ff220d18e778ca | 807071b771d18ec15d400e55be5a303fc88403cf | refs/heads/master | 2021-06-22T01:24:09.919832 | 2020-11-26T14:14:19 | 2020-11-26T14:14:19 | 144,961,735 | 0 | 3 | null | null | null | null | UTF-8 | Python | false | false | 4,309 | py | import numpy as np
import glob
import cv2
import os
import json
import tqdm
# def real():
# split_list = ['train_aug']
# data_dir = r'C:\Users\Administrator\Desktop\vLPR experiment\Car_test_data'
# for split in split_list:
# im_path = os.path.join(data_dir, split, 'image')
# g... | [
"jlk0617@mail.ustc.edu.cn"
] | jlk0617@mail.ustc.edu.cn |
5509325556388a74af56621122e33bf9f954c396 | 907edfeeccf9a11cbc8dbe7d104cbaa9d561baf1 | /Algorithms/Half-Toning/OrderedDither/4x4.py | a3cd87dca1aa47571fd672964e9896a1416bcd93 | [] | no_license | JGPreston/Final-year-project | c31076e006f3d20505d4e12501ebb281c822e10e | f46e932bc6fcf22f242c332dc52dd2a05da2a239 | refs/heads/master | 2023-08-17T19:40:29.165112 | 2021-10-10T16:59:06 | 2021-10-10T16:59:06 | 415,642,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,787 | py | import numpy as np
import os
import time
from PIL import Image
#Excel
import openpyxl
#Add path to directory
import sys
sys.path.append("../../Analysis/PSNR+SSIM/")
from PSNRSSIM import returnValues
def convert_halftoning(image):
#Matrix for 2x2 Ordered
the_4x4 = np.array([[0,8,2,10],
[12,4,14,6],
... | [
"32721120+JPreston-1@users.noreply.github.com"
] | 32721120+JPreston-1@users.noreply.github.com |
158a542bb1ab20775bdbe49c9f32f2e510e248cc | 12afd6e3938c54ab240d56b5a29b9ecc480fd059 | /liveClass/asgi.py | 5a6e050fccb9d827678244dac83e8ffdf82ea033 | [] | no_license | dhruv354/django-liveclass | 6ecbc9511852fce52b810220bdd42d55fb44e2c7 | 5251e8789e521db40bb2d94cdbd2cdef8d91b01c | refs/heads/master | 2023-06-16T05:18:15.650339 | 2021-07-12T10:58:03 | 2021-07-12T10:58:03 | 377,894,170 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
ASGI config for liveClass project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.2/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SET... | [
"dhruvsin@iitk.ac.in"
] | dhruvsin@iitk.ac.in |
a2ba4afc7c10c24b24bd646ab7250dcd81777313 | 0d9dd4ac458ac954e453e6f7810ca5e1c759f82d | /list | fb6c972de61fce49941283ab222a8e272a50cc63 | [
"MIT"
] | permissive | ovkulkarni/create-repo | 9335307481686c8109baae7d88cd819dd7ca0cb6 | 0073cd761106e0c5453429204e8da56ba249eb1d | refs/heads/master | 2021-01-10T05:20:54.898788 | 2016-03-30T14:14:03 | 2016-03-30T14:15:06 | 53,800,960 | 0 | 1 | null | 2016-03-14T02:44:39 | 2016-03-13T18:35:40 | Python | UTF-8 | Python | false | false | 3,590 | #!/usr/bin/env python3
######################################################################################
# #
#The MIT License (MIT) #
# ... | [
"2019okulkarn@tjhsst.edu"
] | 2019okulkarn@tjhsst.edu | |
09ae77d9c9a9532415b5b86804f7bc5fc0eb11f9 | b5dc338a3ff623e08ec7dbd58347a4dde8f0bb39 | /base/pages/login/__init__.py | 046d9417bba3860db38522e9d14b8a49627c32d6 | [] | no_license | msapunov/Copernicus | b3709c5242ff2df6b1b44a8625cf9afe8d9439ef | bb9a7539487e77b3e6d7e0b82124da438ca0e8ab | refs/heads/mess | 2023-07-25T21:24:36.015304 | 2023-06-22T16:43:40 | 2023-06-22T16:43:40 | 37,662,179 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | from flask import Blueprint
bp = Blueprint("login", __name__)
from base.pages.login import url
| [
"matvey.sapunov@gmail.com"
] | matvey.sapunov@gmail.com |
235d93d8501286c26e0af8f3f8b3dcf5a24a9e2a | 3ede347af20d4115c5421627b4d7a8f93b4f1658 | /eta/eta/core/module.py | 1c530d4cd300c6df6ef692ad6d39007b07dbe7bb | [
"BSD-2-Clause"
] | permissive | grohup/eecs504 | 584c2967b15875a25efdce567d86d679bba29884 | f2bab5c5c767584dd33bc9a689370db532ba899a | refs/heads/master | 2020-03-29T17:13:00.547314 | 2018-10-20T17:52:18 | 2018-10-20T17:52:18 | 150,149,799 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 20,744 | py | '''
Core module infrastructure.
See `docs/modules_dev_guide.md` for detailed information about the design and
usage of ETA modules.
Copyright 2017-2018, Voxel51, LLC
voxel51.com
Brian Moore, brian@voxel51.com
'''
# pragma pylint: disable=redefined-builtin
# pragma pylint: disable=unused-wildcard-import
# pragma pyli... | [
"grohup@gmail.com"
] | grohup@gmail.com |
2eb061649dea4034c7bc947f57dc0afdf9c98428 | d4d99d7df14dd8c3d3dfd283b751b7844a55825f | /user_auth/urls.py | 81b02508f29b84436236cc311c2e7b75ce6abf02 | [] | no_license | roshansk/opp-live | 88add9c4e57617eb44bcd332a17f3851b0148bf6 | 5a7b7b6933fa74c8bb2566f77734254a5370ca29 | refs/heads/master | 2023-04-25T16:33:28.265852 | 2021-05-25T11:53:09 | 2021-05-25T11:53:09 | 369,150,144 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 192 | py | from django.urls import path
from .views import registerUser, loginUser
urlpatterns = [
path('register/', registerUser , name='register'),
path('login/', loginUser , name='login' ),
] | [
"roshansk16@gmail.com"
] | roshansk16@gmail.com |
c9efbd7958f58d6be21252c2a8fe2a2f432794bb | 7cc2c04f440b0e473e861f13ce56385a4d5f5b1b | /untitled/Aula 4.py | 0b9f9d88fc712840317af896695a7849597efb77 | [] | no_license | Helberte-AC/aula-python | a9bb41d711081f9510f70fe7ac43260a3e3f4878 | c490132633a524476dd617160ec3238b9026d560 | refs/heads/master | 2022-12-02T21:42:58.515557 | 2020-08-27T01:12:08 | 2020-08-27T01:12:08 | 290,635,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,473 | py | #print('Aula 4')
# Comando for n° primo.
# a = int(input('Entre com o n°: '))
# div = 0
# for x in range(1, a+1):
# resto = a % x
# print(x, resto)
# if resto == 0:
# div += 1
# if div == 2:
# print('n° {} é primo' .format(a))
# else:
# // print('n° {} é primo'.format(a))//
# a = int(input('... | [
"hacbeto@yahoo.com.br"
] | hacbeto@yahoo.com.br |
8ab079d204faffce22220c5e5835af9b6e6961dd | 7ae5ac25692c66129a1d93e74ed2c97edba6248e | /decorator.py | 3b045bd7c54c9f0e42fd216529beeb6324174f15 | [] | no_license | sanjeevbhatia3/Python-Programming | 6a257f1905de925b69bf4fdefcd47dd91bab6e6b | db26f49d9f7bdbe4d06f578714f18699b6300824 | refs/heads/main | 2023-07-18T12:59:55.813312 | 2021-09-03T01:22:51 | 2021-09-03T01:22:51 | 369,617,871 | 0 | 0 | null | 2021-05-21T22:05:10 | 2021-05-21T18:09:07 | null | UTF-8 | Python | false | false | 360 | py | # decorator function
def car_description(input_func):
def car_details():
print(f'My car color is blue')
input_func()
print(f'Car has BOSS music system')
return car_details
# original function
@car_description
def my_car():
print(f'Car model is Tesla Model-X')
my_car()
# car_info... | [
"noreply@github.com"
] | noreply@github.com |
d6d3b5c8bfd76e841ccc623bc12cd79b4b8329e9 | 28b5d1e148d34a5c1dc2800da86dd367e7ffef84 | /2019/day3puzzle2.py | f2378ac94d64f1f1edf683135ff4c934c3a1c933 | [] | no_license | harivrdhn/AdventOfCode | 36dd123600289261960c99580e2029aa2f16db27 | ee63af216a93f592313919df7e1cd419ad18366d | refs/heads/master | 2020-09-26T06:24:41.685884 | 2020-01-09T03:22:51 | 2020-01-09T03:22:51 | 226,187,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,077 | py | import os
def new_intersection(line1, line2):
dist = 0
if line1[1][2] != line2[1][2]:
if line1[1][2] == 2:
if line2[0][1] in range(min(line1[0][1], line1[1][1]), max(line1[0][1], line1[1][1])):
if line1[0][0] in range(min(line2[0][0], line2[1][0]), max(line2[0][0], li... | [
"hapyaram@microsoft.com"
] | hapyaram@microsoft.com |
09da270e1e2c06a0e560ef30f7fadd91ddaec7e6 | 5330918e825f8d373d3907962ba28215182389c3 | /CMGTools/ZJetsTutorial/python/samples/run2012/diboson.py | b5453eedeeb69a296e71f73508c838dda097261d | [] | no_license | perrozzi/cmg-cmssw | 31103a7179222c7aa94f65e83d090a5cf2748e27 | 1f4cfd936da3a6ca78f25959a41620925c4907ca | refs/heads/CMG_PAT_V5_18_from-CMSSW_5_3_22 | 2021-01-16T23:15:58.556441 | 2017-05-11T22:43:15 | 2017-05-11T22:43:15 | 13,272,641 | 1 | 0 | null | 2017-05-11T22:43:16 | 2013-10-02T14:05:21 | C++ | UTF-8 | Python | false | false | 2,913 | py | import CMGTools.RootTools.fwlite.Config as cfg
# exclusive madgraph samples
# -- -- -- -- -- -- -- --
WWJetsTo2L2Nu = cfg.MCComponent(
name = 'WWJetsTo2L2Nu',
files = [],
xSection = 5.824, #PG from twiki: https://twiki.cern.ch/twiki/bin/viewauth/CMS/HiggsToTauTauWorkingSummer2012#MC_samples_and_cross_sec... | [
"colin.bernet@cern.ch"
] | colin.bernet@cern.ch |
dd539c83e1d88b90fd293cba625a36db7451ac85 | add74ecbd87c711f1e10898f87ffd31bb39cc5d6 | /xcp2k/new-cp2k.py | 11ac45a17e0441860ee71dfff7ef01d83976f612 | [] | no_license | superstar54/xcp2k | 82071e29613ccf58fc14e684154bb9392d00458b | e8afae2ccb4b777ddd3731fe99f451b56d416a83 | refs/heads/master | 2021-11-11T21:17:30.292500 | 2021-11-06T06:31:20 | 2021-11-06T06:31:20 | 62,589,715 | 8 | 2 | null | null | null | null | UTF-8 | Python | false | false | 25,853 | py | # -*- coding: utf-8 -*-
from __future__ import print_function
"""This module defines an ASE interface to CP2K.
Developed on the basis of
1) pycp2k by Singroup
https://github.com/SINGROUP/pycp2k
2) ase.calculator.cp2k by Ole Schuett
https://gitlab.com/ase/ase/blob/master/ase/calculators/cp2k.py
3) jasp by Joh... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
af3cf75f0f2968cd7056e7186e2f4bea356f2051 | 52719672d2bfb067014e25dc7e2dc8476c560399 | /learning_log/users/views.py | 469fd1b0d041f59dc1f13fa0fbbcbb0b706aedc3 | [
"Apache-2.0"
] | permissive | CowryGolden/django-learning | fd810ac25a074a043d3d2c399b499a6fff999f59 | 7d3e2af259b0aafd9c5607db3b6ff06b02dd97e9 | refs/heads/master | 2020-04-07T22:51:49.854688 | 2018-11-27T06:28:11 | 2018-11-27T06:28:11 | 158,788,109 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,120 | py | from django.shortcuts import render
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth import login, logout, authenticate
from django.contrib.auth.forms import UserCreationForm
# Create your views here.
def logout_view(request):
""" 注销用户 """... | [
"zhoujincheng777@qq.com"
] | zhoujincheng777@qq.com |
ede3e83aba291ec2e06da80e4ed453ad83cac121 | 0597e1ecca428e94671483ee835ce97a36d61b00 | /main.py | d14230e63dbbac020cb1acbcf27c6c871bf9dc5e | [] | no_license | CharlieWelly/aggregate_data | b1b0d7ade0ed002bbca77ff231cbbdf99d924cd2 | 6f68e3f065d193c37b32954945e21211764a083a | refs/heads/main | 2023-08-21T00:31:12.828904 | 2021-11-01T06:33:35 | 2021-11-01T06:33:35 | 422,065,657 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 663 | py | import sys
import v04
import time
MODES = {
"-n1": "NHOM_1",
"-n2": "NHOM_2",
"-n3": "NHOM_3",
"-n4": "NHOM_4",
}
def main():
start = time.perf_counter()
args = sys.argv[1:]
mode = args[1]
name = args[2]
v04.setUp(MODES[mode])
if args[0] == "-folder":
df = v04.loop_thr... | [
"VNTCC@ptr.com"
] | VNTCC@ptr.com |
f14113651e9161aa124f82bfeea2f92d8cf29fda | a2ff11c460c135da3338ae2dc082fc6e972b4b20 | /bin/easy_install | aca03ec14af26b5d4818e1e15d00e43e172ef71e | [] | no_license | AnshuOnGit/SkLearnDecisionTree | 7c0cd411a847f830671a494d02839d37d210d282 | 28bdd91361f6d2fcaf85cf7e44840cab9464a1d5 | refs/heads/master | 2021-01-23T02:54:23.923941 | 2017-03-30T06:40:11 | 2017-03-30T06:40:11 | 86,032,095 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | #!/home/anshu/smart_india_hackathon/dev_env/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())
| [
"anshu.kumar726@gmail.com"
] | anshu.kumar726@gmail.com | |
15eb1723482f5ae0d64e94905c26e5e5a78c0c5e | 52501f15893c8742ee15014a88789a35de5ccbdd | /src/profiles/api/serializers.py | 51c1f60e3a353dd76a11c958ceba4fcb95c3bc48 | [] | no_license | milosb793/django-gallery-api | f9b8aeb787f32a5a5fe2164fb78a7318e6fc30bc | 9b49cdfdcfbbc911cec23ed30ded30f6c4042522 | refs/heads/master | 2021-05-06T02:05:55.428397 | 2017-10-17T13:09:47 | 2017-10-17T13:09:47 | 114,498,504 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,970 | py | from django.conf import settings
from django.contrib.auth.models import User
from django.db import models
from django.forms import PasswordInput
from rest_framework import serializers
from rest_framework.fields import SerializerMethodField
from rest_framework.serializers import ModelSerializer
from src.profiles.models... | [
"milosb793@gmail.com"
] | milosb793@gmail.com |
2441cabae99ae34d4d6dd1b980b760e07462a3ee | bee9a140f51f85c612f4e869747aae3d155188c5 | /src/main/python/systemds/operator/algorithm/builtin/l2svm.py | cd7db9e4dc52e3b06e2141612f7bb57105b73816 | [
"Apache-2.0"
] | permissive | clarapueyoballarin/systemds | cb64a494afd14da142269c788c76edb236d8b755 | a68a71ddb089ebdd52e8f316a03bda281f4532ba | refs/heads/master | 2023-05-22T16:39:04.409220 | 2021-06-17T16:14:15 | 2021-06-17T16:14:15 | 341,305,828 | 0 | 1 | Apache-2.0 | 2021-02-24T22:51:31 | 2021-02-22T18:59:49 | Java | UTF-8 | Python | false | false | 2,344 | 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 unde... | [
"baunsgaard@tugraz.at"
] | baunsgaard@tugraz.at |
05a8c695d31a36031017aac34163e8814b4e9df0 | ed3ad9fa628f87bba681bafe7c981890fa7355f6 | /Homework3/python-challenge/PyBank/main.py/Bank_script.py | 20f7dbe148015e01a9871d6d851dd8345d4a4abd | [] | no_license | mneustadts/python-challenge | 60c562d2db5e82a29ef287b5145e1675ddf049ba | c9728de00367dd09259665221fb107bf7934c05b | refs/heads/master | 2022-11-13T02:54:12.763721 | 2020-07-10T02:58:17 | 2020-07-10T02:58:17 | 277,185,453 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,026 | py | import os
import csv
csvpath = os.path.join('..','Resources','budget_data.csv')
with open(csvpath) as csvfile:
csvreader = csv.reader(csvfile, delimiter=',')
print(csvreader)
csv_header = next(csvreader)
month = []
pnl = []
pnl_change = []
monthly_change = []
pr... | [
"noreply@github.com"
] | noreply@github.com |
7df275e453924594ecc556050cc35c4bbab9dfc8 | 4276339542799a7b9bd0c254097d7fe4aa419363 | /home/check_images.py | e65af81cd04860131ad4a7debf20eb1739a53c72 | [] | no_license | Olayiwola7/Artificial-Intelligence-with-Python-Project-1 | 1d4b43b3198b434f713fe6f94189462e062a00d3 | 1e8161e108d701373d71ef9e63788ad5779904a5 | refs/heads/main | 2023-08-03T13:28:50.346309 | 2021-10-01T06:11:45 | 2021-10-01T06:11:45 | 412,344,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,374 | py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
# */AIPND-revision/intropyproject-classify-pet-images/check_images.py
#
# TODO 0: Add your information below for Programmer & Date Created.
# PROGRAMMER:Olayiwola Arowolo
# DATE CREATED: 3/14/202... | [
"45934230+Olayiwola7@users.noreply.github.com"
] | 45934230+Olayiwola7@users.noreply.github.com |
4420d1af4f7b9d796eff20fa1340da4faba48719 | 970d419db064dd5bd079cdbf4482338ae9db7967 | /lenovo/thinkcloud/swagger/views.py | e3c14c816c058db136a358725952301915607a50 | [
"CC-BY-4.0",
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | onap/multicloud-openstack | 766d2c5646d5c2fd4e3beb3a35d169ad1e496cf1 | d0e9fd36a6fefe632a0d0622585af49be0594ce6 | refs/heads/master | 2023-06-11T22:04:42.824417 | 2022-03-22T07:54:06 | 2022-03-22T08:05:35 | 115,764,883 | 4 | 3 | NOASSERTION | 2021-06-29T19:07:08 | 2017-12-30T01:05:05 | Python | UTF-8 | Python | false | false | 2,049 | py | # Copyright (c) 2017-2018 Lenovo Systems, 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 ... | [
"310397125@qq.com"
] | 310397125@qq.com |
bffd4513031c134591a90b558e1174567f6690bc | 3155c38585c5d1cf27c4d8065cb5821f5b980983 | /package/awesome_panel/database/settings.py | 0c78182ac946b4d7c64acbe8293eb5400c0aa261 | [
"Apache-2.0",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown"
] | permissive | jlstevens/awesome-panel | 460c86ac886a86fa1a3f6ec79b6186f292ca10bc | c67b0f4529a3ce6a8517648f49fef8358e2e2c8b | refs/heads/master | 2020-11-25T03:11:10.018557 | 2019-12-16T20:57:07 | 2019-12-16T20:57:07 | 228,474,317 | 0 | 0 | Apache-2.0 | 2019-12-16T20:55:56 | 2019-12-16T20:55:55 | null | UTF-8 | Python | false | false | 459 | py | """In this module we provide a list of settings"""
GITHUB_URL = "https://github.com/MarcSkovMadsen/awesome-panel/"
GITHUB_BLOB_MASTER_URL = "https://github.com/MarcSkovMadsen/awesome-panel/blob/master/"
GITHUB_RAW_URL = "https://raw.githubusercontent.com/MarcSkovMadsen/awesome-panel/master/"
GITHUB_THUMBNAILS_URL = (
... | [
"MASMA@orsted.dk"
] | MASMA@orsted.dk |
341f3d6642671fb82aeba75ca4bc26459d43bd1f | f1593773b199c435114b316348b81126aa212cd6 | /web_flask/6-number_odd_or_even.py | 55e21f462a589f3a87e7aec051ee81b1abdeeef8 | [] | no_license | ledbagholberton/AirBnB_clone_v2 | 0f0f0889ed7fac9767e45b7fc17eafc388469738 | 8fefc58e76184fcfe86ec16dde1791fd8ff4777f | refs/heads/master | 2020-07-07T02:20:17.093914 | 2019-09-10T06:13:44 | 2019-09-10T06:13:44 | 203,214,786 | 0 | 0 | null | 2019-08-19T17:01:24 | 2019-08-19T17:01:24 | null | UTF-8 | Python | false | false | 1,942 | py | #!/usr/bin/python3
""" start a Flask Web application
"""
from flask import Flask, render_template
app = Flask(__name__)
@app.route('/', strict_slashes=False)
def hello_hbnb():
""" Print Hello HBNB """
return 'Hello HBNB!'
@app.route('/hbnb', strict_slashes=False)
def only_hbnb():
""" Print HBNB """
... | [
"789@holbertonschool.com"
] | 789@holbertonschool.com |
216454819387e5322cad158675193d6819924fe1 | ac2cd550f9e4f60e38176b76497d9016f346a71e | /lesson_7.py | bbaaa1d298f9676188cbb6203fe3f4f0664d6bea | [] | no_license | AndreyevichMak/QA-Automation | f4dafc3a9ba255a527ffc8bb022b4df4776f186f | 862523b88ed9de957b1c07617246ac83b83af6b6 | refs/heads/master | 2022-12-05T01:18:09.291782 | 2020-09-01T12:03:15 | 2020-09-01T12:03:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 210 | py | def test_7(app):
app.login_opencart()
app.click_on_mp3player()
app.click_on_test()
#assert 'There are no products to list in this category.' in driver.find_element_by_css_selector('#content ').text | [
"makarenkoandrew@mail.ru"
] | makarenkoandrew@mail.ru |
25dee2f580534fe5863bb4fc7a0cefb45fdbbc30 | d15b3857b3b5268a9652205364d2636e98803538 | /jingjingc/05_sklearn_and_ml/hall_of_fame_classifier.py | 29e1719ffcec1053e90fcacd7190c00345a2f871 | [] | no_license | bbalin12/DAT5_BOS_students | 1308327e6587d080a9fd1aaffb432f2c2ecd12bf | c33adef5943e026e7aa9b918e20a1c31df294899 | refs/heads/master | 2020-05-30T20:11:30.771193 | 2015-04-29T22:52:41 | 2015-04-29T22:52:41 | 29,398,534 | 6 | 23 | null | 2015-04-29T22:52:44 | 2015-01-17T17:09:00 | Python | UTF-8 | Python | false | false | 10,553 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Feb 14 12:47:56 2015
@author: jchen
"""
# Build a preditive model that predicts whether a player was inducted to the Baseball Hall of Fame
# before 2000 using their batting, pitching, and fielding results- not the number of votes they received.
# Please make sure to use K-f... | [
"jchen027@gmail.com"
] | jchen027@gmail.com |
2bb5f48e70aa47b02fa50d27b781476cfbf204c7 | 91bd01ea54744c308c95d3615d7db12e736fb18b | /dinbot/core/utils.py | c036cf491f328a53c129de0cc6dc3ec39425d0f6 | [] | no_license | kangfend/dinbot | 5e1ad14ac34604fd2883db4b7abed0b93b9c1886 | 0ace25dc694bc171fd72faf9ba196b04b609bd29 | refs/heads/master | 2021-01-01T18:11:52.668105 | 2014-10-22T14:50:11 | 2014-10-22T14:50:11 | 25,586,020 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | from __future__ import unicode_literals
import copy
class Choices(object):
"""
A class to encapsulate handy functionality for lists of choices
for a Django model field.
Each argument to ``Choices`` is a choice, represented as either a
string, a two-tuple, or a three-tuple.
If a single strin... | [
"kangfend@gmail.com"
] | kangfend@gmail.com |
d897c122c6f3abcf6658e12b25dbc23863ee63f2 | aef3292c8f42b72fccd413bf3a9c9f8b6cf2afc8 | /torchvex/meaningful_perturbation/__init__.py | 8a739372cf4cd886ce844717edd3c2e3e119dee7 | [
"MIT"
] | permissive | vlue-c/Visual-Explanation-Methods-PyTorch | 89bf8029eb5e4c9f1a218900383d444c585ada94 | e3eb592fe3aa0c719ef3e5d0f75238a2a3e84c3d | refs/heads/main | 2023-01-20T12:55:43.175054 | 2020-11-27T08:02:34 | 2020-11-27T08:02:34 | 311,287,634 | 8 | 3 | null | null | null | null | UTF-8 | Python | false | false | 75 | py | from .mask import MeaningfulPerturbation
from .mask import gaussian_filter
| [
"hslee0390@gmail.com"
] | hslee0390@gmail.com |
5766dd55a3b6fec054f0dbaca2ac130393cbe232 | 53f0f5468dfad0a2d456fd08569262ace19f23b3 | /src/profiles_project/profiles_api/migrations/0001_initial.py | b33ffbc20779fcb61eaf29cd6c76632f5fb53f07 | [] | no_license | flyingamy/profiles-rest-api | 3df9e61a589d639f40dbc4fd5a3aeb518d8a52a5 | 500a011dd4b343a1768ffec72c6b0bdb0a6b5253 | refs/heads/master | 2021-05-09T14:49:45.346273 | 2018-01-26T18:49:06 | 2018-01-26T18:49:06 | 119,072,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,777 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2018-01-25 14:32
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
('auth', '0008_alter_user_username_max_length'),
]
operations = [
... | [
"zhaoxuemei86@gmail.com"
] | zhaoxuemei86@gmail.com |
c1dd70fbc1dce2200deb95adda63bb4f34f84596 | 0cfe86a9678f46c58062d78240f87d9bd458deed | /web-development/engineapp/main.py | d28d93eacd11d8fe07ffd7e7b8f944359696a6b4 | [] | no_license | SIMMI2KUMARI/deep_ml_ALL_merged | e8434a64efceaf00144e8ef83c40c0cb95dcbeac | 813fccd2dcabce49a57ec1e4ea03a2499c74cb97 | refs/heads/main | 2023-02-20T13:57:19.241857 | 2021-01-26T21:27:56 | 2021-01-26T21:27:56 | 333,220,209 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,050 | py |
import os
import webapp2
import jinja2
import hashlib
import re
from string import letters
import urllib2
from xml.dom import minidom
from google.appengine.ext import db
template_dir = os.path.join(os.path.dirname(__file__), 'templates')
jinja_env = jinja2.Environment(loader = jinja2.FileSystemLoader(template_dir),... | [
"noreply@github.com"
] | noreply@github.com |
2cfe92888dff587c17cf100a3ba9d25a5c0a2633 | fda2c891c6a159c54504e768012e61924abc11a3 | /ejercicios_python/informe_funciones.py | 6673a472f3263a2dba47065efa01e0fc30f17dce | [] | no_license | luciasucunza/unsam_python | 4bf54b8b9f9034c212e30e943815f86b71f7c751 | 26a6e491f88e8212c575a56a79a3dab4cc2497ae | refs/heads/main | 2023-06-03T16:26:08.681480 | 2021-06-17T19:03:09 | 2021-06-17T19:03:09 | 377,932,410 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,456 | py | # informe_funciones.py
import csv
import fileparse as fp
#------------Función:leer_camion------------
def leer_camion(nombre_archivo):
camion = fp.parse_csv(nombre_archivo)
return camion
#------------Función:leer_precios------------
def leer_precios(nombre_archivo):
'Devuelve los precios en form... | [
"luciasucunza@frba.utn.edu.ar"
] | luciasucunza@frba.utn.edu.ar |
b6fd1cb50b6a90fba0a8720a1c21ec4355b2ffec | 38f0c9ac9dd1dfaf2310165ba9fea5b4ad787f6b | /src/cfehome/settings/production.py | 90477df7bdac71c27aa8ca044d31927fb9d097c7 | [] | no_license | Tabas32/knircoding | d58a60f8944d5b879854ddfaeaf143dd6cb5ff12 | 5fb6c6a95848830ea783fb155b0e06c00b8eddd2 | refs/heads/master | 2021-09-02T01:19:31.477419 | 2017-12-29T16:00:15 | 2017-12-29T16:00:15 | 115,107,406 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,727 | py | """
Django settings for cfehome project.
Generated by 'django-admin startproject' using Django 2.0.
For more information on this file, see
https://docs.djangoproject.com/en/2.0/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.0/ref/settings/
"""
import os
# B... | [
"marian.sabat@centrum.sk"
] | marian.sabat@centrum.sk |
499ca439f8deb4c3c382d1c47c6df47873853d24 | e4de060c295fba0d0386d0a7678e744ced18b920 | /build/car_szenario/cmake/car_szenario-genmsg-context.py | 309534aaf9d5f6c3f170188f065ab4b9cae655ff | [] | no_license | jbenzhhn/carla_hhn | af9497d01ce1f34ee0016ca660a0cc5af5f71be8 | abd803bcdd506641c8152ec994468518ea809f1b | refs/heads/master | 2023-04-05T10:50:28.934452 | 2021-04-07T14:31:41 | 2021-04-07T14:31:41 | 355,151,500 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 788 | py | # generated from genmsg/cmake/pkg-genmsg.context.in
messages_str = "/home/automotive/catkin_ws/src/car_szenario/msg/RoadInfo.msg"
services_str = ""
pkg_name = "car_szenario"
dependencies_str = "std_msgs;geometry_msgs;nav_msgs"
langs = "gencpp;geneus;genlisp;gennodejs;genpy"
dep_include_paths_str = "car_szenario;/home/... | [
"johannes.benz@hs-heilbronn.de"
] | johannes.benz@hs-heilbronn.de |
b21da1aba578f06baeba015e296dc1269a4c6702 | 46fe34e8ff3a75380fb47d01f5eb758da0ff7df7 | /appbackup.py | 2a0395e5622b3982f068e9a70ec0a29a7cfc5022 | [
"MIT"
] | permissive | Quyzi/autodock | ae12b07ee8ae4757f5429b7a66c3a15505b447df | 56516b62d01d4e9fbf0a6ff62c710fdd84c42838 | refs/heads/master | 2021-01-15T15:05:06.876902 | 2013-12-24T18:24:43 | 2013-12-24T18:24:43 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,824 | py | '''
Automates the backing up of customer containers
'''
import salt.client
from etcd import Etcd
class AppBackup(object):
def __init__(self, manager, logger):
self.etcd = Etcd(logger)
self.logger = logger
self.manager = manager
self.salt_client = salt.client.LocalClient()
# Backup this users fo... | [
"xfactor973@gmail.com"
] | xfactor973@gmail.com |
34a4d7d23e1a7739f3a8b30538d2078ec65dce64 | b801e38bfd1bddb7c328a529f4fdea41c592323a | /pong.py | 242e8ff6c0569a3ffc2a57370955f5d03863ccff | [] | no_license | alexaustin007/Pong-game | 5e6a48140f53325cbbb3421343745e1522082d39 | af817c0ab50baae217257dd4883eb0d3eac8a8fc | refs/heads/main | 2023-04-20T21:43:43.675426 | 2021-05-12T04:55:38 | 2021-05-12T04:55:38 | 366,596,331 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,343 | py | '''import turtle #turtle used for basic graphics especially games
wn = turtle.Screen()
wn.title("pingpong by @alexaustin007")
wn.bgcolor("black")
wn.setup(width=800,height=600)
wn.tracer(0) #it speeds up the game quite a bit
#score
score_a = 0
score_b = 0
# Paddle A
paddle_a = turtle.Turtle()
paddle... | [
"noreply@github.com"
] | noreply@github.com |
3dffb927230c836a6335dd500e68d9cd4c8c3cbe | 8ab78974988f4447b5895fa15a5679e70ea20aee | /hclustfact/__init__.py | b7a50eae5b932f3fa51e98e2936b70d67c7820c4 | [] | no_license | cbongiorno/HclustFactor | 771147dc0171ecfa0e7c63bbca6138efc0a133fe | 0fe5999aa69b81a1141dc396f09b9bc6ebda51b6 | refs/heads/master | 2021-03-24T12:52:42.172348 | 2016-12-06T19:11:18 | 2016-12-06T19:11:18 | 75,723,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from hclustfact.MainHclF import Hierarchy
| [
"pvofeta@gmail.com"
] | pvofeta@gmail.com |
ad0aff4df6556899c3625912e906f94cb6070946 | a9e00a787b624c1eb5ff7e2236dd5df48f56789c | /12.py | 7790707dbbf04e04a841698406c07f24730030cd | [] | no_license | shreyansbhavsar/compititive-coding- | e1e4ce064719ce60fd792b7e4e21ce8b75a66568 | 9a7f7371d8176282a3b059ec2f2c65a853d176dd | refs/heads/master | 2022-06-22T23:20:58.355990 | 2022-05-25T19:23:50 | 2022-05-25T19:23:50 | 261,390,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import numpy as np
from sys import stdin
def show_result(data):
T = data[0][0] # test case num
n_idx = 1
for i in range(T):
n = data[n_idx][0]
origin_tasks = data[(n_idx+1):(n_idx+1+n)]
tasks = sorted(origin_tasks, key=lambda x: x[0])
sorted_idx = sorted([i for i in range(... | [
"shreyansbhavsar9950@gmail.com"
] | shreyansbhavsar9950@gmail.com |
a615d2b2528d631e64114794df2779334b205637 | 57bfb6d66710adf452a0e2f60398ea33b928f4b4 | /utils/utils.py | 329c872d658f04a6c5b94eb50651d22f5f0bae4e | [
"MIT"
] | permissive | mreq/SublimeMagic | 35402366e11042a767122a4edceee4cdee14855c | dc93c280d27055b4fad85b3c376fcf7ae31a5586 | refs/heads/master | 2021-01-20T18:58:18.705062 | 2017-01-07T23:09:45 | 2017-01-07T23:09:45 | 64,035,290 | 8 | 1 | null | 2016-12-31T14:49:49 | 2016-07-23T20:39:13 | Python | UTF-8 | Python | false | false | 659 | py | import sublime
def find_previous_delimiter(view, line, re_delimiter, start):
found = None
while start > line.a and start > 0:
region = sublime.Region(start - 1, start)
if re_delimiter.match(view.substr(region)):
found = start
break
start -= 1
return found
... | [
"contact@petrmarek.eu"
] | contact@petrmarek.eu |
abe2db4794797e77069626385bfd10436a5096be | 62f68303f59cc4344d390b3abf91b1a71aa2a4fe | /siki_website_sale_social_share/__openerp__.py | 4168ae099c478a73d57f46c2f56e1c91ee8c710f | [] | no_license | ControlWebManager/Requerimientos_SIKI_SAS | b8b0f514ce979a1b91f63d5f4076bc408fd6bbca | 7d3f9f69de82633b5ddb18657a15da55e71c1d32 | refs/heads/master | 2020-05-20T16:07:59.464118 | 2019-11-27T22:55:55 | 2019-11-27T22:55:55 | 185,659,981 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,108 | py | # -*- coding: utf-8 -*-
{
'name': 'Botones Compartir producto en Redes Social',
'summary': 'Share contents in social networks',
'depends': [
'website',
'website_sale',
],
'author': 'SIKI SAS, Developer Ing Henry Vivas',
'website': 'www.sikisoftware.com',
"support": "controlw... | [
"noreply@github.com"
] | noreply@github.com |
375d8559fca821199d9f096f090ba521769263c6 | 913a7b6ec21e1e49ab0975ed928e98d35e602a96 | /Python Codewars/Greed is good.py | 5f3ca060eeac229a489ec2f10af30b5729fe57a1 | [] | no_license | akshaymanoj11794/CodeFun | 60a90cbb0f7181cf0948a083703311a5ff356717 | ed96dc12f30d6fb927fbafb45a5417e3fa9abd90 | refs/heads/master | 2021-01-14T05:54:37.003788 | 2020-02-24T01:36:37 | 2020-02-24T01:36:37 | 242,619,088 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | # Greed is a dice game played with five six-sided dice. Your mission, should you choose to accept it, is to score a throw according to these rules. You will always be given an array with five six-sided dice values.
# Three 1's => 1000 points
# Three 6's => 600 points
# Three 5's => 500 points
# Three 4's => 400... | [
"akshaymanoj11794@gmail.com"
] | akshaymanoj11794@gmail.com |
c873d90bb0bf04eb663dd8c4746c5467ba2e175a | 622d5683c2e53d378c3c3ba9453d7abd8058581b | /icse38/manage.py | c9bcdf74f316f322ef337946d28ef53fe29a4441 | [
"MIT"
] | permissive | rp17/icse38site | 5afcdd8ee986e9bb4c0fd9aa0dd82245c986117f | eff2f4c33db8f07140d681177148614c7401b976 | refs/heads/master | 2021-01-18T14:15:53.334441 | 2015-01-14T07:24:38 | 2015-01-14T07:24:38 | 26,727,413 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "icse38.settings.local")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"rp31@txstate.edu"
] | rp31@txstate.edu |
73faa7aa222e5a2139a1e51d55fc948bf578dafc | 059a61afa19361fe2dd3509cda7924a3eb74b8e0 | /bookmanager/book/models.py | 4dab062e1015fd45c479fdd1df213fcc75dbe06f | [
"MIT"
] | permissive | songaiwen/Django2 | bf3628b7dcd1c28b65644ecfb4442091fdf54991 | 685e41a7f90e4d245f361f8fb78992aebd422978 | refs/heads/master | 2020-03-19T17:54:17.669938 | 2018-06-19T01:38:43 | 2018-06-19T01:38:43 | 136,783,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 705 | py | from django.db import models
"""
create your models here
定义模型类
模型迁移
操作数据库
"""
#1.定义模型需要集成model.Model
#准备书籍列表信息的模型类
class BookInfo(models.Model):
#创建字段,字段类型,自动创建主键并自动增长
name = models.CharField(max_length=20)
def __str__(self):
#将模型类以字符串的方式输出
return self.name
#准备人物列表信息的模型类
class PeopleInfo(... | [
"576883213@qq.com"
] | 576883213@qq.com |
f78c251f5afd3689e2c6083e1fc40349ec45fb72 | 3fa4aedf320396c3d780ba3cd3c4760ac007ee30 | /nba_api/stats/endpoints/boxscoremiscv2.py | 9a949ea6e5741e796fda0f6a041829728481a016 | [
"MIT"
] | permissive | Fragadule/nba_api | fb4adfe14d355223838df80aa52ab68d2be3c492 | 9df8ba11ade56a1f6b4ff0791adc276052a286c6 | refs/heads/master | 2020-04-13T19:51:43.835155 | 2018-12-28T13:41:47 | 2018-12-28T13:41:47 | 163,414,364 | 0 | 0 | MIT | 2018-12-28T13:37:28 | 2018-12-28T13:37:28 | null | UTF-8 | Python | false | false | 1,841 | py | from nba_api.stats.endpoints._base import Endpoint
from nba_api.stats.library.http import NBAStatsHTTP
from nba_api.stats.library.parameters import EndPeriod, EndRange, RangeType, StartPeriod, StartRange
class BoxScoreMiscV2(Endpoint):
endpoint = 'boxscoremiscv2'
expected_data = {'sqlPlayersMisc': ['GAME_ID',... | [
"swarchon@gmail.com"
] | swarchon@gmail.com |
f9d72241ffe73408acb4f8526964a5d6d7df5baf | b2c420540d6b053fde4404f79fcaecc2f20d4f17 | /Flight/flightRegistrationApp/models.py | 4e72378253d8be1107582edd330b70734f5987f6 | [] | no_license | haruboss/flight-application | 44a2de81e83b69413f9d0402f5fe0fca537d0c1e | 75b7091f201cb025e380b51ac6b602b3bedb0f60 | refs/heads/main | 2023-07-10T09:40:36.554262 | 2021-08-31T11:24:37 | 2021-08-31T11:24:37 | 401,676,833 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 584 | py | from django.db import models
TRIP_CHOICE =(
("One Way", "One Way"),
("Round Way", "Round Way"),
)
class Flight(models.Model):
name = models.CharField(max_length=50)
source_city = models.CharField(max_length=50)
destination_city = models.CharField(max_length=50)
trip_category = models.CharFi... | [
"harshit.saxena2016@gmail.com"
] | harshit.saxena2016@gmail.com |
9e576c530de7906567dbe5b9d96b25f93accd231 | cf8be80fe9d7acfae03d86430d1c8ff8d22a8655 | /ribosome/components/internal/mapping.py | 3f86df4834cd10bddda137ef16920a9828206e20 | [
"MIT"
] | permissive | tek/ribosome-py | 4da2faf3f7c2d646c5a90bf73e81ec12bd360d38 | 8bd22e549ddff1ee893d6e3a0bfba123a09e96c6 | refs/heads/master | 2022-12-21T22:46:49.075358 | 2020-08-31T16:22:51 | 2020-08-31T16:22:51 | 66,086,253 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,570 | py | from typing import Callable
from amino import do, curried, Do, __, _, Either
from amino.lenses.lens import lens
from amino.logging import module_log
from ribosome.nvim.io.state import NS
from ribosome.data.plugin_state import PluginState
from ribosome.nvim.io.compute import NvimIO
from ribosome.compute.program import... | [
"torstenschmits@gmail.com"
] | torstenschmits@gmail.com |
d9ef3d332490ccca0d0304377ebc18ec573ce446 | d69fc7055bb66d379b181f3f59751afe34ae2322 | /freezes.py | 74325098c804f4fe0ffdeea7431bb53a9f3ed6b2 | [] | no_license | marofmar/LearnPyTorch | 816c888b5bf8c3a1248057ee868106adfadd239e | 8dfd2ceb1d53b6c3e38135a288b64aeb3692fd11 | refs/heads/master | 2023-03-15T20:06:33.824233 | 2021-03-11T07:09:46 | 2021-03-11T07:09:46 | 345,507,101 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 431 | py | import torch, torchvision
from torch import nn, optim
model = torchvision.models.resnet18(pretrained=True)
# freeze all the params in the network
for param in model.parameters():
param.requires_grad = False
model.fc = nn.Linear(512, 10) # replace the last classifying layer to the linear of 10 classes
optimiz... | [
"yjchung@promedius.ai"
] | yjchung@promedius.ai |
cc585b85d4dff7afbef3367121220d3d47856371 | 49d261e9e23f1f15e36f8c40c1d15b281c117efe | /clase 1/_4_tipo_tuple.py | dd01e6c9bc3b918e45c8b05d8d94531ce5e87ef4 | [] | no_license | LiamAlexis/programacion-en-python | 3b2ddb9f54766f74a0692de45bc998114a58d074 | 6a3b883864e7b021c1c79631cd644fc8e9d7f93a | refs/heads/main | 2023-08-12T03:13:04.736775 | 2021-10-15T00:38:39 | 2021-10-15T00:38:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,197 | py | """
Tuplas en Python
"""
tupla_1 = 1, 2, 3, 4, 5, 2, 10, 2
tupla_2 = 'hola', 34, True, 2.5
tupla_3 = 1, 2, [9, 6, 3], 'Hola', 'personaje'
tupla_4 = tuple([2, True, 'palabra'])
# Acceso a los elementos de una tupla
# print(tupla_2[0])
# print(tupla_2[-1])
# print(tupla_3)
# tupla_3[2].append('c')
# print(tupl... | [
"nikolas090189@gmail.com"
] | nikolas090189@gmail.com |
45bf5ef9b36c9ae30464888f0e2bd5c5942bd3b6 | b5a9d42f7ea5e26cd82b3be2b26c324d5da79ba1 | /tensorflow/contrib/training/python/training/sequence_queueing_state_saver_test.py | 78d7c44ef28e450af4715332642d6a448fb9e068 | [
"Apache-2.0"
] | permissive | uve/tensorflow | e48cb29f39ed24ee27e81afd1687960682e1fbef | e08079463bf43e5963acc41da1f57e95603f8080 | refs/heads/master | 2020-11-29T11:30:40.391232 | 2020-01-11T13:43:10 | 2020-01-11T13:43:10 | 230,088,347 | 0 | 0 | Apache-2.0 | 2019-12-25T10:49:15 | 2019-12-25T10:49:14 | null | UTF-8 | Python | false | false | 28,300 | py | # Copyright 2016 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by... | [
"v-grniki@microsoft.com"
] | v-grniki@microsoft.com |
b9679f711689aefe75d559577c6463c81f3bf6a7 | ccbfc7818c0b75929a1dfae41dc061d5e0b78519 | /aliyun-openapi-python-sdk-master/aliyun-python-sdk-chatbot/aliyunsdkchatbot/request/v20171011/CreateCategoryRequest.py | 81f144f15ac24e87bc0a3e60b668be68a5c5c461 | [
"Apache-2.0"
] | permissive | P79N6A/dysms_python | 44b634ffb2856b81d5f79f65889bfd5232a9b546 | f44877b35817e103eed469a637813efffa1be3e4 | refs/heads/master | 2020-04-28T15:25:00.368913 | 2019-03-13T07:52:34 | 2019-03-13T07:52:34 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,311 | 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 u... | [
"1478458905@qq.com"
] | 1478458905@qq.com |
4bf9fa6772197b693a84d0fbece8ceef55c47b66 | 8cac2c1f717447643e8e0ba3648d27b163de5299 | /vesicles/helperFunctions.py | 871b93f11647a9aaa5523bd6291a811556adcdc7 | [] | no_license | gelisa/pdmmod | 33af8f1344692085992ff01d127a77086b6ab51e | ab81b6f7a8660c2d989e97a43fc7e663a646d18c | refs/heads/master | 2021-01-18T00:53:43.939311 | 2017-03-10T02:43:02 | 2017-03-10T02:43:02 | 24,741,654 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,247 | py | #!/usr/bin/python
"""
File with helper functions for analyzing and running vesicle simulations
"""
import sys
sys.path.append('../')
import libSimulate
def runInitSimulation(modelNum, path, endTime, timeStep=0.0001): #TESTED
"""
helper function, which runs simulation to produce different starters initPopul... | [
"elizaveta.guseva@stonybrook.edu"
] | elizaveta.guseva@stonybrook.edu |
7e0aa58038722f83d48668b52a74d447e3367432 | d54a4454c1893b98d49381aa1182ca5c1031935a | /api.py | 3c72729a7a1a0f4c1de363b24e494f25248ffd10 | [
"Apache-2.0",
"MIT"
] | permissive | CodeLeom/pandelytics | 8866913e656fc0036afebe995bc60bf2558d4502 | 5950d4a95595dadf076ac9270be0dbcdcfa59a1a | refs/heads/master | 2022-06-23T16:52:02.355863 | 2020-05-11T08:26:37 | 2020-05-11T08:26:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 165 | py | from pandelytics import search
from fastapi import FastAPI
app = FastAPI()
@app.get("/")
async def root():
news = search.search("jhu", "Data")
return news | [
"noreply@github.com"
] | noreply@github.com |
ec8e3c52a8028fbf811d28b44f8aa0bc0585ac61 | 01d6deac62519413f620e4f8291cecd7c2017cc5 | /Hackathon 9/main.py | 64236ac4f7ef1ff8faa59981e731030522047adc | [] | no_license | ecustodio123/Hackathon-9 | 1ff455adb85a991dd3b803e8edcd86c41fb94554 | e86fbec9e2bd1d3bb982aed30bc10a144a56f7bf | refs/heads/master | 2022-12-27T01:05:10.166469 | 2020-10-04T10:38:51 | 2020-10-04T10:38:51 | 301,102,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,424 | py | from helpers.menu import Menu
from controllers.rol_controller import Roles_controller
from controllers.almacen_controller import Almacen_controller
from controllers.almacen_total_controller import Almacen_total_controller
from controllers.cajero_controller import Cajero_controller
def iniciar_app():
try:
p... | [
"ecustodioflores@gmail.com"
] | ecustodioflores@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.