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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8cb15969e90d1fb204f6d134054b16e7beb7e3b6 | 806132bffbabefa5750154839e276aae8edb5570 | /src/tree.py | a5e127fb1622bbe87c05a5a6de30888c7706f35f | [] | no_license | Tarrasch/ravens-test | f5d30215b206102439f4aeb4cdd020c703b1881c | 951a72a6803745b2e5318a74ab05d56915e7ecd5 | refs/heads/master | 2020-06-01T04:20:25.901271 | 2012-11-20T12:44:46 | 2012-11-20T12:44:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 410 | py | def map_tree(f, tree):
grid = tree['grid']
alts = [tree[k] for k in range(100) if tree.has_key(k)]
grid = map(lambda xs: map(lambda x: f(x), xs), grid)
alts = map(lambda x: f(x), alts)
return dict([('grid', grid)] + [(i, alts[i-1]) for i in range(1,len(alts)+1)])
def collapse_tree(tree):
grid = tree['grid'... | [
"miffoljud@gmail.com"
] | miffoljud@gmail.com |
4bb2cddf7a70efd8f3dc3329932dd7882dbfab0e | 46a16d4d4054e6063d2f3ed07c79bbd34c520f3b | /tests/trainer/test_data_loading.py | e9d5d3cc047cb83b8c5f4675916634f6bfbab5e7 | [
"Apache-2.0",
"LicenseRef-scancode-proprietary-license"
] | permissive | kaushikb11/pytorch-lightning | 123c90076d340214d8ba2f68b7a3138c2b30959d | 8a931732ae5135e3e55d9c7b7031d81837e5798a | refs/heads/master | 2023-08-25T09:07:02.245113 | 2021-08-22T18:50:10 | 2021-08-22T18:50:10 | 319,391,066 | 1 | 2 | Apache-2.0 | 2020-12-07T17:16:13 | 2020-12-07T17:16:12 | null | UTF-8 | Python | false | false | 11,953 | py | # Copyright The PyTorch Lightning team.
#
# 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 i... | [
"noreply@github.com"
] | noreply@github.com |
114b4c677ac9ad89733f6b700813000b37a0f4b4 | 7f7fc72cf2f2f06ef7eb5d852d0bd2caf3f2daf9 | /sirepo/runner.py | 6b4f1b20aa57674dc9faee958a025c976818c02e | [
"Apache-2.0"
] | permissive | kalebswartz7/sirepo | 4bcd41113ba93a3f7bcfa47df27e79805e1e4f50 | 8d1f2b3914cf9622eaae6b0bf32e23e38e4e5972 | refs/heads/master | 2020-03-19T08:31:41.409642 | 2018-07-20T19:32:48 | 2018-07-20T19:32:48 | 136,211,659 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,268 | py | # -*- coding: utf-8 -*-
u"""Run jobs
:copyright: Copyright (c) 2016 RadiaSoft LLC. All Rights Reserved.
:license: http://www.apache.org/licenses/LICENSE-2.0.html
decouple so can start any type of job
add is_background_import to simulation_db
select docker for that if configured and not background
need to have hard ... | [
"github@q33.us"
] | github@q33.us |
a725500a2e349cbf8954f750c637d836326569bd | 6e485ffa2ce9559fdcc05f3650483c49c46b7102 | /db/note_model.py | 75c2f2557a1deed01b6a49192e6fd6930d664882 | [] | no_license | araneta/Tugas-statistik | 23164ec3f096903675be4dcdb76c1f6ad1cb6a81 | 573376a3d174d9b53428d21e221a3338ee392e67 | refs/heads/master | 2021-01-19T18:58:19.678755 | 2017-04-16T04:26:18 | 2017-04-16T04:26:18 | 88,391,000 | 0 | 0 | null | 2017-04-16T04:28:48 | 2017-04-16T04:28:48 | null | UTF-8 | Python | false | false | 2,631 | py | from database import *
import datetime
class NoteModel:
def __init__(self):
self.db = db
self.cursor = cursor
def all_post(self):
sql = "select * from note where id_user = 1 order by tanggal_diperbaharui desc"
try :
self.cursor.execute(sql)
temp_results = self.cursor.fetchall()
results = []
i = 1
... | [
"aldopraherda@gmail.com"
] | aldopraherda@gmail.com |
be1283b73ee741d767063e871b3ee06309038aa2 | 0fc2f0277c68758b5da261dab12cf45b32d45f0b | /main.py | e0e11198ee497cf87f4533922c7a607ad5f18277 | [] | no_license | sysadminamit/Bbox-Label-Tool-For-Multi-Class | af1a2c4792ba28cb6647a9100488fd06177e1cb0 | 05106fceb9d1d2c8d775fb4edb2e84e45aeb90a1 | refs/heads/master | 2020-04-28T18:20:06.922178 | 2019-03-13T18:19:47 | 2019-03-13T18:19:47 | 175,475,155 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,297 | py | from tkinter import *
from tkinter import filedialog
from tkinter import messagebox
from tkinter import ttk
from PIL import Image, ImageTk
import os
import glob
import random
# colors for the bboxes
COLORS = ['red', 'blue','pink', 'cyan', 'green', 'black']
# image sizes for the examples
SIZE = 256, 256
... | [
"noreply@github.com"
] | noreply@github.com |
9b2fa84da02cc1dc0fefaa6972b0474d32d36b06 | 634425d7a7dbc99c45da4d27924af5a3e6112fca | /Linear_classifiers/(b) linear classifiers.py | 6b9abb4cd105d1c441fbf88837c0b48f0b1847fb | [] | no_license | fahimalamabir/datacamp | dc342645796c37401156bf79d7c5d20f262e4469 | 8224a69801d6a4236cf3e99bebd4f149cc846b4b | refs/heads/main | 2023-06-15T16:26:18.271836 | 2021-07-06T22:09:31 | 2021-07-06T22:09:31 | 318,082,895 | 0 | 0 | null | 2020-12-04T02:06:26 | 2020-12-03T05:15:50 | Jupyter Notebook | UTF-8 | Python | false | false | 5,107 | py | '''
How models make predictions
Which classifiers make predictions based on the sign (positive or negative) of the raw model output?
ANSWER THE QUESTION
50 XP
Possible Answers
Logistic regression only
press 1
Linear SVMs only
press 2
Neither
press 3
Both logistic regression and Linear SVMs
press 4
Submit Answer
Take ... | [
"noreply@github.com"
] | noreply@github.com |
608a35b305264d22101fae93881d6336cfdbead0 | 3fb61cb2da8cad71b214a7faadffc27bcd1a5315 | /transformServices/app/gleanomatic/RSRestClient.py | c9ba11949e70f0f5f7fef4fed1d21da9d7111ea4 | [] | no_license | dhenry314/gleanomatic | 4ed0ed80836e4aa622392ec804e6ca2a95336a7b | 9c9c8ab9a6da83d4a1fc429289c7450bf606005b | refs/heads/master | 2021-07-06T02:55:43.571032 | 2019-04-15T18:21:12 | 2019-04-15T18:21:12 | 148,791,398 | 0 | 1 | null | 2018-10-04T21:35:10 | 2018-09-14T13:19:57 | Python | UTF-8 | Python | false | false | 5,442 | py | # RSRestClient - client to interact with a RSEngine REST endpoint
import urllib.request
import urllib.parse
import json
import gleanomatic.Utils as Utils
from gleanomatic.GleanomaticErrors import BadResourceURL, AddResourceError, AddDumpException
import gleanomatic.gleanomaticLogger as gl
logger = gl.logger
class RS... | [
"dhenry314@gmail.com"
] | dhenry314@gmail.com |
6e3f6c3449d7f93848d1116b344a0dcabece60f2 | 6cf86e6122b3c65853231481ff73d40a25374eb1 | /Input().py | 068cf37daec039fb7b1eb52c376b116f2b161ace | [] | no_license | npc203/hackerrank-one-liners | d9480ce71cde342458689250963d1f69f3a38093 | a7eb66c8d1bfa3508cae28ff6160db2728df3b5b | refs/heads/main | 2023-07-17T12:03:03.757519 | 2021-08-20T12:30:18 | 2021-08-20T12:30:48 | 375,340,120 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 67 | py | (lambda x,b : print(eval(input()) == b))(*map(int,input().split())) | [
"npc203@users.noreply.github.com"
] | npc203@users.noreply.github.com |
27bb8d83d6f836d2e2dc817c8c5c463d2a65544f | d030f5b120dbbb62f95fd964bde379637846de06 | /ROSservice/catkin_ws/devel/lib/python2.7/dist-packages/face1/srv/__init__.py | 3337d4fca6327faac64425e4c087ba544643def5 | [] | no_license | cd74/ROSface | 29a40d16dd75f564cd24d15f01349d8b4a4e491e | 1506120c2bb9c13935849f2e4698ef1add551561 | refs/heads/master | 2022-04-25T01:33:49.269936 | 2020-04-27T06:15:38 | 2020-04-27T06:15:38 | 258,939,380 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 25 | py | from ._FaceSrv1 import *
| [
"3050272147@qq.com"
] | 3050272147@qq.com |
fcd11702e81bde025971e101d2d70f66f5e8cdb3 | 55e81ceffe94ec087ea9c4e6576093b56a86b852 | /src/modules/convolution.py | 0838e88f436ead2fb4833f31b9288f853b90c574 | [] | no_license | feathernox/neuroml_fmri_deepspd | 43941062e244c4ae9084821a7512a287407be0c3 | 119f968458a92d3ea644f55d1d4fab9527b73c16 | refs/heads/main | 2022-12-30T23:48:28.771036 | 2020-10-25T10:13:23 | 2020-10-25T10:13:23 | 306,640,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 640 | py | import torch
from torch import nn
from torch.nn import init
import math
class SimpleConvolution(nn.Module):
def __init__(self, in_channels, out_channels):
super().__init__()
self.in_channels = in_channels
self.out_channels = out_channels
self.weight = nn.Parameter(torch.Tensor(in_... | [
"remizova.as@phystech.edu"
] | remizova.as@phystech.edu |
b6b7520917496dbd41f7f57d11d8d68f84434ff7 | ee179dd9e9b24046508b11a60612da3758c7e122 | /lib/python2.7/site-packages/nltk/stem/api.py | c6032423e84a9a5b8a1985afcf341e4084970792 | [] | no_license | buhtigexa/Nerit | fcd6cb08a0935e5b80392ae2acf68ba52ee8a899 | d55629f6289c1fa6efe60802a78b79932ff248a2 | refs/heads/master | 2021-01-21T13:11:51.105930 | 2015-05-01T23:56:02 | 2015-05-01T23:56:02 | 34,728,820 | 4 | 2 | null | null | null | null | UTF-8 | Python | false | false | 781 | py | # Natural Language Toolkit: Stemmer Interface
#
# Copyright (C) 2001-2014 NLTK Project
# Author: Trevor Cohn <tacohn@cs.mu.oz.au>
# Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com>
# URL: <http://nltk.org/>
# For license information, see LICENSE.TXT
class StemmerI(object):
"""... | [
"mrodriguez@alumnos.exa.unicen.edu.ar"
] | mrodriguez@alumnos.exa.unicen.edu.ar |
0f1fbd0076898caca22bdff66e84b8f1ca8cade5 | d060c02ffd05cca79f469a4cd8d26827b3f3c3e4 | /job/schema.py | c15f7516218d5b5d2d4843e0874976b6f3420dba | [] | no_license | symek/job-cli | 4a2a190cf30348e5b2ca27c6c67c081599da495a | dfe2f629bd0a9956bddedd9b3d5544c3b91769d7 | refs/heads/master | 2021-01-13T04:11:46.571599 | 2020-11-17T16:11:12 | 2020-11-17T16:11:12 | 77,702,058 | 0 | 1 | null | 2017-03-03T12:59:48 | 2016-12-30T18:01:20 | Python | UTF-8 | Python | false | false | 5,852 | py |
from schematics.models import Model
from schematics.types import StringType, URLType, BooleanType, BaseType, IntType
from schematics.types import UUIDType, DateTimeType, TimestampType
from schematics.types import ListType, ModelType, DictType, PolyModelType
from schematics import exceptions
import json
import collec... | [
"szymon.kapeniak@gmail.com"
] | szymon.kapeniak@gmail.com |
37434a2d02bf51c411162c56fe9eda123ad980d9 | bede13ba6e7f8c2750815df29bb2217228e91ca5 | /advance_cash_flow_statements/wizard/account_account.py | 8ab4d6059149ffc32c123a592816f6a73772185a | [] | no_license | CybroOdoo/CybroAddons | f44c1c43df1aad348409924603e538aa3abc7319 | 4b1bcb8f17aad44fe9c80a8180eb0128e6bb2c14 | refs/heads/16.0 | 2023-09-01T17:52:04.418982 | 2023-09-01T11:43:47 | 2023-09-01T11:43:47 | 47,947,919 | 209 | 561 | null | 2023-09-14T01:47:59 | 2015-12-14T02:38:57 | HTML | UTF-8 | Python | false | false | 3,562 | py | # -*- coding: utf-8 -*-
#############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2019-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: Cybrosys Techno Solutions(<https://www.cybrosys.com>)
#
# You can modify it under... | [
"ajmal@cybrosys.in"
] | ajmal@cybrosys.in |
42ee0b0d809863a628c4d9a10375863e7328db4a | fb54704d4a6f9475f42b85d8c470e3425b37dcae | /medium/ex46.py | b8f578eefedb0af0bc3a15588f48718e85d76ec0 | [] | no_license | ziyuan-shen/leetcode_algorithm_python_solution | b2784071a94b04e687fd536b57e8d5a9ec1a4c05 | 920b65db80031fad45d495431eda8d3fb4ef06e5 | refs/heads/master | 2021-06-27T05:19:47.774044 | 2021-02-04T09:47:30 | 2021-02-04T09:47:30 | 210,991,299 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 480 | py | class Solution:
def permute(self, nums: List[int]) -> List[List[int]]:
ans = {(nums[i],): nums[:i] + nums[i+1:] for i in range(len(nums))}
for _ in range(len(nums)-1):
for permute in list(ans):
remaining = ans[permute]
for i in range(len(remaining)):
... | [
"ziyuan.shen@duke.edu"
] | ziyuan.shen@duke.edu |
b1fc4028b00d66db57ef3d4fca7602a0b3de1815 | 8eb0f65096f9a9fe90a88c85dcdcaf12f9a8a512 | /apps/maintenance_mode/middleware.py | cd0e09b3e8aba28e3af198050f46e5958f5de4a4 | [
"MIT"
] | permissive | WhitespaceCrew/django-htk | 57c8cc9ec30b4cd9511b717978758c47144de76f | 6a7b87a3d0a2e4cb51f6b8059708a26fa8e613df | refs/heads/master | 2020-12-31T01:10:14.900413 | 2016-02-03T19:24:27 | 2016-02-03T19:25:02 | 45,211,442 | 0 | 0 | null | 2015-10-29T21:23:54 | 2015-10-29T21:23:54 | null | UTF-8 | Python | false | false | 873 | py | from django.shortcuts import redirect
from django.core.urlresolvers import reverse
from htk.apps.maintenance_mode.utils import is_maintenance_mode
from htk.utils import htk_setting
class MaintenanceModeMiddleware(object):
"""Checks whether HTK_MAINTENANCE_MODE is set
If so, redirects to the HTK_MAINTENANCE_M... | [
"jontsai@jonathantsai.com"
] | jontsai@jonathantsai.com |
79180c09bcb81b56e6d9d1043b6380e55871d2a0 | c7e765a9bed33d3bfb21774e3995bf4a09e04add | /adminmgr/media/code/A3/task1/BD_135_703_2371_KhgNwL4.py | 39a4a494197832cb4b20798bc47cbace9f61a4d5 | [
"Apache-2.0"
] | permissive | IamMayankThakur/test-bigdata | 13dd2ac7fb76c9baed6c3a0aa943057a22e2d237 | 7f507918c7bec31c92eedcd94491a83486623049 | refs/heads/master | 2022-05-03T00:59:44.127494 | 2022-02-10T19:50:16 | 2022-02-10T19:50:16 | 201,585,028 | 10 | 4 | Apache-2.0 | 2022-04-22T23:39:45 | 2019-08-10T05:34:09 | Python | UTF-8 | Python | false | false | 1,134 | py | import findspark
findspark.init()
from pyspark import SparkConf,SparkContext
from pyspark.streaming import StreamingContext
from pyspark.sql import Row,SQLContext
import sys
import requests
def func(rdd):
sorted_rdd1 = rdd.sortBy(lambda x: (-x[1],x[0]))
sorted_rdd=sorted_rdd1.filter(lambda y: y[0] !='')
s_list=... | [
"ubuntu@ip-172-31-18-251.ap-south-1.compute.internal"
] | ubuntu@ip-172-31-18-251.ap-south-1.compute.internal |
71ff48d27a98e522cb1183c1508f3fd16ee598fa | 521a5abf021aff0e5bec6e4723efb2d95bc1c528 | /dva/urls.py | f5d1f059a314c2edc9fa63fd0894759abd496b16 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | CVML/DeepVideoAnalytics | be3ed41968a140328e25c22f2cb2be431a2b172d | d0969b503ed68dc9ee26279c341e1540bfefd4f6 | refs/heads/master | 2021-07-17T22:19:20.787228 | 2017-10-22T07:55:04 | 2017-10-22T07:55:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,282 | py | """dva URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.10/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='home')
Class-based ... | [
"akshayubhat@gmail.com"
] | akshayubhat@gmail.com |
4b4238839723416be5a682718dbe7694d6fd4b21 | 91a3a7998a370e1280d01ec722625d2d7afc2226 | /autodiff/context.py | ccf8f58da9ded0cb6dcc2902d42216c07de395af | [
"MIT"
] | permissive | sujason/quantitative | f4cb08614ba5a7276b84fa0694f129ed27319ab8 | 42b7fdea05629934f513a7b15e5b03c7697c5c46 | refs/heads/master | 2021-01-01T05:31:56.613945 | 2016-01-26T03:24:44 | 2016-01-26T03:24:44 | 12,944,434 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 45,855 | py | """
Example of how to use byte-code execution technique to trace accesses to numpy
arrays.
This file demonstrates two applications of this technique:
* optimize numpy computations for repeated calling
* provide automatic differentiation of procedural code
"""
import __builtin__
import ctypes
import inspect
import lo... | [
"sujason@stanford.edu"
] | sujason@stanford.edu |
37cd36176891ea926eef36e5b677f6b4352ae940 | f9d564f1aa83eca45872dab7fbaa26dd48210d08 | /huaweicloud-sdk-as/huaweicloudsdkas/v1/model/pause_scaling_group_request.py | c88cd3d690fe6f2fc4753b1834d1bd3b10a9f9f9 | [
"Apache-2.0"
] | permissive | huaweicloud/huaweicloud-sdk-python-v3 | cde6d849ce5b1de05ac5ebfd6153f27803837d84 | f69344c1dadb79067746ddf9bfde4bddc18d5ecf | refs/heads/master | 2023-09-01T19:29:43.013318 | 2023-08-31T08:28:59 | 2023-08-31T08:28:59 | 262,207,814 | 103 | 44 | NOASSERTION | 2023-06-22T14:50:48 | 2020-05-08T02:28:43 | Python | UTF-8 | Python | false | false | 4,079 | py | # coding: utf-8
import six
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
class PauseScalingGroupRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is att... | [
"hwcloudsdk@huawei.com"
] | hwcloudsdk@huawei.com |
c5383493a1f9677eb1111b85946e9ad9e14fe2b8 | fab14fae2b494068aa793901d76464afb965df7e | /benchmarks/f3_wrong_hints/scaling_nonlinear_software/10-19_35.py | 6ae8d393dc099f7aac05202aa5a431adcbaf9881 | [
"MIT"
] | permissive | teodorov/F3 | 673f6f9ccc25acdfdecbfc180f439253474ba250 | c863215c318d7d5f258eb9be38c6962cf6863b52 | refs/heads/master | 2023-08-04T17:37:38.771863 | 2021-09-16T07:38:28 | 2021-09-16T07:38:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,238 | py | from typing import FrozenSet, Tuple
import pysmt.typing as types
from pysmt.environment import Environment as PysmtEnv
from pysmt.fnode import FNode
from utils import symb_to_next
from hint import Hint, Location
def transition_system(env: PysmtEnv) -> Tuple[FrozenSet[FNode], FNode, FNode,
... | [
"en.magnago@gmail.com"
] | en.magnago@gmail.com |
76bbea84228c618e352dc125b30c93b04c64e117 | 6a420c47a9b8940ed2f437c0a49c7ccccf7473bd | /apps/blog/models/entry.py | 421764412b477c2fd97703ab561da5706ad45e74 | [] | no_license | deadendif/blog | f0198287e07dc95c5a12b44cad5dc58b86c2294e | 2eb48a7f66ae93a8bafcba824461e4c1a430e10a | refs/heads/master | 2021-06-20T23:47:14.189596 | 2017-08-12T06:25:25 | 2017-08-12T06:25:25 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,380 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
from django.db import models
from django.utils import timezone
from django.utils.html import strip_tags
from django.utils.text import Truncator
from tagging.fields import TagField
from tagging.utils import parse_tag_input
from author import Author
from category import Ca... | [
"deadend.endif@gmail.com"
] | deadend.endif@gmail.com |
0e883c8c53ef201c0af61197ece3c45afb13fd08 | d5a84a349bb603c45249b722b38cb50fe1ea203a | /solow.py | 1a6311ce7646d7ff975c813f2746182493e4324f | [] | no_license | kai-trading-bot/Python | f13217776fa073abc941e26a6ee09f1c14fcdad8 | 8f60ad8d09280541618579cf1e5f57fa8b549b9e | refs/heads/master | 2021-05-31T00:13:17.772395 | 2015-10-08T20:40:22 | 2015-10-08T20:40:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,034 | py | from __future__ import division
import numpy as np
class Solow:
def __init__(self,n,s,d,alpha,z,k):
self.n, self.s,self.d, self.alpha, self.z=n, s,d,alpha,z
self.k=k
def h(self,x):
temp = self.s*self.z*self.k**self.alpha+self.k*(1-self.d)
return temp/(1+self.n)
def ... | [
"kqureshi@mit.edu"
] | kqureshi@mit.edu |
decfbba03b0c50d40265242a55c91663310fa957 | 29ccbac9d0e8351d71432acd6218f71c56e8ad64 | /moderate/pairsum.py | 62d487b4cf2686060436aaeee6b4da658f369be9 | [] | no_license | christinakim/programming-puzzles | b1209f3c09d6abef8c9d5efe18fc45b2970d6b17 | 497dd8b1bf3d9f24e2d29f2017748cca3a5e4e82 | refs/heads/master | 2021-06-01T15:03:52.369730 | 2016-09-02T03:27:44 | 2016-09-02T03:27:44 | 48,009,828 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,445 | py | """
find pairs that equal sum
n = [3, 6, 7, 4]
target = 10
"""
def pairsum_brute(n, target):
pairs = []
for i in range(len(n)):
for j in range(i + 1, len(n)):
if n[i] + n[j] == target:
pairs.append((n[i], n[j]))
return pairs
def pairsum_sorted(n, target):
n = sorte... | [
"christinahkim1@gmail.com"
] | christinahkim1@gmail.com |
6f0f34aa3e31abbdeaa527ee8fb27e3bbeb4413c | f895c34f33177c2e04b62e681306afad8a592f24 | /panelserverextension.py | d08de75978b2ccc3c701a60e1f9cc12bf538b71b | [] | no_license | MUSA-620-Spring-2019/final-project-lin-wang-yuan | 26b68ae81cbdeea931fa6376950d690c8f70cd6a | 7d25a1183dce2f14034ea77cc31a9590adf7a87c | refs/heads/master | 2020-05-22T07:22:02.430688 | 2019-05-14T04:13:29 | 2019-05-14T04:13:29 | 186,264,090 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 209 | py | from subprocess import Popen
def load_jupyter_server_extension(nbapp):
"""serve the final.ipynb directory with bokeh server"""
Popen(["panel", "serve", "final.ipynb", "--allow-websocket-origin=*"])
| [
"wzxuan@design.upenn.edu"
] | wzxuan@design.upenn.edu |
34af25c5bd91c605273cde697652e1d0f828ce34 | 717743ada4113dca1863d21db0c0459e6a3390ba | /wangyi_1.py | 01c30789613dde091be621f2ad044689604c48e6 | [] | no_license | suixin233/OJ | 21ebb890bcc3035fd41b0ba41251c169dd4fbb3d | 80ace11518c5212591ffed839652e30d423effa1 | refs/heads/master | 2020-03-27T01:26:29.064052 | 2018-08-22T13:11:54 | 2018-08-22T13:11:54 | 145,710,991 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,363 | py | # 小易准备去魔法王国采购魔法神器,购买魔法神器需要使用魔法币,但是小易现在一枚魔法币都没有,但是小易有两台魔法机器可以通过投入x(x可以为0)个魔法币产生更多的魔法币。
# 魔法机器1:如果投入x个魔法币,魔法机器会将其变为2x+1个魔法币
# 魔法机器2:如果投入x个魔法币,魔法机器会将其变为2x+2个魔法币
# 小易采购魔法神器总共需要n个魔法币,所以小易只能通过两台魔法机器产生恰好n个魔法币,小易需要你帮他设计一个投入方案使他最后恰好拥有n个魔法币。
# 输入描述:
# 输入包括一行,包括一个正整数n(1 ≤ n ≤ 10^9),表示小易需要的魔法币数量。
#
#
# 输出描述:
# 输出一个字符串,每个字符表示该次小易选取... | [
"530170380@qq.com"
] | 530170380@qq.com |
c537f6cf6534d8b3f1ee0248666ea2f88a98291a | 8823770582af17f448c46d2da5e8deba4618ab40 | /editor.py | 2bd0587408e16e236321299d5143bb81a6382f7d | [] | no_license | sorrySempai/editor | acfcc37410c270f661c5cd34b10a1d612c5a6225 | 705dbb5d2ec3c6a015b3173ce4f73a2a0cd79eb1 | refs/heads/master | 2022-12-04T11:34:12.903826 | 2020-08-26T01:09:19 | 2020-08-26T01:09:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,408 | py | import tkinter as tk
from tkinter import *
from settings import *
app = tk.Tk()
app.title(APP_NAME)
app.minsize(width=WIDTH, height=HEIGHT)
app.geometry(f'{WIDTH}x{HEIGHT}+200+100')
text = tk.Text(app, width=WIDTH-50, height=HEIGHT, wrap='word')
scroll = Scrollbar(app, orient=VERTICAL, command=text.yview)... | [
"noreply@github.com"
] | noreply@github.com |
e9ab407ab62a078acf59f7b0df91d74002198a3b | 76800454958c36c26d828ee989f181990813955f | /tutorial/HungyiLee/rnn/preprocess.py | 327adbf18ae8258660063e2fe4c3dfa221fd5d67 | [] | no_license | JuneXia/proml | 374b27b1d1c2d983aae4fed3141a2864a7196a1b | fbe86564013e7556c30d98c702c1ba6251f21851 | refs/heads/master | 2022-12-27T23:38:16.838639 | 2020-10-11T10:05:32 | 2020-10-11T10:05:32 | 267,207,978 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,405 | py | # preprocess.py
# 這個 block 用來做 data 的預處理
import torch
from torch import nn
from gensim.models import Word2Vec
class Preprocess():
def __init__(self, sentences, sen_len, w2v_path="./w2v.model"):
self.w2v_path = w2v_path
self.sentences = sentences
self.sen_len = sen_len
self.idx2word ... | [
"junxstudio@sina.com"
] | junxstudio@sina.com |
19d8702f27201b881c7c37deb7143f02c71d576b | 14d8875790599d32e19a31584b74468e95a0bd20 | /sac/replay_buffers/__init__.py | e1a42d7a4a60fbf5158923be9be1c97fc4baa754 | [
"LicenseRef-scancode-generic-cla",
"BSD-2-Clause"
] | permissive | maridia/sac | 1b48c4e9815d6fe08024b7b0f4f22e2e0f3010ba | 8258e33633c7e37833cc39315891e77adfbe14b2 | refs/heads/master | 2021-02-26T23:16:33.383093 | 2018-12-21T11:23:02 | 2018-12-21T11:23:02 | 245,558,400 | 1 | 0 | NOASSERTION | 2020-03-07T03:04:07 | 2020-03-07T03:04:06 | null | UTF-8 | Python | false | false | 52 | py | from .simple_replay_buffer import SimpleReplayBuffer | [
"haarnoja@berkeley.edu"
] | haarnoja@berkeley.edu |
a49d02e632c44efcef0f8bdc5e1b7ac6b41e7f33 | 52b828d0233656686daafa39545b8ed09078b1e0 | /modesclient.py | ed27ea9990fac387558217608965599bab080d5e | [] | no_license | tpainter/compare1090 | 8054dafe377dc01ab2ec532f04853d4d7ba86af4 | 253850a3c552ceeaf4368f05dcfe4b602accaa2e | refs/heads/master | 2020-04-06T04:47:55.012865 | 2015-07-12T21:14:41 | 2015-07-12T21:14:41 | 36,904,902 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,229 | py | from twisted.internet import reactor
from history import receiveData
import math
#TODO Need to properly run through all of received data for multiple messages.
def parseBeastMessage(name, msg):
#For reference: http://wiki.modesbeast.com/Mode-S_Beast:Data_Output_Formats :
#<esc> "1" : 6 byte MLAT, 1 b... | [
"travis.painter@gmail.com"
] | travis.painter@gmail.com |
273f367f664f0e97ceb58ca442bc1b953f8b7d5e | 60befb106bf9d29c8f2564b355b180078cfe5402 | /Lab 8/multipart - 3.py | 803ca7612c3f9e51656523cd044dafcf8ff3e0b2 | [] | no_license | nasrin-nahar/Python-Programming-in-GIS-Labs | a56dd872775daffad3843e9a35ab14fe853df82c | 5948c82fd0be2269196b6c0165fcfaad05ba7b16 | refs/heads/main | 2023-02-05T02:26:50.678924 | 2020-12-18T04:14:44 | 2020-12-18T04:14:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 638 | py | #Name: Nasrin Nahar
#Date: 10.21.20
#This code prints prints the part number, followed by pairs of x,y coordinates of the vertices of Hawaii feature class
import arcpy
from arcpy import env
env.workspace = "D:\BU Masters\Fall 2020\Programming in GIS\Programming in GIS Lab data\Programming in GIS Lab data\Exercise08"
fc... | [
"76158393+nasrin-nahar@users.noreply.github.com"
] | 76158393+nasrin-nahar@users.noreply.github.com |
61fb07e10cf5a1cecae06ab6ffa88739ee8c460e | b389b7f2f38f370cfc8cb92d49fe7d8a4f76c767 | /venv/lib/python2.7/sre.py | 556d294535ed7ffa77f94be23b20cd2009094211 | [] | no_license | medision/dtwa_bbgky_fermions | 3cba385124e1a1ca7941f82ab00fa3ec025db788 | 75454ce5f94a43ec9a82181c89126dea370060bd | refs/heads/main | 2023-03-18T23:30:42.647050 | 2020-12-08T10:36:22 | 2020-12-08T10:36:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 34 | py | /run/host/usr/lib/python2.7/sre.py | [
"hariseldon99"
] | hariseldon99 |
a2bca6b635915f6963f09d2abd3b9b7c83003ac6 | 75f070c899094e65d4af14fab4ab79fcfb08e17f | /txtcrawler/txtcrawler/items.py | 1f472bd3f9d5714e6838bfcb8aa7852201e3a9dd | [] | no_license | fx0883/python | fa1a4a66c5f8ae3c33b3422cd369a85133e49a69 | 66cebe0e986265c6d7e21ee090a892bcec937d8e | refs/heads/master | 2020-03-22T06:45:21.369928 | 2019-04-01T02:24:31 | 2019-04-01T02:24:31 | 139,655,437 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
from scrapy import Item, Field
class BookItem(Item):
id = Field()
title = Field()
author = Field()
type = Field()
description = Field()
url = ... | [
"fx0883@qq.com"
] | fx0883@qq.com |
9c274e38721462ba65c0451562ea56ea312a53be | a062f6c85a9314ff991628d9271607db6ea1a122 | /src/hiding_adversarial_attacks/train_classifier.py | 549a981f955f4782f4dded45aef3ce526603153d | [
"MIT"
] | permissive | inovex/hiding-adversarial-attacks | aedca82a718bd15a6a14ef4f29a46e515a6432ff | 539b3ed76f97c121c4a5848fd1195c36d25833ef | refs/heads/master | 2023-08-23T19:57:54.522607 | 2021-05-17T08:56:54 | 2021-05-17T08:56:54 | 350,724,383 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,212 | py | import logging
import os
import hydra
from omegaconf import OmegaConf
from pytorch_lightning import Trainer
from pytorch_lightning.loggers import NeptuneLogger
from torchvision.transforms import transforms
from hiding_adversarial_attacks._neptune.utils import get_neptune_logger
from hiding_adversarial_attacks.callbac... | [
"s.stoppel@gmx.de"
] | s.stoppel@gmx.de |
28a35ff7e57a4a3a92d9adaaf528e62ed562cfd6 | ca4610e1b16e6a036fdaec33e47dc9ac3990eea4 | /utils/keras_bert_test.py | 6a4ceaa511aa68c37d767b65e1f68781c90e14fb | [] | no_license | hjfan-pku/bc6_track1_pner_pnen | 1fade8ebbd867176ed8b03450b21203cf96b3540 | 6cf4bd120350c540c185190e6fe7dbebf618ca03 | refs/heads/master | 2021-02-12T13:14:13.975057 | 2019-10-12T02:38:31 | 2019-10-12T02:38:31 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,260 | py | # #! -*- coding:utf-8 -*-
# import json
# import numpy as np
# from random import choice
# from tqdm import tqdm
# from keras_bert import load_trained_model_from_checkpoint, Tokenizer
# import re, os
# import codecs
# mode = 0
# maxlen = 160
# learning_rate = 5e-5
# min_learning_rate = 1e-5
# config_path = 'cased_... | [
"ningshixian@mail.dlut.edu.cn"
] | ningshixian@mail.dlut.edu.cn |
528b509d132ef0c5142d6ca4858054d9bbee1dec | d12e1825321c6d275ec55f869311d2f3e30cfdab | /libs/deep_models/flow/lite_flow_net/lite_flow_net.py | 66fbad1997c550b7348257c8d40da8a04febe6f2 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | Huangying-Zhan/DF-VO | b369e6a00ae0745288acf9d61460f633aa116875 | 50e6ffa9b5164a0dfb34d3215e86cc2288df256d | refs/heads/master | 2022-12-11T18:29:42.457460 | 2022-03-14T00:34:29 | 2022-03-14T00:34:29 | 212,502,276 | 494 | 128 | MIT | 2022-11-22T15:29:20 | 2019-10-03T05:18:35 | Python | UTF-8 | Python | false | false | 17,960 | py | import math
import torch
from . import correlation # the custom cost volume layer
Backward_tensorGrid = {}
def Backward(tensorInput, tensorFlow):
"""Backward warping, warp tensorInput according to the grid defined by tensorFlow
Args:
tensorInput (tensor): source data
tensorFlow (tensor): ... | [
"zhanhuangying@gmail.com"
] | zhanhuangying@gmail.com |
8f7c3ea6181d63f315d52637d0325555d2fff827 | d5006c3b2b104c01458e0593a2754f10642e8b1a | /pd-diplom/orders/backend/admin.py | 3f0377db971d377694b32533d6395042d25762e2 | [] | no_license | johnny-Azimov/Python-developer-profession_Diplom | 786c02431e21acea24cb85a5bac03a98df4be515 | 5571dd4f5c7a0be1845acd9eceabc9d335a577f6 | refs/heads/master | 2022-12-16T13:33:10.712152 | 2020-09-16T05:45:32 | 2020-09-16T05:45:32 | 289,902,257 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,831 | py | from django.contrib import admin
from django.contrib.auth.admin import UserAdmin
from django.utils.translation import ugettext_lazy as _
from backend.models import User, Shop, Category, Product, ProductInfo, Parameter, ProductParameter, Order, OrderItem, \
Contact, ConfirmEmailToken
class ContactInline(admin.Tab... | [
"temikasus@gmail.com"
] | temikasus@gmail.com |
b93c406e8051835fb7d299ccdc6e57d5b526fe64 | 2b5f4528071440b3a539b041d82b66d11b329bda | /accounts/migrations/0003_user_owner.py | 4b2eb5878202fec0e349d455dca0f740d76c22be | [] | no_license | Alighier/Mobile_app | 3d2033ca40d260b068fee23949de6aca528e6662 | 8ed6fd73199dd3cf69a590e0df490790039a32d3 | refs/heads/master | 2022-09-26T04:55:18.326036 | 2020-06-04T05:33:25 | 2020-06-04T05:33:25 | 268,996,379 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 445 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.25 on 2019-11-18 17:02
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('accounts', '0002_user_prouser'),
]
operations = [
migrations.AddField(
... | [
"noreply@github.com"
] | noreply@github.com |
17c928e3cafbcf5f45ca353e1f379ba1e9e04da5 | 01c3ff1d74e754e0d4ce0fb7f8a8b329ec3766e1 | /python_exercises/19others/fun4.py | 6f9ac6e1fda53a3f6312dd5622e67ea3388ae8c9 | [] | no_license | vineel2014/Pythonfiles | 5ad0a2b824b5fd18289d21aa8306099aea22c202 | 0d653cb9659fe750cf676a70035ab67176179905 | refs/heads/master | 2020-04-28T03:56:22.713558 | 2019-03-11T08:38:54 | 2019-03-11T08:38:54 | 123,681,939 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | def product(numbers):
sum_so_far=1
for number in numbers:
sum_so_far*=number
return sum_so_far
print(product([1,2,3]))
print(product([7,-4,1,6,0]))
print(product([]))
| [
"vineel2006@gmail.com"
] | vineel2006@gmail.com |
aaef040f57542efbf767c69d734449770a943986 | 8cdc63b549f5a7f1aca7b476a5a918e5c05e38c5 | /app/adm/tests/test_view_permission.py | ff2d71f4af8b26e48e27a3ff79c8e1c2b6854ac7 | [
"MIT"
] | permissive | rogeriopaulos/gep | 984e3bcd8bd4569031577e1d28a8c47c6aace91f | e56fd0450bdb8f572e2e35cc59a74ab0f0b372e2 | refs/heads/main | 2023-08-14T08:41:19.558899 | 2021-09-15T02:51:46 | 2021-09-15T02:51:46 | 402,270,601 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 12,575 | py |
from account.tests.factories import ProfileFactory
from adm.tests.factories import AdministrativoFactory
from adm.tests.utils import SetUpTestViewAtoData
from core.permissions import GRUPO_ADMINISTRATIVO
from django.contrib.auth.models import Group
from django.test import TestCase
from django.urls import reverse
from ... | [
"rogeriopaulos@gmail.com"
] | rogeriopaulos@gmail.com |
9649970d62f951be36ba3cde0f8017e23aa5c6c1 | 7db6c1865cf9102808824ff06cda747b6e572a21 | /Python/Test/Locust/Test/wsh_loadtest.py | 53219d5e5215e6e3cee8591f2b5756445323a944 | [] | no_license | hyteer/testing | 1f6cabc1d2b67faa4533e6ad7eb5be8c13d542c9 | 1d8b47b3bbb2daf00e4f15b5d18e86111ea4e113 | refs/heads/master | 2020-05-21T16:19:08.243676 | 2017-01-03T01:25:17 | 2017-01-03T01:25:17 | 60,914,071 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,625 | py | from locust import HttpLocust, TaskSet, task
import json
counter = 0
class UserBehavior(TaskSet):
#global counter
def on_start(self):
""" on_start is called when a Locust start before any task is scheduled """
self.login()
def login(self):
res = self.client.post("/login/login-ajax... | [
"hyteer@qq.com"
] | hyteer@qq.com |
c1eb40d58f93dda4f77e098fae3b395b3913f435 | f98d0346bde9238d509991866d7ce6a742cf56e7 | /setup.py | 945994c548f33195ad21ce70b87e47b09dfb44eb | [] | no_license | oalfonso-o/reconciliation | 339ceb2eaf889e7461eacb8150b825b897933d9e | 90613cf7869ef42e37147fd7319d56c18c508493 | refs/heads/master | 2020-05-24T23:43:48.304141 | 2019-05-25T01:27:58 | 2019-05-25T01:27:58 | 187,519,713 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 446 | py | from setuptools import setup
from setuptools import find_packages
__version__ = '0.0.1'
setup(
name='oalfonso-reconciliation',
version=__version__,
long_description='Importing and reconciling from CSV + API View',
packages=find_packages(),
include_package_data=True,
install_requires=[
... | [
"oriolalfonso@calidae.com"
] | oriolalfonso@calidae.com |
229f2f1c895fae3aeb107eb6d9c4e1b041a9ce02 | 8584bf1700a5eec3630b8f164117c40658bd417e | /plivo/apis/urls.py | 58430c33c067fa5faa1a10ff068d1f051dc9525c | [] | no_license | afaq-alam/plivo-repo-assign | c0be6de9a471f310e8757cfad87169443cf0c378 | bdc4b33b24c70d70047e0c13e7c875ba1a016cbd | refs/heads/master | 2020-03-22T01:59:42.786700 | 2018-07-01T16:32:47 | 2018-07-01T16:32:47 | 139,343,276 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py | from django.conf.urls import url
from . import views
urlpatterns = [
url(r'^inbound/sms/$', views.inbound),
url(r'^outbound/sms/$', views.outbound),
]
| [
"ubuntu@ip-172-31-16-77.us-west-2.compute.internal"
] | ubuntu@ip-172-31-16-77.us-west-2.compute.internal |
884b687ae12296554a2ae41f29b26bf4382a86c2 | e2230f57dd5bb508b5c0f7bf4df6af8ae7b36f83 | /sympycore/matrices/__init__.py | 95ab7a348b3211d44be60bb7007659916c36a1b0 | [
"Apache-2.0"
] | permissive | wenyifdu/pymaclab | 2fd40192d9dff4fda488f3f9a61e584c1adafd49 | e5100ad4201bdf59c01dd600ac7e8865664075c3 | refs/heads/master | 2021-09-16T11:16:00.680933 | 2018-06-20T07:29:29 | 2018-06-20T07:29:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 193 | py | """ Provides matrix support.
"""
__docformat__ = "restructuredtext"
from .algebra import Matrix, MatrixBase
from .functions import eye, concatenate, jacobian
from .polyhedra import Polyhedron
| [
"emscheffel@gmail.com"
] | emscheffel@gmail.com |
5f903c3ea2e8f69148704c4c8fcf9269fefec101 | 370bc81221cc62d805a9c30440729defee1cb014 | /typeform_feedback/decorators.py | 2e4274439ad0e9b019d749e9406e6d6d6d0c99be | [
"MIT"
] | permissive | exolever/django-typeform-feedback | a4883986bfbaa18b25aa3722b6380e66f70abdc7 | 5784523b880e4890172b9f61d848187f5c24237e | refs/heads/master | 2020-04-30T15:58:39.576503 | 2019-12-13T08:17:08 | 2019-12-13T08:17:08 | 176,935,243 | 0 | 0 | MIT | 2019-12-13T08:17:09 | 2019-03-21T11:57:23 | Python | UTF-8 | Python | false | false | 558 | py | from functools import wraps
import logging
from django.http import HttpResponse
from .helpers import _ensure_request
logger = logging.getLogger('typeform')
def ensure_request(view_func):
"""
Decorator that ensure request from typeform.
"""
@wraps(view_func)
def _wrapped_view_func(request, *args... | [
"javier.sujar@gmail.com"
] | javier.sujar@gmail.com |
68405a06c4eccbbe48e38775fb9e720e1b5db42d | 2d3bdc32bfa245d4aaf5ddebcb006ef84e754a42 | /pbpstats/data_loader/stats_nba/summary/web.py | 5248ae88f7ef7ceef153112a13323e199a4c080f | [
"MIT"
] | permissive | dblackrun/pbpstats | b29872de13fe81ffab9bd5f08403339a20c90d88 | 38d5d75be50a478dbe718700c880e48020ffa123 | refs/heads/main | 2023-03-01T17:13:29.102549 | 2023-02-09T19:26:04 | 2023-02-09T19:26:04 | 215,173,748 | 73 | 18 | MIT | 2023-06-08T05:27:08 | 2019-10-15T00:56:56 | Python | UTF-8 | Python | false | false | 1,545 | py | import json
import os
from pbpstats import G_LEAGUE_STRING, NBA_STRING
from pbpstats.data_loader.stats_nba.web_loader import StatsNbaWebLoader
class StatsNbaSummaryWebLoader(StatsNbaWebLoader):
"""
A ``StatsNbaSummaryWebLoader`` object should be instantiated and passed into ``StatsNbaSummaryLoader`` when loa... | [
"darryl.blackport@gmail.com"
] | darryl.blackport@gmail.com |
d17446b7cbc5da35ed0702d79f7c66229e02e23d | c3f0e3d944da04ef25df7bc6dd2ffe6056690828 | /tugas2.py | 3ad0b79869a0bce8b552569b0a94d315d48ae4ab | [] | no_license | Yanda29/Tugas-Algo_Yanda-Puspita-Sari | 20530a534f1bb1f56ef4301bf4b0d027839fc812 | 4bdeba0fe83151d838360ebdf5da7f098c70f2aa | refs/heads/main | 2023-08-19T06:10:46.584330 | 2021-10-15T16:06:26 | 2021-10-15T16:06:26 | 414,557,149 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,182 | py | aku=1500
while aku ==1500:
import sys
elo= {"jb","lw","lw"}
print("jb-Jabodetabek\ndw-Pulau Jawa\nlw-Luar Jawa")
destinasi= input("Tujuan Barang(q-quit)= ")
if destinasi=="q":
sys.exit(0)
if destinasi == "jb":
price= 10000
elif destinasi == "... | [
"noreply@github.com"
] | noreply@github.com |
386bc309457cc278c4259e18c22af6263811a1f1 | 3fb586112254467f3b6857462f2979430bea36bc | /fsmPythonPatterns/stateMachine2/Condition.py | 50f059a7d60cca3d2a227521b5612d1e7baaede0 | [] | no_license | jaquinonesg/SMA_exp | 3c15199db9233711ab9663406032f54f4d6c0a9e | a491584a97e9a959df94c0397f60317423fcf84e | refs/heads/master | 2019-04-28T16:10:16.700345 | 2018-03-11T18:36:07 | 2018-03-11T18:36:07 | 94,044,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | #Condition function object for state Machine
class Condition:
def condition(self, input):
assert 0, "condition() not implemented" | [
"jaquinonesg@unal.edu.co"
] | jaquinonesg@unal.edu.co |
1913f94db48508d534a35b09a05eec732f312e5f | 2be43fdc9f328895b949c92ec4e7602fbbbf2ca3 | /tests/test_feeds.py | 20932f520aba76a42d6876c404625f2a4259e97f | [] | no_license | gjxlu/feedhq | 418a75ef68de759e7f85cf8b14f827b3fd5e5f27 | 3027b192e2c6f35ebb7f821c6d64e8eca49e4c44 | refs/heads/master | 2020-12-25T02:01:24.035251 | 2013-07-16T21:20:01 | 2013-07-16T21:36:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 35,214 | py | # -*- coding: utf-8 -*-
import feedparser
import json
from datetime import timedelta
from django.core.cache import cache
from django.core.urlresolvers import reverse
from django.utils import timezone
from django_push.subscriber.signals import updated
from django_webtest import WebTest
from httplib2 import Response
fr... | [
"buburno@gmail.com"
] | buburno@gmail.com |
c28c8112bad289cf4ef730cc6135669764c0b111 | 7e3e1c15ba9c249eb25fa6851c7fd98dcab25f48 | /setup.py | b8ae7b605651176ffa947957d1f780ff6b4f446f | [] | no_license | mattjmorrison/SimplePythonExtensionExample | 49603d980b38ec36826c4fcff1250c2780736462 | 7a58fbf1a5aa2d616bec47dbe24a1ffe77953352 | refs/heads/master | 2021-01-13T01:31:21.266489 | 2011-06-19T01:21:20 | 2011-06-19T01:21:20 | 1,917,846 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 222 | py | from distutils.core import setup, Extension
module1 = Extension('spam', sources=['spammodule.c'])
setup(name='PackageName',
version='1.0',
description='This is a demo package',
ext_modules=[module1]) | [
"matthewmorrison@matthew-morrisons-macbook.local"
] | matthewmorrison@matthew-morrisons-macbook.local |
d4d95744592b24613ab6bfde2b48befb4f83d4c9 | 2e6309c8f2126a6196adf9288c31162e6a949c1d | /backend/djabgoBlog-master/blog/subscribe/forms.py | 90898d74a085347109f8f89fa6ee3117df4562b4 | [] | no_license | triest/codeExample2 | 7ff87908caed3c4f58ff1609187a5af78ce11663 | 6d8a20fdd710d1560a3dbc2dfb4455fcc4d862b1 | refs/heads/master | 2020-04-02T03:12:21.027401 | 2018-10-21T11:22:14 | 2018-10-21T11:22:14 | 153,951,115 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | from django.contrib.auth.decorators import login_required
from django.shortcuts import render
from inspect import getmembers
from pprint import pprint
from django.forms import modelform_factory
from django import forms
from django.contrib.auth.models import User;
from . import models
#from blog.articles.models import S... | [
"you@example.com"
] | you@example.com |
5858d254c64f170a7aa2c7f8983b0b8e80ff27de | 3a3943aedcf75ca16d55367e2bdde6d1fbd090aa | /rucio_opint_backend/apps/users/serializers.py | 6fcfadeec8a73ca889920dc55f8f4004f296e630 | [] | no_license | operationalintelligence/rucio-opint-backend | b0907af3c2978e9254ee267e481c75528ae6b0f7 | b4b26b80b950cb4a2c21a6855c9cd1e431a03e5c | refs/heads/master | 2020-06-18T17:42:00.737987 | 2019-11-28T09:50:49 | 2019-11-28T09:50:49 | 196,385,827 | 1 | 5 | null | 2019-11-21T15:02:36 | 2019-07-11T12:00:15 | Python | UTF-8 | Python | false | false | 1,064 | py | from rest_framework import serializers
from rest_framework_jwt.settings import api_settings
from django.contrib.auth.models import User
class UserSerializer(serializers.ModelSerializer):
class Meta:
model = User
fields = ('username',)
# Signup class
class UserSerializerWithToken(serializers.Mod... | [
"panos.paparrigopoulos@cern.ch"
] | panos.paparrigopoulos@cern.ch |
0917731883652024c9415f8c9f5afa6867666808 | cd9f32701a924508dc9a8e31d6a5efe4027aa8a2 | /iterator/dinermergeri.py | 7fdddfc021ad325488cd39c283e3d50c081d12ed | [] | no_license | somedayiamold/head-first-design-patterns | 9641bfd67aec056a622b206f2a527016a68b40cb | f92977c579d73f3142c3df2fdee878b21f97f383 | refs/heads/main | 2023-08-10T15:33:34.706546 | 2021-10-14T12:56:41 | 2021-10-14T12:56:41 | 396,800,522 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,340 | py | from abc import ABCMeta, abstractmethod
from collections.abc import Iterable
from typing import List
class MenuItem:
def __init__(self, name: str, description: str, vegetarian: bool, price: float) -> None:
self.name: str = name
self.description: str = description
self.vegetarian: bool = ve... | [
"luoyou.louis@bytedance.com"
] | luoyou.louis@bytedance.com |
839fceccecbbd4b46b6c93de655ca6dc94e9bf89 | 3935927379f7f06a3aaeffef3e32c6261e93a4f4 | /CNN_variant2/retrain.py | 40b1a989ed855979d1f07a37d15baf02102621d4 | [] | no_license | Tanmoy-Bipro/BSL-alphabet-recognition | 7be07a45149bb07d0666c7d847720cb50d6cbc33 | 7c7717e1a8f7f274d0db0fead6ef269f8cc017dc | refs/heads/master | 2020-09-27T07:48:37.705809 | 2019-12-27T15:14:20 | 2019-12-27T15:14:20 | 226,467,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 53,860 | py |
# pylint: disable=line-too-long
r"""Simple transfer learning with image modules
This example shows how to train an image classifier based on any
TensorFlow Hub module that computes image feature vectors. By default,
it uses the feature vectors computed by Inception V3 trained on ImageNet.
See https://github.com/ten... | [
"noreply@github.com"
] | noreply@github.com |
7e01cd1e5d23c227a33f05ee6f72fa1473f25a89 | 4a9f1eb970b8bba9639cf19d2bbd46d81e9cf128 | /getHousePriceData/filer.py | 7ac55999dbc0eee0072aa9f07b4f662757e2d019 | [
"MIT"
] | permissive | neptune1997/HousePriceAnalysis | c863146308308497f8c8524ce4d8bf7cff780d03 | 0ac5fc892dac0cc09d46cafa68834edfe2fbc58c | refs/heads/master | 2021-09-13T00:55:12.074683 | 2018-04-23T13:37:00 | 2018-04-23T13:37:00 | 116,219,407 | 6 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,002 | py | #conding:utf-8
#!usr/bin/python3
import re
import sqlite3
cities = ['dl','bj','cd','cq','cs','gz','hz','jn','nj','qd','sz','wh','xm','xa','zz','km','sy','hui','hf','ty']##
Chinesename=['大连','北京','成都','重庆','长沙','广州','杭州','济南','南京','青岛','深圳','武汉','厦门','西安','郑州','昆明','沈阳','惠州','合肥','太原']
def processdata(file,cur):
text =... | [
"18340852925@163.com"
] | 18340852925@163.com |
ae6c6bcd4da1dee8307b6e621fefff0fb6a85b8e | 2e7a725a6efc15e2110112058c2ade07cb9e94a7 | /Python_Practise_Files/Basics/function_one.py | 32779928c49e86f2b54971da8a70cb007065d97e | [] | no_license | PalRanvir/Python_Project_2019 | 17781b909f20dbc5b0f46b195e179f81331512b6 | 4ad74070518226479060dbbde3fc6b502edbdb19 | refs/heads/master | 2020-09-02T15:30:06.228606 | 2019-11-03T05:24:25 | 2019-11-03T05:24:25 | 219,249,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 308 | py | # functions and methods are more or less the same thing
# def Ranvir():
# "function docString"
# print("I want to learn Python")
# print("I am doing it")
# return
#Ranvir()
def greetings(name):
print("Hello", name)
return
userName = input("Enter your name:")
greetings(userName) | [
"ranvirece09@gmail.com"
] | ranvirece09@gmail.com |
2a4dbacb6063ef13147e6f2af6e1592c83b90d5d | e3647e31172db5b7ee2aa6379cad8badc31ce390 | /tpc1/script.py | 9fdad1cc21ecec9c8e55ffa39d1addfad94f868e | [] | no_license | sir-onze/PRC | fbeb0a4fe7e83d47e208e1278acc9b48dea0b8fb | 0a23eea263c306385c8956a87437c20b45ac41f1 | refs/heads/master | 2023-01-13T13:35:28.418313 | 2020-05-18T16:31:58 | 2020-05-18T16:31:58 | 238,004,464 | 0 | 0 | null | 2023-01-05T20:23:08 | 2020-02-03T16:01:51 | CSS | UTF-8 | Python | false | false | 2,113 | py | import csv
with open('saladeaulainf.ttl', 'a') as new:
with open('alunos.csv', mode='r') as infile:
reader = csv.reader(infile)
header = next(reader)
for rows in reader:
new.write("<http://www.semanticweb.org/macz/ontologies/2020/salaAula#"+rows[0]+">"+" rdf:type owl:NamedIndividual ,"+"\... | [
"tiago96baptista@sapo.pt"
] | tiago96baptista@sapo.pt |
d48659bb33626e99fbc50a883c7522f761f29b37 | f56d473881b83425cd875474ddbadca0215b89df | /demo/charts.py | 74c739e30ef0c4abe2b6afe0e81b1ad4ae4f56d7 | [] | no_license | kevindudeja/Space-VT_gsoc18 | fbbb518b1126e718e2c86e1855f91fcf4837d87e | 771a12ca852d77bf6c2fb01fd374c76f9cec0da5 | refs/heads/master | 2020-03-06T14:43:00.186345 | 2018-03-27T08:05:06 | 2018-03-27T08:05:06 | 126,940,713 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,689 | py | import pygal
from .models import dst_2013
class decLineChart():
def __init__(self, **kwargs):
self.chart = pygal.Line(**kwargs)
self.chart.title = 'DST INDEX OF DECEMBER 2013'
def get_data(self):
dataInt = []
d = dst_2013.objects.get(pk=1)
comma = ","
seq = (d.d1,d.d2,d.d3,d.d4,d.d5,d.d6... | [
"noreply@github.com"
] | noreply@github.com |
17234e1c5a76db7c9f9cfca2240823228ceeac65 | a6a1caa94878b145b9be3f8a704889470b73635d | /03_data_processing/all_mixed.py | ce25892f4640a02a1c6640768a138bb9e68d6cba | [] | no_license | JPeer264/datamining | a5c1d65158eaa539a1496e02da347141a85006d9 | 8db728b49dcd1c9d9275f63c8ca156bb755d2f6c | refs/heads/master | 2021-05-05T12:42:15.768178 | 2018-01-21T18:42:05 | 2018-01-21T18:42:05 | 118,258,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,203 | py | from glob import glob
import csv
import numpy as np
from sklearn.preprocessing import normalize
import json
import os
import os.path
import scipy.sparse
from Artist import Artist
from Tracks import Tracks
class Process:
def __init__(self):
self.DATA = './data/'
self.USERS_TOP_TRACKS = self.DATA +... | [
"jan.oster94@gmail.com"
] | jan.oster94@gmail.com |
7dcfbef1b95e0347eb5f74d6d3e1a7a16e80092f | 1d73d1f72b518b438345d33f0bce02fe36f02ba1 | /src/rotest/management/migrations/0017_auto_20181202_0752.py | 4c944e8020bf17869c7fd9f18b6b9c4a078909f7 | [
"MIT"
] | permissive | gregoil/rotest | 48eb7666bb170688b689c07ad37a2de3a89a8223 | c443bc1b99e02f047adfcab9943966f0023f652c | refs/heads/master | 2023-01-10T17:50:06.554799 | 2020-09-17T08:43:18 | 2020-09-17T08:43:18 | 94,022,519 | 26 | 11 | MIT | 2022-12-27T15:37:58 | 2017-06-11T18:03:06 | Python | UTF-8 | Python | false | false | 434 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('management', '0016_demoresourcedata_validation_result'),
]
operations = [
migrations.AlterField(
model_name='dem... | [
"elkissdan@gmail.com"
] | elkissdan@gmail.com |
4736d3d27f335021cd1e03e673a1959e4f328c21 | 693f4f147fdde00b2d728318332a8d4e0748b91f | /ch9/restaurant.py | cd9e8a5f223d210f370ecccafe86f188ddcebbf9 | [] | no_license | kbcmdba/pcc | 792f426ac096798971ba45d67359d46599cae54d | 4008703ada445fc9c8944ce83740fc65573bdbce | refs/heads/master | 2022-02-07T23:07:23.717442 | 2019-08-11T22:05:37 | 2019-08-11T22:05:37 | 198,295,701 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 932 | py |
class Restaurant():
"""A simple restaurant model"""
def __init__(self, restaurant_name, cuisine_type):
"""Initialize restaurant_name and cuisine_type attributes"""
self.restaurant_name = restaurant_name
self.cuisine_type = cuisine_type
self.number_served = 0
def describe... | [
"kbenton@activecampaign.com"
] | kbenton@activecampaign.com |
854d50100ce45aef6d69f163a46a0fc3b8619b8c | b65d3777372d25402f11814288d992e6cb29c0a5 | /tools/Ui_couput.py | 986eea054ca7ed3f9226970215929d3410e40c05 | [] | no_license | JoeChen999/tools | 082ee56982650b0fee9e26aea9baa7c762a0ceed | 090215568c41beabd6f1fa6b2d0cf253a29ba913 | refs/heads/master | 2020-05-25T14:58:51.564658 | 2016-09-22T06:31:30 | 2016-09-22T06:31:30 | 68,891,625 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,448 | py | # -*- coding: utf-8 -*-
# Form implementation generated from reading ui file '/Users/chenbiao/Documents/workspaces/tools/couput.ui'
#
# Created: Thu Sep 5 15:37:23 2013
# by: PyQt4 UI code generator 4.10.2
#
# WARNING! All changes made in this file will be lost!
from PyQt4 import QtCore, QtGui
try:
_fromUt... | [
"chenbiao@elex-tech.com"
] | chenbiao@elex-tech.com |
8fc2feeb2b72bca17fa97a0fcc5a647a1191e5ac | b99093398c4e44b9f7232647f3897b74f7110cae | /ga1_draft.py | 2ebacbec29ed091828a42a2c54266494d3c33759 | [
"BSD-2-Clause"
] | permissive | mp-interns/eratosthenes | 7d5e51c407c870f23642b8d273a6f6a01211a9bf | e4a7597d658140cd2d943ff1186214c640ba2355 | refs/heads/master | 2016-09-06T12:16:57.697187 | 2015-08-10T22:13:05 | 2015-08-10T22:13:05 | 37,886,098 | 0 | 2 | null | 2015-08-10T19:57:05 | 2015-06-22T23:32:53 | Python | UTF-8 | Python | false | false | 1,105 | py | from __future__ import division
import numpy as np
import matplotlib.pyplot as plt
from pymatgen import MPRester
# import/truncate raw data (volume, density, energies, etc)
m = MPRester("ID")
data = m.query(criteria={"elasticity": {"$exists": True}},
properties=["pretty_formula", "volume... | [
"henrygeerlings@gmail.com"
] | henrygeerlings@gmail.com |
e8af84177d49e47d7a86e89827b256e8fda8f1e3 | 13a6ec7f301bf5f0239ad46256f17252ad74fd07 | /lambda/GetTodo.py | 79de54e9dd77db051c2241359ffe304fcee7223e | [
"MIT"
] | permissive | Attersson/todoMvcFrontend | e78f0cd46ce252035ef2433c0b3300d5ba4684b2 | 1eb24d9d5ace2eb091ada29405913ac43ca549e4 | refs/heads/master | 2022-04-09T12:23:53.618704 | 2020-03-05T02:25:17 | 2020-03-05T02:25:17 | 245,033,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,451 | py | import json
import boto3
import logging
dynamodb = boto3.client('dynamodb')
logger = logging.getLogger()
logger.setLevel(logging.INFO)
def get_todo(id):
try:
res = dynamodb.get_item(
TableName='todos',
Key={'id': {
'N': str(id),
}},
AttributesToGet=['id', 'descriptio... | [
"ermanno@attardo.it"
] | ermanno@attardo.it |
b932061bc8c381fca98759b6a5ad097bb59a5183 | 965c9640d32435142da2dce9de9a8203920909e8 | /titanic_stuff/np.array_to_sklearn_db.py | a25f97969aa4b0bb7e85d1705a547a9b0fc83481 | [] | no_license | mmenhart/DataMining | c2581614db0bdc1ab78ff6133e978d0017eeb49e | 30646126bb3435bb0cacaddbc924bb5cae2b745f | refs/heads/master | 2020-03-09T12:42:01.833509 | 2018-05-17T18:42:37 | 2018-05-17T18:42:37 | 128,792,090 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 867 | py | ###############
# practice to make a sklearn database
import sklearn.datasets
skdb = sklearn.datasets.base.Bunch(data=X_train, target=y_train)
# this allows you to name your data for easier visualization
skdb.target_names = np.array(['Died', 'Survived'])
skdb.feature_names = np.array(['Pclass', 'Sex', 'Embarked'])
... | [
"noreply@github.com"
] | noreply@github.com |
575ec327e95c2629f45c3db7e8fda2d7be087d53 | 051a1d200a99419ba2c24942159caa0dae77989d | /Educational_Institute/courses/migrations/0003_auto_20210311_2010.py | 0766e5ef53fed4739b489a35bf597d1d206f84f0 | [] | no_license | Karnav611/Course-Management | b9ffa0471bbf3d28231c4d78f249b30228b12b52 | 11e7292ad4e6fb17921752fcbdeed95699ac4bdb | refs/heads/master | 2023-03-31T10:12:35.731462 | 2021-04-01T16:48:17 | 2021-04-01T16:48:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 383 | py | # Generated by Django 3.1.6 on 2021-03-11 14:40
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('courses', '0002_learning_prerequisite_tag'),
]
operations = [
migrations.AlterField(
model_name='course',
name='leng... | [
"kairavgamit611@gmail.com"
] | kairavgamit611@gmail.com |
dca2cc77e0c137fade6eb25b22c08ee78ac064b3 | ba87af72c0d2532aa25ff6ff97659e36dfc8bc9f | /src/geometrics/three_sphere_intersection.py | 87de643db3c38c9a248f4725fbb96b47f3992364 | [
"Apache-2.0"
] | permissive | Idontker/OptiMates | bceb1315f921b768452d340ef224e0be5d5e0e9a | 80d2e43343e28b3a49f9b40c9e4c34853c83da34 | refs/heads/main | 2023-07-07T10:05:24.805643 | 2021-08-12T22:59:17 | 2021-08-12T22:59:17 | 360,880,976 | 0 | 0 | Apache-2.0 | 2021-08-08T10:28:50 | 2021-04-23T12:43:12 | Python | UTF-8 | Python | false | false | 9,552 | py | """
modified Code based on
https://github.com/vvhitedog/three_sphere_intersection
and
https://stackoverflow.com/a/1407395/177931
Implements an analytic solution based on what is documented in above answer.
"""
import numpy as np
def find_aequidist_points_on_sphere(p1, p2, r, deg: bool = True, R=1):
"""
... | [
"idontker@users.noreply.github.com"
] | idontker@users.noreply.github.com |
fcee4b2c3bc47f16f234812549b50ed13cc6175d | 69f2bdb61b62a18ee54f586905ee86e32f0725f2 | /airflow/providers/amazon/aws/hooks/logs.py | 05e49f1f9f1816e36042d2144c34fb8744fcc213 | [
"Apache-2.0",
"BSD-3-Clause",
"MIT"
] | permissive | itayB/airflow | 0b9b9285fb503bef108ebbeb2943d22bbeb3a557 | 30c3d023b37f351bcba7fc412fff191b072f9c6e | refs/heads/main | 2023-03-16T03:27:23.408685 | 2022-01-21T10:23:58 | 2022-01-21T10:23:58 | 251,654,541 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,614 | 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... | [
"noreply@github.com"
] | noreply@github.com |
999644e397b32cffa2e52edc374bbe9efd5e6866 | bc8ebbdb5d67658387be1d65a9f00a927664ac1c | /backend/new_18912/settings.py | 6eaf60be047de7422162e25b7eda34eaa1b9676d | [] | no_license | crowdbotics-apps/new-18912 | 3b499157a967673dc12ad7e5c9ee4a7b8bfb9ddc | b9aa5b270bbc72718b98ccc68257ef17448359c9 | refs/heads/master | 2022-11-18T00:47:55.053181 | 2020-07-15T04:00:56 | 2020-07-15T04:00:56 | 279,758,892 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,722 | py | """
Django settings for new_18912 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
import... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
15089b26ad691d83e34b107c54ee22b60a9232e2 | 169b3b1bcc3180f67caad264ca8ddf9101396630 | /2021-2-24-biology-co.py | a432b297c3a8240556453f93f7e47494e47c5064 | [] | no_license | linxiao-zhang/json_project | 0288f50798b0df3f1888a3d2e33c8f49cbf64200 | 9e4b041fdc2380d3334b8f9f8477df2c020fde81 | refs/heads/master | 2023-03-14T11:14:53.498145 | 2021-02-26T02:24:05 | 2021-02-26T02:24:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,484 | py | # 关键词词共现
# -*- coding: utf-8 -*-
"""
@File : text_library_mysql2mongo.py
@Author : Yuka
@Time : 2021/1/7 14:53
@Version : 1.0.0
@Description:
"""
import json
import xlsxwriter
import mysql.connector.pooling
import pymongo
def sort_dict_by_value(d, reverse=True):
return dict(sorted(d.items(), k... | [
"1456597572@qq.com"
] | 1456597572@qq.com |
87e51d92d16a0d5ff47d81e28b47fcf0d8385a0a | 5d00040c9fe8310b50c0106bdaa48123fb28cbe3 | /Pattern/npattern.py | 244fbf56ddff4bd1d15be83c3046df14a7c329ec | [] | no_license | HarshPonia/Python_Programs | efe0ba728a5f4e0b9f9d188388137cbab00e3940 | 729546a5c92edd66a564931ad9e4d4d24f9ccfe7 | refs/heads/main | 2023-08-04T12:51:21.926261 | 2021-09-21T10:10:50 | 2021-09-21T10:10:50 | 408,770,476 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 332 | py | n = int(input("Enter the number"))
for i in range(0,n):
for j in range(0,i+1):
if j == 0:
print("#",end = " ")
else:
print(" ", end = " ")
for j in range(i,n+1):
if j==n or j==i:
print("@", end = " ")
else:
print(" ", end =" ")
... | [
"harshponia9@gmail.com"
] | harshponia9@gmail.com |
9871aa8cf7cea05f91771fb8f993e9ec542cad76 | 4c248b4ebb33cd1a9c9049bc73c4fcaad83787a4 | /final_proj_tests.py | ffa705b75c2d0d62ebf70e6f42f956516f3af6d0 | [] | no_license | vgcox/HarvardArtVisuals | 146faa8a540f8d0e999ac8f5a0f97e79d5ef2dd8 | 512eeddafbcbe05bfa54c1533635188be64efbdc | refs/heads/master | 2020-04-09T20:53:19.413265 | 2019-01-07T21:44:50 | 2019-01-07T21:44:50 | 160,587,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,314 | py | import unittest
from final_proj import *
class TestDatabase(unittest.TestCase):
def test_cultures_table(self):
conn = sqlite3.connect(DBNAME)
cur = conn.cursor()
sql1 = 'SELECT Name FROM Cultures'
results1 = cur.execute(sql1)
results1_list = cur.fetchall()
self.ass... | [
"vgcox@umich.edu"
] | vgcox@umich.edu |
ef600745226bfef1ada150f835f834c33210968e | 08b09387a4b6a363234bb72468283d85be9f0b4d | /src/B01.py | 90fc10333c74c9e7aeecb6b5c8e0556cdaa10a2e | [] | no_license | raffizulvian/willi-wangky | e78118ba2121aad47b55195a92ed05d591e7bbde | 0e5f563fda3ff5722846df46dc2126b3ba228239 | refs/heads/master | 2022-10-04T02:06:28.050703 | 2020-06-06T15:34:12 | 2020-06-06T15:34:12 | 270,014,966 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,000 | py | import hashlib
import uuid
# Menggunakan metode hashing SHA256 dengan memanfaatkan built-in module hashlib dan uuid
# Informasi didapatkan dari pythoncentral.io
# Fungsi untuk merubah password user dalam bentuk hash saat signup
def hash(password):
# Membuat susunan kata acak yang akan ditambahkan ke pas... | [
"noreply@github.com"
] | noreply@github.com |
d46adbab3887be0e56be8907bee2a62fada99cca | 60e4b3aa8b29cf4149476353593326795728605d | /save.py | 549ae6ed6c5a4d2700e0824727d96de24fe676cb | [] | no_license | matheusfsa/transformaTabela | 7942eacfcd78aa31a82793fe9995954c2cd0eb61 | f7342ba84adc66a785e1070f760dd718671ccd00 | refs/heads/master | 2020-03-23T18:45:32.367696 | 2018-07-27T13:27:48 | 2018-07-27T13:27:48 | 141,930,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,734 | py | from collections import defaultdict, Counter
import itertools
import math
import random
class BayesNet(object):
"Bayesian network: a graph of variables connected by parent links."
def __init__(self):
self.variables = [] # List of variables, in parent-first topological sort order
self.lookup ... | [
"tetofsa15@gmail.com"
] | tetofsa15@gmail.com |
20c80bd801a815a348f93512423abbf0ad984c81 | 82228ee4e8941d67bb71020a2917706ba6962989 | /tests/utils/test_constants.py | aa54516e4bb5f8c500795b241090fda9839c7b05 | [
"MIT"
] | permissive | haoziyeung/puzzle | 2daccf618347e29980daf4ef7fd25ca431d86ca5 | 9476f05b416d3a5135d25492cb31411fdf831c58 | refs/heads/master | 2021-06-17T13:07:27.916154 | 2017-05-17T13:03:10 | 2017-05-17T13:03:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 327 | py | from puzzle.utils.constants import HGNC_TO_OMIM, SEVERITY_DICT
def test_HGNC_TO_OMIM():
assert HGNC_TO_OMIM['CACNA1F'].get('mim_nr') == 300110
assert HGNC_TO_OMIM['ADK'].get('mim_nr') == 102750
def test_SEVERITY_DICT():
assert SEVERITY_DICT['transcript_ablation'] == 0
assert SEVERITY_DICT['start_lost'... | [
"robin.andeer@gmail.com"
] | robin.andeer@gmail.com |
0c6d995cbd523c31f3c9518b70319974afb09481 | 8c2a5ee34dd6dc08144a8ae45b4ef206e8873b4d | /bst.py | d0c513a401bba9b0c8a50b103d3d05726fa03740 | [
"MIT"
] | permissive | ultranaut/pystructs | 205ccdb1f59ef773a7b5bbecb8b14865cef1c1c3 | f8b46a9dc0265005b1bb32a62fe17585234e2b7a | refs/heads/master | 2021-01-13T02:09:06.121723 | 2015-02-06T03:26:11 | 2015-02-06T03:26:11 | 24,217,059 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,955 | py | #!/usr/bin/env python
"""Implements a binary search tree."""
class Node:
"""A tree node."""
def __init__(self, key, data=None):
"""Creates a node item."""
self.key = key
self.data = data
self.parent = None
self.left = None
self.right = None
class BinarySearchTre... | [
"john@ultranaut.com"
] | john@ultranaut.com |
eadedcde4df22859ad8c16691b3326f3f31295d1 | da11d4d8519c50527842620e485d1eee1acff258 | /train_utils/__init__.py | c7ab895582a383771b9a3d511d2bb51dd13a453f | [] | no_license | GF1447571253/faster-rcnn | 9c51fe9c4e0c582b6914aaed42859733396401a8 | 883a2d716d66e1de0b75421d5cf4457c2b970976 | refs/heads/master | 2023-06-06T22:06:02.860023 | 2021-06-30T13:17:20 | 2021-06-30T13:17:20 | 381,706,621 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 270 | py | from .group_by_aspect_ratio import GroupedBatchSampler, create_aspect_ratio_groups
from .distributed_utils import init_distributed_mode, save_on_master, mkdir
from .coco_utils import get_coco_api_from_dataset
from .coco_eval import CocoEvaluator
# just a test for github | [
"1447571253@qq.com"
] | 1447571253@qq.com |
aaa9f8b3175b1e0caf2ee5dc6ca621c06071ca79 | 6113f024b0a7d448a1e427cd43241baf1ad055b1 | /Python-4.py | 902d78c1191b241c5b4a6adea09497ae2d4c501c | [] | no_license | AishwaryaRaut18/python | f1db2e66f2e074c8ecf3317e44a9c2653d8af778 | d5c11a080091e930616e9ea22963d61a980b8492 | refs/heads/master | 2023-07-04T19:47:52.651211 | 2021-07-31T19:24:24 | 2021-07-31T19:24:24 | 391,445,636 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | cities=[]
location=[]
n=int(input("enter list size"))
for x in range(0, n):
c=str(input("enter city name"))
cities.append(c)
l=str(input("enter location"))
location.append(l)
zipped=zip(cities,location)
print(list(zipped))
| [
"aisssh1997@gmail.com"
] | aisssh1997@gmail.com |
5267ef629b697a6f0f4684057928eb7df6bedada | 1c4de938e068c8967288ae06e15d1ea148d92ace | /Python_parallel/lu_mpi.py | 8701770bf65cd8e545e449987031ca7b2c78b8e4 | [
"MIT"
] | permissive | 610yilingliu/LU_Decomposition_MPIVersion | 3d5ddd578dc703ea830c35a421aab89d9ae614d2 | 0bd8af0e86b5fcc36970bea7bb045c129fdd2238 | refs/heads/master | 2023-01-07T22:25:57.883027 | 2020-10-16T08:28:27 | 2020-10-16T08:28:27 | 297,609,839 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,484 | py | import mpy4py
import random
def generate(sz, rg, sl):
"""
:type int sz: size of square matrix(sz * sz)
:type int rg, int sl: range and scale of data. For example if the value field will be [-0.2, 0.2], than
rg = 2, sl = 10
:rtype: (matrix List[List[float]], vector List[float]), float in Python equa... | [
"yilingliu1994@gmail.com"
] | yilingliu1994@gmail.com |
1ee4f8822cc864f39fec3eae1aa6b4bdaa91f2e6 | 5fa3bf3af2304fb16fb1ee7b8502027f753c8c34 | /stock_analysis(vincent tatan's).py | 547796dae796ab2474a60ff1570cc7c6eac4aeae | [] | no_license | avitabayan/12-minutes-stock-prediction-analysis | 763e485813056faa579483982bbbcaabf20e1e0e | 00dc1ffd50d4cc4ee81956ae62fc8867b200422f | refs/heads/master | 2021-01-16T04:07:22.596140 | 2020-02-25T10:30:29 | 2020-02-25T10:30:29 | 242,972,184 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,088 | py | #From Vincent Tatan's In 12 minutes:Stocks Analysis with Pandas and Scikit-Learn
#Homework2 for Siraj ML class - none of this code is mine, only modified and stock pick changed
import datetime
from pandas_datareader import data as pdr
import yfinance as yf
#pick stock, VTI
VTI = yf.Ticker("VTI")
#import data... | [
"noreply@github.com"
] | noreply@github.com |
8ba102ebdd7f92dc9a0e9dc574bebbf7da51e6a9 | 058ed13ab33e8af7f5c7f6cfb985edcc1f0075b8 | /.history/application/controllers/sinhvien_20201006230934.py | c35efabcab728dece922a76da4e6ab65c34212a1 | [] | no_license | thinhpayer123/learning-python-vinacomi | e89a0b5302fbc42d1998aea82bba8ebea594eee6 | f4d11998911360e25f68c2c6c0336d32a8c25c65 | refs/heads/master | 2023-03-27T08:57:48.600710 | 2020-12-13T15:43:53 | 2020-12-13T15:43:53 | 353,254,388 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,765 | py | from application.extensions import apimanager
from application.models.model import QRUser, User, UserWallet
from application.extensions import auth
from application.database import db
from gatco.exceptions import ServerError
from sqlalchemy import create_engine
import os
import random
import string
import aiofiles
im... | [
"cuongnd@upstart.vn"
] | cuongnd@upstart.vn |
15103f4f50726d1fd97bafd2e4ff74185986cecf | c6ea767d0fe75b6cbd04854ff4b00521ec74aeb2 | /ControlScripts/modules/builder/_skeleton_.py | 2994d30601bc5de0786705b5fdd6c9ef0ed8db53 | [] | no_license | schaap/p2p-testframework | e21b4edfb3d5275d9d13c2fc1c8662e73ce04d2d | 221426f6120a4caa2b2d7e26d89cc487cb8673e2 | refs/heads/master | 2021-01-09T22:39:41.723916 | 2012-08-01T12:53:07 | 2012-08-01T12:53:07 | 2,649,857 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,263 | py | from core.builder import builder
# You can define anything you like in the scope of your own module: the only thing that will be imported from it
# is the actual object you're creating, which, incidentally, must be named equal to the module it is in. For example:
# suppose you copy this file to modules/builder/make.py... | [
"thomas@ch.tudelft.nl"
] | thomas@ch.tudelft.nl |
55d046dd1d43409f967db43d069619a1b9a92d5f | d8b5aba2a1f53fbf3fcfc388c26e547afa76b13f | /modules/app_email/lib/delphi.py | d6e8461d29ca1decad1b18441f6a42b08596eed7 | [
"Apache-2.0"
] | permissive | dfrc-korea/carpe | e88b4e3bcb536355e2a64d00e807bccd631f8c93 | f9299b8ad0cb2a6bbbd5e65f01d2ba06406c70ac | refs/heads/master | 2023-04-28T01:12:49.138443 | 2023-04-18T07:37:39 | 2023-04-18T07:37:39 | 169,518,336 | 75 | 38 | Apache-2.0 | 2023-02-08T00:42:41 | 2019-02-07T04:21:23 | Python | UTF-8 | Python | false | false | 1,235 | py | #
# delphi.py, 200611
#
import os
import errno
def CreateDir(dir):
try:
if not os.path.isdir(dir):
os.makedirs(os.path.join(dir))
return True
except OSError as e:
if e.errno != errno.EEXIST: raise
return False
def DirectoryExists(dir):
return os.path.isdir(dir)
... | [
"jbc0729@gmail.com"
] | jbc0729@gmail.com |
48c447f2f216c015e483bfe9f33435d788261743 | 4407e6eff1a32b3df8632cba1c1143922e3b0139 | /manipulacao_arquivos/desafio_csv_web.py | 6073b6886b6dc357fabce35d69e8d4fb30a153f4 | [] | no_license | rodrigocode4/estudo-python | 3cc69bba6261a5821398dc9010b5ab2748c5a94c | 01128e5e1a1d39d2835df51dfe8bbaf4a270aa51 | refs/heads/master | 2022-12-11T01:32:20.920048 | 2020-05-08T00:03:05 | 2020-05-08T00:03:05 | 209,614,844 | 1 | 0 | null | 2022-12-08T06:48:15 | 2019-09-19T17:47:07 | Python | UTF-8 | Python | false | false | 432 | py | #!/usr/bin/python3
import csv
from urllib import request
def read(url):
with request.urlopen(url) as entrada:
print('Baixando CSV...')
dados = entrada.read().decode('latin1')
print('Download completo...')
for cidade in csv.reader(dados.splitlines()):
print(f'{cidade[8]}... | [
"rodrigocode4@gmail.com"
] | rodrigocode4@gmail.com |
36d4304a5261ebf8b4b7e77022b6b2938ec205e7 | 0426a74c4778bacbe6a5e2ba0f515813e3126590 | /apps/companies/migrations/0004_auto_20170212_2042.py | 60aee18534d5a7a05a56fd58625cd69af02de61a | [] | no_license | shinxyi/ConsumerAffairsAPI | 4dee2b0e7f8ccd5be705ca01c96c499a89347355 | b51fab4c6921b9115c8b585b54ca60e71701fe66 | refs/heads/master | 2021-01-22T04:10:33.963197 | 2017-02-13T17:24:33 | 2017-02-13T17:24:33 | 81,508,855 | 0 | 0 | null | 2017-02-12T20:19:25 | 2017-02-10T00:27:39 | Python | UTF-8 | Python | false | false | 523 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.10.5 on 2017-02-12 20:42
from __future__ import unicode_literals
import datetime
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('companies', '0003_auto_20170212_2033'),
]
operations = [
mi... | [
"shinxyi.tan@gmail.com"
] | shinxyi.tan@gmail.com |
884f694a3ff927399cff34e14147b490cebff1e3 | c52aab6622b6a642e262d4ba6d1b20230036d9d1 | /office/summer/zone/plot.py | f7909bfd1b7c9b791a04fc99b725724ef4fbf1ea | [] | no_license | SenHuang19/ROM | 5602b0da3af121c0888c1848233f388c6f2a4327 | 8f1bd71dd8d61e1656a84e756ad640c2b856fb5a | refs/heads/master | 2021-06-25T11:28:39.939156 | 2018-06-21T04:52:46 | 2018-06-21T04:52:46 | 135,602,995 | 0 | 3 | null | 2019-05-22T22:35:25 | 2018-05-31T15:34:43 | Python | UTF-8 | Python | false | false | 887 | py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import math
import json
import math
def rmse(x,y):
sum=0
for i in range(len(x)):
sum=sum+(x.iloc[i]-y.iloc[i])*(x[i]-y[i])
return math.sqrt(sum/len(x))
filename='zone5'
tab2=pd.read_csv(filename+'validation_result.... | [
"wang759@pnnl.gov"
] | wang759@pnnl.gov |
987f92a7554c420a41bb61e75372a9b7d318c61d | a7ed4da896faab105ff08259a82ae822548d1c2c | /6/6_1.py | 7ed377a9d8fe394412cc185b039795c97bc0a055 | [] | no_license | nemesmarci/Advent-of-Code-2019 | e8e59d89be8ed43ce046fd7854b1c9b779a8930e | 251dc4dc62777a7c0daf7a74d832c0be3d75140e | refs/heads/master | 2021-12-31T10:53:35.924253 | 2019-12-27T17:17:06 | 2021-12-29T19:17:13 | 225,252,265 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 257 | py | from space import read_data
objects = read_data()
root = objects['COM']
def traverse(current, level=1):
n = len(current.orbiters) * level
for child in current.orbiters:
n += traverse(child, level + 1)
return n
print(traverse(root))
| [
"nemes@sch.bme.hu"
] | nemes@sch.bme.hu |
a5f6742c12cf07e7da1ddb853b3d5d7941b009d4 | ba5c374ae48f9e2bdca0fbea0e6edd6c8f9f848c | /ai_src/Player/Resource.py | b5780ecf7af7a1edaf73d98b78b8420c0abaae7b | [] | no_license | arthurteisseire-epitech/PSU_zappy_2018 | b890bb5522c42224efd66ffbd1e69b6d513714db | c5d429ccd7f3ed1c9faf6dbf00e2c125a5452ebc | refs/heads/main | 2023-03-24T15:32:39.375950 | 2021-03-13T10:57:06 | 2021-03-13T10:57:06 | 347,320,614 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | from enum import Enum
class Resource(Enum):
FOOD = "food"
LINEMATE = "linemate"
DERAUMERE = "deraumere"
SIBUR = "sibur"
MENDIANE = "mendiane"
PHIRAS = "phiras"
THYSTAME = "thystame"
| [
"abel.vinuela-hamoudi@epitech.eu"
] | abel.vinuela-hamoudi@epitech.eu |
41daa0df82552a753799f21b9f6a92d5332edc43 | 9d8948ba3c48ad50db0b33e4db69722516ff2451 | /kubernetes_asyncio/test/test_apiextensions_v1_api.py | b67d159624fcc20bd0076930672fa1df89203f21 | [
"Apache-2.0"
] | permissive | tomplus/kubernetes_asyncio | f8d38b4f4546868499a19f5e2338f0c0cff0c68a | 9a41443088b999c00b6fbc7a88dcfbb86bf5c1c5 | refs/heads/master | 2023-08-31T07:45:33.728246 | 2023-08-21T11:58:21 | 2023-08-21T11:58:21 | 128,578,499 | 296 | 64 | Apache-2.0 | 2023-09-05T06:10:05 | 2018-04-07T23:55:49 | Python | UTF-8 | Python | false | false | 2,380 | py | # coding: utf-8
"""
Kubernetes
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
The version of the OpenAPI document: v1.25.11
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
import unitt... | [
"noreply@github.com"
] | noreply@github.com |
eb8db45b1a1e61e5b537a9c9931516551bae99e2 | cd59e776394e8b9588804dc4bf077fb941f3f145 | /api/migrations/0002_vacancy_company.py | e930752570a1954902561c5daf27b14c5ed8ea52 | [] | no_license | EldanaIbraimova/WebLab9 | bb545b0dcf5c998859c4663139e613c185127635 | 36b763d8e1c196c3d98191a47bb14dbef1434878 | refs/heads/master | 2021-05-21T17:15:58.310026 | 2020-04-03T12:54:06 | 2020-04-03T12:54:06 | 252,731,848 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | # Generated by Django 2.2 on 2020-04-03 10:37
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='vacancy',
na... | [
"khunsong888@gmail.com"
] | khunsong888@gmail.com |
0ad05c0dfd6e48742b121e8c44fddf8a92224af1 | dd770e697daddab20e09fbf8ce199c97ee540c37 | /bigtop-packages/src/charm/spark/layer-spark/tests/10-test-ha.py | 99c604f9ffd781c069a3d253e4eb43d243ba046e | [
"Apache-2.0",
"FreeBSD-DOC",
"MIT",
"DOC"
] | permissive | PKConsul/bigtop | 0e7b5133be17a2093c0d5279b000c60b67072a16 | 2f8311b184bf0c5d25756b098895e43b1dbc3c2e | refs/heads/master | 2021-01-20T02:08:29.012667 | 2017-04-22T17:44:30 | 2017-04-23T06:27:13 | 89,379,381 | 1 | 0 | null | 2017-04-25T15:53:29 | 2017-04-25T15:53:29 | null | UTF-8 | Python | false | false | 3,718 | py | #!/usr/bin/python3
# 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... | [
"kevin.monroe@canonical.com"
] | kevin.monroe@canonical.com |
4ada936d4800fcfa135a6a46c0347504ab72926e | b698f74dd3b90b110b8acf2474b743da4c6b01e5 | /count-recursively.py | a7e8b2dabfe4e51be585dc1b9bc5dcca0f260740 | [] | no_license | emilycheera/coding-challenges | 162f06a7b21677831cb689b400670bc340991ce9 | b7cf8e2b3931adc1362cfff42d10c5b4b4910494 | refs/heads/master | 2021-03-13T16:19:19.255060 | 2020-06-08T18:34:21 | 2020-06-08T18:35:00 | 246,694,751 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 232 | py | def count_recursively(lst):
"""Return number of items in a list, using recursion."""
if not lst:
return 0
return 1 + count_recursively(lst[1:])
print("test [1, 2, 3] -> 3")
print(count_recursively([1, 2, 3])) | [
"emilycheera@gmail.com"
] | emilycheera@gmail.com |
d2e2318909c62901249fe649c24e5abf4b22430b | 9ddbc44b456a37d3e36be7a0f80bf097a7930909 | /amanturcolor.py | 3f787f77bead57f93411e68d983b26ea3909974c | [
"MIT"
] | permissive | Amankumar10/Aman | ae3d789c88fe1af3ac01869e6a994cd92687ce26 | e75f3ff16ecfe5c3320c7f5be9c02bb8787d2b34 | refs/heads/main | 2023-06-28T14:05:33.152958 | 2021-07-23T16:53:20 | 2021-07-23T16:53:20 | 388,868,121 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,274 | py | import turtle
colors=["red","blue","green","black","brown"]
my_turtle = turtle.Turtle()
my_turtle.speed(70)
for i in range(276):
my_turtle.pencolor(colors[i%5])
my_turtle.left(70) #(a)
my_turtle.forward(100) #(a)
my_turtle.left(55) #(a)
my_turtle.backward(100) #(a)
my_turtl... | [
"amankumar02740@gmail.com"
] | amankumar02740@gmail.com |
cbd4bd9d77b8dd112549263d8b7c1515026424c4 | 8b12f1d36b88dcc230f98b797176bd448fe7ac96 | /lesson3/hw03_hard.py | 8ff989c12847b0fb647afd5692cb22a68b65bebf | [] | no_license | bxready/python | e25bfec3ffb0c8090cd9dea36b212d15d5986d1c | 36882ee6c11147abab9576807d63d8d1b9ee9133 | refs/heads/master | 2020-03-31T01:14:07.990582 | 2018-11-06T18:54:14 | 2018-11-06T18:54:14 | 151,772,477 | 0 | 0 | null | 2018-11-06T18:54:15 | 2018-10-05T20:07:57 | Python | UTF-8 | Python | false | false | 7,718 | py | # -*- coding: utf-8 -*-
__author__ = 'Алексей Коваленко'
import fractions
import random
import re
import os
# Задание-1:
# Написать программу, выполняющую операции (сложение и вычитание) с простыми дробями.
# Дроби вводятся и выводятся в формате:
# n x/y ,где n - целая часть, x - числитель, у - знаменатель.
# Дроби ... | [
"kova@kuznica74.ru"
] | kova@kuznica74.ru |
0a81406e21568458bfa72da56fa163c5beb986f7 | e275515948c89be5aa0b25f554bcf0a2dcaece8a | /scripts/old-scripts/cmr.py | c1f0e3f430ec702f56a3144287b9371292faf698 | [] | no_license | zlm200/DF_Linemod_ROS | 58f1fe8183bb0fd827bb702e7058ea5c154ff88e | 9e4f8c2a5a0fb7e04ab8e18c1272f93276d28b96 | refs/heads/master | 2023-03-15T16:01:04.723378 | 2020-12-03T01:24:37 | 2020-12-03T01:24:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,456 | py | #%%
import os
import numpy as np
import random as rand
from PIL import Image
import chainer
import chainer_mask_rcnn as cmr
from chainercv import utils
from utils.vis_bbox import vis_bbox
from utils.bn_utils import bn_to_affine
import matplotlib.pyplot as plt
# specify which gpu to use
os.environ["CUDA_DEVICE_ORDE... | [
"ashesh.vasalya@aist.go.jp"
] | ashesh.vasalya@aist.go.jp |
f3234921e0a1cd9eaf4c40340a44f85a9b4c646b | 74c8f10bfc82e762d83db424e5d4f4b3681ffba0 | /venv/Lib/site-packages/winrt/windows/security/cryptography/certificates/__init__.py | df6f418b8fd0c94949f27c7b4d23e5ac4cb7a211 | [] | no_license | meghnaraswan/HEARTLabHapticSleeveProject | 1e7bd0710c26dad6588f73f6b1f0741c8e31334d | 6c2c9a227aaacf34b2205bcb1a856cc70ceccd55 | refs/heads/main | 2023-07-04T01:51:01.462007 | 2021-08-17T13:34:43 | 2021-08-17T13:34:43 | 390,823,593 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,949 | py | # WARNING: Please don't edit this file. It was generated by Python/WinRT v0.9.210202.1
import typing, winrt
import enum
_ns_module = winrt._import_ns_module("Windows.Security.Cryptography.Certificates")
try:
import winrt.windows.foundation
except:
pass
try:
import winrt.windows.foundation.collections
ex... | [
"raswan@chapman.edu"
] | raswan@chapman.edu |
6db39aefe0474c81e6a6a24d7b3c79f3ab7553e7 | 456ca4570118e2944eb46c439b9d8090750af1b1 | /Lab8/smtp_master.py | 2fdf64fc00e0f49fd1a6ecce04ec52e53ab84898 | [] | no_license | goreckinj/Network-Protocols-Labs | e34bb5c7b44d5dc43e5580c09830ec891740ca36 | 9c5e2185e6a298a6eca3c01b3ae1d69d529ca869 | refs/heads/master | 2020-04-25T05:26:54.197232 | 2019-02-25T16:38:45 | 2019-02-25T16:38:45 | 172,543,520 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,136 | py | """
- CS2911 - 0NN
- Fall 2017
- Lab N
- Names:
- Jason Gao
- Nick Gorecki
- Alex
A simple email sending program.
Thanks to Trip Horbinski from the Fall 2015 class for providing the password-entering functionality.
"""
# GUI library for password entry
import tkinter as tk
# Socket library
import socket
# SSL... | [
"="
] | = |
e085cb3c3cb21879704390f4e24c6657f2288de0 | 8a66133e57eb1217a666229d04d0c4965847e657 | /CARTtree.py | bef4f2e3ad44e6569c8580beca2a9586bb87bacd | [] | no_license | jackhe0912/ML-practice | 2dbe22ba0c667676a6cbe852e7da4144e220c684 | 66f716b67003dd2dc25254552874411965766089 | refs/heads/master | 2020-04-04T13:53:05.615653 | 2018-11-03T12:10:57 | 2018-11-03T12:10:57 | 155,978,627 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,109 | py | """CARTS算法代码实现
20180911
jackhe"""
from numpy import *
import numpy as np
import matplotlib.pyplot as plt
"""读取数据函数"""
def loadDataSet(filename):
dataMat=[]
fr=open(filename).readlines()
for line in fr:
curline=line.strip().split('\t')
fltline=list(map(float,curline))
... | [
"noreply@github.com"
] | noreply@github.com |
2dbd39a7be367e0af9174da5b1b0cbfe9ed4b588 | 8d30f2d627eb15bf0a3ff541812af3a289fffcfc | /backend/yfkyfkfu_1352/settings.py | bed71fd8664c0a8b11e6d92e1c95522d7680c020 | [] | no_license | crowdbotics-apps/yfkyfkfu-1352 | 2eda6d948adf2fd9fcace7997d606ff057168e03 | fd53b7f60397737ad99e7cae6e81c1b91c4ae22c | refs/heads/master | 2022-12-15T03:23:19.526405 | 2019-03-13T18:48:22 | 2019-03-13T18:48:22 | 175,480,158 | 0 | 0 | null | 2022-12-06T15:10:19 | 2019-03-13T18:48:19 | JavaScript | UTF-8 | Python | false | false | 4,746 | py | """
Django settings for yfkyfkfu_1352 project.
Generated by 'django-admin startproject' using Django 1.11.16.
For more information on this file, see
https://docs.djangoproject.com/en/1.11/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/1.11/ref/settings/
"""
im... | [
"team@crowdbotics.com"
] | team@crowdbotics.com |
a19e0ce4eba07a01a0ac080c0de37edaf8d800ad | 55686f5201ca5f26a7314e086ec9b0e13e471c5c | /main.py | ba7d5451c8d7fadaf36c517333be0ae73c4bdc68 | [] | no_license | GrinchakEvgeniy/Number-Recognition | ef9f23f7817c1944549a757e29164563fd77de91 | 13e81257bf98b3a6713d0294eb7ba373710943a4 | refs/heads/main | 2023-02-01T03:07:40.601937 | 2020-12-12T19:35:20 | 2020-12-12T19:35:20 | 320,907,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,070 | py | from flask import Flask, render_template, request
import numpy as np
from flask import jsonify
from NeuralNetwork import NeuralNetwork
app = Flask(__name__)
@app.route('/api/', methods=['GET', 'POST'])
def api():
if request.method == 'POST':
x_all = np.array(([request.get_json()["data"]]), dtype=float)
... | [
"user@Users-Mac-mini.local"
] | user@Users-Mac-mini.local |
e209a95d690abfd4189adb9be07986331f77a9b4 | f889bc01147869459c0a516382e7b95221295a7b | /test/test_customer_data_customer_search_results_interface.py | edf62d3b5d9ee180f4386a1c633555c9f563ed2b | [] | no_license | wildatheart/magento2-api-client | 249a86f5c0289743f8df5b0324ccabd76f326512 | e6a707f85b37c6c3e4ef3ff78507a7deb8f71427 | refs/heads/master | 2021-07-14T16:01:17.644472 | 2017-10-18T13:33:08 | 2017-10-18T13:33:08 | 107,412,121 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,167 | py | # coding: utf-8
"""
Magento Community
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
OpenAPI spec version: 2.2
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import os
import sy... | [
"sander@wildatheart.eu"
] | sander@wildatheart.eu |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.