blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 616 | content_id stringlengths 40 40 | detected_licenses listlengths 0 69 | license_type stringclasses 2
values | repo_name stringlengths 5 118 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 63 | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 2.91k 686M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 23
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 213
values | src_encoding stringclasses 30
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 2 10.3M | extension stringclasses 246
values | content stringlengths 2 10.3M | authors listlengths 1 1 | author_id stringlengths 0 212 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
be01e83be789080320012167b97227cca786a513 | 2488718297e47d726471f5aafb76369390912d5a | /Medicine predictor for The disease.py | 10ca4508a428e2c16874fae6221bb2084fe751b6 | [] | no_license | HarshaVardhanReddy18/HOUSE-MD | 9c9f887cdea34cf285e546ee01c9e60539bc2e6c | 659340a672ec9a89040ec614b8204b58c732339c | refs/heads/master | 2022-12-19T18:40:59.666603 | 2020-10-09T17:22:02 | 2020-10-09T17:22:02 | 296,778,441 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,423 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Sep 19 12:26:24 2020
@author: shaur
"""
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import os
os.chdir("D:\data sets")
dataset = pd.read_csv('web_sacrapped.csv', delimiter = ',', quoting = 3)
a=dataset.iloc[:,:2]
x=a.iloc[:,:1]
... | [
"noreply@github.com"
] | HarshaVardhanReddy18.noreply@github.com |
6447271e439b59fe2951102126daafa3a88009bb | 36bc1dd6ebd845b8946a57851b4cc43dae9dc1ba | /accounts/urls.py | 083a65b74b9b8be5574d9c3aa24658e0ceb25ea3 | [] | no_license | bruce619/djangomedicalapp | eba6547092f95c843598c2ba88e2ac84d0b92c64 | e3a7f046677b5b6eadec5191842f372b4f0d259c | refs/heads/master | 2022-12-12T22:58:27.233939 | 2020-11-07T22:50:10 | 2020-11-07T22:50:10 | 254,091,758 | 0 | 0 | null | 2022-11-22T07:02:53 | 2020-04-08T13:13:12 | Python | UTF-8 | Python | false | false | 726 | py | from django.urls import path
from . import views
from accounts import views as user_views
from django.conf import settings
from django.conf.urls.static import static
urlpatterns = [
path('patients/signup/', views.patients_registration_form, name='patients-signup'),
path('practitioners/signup/', views.p... | [
"chimuanyaibecheozor@gmail.com"
] | chimuanyaibecheozor@gmail.com |
1bbf137aa6b4ac31b07c38f1907aa7110050b58e | 045385ba95f62658d15688e7dade4e7e618ebb08 | /report.py | c7c92504a04ca5fc40db5f9ceb120fc9823c7131 | [] | no_license | tarunbodapati/player.py | eb04739737223ed0e185f6cf62389a444e61875f | 97587573587dfec1a3b3f75b41bcb4cb4f3f741d | refs/heads/master | 2020-06-21T05:33:25.378068 | 2020-02-25T10:00:16 | 2020-02-25T10:00:16 | 197,356,916 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,250 | py | A NOVELL APPROACH FOR DETECTION OF LUNG TUMOUR
Abstract:
Delineation of lung tumor from adjacent tissue from different computed tomography images (CT) creates many difficulties due to the similarities in images.... | [
"noreply@github.com"
] | tarunbodapati.noreply@github.com |
a270947c1b4f962a0d9e5be8ec990bbefd2b4a32 | 3a39ddc4a8600ffc5110453867370c1d8e2da121 | /x11-libs/libXcomposite/libXcomposite-0.4.3.py | 8ce4b041dc0124e9f86b8c9c3514052f3dd809a7 | [] | no_license | seqizz/hadron64 | f2276133786c62f490bdc0cbb6801491c788520f | ca6ef5df3972b925f38e3666ccdc20f2d0bfe87e | refs/heads/master | 2021-01-18T04:53:09.597388 | 2013-02-25T21:25:32 | 2013-02-25T21:25:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | metadata = """
summary @ X11 Composite extension library
homepage @ http://xorg.freedesktop.org/
license @ MIT
src_url @ http://xorg.freedesktop.org/releases/individual/lib/libXcomposite-$version.tar.bz2
arch @ ~x86
"""
depends = """
runtime @ x11-libs/libXfixes x11-proto/compositeproto
"""
#srcdir = "libXcomposite-%... | [
"bburaksezer@gmail.com"
] | bburaksezer@gmail.com |
e9bdcafd637d894057834d086307fedfa9f62b56 | 17a1529d0403a8f2b5b1080305a0b61de61c1477 | /api/radiam/api/tests/permissionstests/datasetdatacollectionmethodpermissionstests.py | 0617cc4fd8c24ef85695bc483c62d91b49779f31 | [
"MIT"
] | permissive | usask-rc/radiam | 903dc6f21d17e371141a642d94e877ec993c3a66 | 6db6794fd1811b316dee6f6661986e027d8a594b | refs/heads/master | 2022-05-15T07:48:48.183526 | 2022-04-19T15:01:48 | 2022-04-19T15:01:48 | 237,302,758 | 2 | 1 | MIT | 2022-04-19T14:58:27 | 2020-01-30T20:48:56 | Python | UTF-8 | Python | false | false | 14,941 | py | import json
from rest_framework.test import APITestCase
from rest_framework.test import APIRequestFactory
from rest_framework.test import force_authenticate
from django.urls import reverse
from radiam.api.models import (
User, Dataset, DataCollectionMethod, DatasetDataCollectionMethod
)
from radiam.api.views imp... | [
"todd.trann@usask.ca"
] | todd.trann@usask.ca |
deaa0857f040e4558c3a3aa27b0b1ff32bf995cc | 487ce91881032c1de16e35ed8bc187d6034205f7 | /codes/CodeJamCrawler/CJ_16_1/16_1_3_ka_ya_c.py | 7735ad455887347c1c5a1e4c3582e3531bafa93a | [] | no_license | DaHuO/Supergraph | 9cd26d8c5a081803015d93cf5f2674009e92ef7e | c88059dc66297af577ad2b8afa4e0ac0ad622915 | refs/heads/master | 2021-06-14T16:07:52.405091 | 2016-08-21T13:39:13 | 2016-08-21T13:39:13 | 49,829,508 | 2 | 0 | null | 2021-03-19T21:55:46 | 2016-01-17T18:23:00 | Python | UTF-8 | Python | false | false | 1,141 | py | def solve(n, fs):
fs = [f-1 for f in fs]
lp = [None for p in xrange(n)]
for i in xrange(n):
chk = [False for p in xrange(n)]
p = i
cnt = 0
while not chk[p] and not lp[p]:
chk[p] = True
p = fs[p]
cnt += 1
if p == i:
... | [
"[dhuo@tcd.ie]"
] | [dhuo@tcd.ie] |
9646ac4cc55d9a5e30e41d7546f3ca1df7b888f9 | f0d9ba8456cdad2b2fa711fa8975b41da7af1784 | /worms/tests/__init__.py | 2b9503765bab2d60bb03f655ddf70c5209239ab5 | [
"Apache-2.0"
] | permissive | willsheffler/worms | f1d893d4f06b421abdd4d1e526b43c2e132e19a2 | 27993e33a43474d647ecd8277b210d4206858f0b | refs/heads/master | 2023-04-08T01:18:33.656774 | 2022-06-09T20:04:55 | 2022-06-09T20:04:55 | 118,678,808 | 6 | 5 | NOASSERTION | 2021-10-05T22:28:24 | 2018-01-23T22:30:45 | Python | UTF-8 | Python | false | false | 670 | py | # -*- coding: utf-8 -*-
"""Unit test package for worms."""
import os
import pytest
try:
import pyrosetta
HAVE_PYROSETTA = True
only_if_pyrosetta = lambda x: x
try:
import pyrosetta.distributed
HAVE_PYROSETTA_DISTRIBUTED = True
only_if_pyrosetta_distributed = lambda x: x
except Impor... | [
"willsheffler@gmail.com"
] | willsheffler@gmail.com |
100bda6658216fe7f659d6bfc212e9f3abf66c93 | 40b407afc90402e8374f44a504c286c962f72f76 | /run.py | 763bbea9b9844c06c4c16006597f6ee15e168b7d | [] | no_license | ThatTechGuy/RF-DCA | bce60ca5de196fa4408ff229cefb01b1ec06746b | ccfd25f6e51515ed47127f95c3dc7ac61f5e1c4c | refs/heads/master | 2021-01-17T20:02:40.371378 | 2016-05-07T14:59:02 | 2016-05-07T14:59:02 | 45,054,350 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 62 | py | from dca import app
if __name__ == '__main__':
app.run()
| [
"rmartin@fullsail.edu"
] | rmartin@fullsail.edu |
e25fd776db4cf8dfcdb7f6e854d3db92deb6dbc6 | 00da73f35308b860ef9a3c6eb6cdaf8c89608f57 | /deps/requests/adapters.py | cdaabdbee6f16c829f051891b4fe6ff7b718df96 | [
"MIT"
] | permissive | kylebebak/Requester | 32abf8a56ba0e9e42fdd25b13ce48d40a87f20e0 | 7f177bc417c45fd1792c6020543a4c6909e3ea21 | refs/heads/master | 2022-07-17T11:09:30.238568 | 2022-05-05T17:31:48 | 2022-05-05T17:38:56 | 89,746,594 | 333 | 16 | MIT | 2021-02-23T14:43:12 | 2017-04-28T21:37:08 | Python | UTF-8 | Python | false | false | 20,880 | py | # -*- coding: utf-8 -*-
"""
requests.adapters
~~~~~~~~~~~~~~~~~
This module contains the transport adapters that Requests uses to define
and maintain connections.
"""
import os.path
import socket
from urllib3.poolmanager import PoolManager, proxy_from_url
from urllib3.response import HTTPResponse
from urllib3.util ... | [
"kylebebak@gmail.com"
] | kylebebak@gmail.com |
419c0aaf771b74098121ba21ec364f0ae708f144 | a672f92dba39ce7cab2bf6ce3276ee06ff20b3be | /classification/util.py | b8cb62de26385e36f144c3a59e5d6378b687ea07 | [
"MIT"
] | permissive | BobbyZhouZijian/AI-Algo-Implmentations | 6af10a23276492d735686aeacdfa29257d406295 | 5592d3c358cc1611a1bde61797b93c0d6eee10c6 | refs/heads/main | 2023-08-05T06:37:04.027003 | 2021-09-30T05:30:31 | 2021-09-30T05:30:31 | 370,375,438 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,164 | py | import pandas as pd
import numpy as np
import math
def get_input_label_split(train_data, label_name=None):
if label_name == None:
train = train_data.iloc[:,:].to_numpy()
return train
y = train_data[label_name].to_numpy()
train = train_data.drop(columns=[label_name])
train = train.iloc[:... | [
"zephyroszhou@gmail.com"
] | zephyroszhou@gmail.com |
59df0d23f042d14bf354f6eaf802191e9da2833e | 3976b7564bae6867fefeaeca8c2f600251c9d3f5 | /aquacrop/classes.py | 340cbfc869e5839549d58d5c5b10088f75cd79ce | [
"Apache-2.0"
] | permissive | LLatyki/aquacrop | 9391aadb44c847f0c0d363b410846e122399be62 | 0382df63c126bec2754ac7ee3e8b4ef2816d8c0d | refs/heads/master | 2023-03-20T01:14:20.275605 | 2021-03-02T10:43:45 | 2021-03-02T10:43:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 60,333 | py | # AUTOGENERATED! DO NOT EDIT! File to edit: nbs/04_classes.ipynb (unless otherwise specified).
__all__ = ['ClockStructClass', 'OutputClass', 'ParamStructClass', 'SoilClass', 'CropClass', 'IrrMngtClass',
'IrrMngtStruct', 'spec', 'FieldMngtClass', 'FieldMngtStruct', 'spec', 'GwClass', 'InitWCClass', 'CropStru... | [
"tomk10tk@gmail.com"
] | tomk10tk@gmail.com |
440528b10e009c56ce24ed669064d788fd80bd40 | 5e6a21328057f91d489319533e1927b8107b9e0c | /Tests/test_mixture.py | 92eabbb87afe89edf29f0e699e6b252eaf5bcab2 | [
"BSD-3-Clause"
] | permissive | murrayrm/BioCRNPyler | d84437326742a04ac508a7e068c19a8c8816d7d7 | 2e7d4c521b1ebdf7cff6867b25cbee014e0ee1a3 | refs/heads/master | 2020-07-05T10:12:56.382470 | 2020-04-23T20:03:01 | 2020-04-23T20:03:01 | 202,620,151 | 1 | 0 | BSD-3-Clause | 2019-08-15T22:35:16 | 2019-08-15T22:35:16 | null | UTF-8 | Python | false | false | 3,540 | py | # Copyright (c) 2019, Build-A-Cell. All rights reserved.
# See LICENSE file in the project root directory for details.
from unittest import TestCase
class TestMixture(TestCase):
def test_add_species(self):
from biocrnpyler import Mixture
from biocrnpyler import Species
species = Speci... | [
"zoltuz@gmail.com"
] | zoltuz@gmail.com |
b48acca645c875be946e114f798a9563f27d31d1 | e56e7d398376e575d0b42fa36070f071277fae75 | /blog/models.py | 547c946c1179a5983e2a2428333286dd1a097a47 | [] | no_license | AdebambiComfort/My-Blog | 00ef8cce812a941c58483b1f9d01afe9b4067f72 | bd504390c983eed2ce7f308e9e00b6bcc676bf5c | refs/heads/master | 2020-07-01T04:27:36.641489 | 2019-08-07T13:14:32 | 2019-08-07T13:14:32 | 201,048,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 484 | py | from django.db import models
from django.utils import timezone
class Post(models.Model):
author = models.ForeignKey('auth.User', on_delete=models.CASCADE)
title = models.CharField(max_length=200)
text = models.TextField()
created_date = models.DateTimeField(
default=timezone.now)
published_date = mode... | [
"olatundecomfort94@gmail.com"
] | olatundecomfort94@gmail.com |
383fb7131e139dd7887a2437e60848af1d58580f | 70add60ba088146dd4984d232c6a7136f3f57765 | /hack/gopath_from_workspace.py | cd64f6b3532712864f3d8896b95453fbe8b4447d | [
"Apache-2.0"
] | permissive | ericchiang/cluster-registry | 1983a213ede3e23cd2ea3565912787ba706fbe49 | 3551dbcb0da06364fc8c0c1e9c3f1c9230d9f537 | refs/heads/master | 2021-03-30T17:12:13.950798 | 2017-10-20T20:06:49 | 2017-10-23T22:34:44 | 108,303,248 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,338 | py | #!/usr/bin/env python
# Copyright 2017 The Kubernetes Authors.
#
# 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 appli... | [
"dvorakviolinist@gmail.com"
] | dvorakviolinist@gmail.com |
b9e1f9a4e83ce496a09c5efd5b204b28738b2214 | 4ab9b679881e80b1e277d4d08840e5e62cc91c5a | /learngh/settings/base.py | cd75583de0fc19fa427def4322f4fe2022f693e3 | [] | no_license | agbekofrank/learnghb | 8987fd4c543a85752c03f473124e8ca82b959545 | a43560a18d807aae3d3f507b4f37f07e6e889852 | refs/heads/main | 2023-07-22T19:06:07.654386 | 2021-08-28T01:39:15 | 2021-08-28T01:39:15 | 400,674,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,148 | py |
import os
import dotenv
from datetime import timedelta
# import django_heroku
# import dj_database_url
# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
# Quick-start development settings - unsuitable for ... | [
"frank.agbeko@amalitech.org"
] | frank.agbeko@amalitech.org |
3f61ca63f7dff361e526f2cf6d6398aa22d96de4 | 398815d5f6afc295a09badb4ea12f4911aaf39ba | /flasky/migrations/versions/f4efa5ae67c7_.py | 46d8ea1f5ec1fa3f06925c65221bb3646cf3138e | [] | no_license | mookrs/laboratory | 920cc92e116a26d632ec3e8d79438bdd80c4595c | 797191caaf4b15b8e87ec7bc103e25c7244c6b05 | refs/heads/master | 2021-01-17T01:57:10.123565 | 2018-10-02T09:55:51 | 2018-10-02T09:55:51 | 31,777,780 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | """empty message
Revision ID: f4efa5ae67c7
Revises: f4fb3aa6b327
Create Date: 2016-08-19 11:11:31.888282
"""
# revision identifiers, used by Alembic.
revision = 'f4efa5ae67c7'
down_revision = 'f4fb3aa6b327'
from alembic import op
import sqlalchemy as sa
def upgrade():
### commands auto generated by Alembic - ... | [
"mookrs@gmail.com"
] | mookrs@gmail.com |
661cac8acf0eadfcb8a1d63605e97bdbdb2e9740 | 2652fd6261631794535589427a384693365a585e | /trunk/workspace/Squish/src/TestScript/UI/suite_UI_62/tst_UI_62_Cellular_design/test.py | 4b116d08c137cfe84f4e37aea4edc7de3cf116e4 | [] | no_license | ptqatester1/ptqa | 88c652380167f64a953bfd7a65041e7d8ac48c90 | 5b5997ea459e9aac17db8da2041e2af331927104 | refs/heads/master | 2021-01-21T19:06:49.275364 | 2017-06-19T03:15:00 | 2017-06-19T03:15:00 | 92,115,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,323 | py | ######################
#Author: Alex Leung ##
######################
from API.Utility import UtilConst
from API.Utility.Util import Util
from API.ComponentBox import ComponentBoxConst
from API.Device.EndDevice.PC.PC import PC
from API.Device.CellTower.CellTower import CellTower
from API.Device.COServer.COServer import... | [
"ptqatester1@gmail.com"
] | ptqatester1@gmail.com |
705b762aac98d0ee84e4cbc313bdf63e847cf8f6 | 79b2b24205f17ade5b41f3df5bd0869b87b3fa1e | /xfrmer.py | 659d75702950f2f0104abd94f46b802ffa978ae5 | [] | no_license | metrologist/Current-Transformer-Scale | 3539d129c31934053e286c621cf71748a5d00ee4 | 004987f058796de19cbc2efbed8ae305c1b74f5b | refs/heads/master | 2020-05-07T21:45:48.044136 | 2019-04-12T02:49:19 | 2019-04-12T02:49:19 | 180,917,454 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,867 | py | from __future__ import division
from __future__ import print_function
class TRANSFORMER(object):
"""
The TRANSFORMER class captures the essential structure of a transformer. It is specifically constructed for use
with MSL's two-stage primary reference current transformers. These transformers have a... | [
"noreply@github.com"
] | metrologist.noreply@github.com |
8324ea9c3819e8342075531c35de89cf7e1ffaae | 41495ab6e6e646866d8fb26af504214384fa18f6 | /cloud_scheduler/filters/disk_filter.py | bbdb1c65b8c8256add7e8be0f0425efb5f8190a1 | [] | no_license | glfpes/cloud_scheduler | 8760c0c3be9e537ae2ce040f5fdffd18e8920c0a | 09d9a58a9c23f0794098381e4a9e38336fc69d90 | refs/heads/master | 2021-01-19T00:06:37.698895 | 2016-06-07T09:28:23 | 2016-06-07T09:28:23 | 54,368,918 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 339 | py |
from cloud_scheduler import filters
class DiskFilter(filters.BaseCloudFilter):
def cloud_passes(self, cloud_state, filter_properties):
disk_limit_gb = filter_properties['disk_gb']
return cloud_state['disk_gb'] >= disk_limit_gb
@staticmethod
def get_mark(self):
return '... | [
"glfpes@gmail.com"
] | glfpes@gmail.com |
59534247ee1449496330021da54fc527d05a14e3 | 34a043e6961639657e36e7ac9fd459ad5b1f6de1 | /openpathsampling/experimental/storage/test_mdtraj_json.py | f3c57c4ad31a103b69866649884b52ccf8542b6a | [
"MIT"
] | permissive | dwhswenson/openpathsampling | edaddc91e443e7ffc518e3a06c99fc920ad9d053 | 3d02df4ccdeb6d62030a28e371a6b4ea9aaee5fe | refs/heads/master | 2023-02-04T12:31:17.381582 | 2023-01-30T21:17:01 | 2023-01-30T21:17:01 | 23,991,437 | 3 | 1 | MIT | 2022-08-12T17:48:04 | 2014-09-13T10:15:43 | Python | UTF-8 | Python | false | false | 2,273 | py | from .mdtraj_json import *
import pytest
import numpy as np
import numpy.testing as npt
from ..simstore.custom_json import bytes_codec, numpy_codec, custom_json_factory
from ..simstore.test_custom_json import CustomJSONCodingTest
from openpathsampling.tests.test_helpers import data_filename
class MDTrajCodingTest(C... | [
"dwhs@hyperblazer.net"
] | dwhs@hyperblazer.net |
fe1fc30924e2f2f7aaddfc9e65cfe82ff258f58f | b27f5bff09fab83d2a5970034cd2c2351a8346f2 | /outsource/migrations/0007_auto_20170726_1838.py | 37c8a92c36f8a3c4cf274b86c7bb7e7850228f05 | [] | no_license | cafemoa/takeit_server | 079b4561c1c970a6fa5f508a54fb84d6c8d63610 | fa674ae25d8eb3671f2f73ef43fee7744d257814 | refs/heads/master | 2022-12-10T20:41:17.716496 | 2019-01-14T17:47:50 | 2019-01-14T17:47:50 | 100,565,936 | 1 | 0 | null | 2022-11-22T01:45:43 | 2017-08-17T05:44:01 | JavaScript | UTF-8 | Python | false | false | 592 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.2 on 2017-07-26 09:38
from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('outsource', '0006_mydevice... | [
"canon0115@naver.com"
] | canon0115@naver.com |
c694bd620048754305caaa671e59cd8415f16dab | 077e1d088b31e8858e6f2d7f855e18d9a7a0ac09 | /creditManage/views.py | 753f8c72207ffeb123a0ec7552b56cb4b619ded3 | [] | no_license | sagatachatterjee/Credit-Management | 9382a16cf4c10269a2d5f882d880c2647f40b5a4 | 6a7b57222f2e2f3b9891ce418cb325d420d64533 | refs/heads/master | 2020-05-03T11:41:21.998242 | 2019-03-21T09:37:53 | 2019-03-21T09:37:53 | 178,606,533 | 1 | 0 | null | 2019-03-30T20:11:25 | 2019-03-30T20:11:25 | null | UTF-8 | Python | false | false | 2,100 | py | from django.shortcuts import render
from django.http import HttpResponse
from django.contrib.auth.models import User
from .models import user_detail,transaction
from django.views.decorators.csrf import csrf_exempt
# Create your views here.
ids=0
def index(request):
return render(request,'creditManage/index.htm... | [
"noreply@github.com"
] | sagatachatterjee.noreply@github.com |
d850a1c802074e8537dcabef5abf6157fab5c3a0 | db5e84b22b184242b406bb689b84dba4813b179d | /package_example/example_package/__init__.py | ea725f6c05a849f2cdf0a9597195459448fe1733 | [] | no_license | ErikBjare/python-examples | 46b23629d380efe94ae965256083060f616031c1 | 0f030392bfdf17b93dd14844cb5c35c09f6e8840 | refs/heads/master | 2021-01-16T18:19:14.676416 | 2015-05-08T11:28:40 | 2015-05-08T11:28:40 | 35,238,187 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 279 | py | # If you want to import all variables in the functions.py file directly into the example_package namespace, use this
from .functions import *
# If you want to import the functions.py file into it's own sub-namespace (example_package.functions), use this
from . import functions
| [
"erik.bjareholt@gmail.com"
] | erik.bjareholt@gmail.com |
297467e64e5b45612d4fe55253b3388b8442f79f | 770d4df866b9e66a333f3ffeacdd659b8553923a | /results/0193/config.py | fbbe800c6116da5429a209d219fc7846de53d1e2 | [] | no_license | leojo/ResultsOverview | b2062244cbd81bc06b99963ae9b1695fa9718f90 | a396abc7a5b4ab257150c0d37c40b646ebb13fcf | refs/heads/master | 2020-03-20T19:52:37.217926 | 2018-08-05T12:50:27 | 2018-08-05T12:50:27 | 137,656,327 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,322 | py | import os
import numpy as np
import waveUtils
class config(object):
def __init__(self):
self.prepare_data()
# Bsub arguments
bsub_mainfile = "main.py"
bsub_processors = 4
bsub_timeout = "4:00"
bsub_memory = 8000
# Epoch and batch config
batch_size = 128
latent_dim = 100
epochs = 100
epoch_updates = 10... | [
"leojohannsson91@gmail.com"
] | leojohannsson91@gmail.com |
410f0bef7e07bb907331e8704631f93f9140cc98 | edfc985df440d4f5fee3ebbf6a52dfd70baa06e4 | /Funktiot/average.py | 859e2faeca5e0127ba8a1d6ee43c9385377a97a6 | [] | no_license | Sanbu94/Python-kurssi2021 | 9fe5e832b1268a89b2fc9efcaa7062ad307163d4 | e8d5deb7b03eb6f15b5f846d899f221bd5568efe | refs/heads/master | 2023-04-19T04:22:23.281939 | 2021-03-25T15:14:31 | 2021-03-25T15:14:31 | 331,665,015 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 460 | py | numbers = [1,2,3,4,5]
sum = 0
for number in numbers:
sum -= number
average = sum / len(numbers)
print(average)
print("\n")
numbers = [9,8,7,6,5]
sum = 0
for number in numbers:
sum -= number
average = sum / len(numbers)
print(average)
#Funktio määritetään def-avainsanalla. Funktio input (parametrit) määri... | [
"Seppälä"
] | Seppälä |
3ce8513dc49bbd7f39174d24d24c9ef059686e0d | 805fe894bbe1d4072a2b083c4d874d0566cd69d0 | /woocommerce.py | 36e1aeb5ac57b29aa5754c1182b1e8941922b6c0 | [] | no_license | Popss2701/Lite | dce6d354008d69c37f2fb20689315a5356f8b0a9 | 817a322bdcca80bc1f9ce0b25e3aa6dd97e70007 | refs/heads/master | 2023-03-27T11:46:55.768279 | 2021-03-23T18:48:37 | 2021-03-23T18:48:37 | 290,103,787 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 271,230 | py | import copy
import csv
import re
from collections import defaultdict
from urllib.parse import unquote
import phpserialize
import chardet
from cartmigration.libs.utils import *
from cartmigration.models.cart.wordpress import LeCartWordpress
# tested with woocommerce335
class LeCartWoocommerce(LeCartWordpress):
WARNI... | [
"noreply@github.com"
] | Popss2701.noreply@github.com |
d6ff585c2ffc693538bd8228c085b5e4a11c85cb | 7bdd1cbff549d403446b9a827b5e7436785885fe | /dashboard/views.py | d37476a0d37763dc0bca569357a46f954e2e2ed6 | [] | no_license | Vaishnavi109/MobileSensorCloud | 6594ee0de89cc7640f46927782e90a2954fb1db1 | 70b09c56b3b0fe48b95c604810fe346acdaf5d5c | refs/heads/master | 2021-01-17T23:58:51.120130 | 2016-04-13T06:59:53 | 2016-04-13T06:59:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 111 | py | from django.shortcuts import render
def dashboard(request):
return render(request, 'dashboard.html', {})
| [
"rishirajdigambar.randive@sjsu.edu"
] | rishirajdigambar.randive@sjsu.edu |
1e6d34cd5428851cdf59a0a8cbcabbedc98ffb63 | edd8ad3dcb6ee9b019c999b712f8ee0c468e2b81 | /Python 300/04. List/052.py | b71c6b6b072e84b96609243c216c08fb45331666 | [] | no_license | narinn-star/Python | 575cba200de35b9edf3832c4e41ccce657075751 | 14eba211cd3a9e9708a30073ba5b31d21d39eeef | refs/heads/master | 2023-05-25T22:57:26.079294 | 2021-06-07T15:29:39 | 2021-06-07T15:29:39 | 331,647,462 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 152 | py | #리스트에 원소 추가 _ append()
movie_rank = ["닥터 스트레인지", "스플릿", "럭키"]
movie_rank.append("배트맨")
print(movie_rank) | [
"skfls2618@naver.com"
] | skfls2618@naver.com |
5c5a5c54b2a1b520926479a05fc3e52a64526556 | 76e6d039e5be0df7b100ee1f91587412b878279e | /Homeworks/HW2.py | a9092f80134194a8a48d3e9b3af6500da56bec9a | [] | no_license | vahaponur/GlobalAIHubPythonCourse | 6b5128807f81c6d0b4db99ff3a20e046552b57cb | f11b1187a5ec189b9656f03fac208b1926cd21c5 | refs/heads/main | 2023-03-02T05:24:01.409809 | 2021-02-08T15:31:43 | 2021-02-08T15:31:43 | 334,997,537 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 690 | py | #GlobalAIHub Homework 2
#user name and password specified
#UserName and Password
user_name="vonuryil"
password="globalaihub46@"
#get from user
get_user_name=input("User Name: ")
get_password=input("password: ")
#check if it is true
if (user_name == get_user_name and password==get_password):
print("Acces... | [
"noreply@github.com"
] | vahaponur.noreply@github.com |
3e2d5b25ba6cdc75221465e223ac9c6c0a7a9de6 | cf8b4b316b2b019ca6afef15937d1306b231cd73 | /feature_clean.py | ec4b30c0765ed4472ff89eb79270025992d7fc78 | [] | no_license | seridica/cs229project | e1372304aabf3f683147b33f208966bb7fb6c7cb | 311d82b20a6ae5c3b93810f5d7b6dc24d5145a74 | refs/heads/master | 2021-08-30T05:12:55.265581 | 2017-12-16T04:35:04 | 2017-12-16T04:35:04 | 114,216,366 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,393 | py | # -*- coding: utf-8 -*-
"""
SVM for Pan-Lung Data
November 30 2017
CS229 Project
File provides functions for cleaning up feature set.
1) Function removes features that have all the same value (typically 0)
2) PCA on features
3) Normalize features
@author: Calvin
"""
import numpy as np
import matplotli... | [
"calvink@stanford.edu"
] | calvink@stanford.edu |
f63a1432724c3cac911ccad6422806edc4c92da0 | 0369761e54c2766ff2ce13ed249d462a12320c0f | /bubble-search/bubble-search-practice/exercise-09.py | de843c707b960f927b8aa8ee8b57bf0057cd539f | [] | no_license | JasoSalgado/algorithms | e54c739005cc47ee8a401912a77cc70865d28c87 | 8db7d2bedfe468c70e5191bc7873e4dd86e7f95a | refs/heads/master | 2023-04-25T23:41:10.655874 | 2021-06-11T17:35:49 | 2021-06-11T17:35:49 | 333,979,204 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 622 | py | """
Bubble search exercise 09
"""
list = [6514 , 2352 , 3984 , 3596 , 2445 , 5535 , 6332 , 5346 , 617 , 3976 , 1242 , 2573 , 7772 , 9324 , 4655 , 3144 , 6233 , 2287 , 6109 , 4139 , 2030 , 6734 , 1495 , 9466 , 6893 , 9336 , 963 , 4412 , 5347 , 2565 , 7590 , 5932 , 6747 , 7566 , 2456 , 9982 , 8880 , 6816 , 9415 , 2426 , ... | [
"jaso_98@hotmail.com"
] | jaso_98@hotmail.com |
2fe653f3c427c1407ff776b05974647bae83e94b | e5504d8c4880993b82d5583a11c5cc4623e0eac2 | /Arrays/twoSum2.py | dacf7a07e9511280bc0929061c05928bfd38bb93 | [] | no_license | noorulameenkm/DataStructuresAlgorithms | e5f87f426fc444d18f830e48569d2a7a50f5d7e0 | 7c3bb89326d2898f9e98590ceb8ee5fd7b3196f0 | refs/heads/master | 2023-06-08T19:29:42.507761 | 2023-05-28T16:20:19 | 2023-05-28T16:20:19 | 219,270,731 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 766 | py | def pair_with_targetsum(arr, target_sum):
result = []
start, end = 0, len(arr) - 1
while start < end:
sum_ = arr[start] + arr[end]
# sum == target
if sum_ == target_sum:
result.append(start)
result.append(end)
break
# sum > target
elif sum_ > target_sum:
end -= 1
el... | [
"noorul.km@people10.com"
] | noorul.km@people10.com |
3493381777ce41dcb975ad7f011e2b61b299f283 | 69d0deb5921edc82eea0ae184db99b87a0ca6900 | /catkin_ws/build/srrg2_solver_calib_addons/catkin_generated/pkg.installspace.context.pc.py | f987c6cfb6f21976c245dc0a57e1233ba5d4bbf7 | [
"MIT"
] | permissive | laaners/progetto-labiagi_pick_e_delivery | 8d4006e206cd15b90b7e2291876c2b201e314621 | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | refs/heads/main | 2023-08-19T00:17:51.491475 | 2021-09-16T16:35:45 | 2021-09-16T16:35:45 | 409,192,385 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # generated from catkin/cmake/template/pkg.context.pc.in
CATKIN_PACKAGE_PREFIX = ""
PROJECT_PKG_CONFIG_INCLUDE_DIRS = "${prefix}/include".split(';') if "${prefix}/include" != "" else []
PROJECT_CATKIN_DEPENDS = "".replace(';', ' ')
PKG_CONFIG_LIBRARIES_WITH_PREFIX = "-lsrrg2_solver_calib_utils_library".split(';') if "-... | [
"hu.183947@studenti.uniroma1.it"
] | hu.183947@studenti.uniroma1.it |
9c5cbb2dda577439b8fc5e973133aae546a8d80d | 51c47f22c24a1b3cd2bff3f1343657f8993dc2a9 | /ModuloChat/prueba.py | 247bf8899e9cb2acb87d96215ff635f969e95089 | [] | no_license | JesusHernandezJimenez/SistemasDistribuidos | b3951a91bddc993b174444a081d4f1b0a404b515 | 76f63dd5f17e1533075b8c7436a83237995b1a2b | refs/heads/main | 2023-06-06T14:32:46.250629 | 2021-06-22T19:22:03 | 2021-06-22T19:22:03 | 374,816,396 | 0 | 0 | null | 2021-06-22T19:22:04 | 2021-06-07T22:31:18 | Python | UTF-8 | Python | false | false | 352 | py | from tkinter import *
root = Tk()
root.title("Prueha")
root.geometry("400x400")
panel_1 = PanedWindow(bd=4, relief='flat', bg='red')
panel_1.pack(fill=BOTH, expand=1)
panel_2 = PanedWindow(panel_1, orient=HORIZONTAL, bd=4, relief='raised', bg='black')
panel_1.add(panel_2)
top = Label(panel_2, text='top panel')
p... | [
"jesushernandezjimenez1998@gmail.com"
] | jesushernandezjimenez1998@gmail.com |
f3277b20bb721bebb914ea94042f68ca678765e6 | e331e4f0c321b98acde31faf3548194ae6d7d14b | /qa/rpc-tests/spentindex.py | d1d3c9ccfca34d77274592a835672489a20dd991 | [
"MIT"
] | permissive | MB8Coin/mb8coin-core | 487e3e16e43c008a6913d92e6edcf428c67a1f50 | 1fa5bd60019f6cff8038ace509ec4ca17c8233c7 | refs/heads/master | 2021-10-27T07:12:31.935401 | 2021-10-19T19:02:31 | 2021-10-19T19:02:31 | 131,882,320 | 5 | 3 | MIT | 2019-05-24T14:29:38 | 2018-05-02T17:10:21 | C++ | UTF-8 | Python | false | false | 6,342 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2015 The Bitcoin Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
#
# Test addressindex generation and fetching
#
import time
from test_framework.test_framework import MB... | [
"vidaru@protonmail.com"
] | vidaru@protonmail.com |
f59837294f8f44c5babd41a112e886e751a61e97 | 31401549d7a342b3fcb0f276f20e18f130730c69 | /utils/loadweight.py | 05c9d7ff211cd6d9235020fb2c41f2ffb3f1af14 | [] | no_license | takeitea/Attention-Echino | e79f207010ad9c57b31d39ba8681d2cb0e59643f | e157c99e5784c8dc2470b0d3f3ffa61b7921ce09 | refs/heads/master | 2020-05-21T00:01:06.170506 | 2019-03-06T13:27:52 | 2019-03-06T13:27:52 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,897 | py | """
load part of the pre-trained parameters
"""
import os
import torch
import torch.utils.model_zoo as model_zoo
model_urls = {
'vgg11': 'https://download.pytorch.org/models/vgg11-bbd30ac9.pth',
'vgg13': 'https://download.pytorch.org/models/vgg13-c768596a.pth',
'vgg16': 'https://download.pytorch.org/models/... | [
"945193029@qq.com"
] | 945193029@qq.com |
8d6cf1588bdda74af37dd6269bec5931e71b5745 | cbeb1d7060dbc281c11c6b029a1d156e1ec7ebfd | /mountains/massif_amorican/cols.py | 962ec60e6f13af3674ab0bd98560b70c7b4298da | [] | no_license | paulkirkwood/py.parcoursdb | 28ceceaf4f44e03d9911892a9a916447cd7c7477 | df2745064e4c66dc0c2d522fc0381bf13a8e7859 | refs/heads/master | 2020-09-14T04:58:10.940799 | 2020-02-24T21:04:31 | 2020-02-24T21:04:31 | 223,024,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 144 | py | import country
from col import Col
from ..util import french_col
def mur_de_bretagne():
return french_col("Mûr-de-Bretagne", 293, 2, 6.9)
| [
"paul@paulandsue.plus.com"
] | paul@paulandsue.plus.com |
34f4f7b2ce5b694d01a386ef1898e24a0a84e375 | a2a3bb37c3228b01681e019ad9781a01f0245195 | /blog/database.py | 5442b2f2d96af0a090ef3619a8e46773cc66481f | [] | no_license | prinudickson/fastapi_learning | 51e84423414d0cc8a6379464e81b6cc0ceebd3a7 | 284835b0cc94d564dc80a3b36e343a96d917ab49 | refs/heads/main | 2023-08-15T05:47:19.374600 | 2021-10-21T19:20:35 | 2021-10-21T19:20:35 | 398,273,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 554 | py | from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
SQLALCHEMY_DATABASE_URL = "sqlite:///./blog.db"
# SQLALCHEMY_DATABASE_URL = "postgresql://user:password@postgresserver/db"
engine = create_engine(
SQLALCHEMY_DATABASE_URL, connect_a... | [
"prinu.dickson@nl.pwc.com"
] | prinu.dickson@nl.pwc.com |
52b202fd47aace9a4d7ef4788898606a49878af1 | 23f78b8e4547443ba3285440dd40ca1684109b9e | /model.py | 084e26aaebba616ae3aeccf6deeb77f93ac212b1 | [] | no_license | suneelc12/Rasa_NLU | 3f12b0bff32978b76cc492e7358c5907b1610778 | 9001bfc926a0826ad2615a8395597d7cbc2448d9 | refs/heads/master | 2020-04-11T03:41:41.668784 | 2019-03-07T21:06:19 | 2019-03-07T21:06:19 | 161,486,126 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,133 | py | import os
import datetime
import sys
#import shutil
#modified_time=datetime.datetime.fromtimestamp(os.path.getmtime('C:/Users/ramad/Downloads/chatbot-node-rasa-master/HRbot/HR_Bot.json'))
#print(modified_time)
directory = 'C:/Users/ramad/Downloads/chatbot-node-rasa-master/models/default/'
def all_subdirs_of(... | [
"noreply@github.com"
] | suneelc12.noreply@github.com |
196c8b2bad841f8d3e41a79fadadc487737449e2 | 9ba901bf45f3d555395988f480f0eb55a595c83a | /轻松学习Python 69个内置函数/装饰器、描述器/staticmethod().py | 2f2c07d4ac1d6dad54d44c890059a344df83e32a | [] | no_license | gkliya/zhouhuajian-course | 803c3c5b390a9204e07a54924a2df8c1246b72be | 616867150efe46e2d3f8720b859ee38f286e4dbd | refs/heads/master | 2023-01-04T01:04:56.224479 | 2020-10-26T10:22:42 | 2020-10-26T10:22:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,500 | py | # @staticmethod
# 将方法转换为静态方法。
#
# 静态方法不会接收隐式的第一个参数。要声明一个静态方法,请使用此语法
#
# class C:
# @staticmethod
# def f(arg1, arg2, ...): ...
# @staticmethod 这样的形式称为函数的 decorator -- 详情参阅 函数定义。
class C:
@staticmethod
def f(*args):
print(f'{ args = }')
C.f()
C().f()
# 静态方法的调用可以在类上进行 (例如 C.f()) 也可以... | [
"noreply@github.com"
] | gkliya.noreply@github.com |
ae953f626dcd7a8cc3573ca343fdeac058daa21f | df0c4875b45e68c106dd1e2ba397f71a10794327 | /src/pifetcher/utilities/sys_utils.py | d389d2340abd6f3e65f41dbd8999e6aed152bff2 | [
"MIT"
] | permissive | gavinz0228/pifetcher | c28b407cf4965852af67ffe619a55ee90fa49a72 | c8419ae153eefed04e0e8b239cf1a9226fa91c29 | refs/heads/master | 2021-07-04T20:26:41.973408 | 2020-11-22T16:57:38 | 2020-11-22T16:57:38 | 203,682,327 | 1 | 0 | null | 2019-08-24T17:04:59 | 2019-08-22T00:06:58 | Python | UTF-8 | Python | false | false | 507 | py | from os import path, chmod
from sys import platform
import stat
class SysUtils:
@staticmethod
def ensure_path(file_path):
if not path.exists(file_path):
raise Exception(f'file path {file_path} does not exist.')
else:
return file_path
@staticmethod
... | [
"gavinz0228@gmail.com"
] | gavinz0228@gmail.com |
f29c840f7b7123d115bd70933064581e49a94100 | 96faedaf3717abbb7f6ddf215b7152808b344301 | /build_model.py | 16e2f2d343909a2776c51d81254f7eb0c58b4a68 | [] | no_license | Anonymous-Alien/Greedy-Attack-and-Gumbel-Attack | 9c1b6e6d0ec334efbe11581c7a32f7b545932bfb | 021edaf7318850df4437c8de56c02321d2d4f552 | refs/heads/master | 2020-04-18T01:36:46.665448 | 2019-01-23T05:51:05 | 2019-01-23T05:51:05 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,423 | py | import tensorflow as tf
import numpy as np
from keras.models import Sequential, Model
from keras.layers import Dense, Dropout, Activation, Embedding, Conv1D, Input, GlobalMaxPooling1D, Multiply, Lambda, Permute,MaxPooling1D, Flatten, LSTM, Bidirectional, GRU, GlobalAveragePooling1D
from keras.datasets import imdb
from ... | [
"noreply@github.com"
] | Anonymous-Alien.noreply@github.com |
7f150fe5a4b359dfe351f5c2d10a18def94f24ef | 38b5c22896452c7583073f0f719dcaaf98c0e7e2 | /client-GUI.py | 8b944cd71e788934413e2e9894eb3dc37af6b16b | [] | no_license | crcollver/group-messaging-app | 8be7565b62b45cec90cef197deffb5c68efbc5b6 | 89542c43ab6f566d457ed8cdec650e280b212193 | refs/heads/master | 2021-03-28T03:25:09.918567 | 2020-05-06T00:59:44 | 2020-05-06T00:59:44 | 247,832,270 | 0 | 0 | null | 2020-05-06T00:57:57 | 2020-03-16T22:55:50 | Python | UTF-8 | Python | false | false | 6,835 | py | #---------------------------------------------------
# Cameron Collver, Erik Shepard, & Rodolfo Rodriguez
# Anonymous Group Messaging - client-GUI.py
# Client Tkinter script for connecting to server.py
# Uses a default port of 12000 that is unchangeable for now
#
# SOURCES:
# https://www.youtube.com/watch?v=FKlmAkEb40s... | [
"crcollver@gmail.com"
] | crcollver@gmail.com |
3ad37185c077b3819db6c35bc0d6421a09e4a073 | c9ebca529d290fc2fa94b5ce5b61657e431260e3 | /interviewcake/product-of-other-numbers.py | afaedd1b08667961316b7027227457fc3a831e8f | [] | no_license | aaakashkumar/competitive_programming | 58677e3166636d042d00e1d2be589499c5f17c1a | 575fa25c4586fa41b3d45d95dca6eff9584c3a4a | refs/heads/main | 2023-04-29T03:46:02.911230 | 2021-05-15T10:12:50 | 2021-05-15T10:12:50 | 305,634,254 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,740 | py | # https://www.interviewcake.com/question/python3/product-of-other-numbers?course=fc1§ion=greedy
# @author Akash Kumar
import unittest
def get_products_of_all_ints_except_at_index(int_list):
# Make a list with the products
left_elements_product = [1]*len(int_list)
right_elements_product = [1]*len(int... | [
"noreply@github.com"
] | aaakashkumar.noreply@github.com |
d62cbd757a73de4d12b4bf3a14c3779c20eb6bc0 | b26a9796c3fdcf4b10932b9043399e409558c90e | /mdio/config/desktop.py | 2c86465c9e3f622bc2215d7cfc338012929f7aba | [
"MIT"
] | permissive | neilLasrado/mdio | 92d034ef27f2e7831a41455e944a80f9a4a61e4d | daec26c101f96819db97db8bf9e7ba29f9738687 | refs/heads/master | 2020-03-25T06:40:58.039473 | 2018-09-16T19:04:46 | 2018-09-16T19:04:46 | 143,518,424 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from frappe import _
def get_data():
return {
"District": {
"color": "#9b59b6",
"icon": "icon-globe",
"icon": "octicon octicon-globe",
"link": "List/District",
"doctype": "District",
"type": "list"
},
"Project": {
"color": "... | [
"neil@digithinkit.com"
] | neil@digithinkit.com |
8c8b11b281a3a8c90dc800644e35e30ea14afc61 | 3a7ef35a51aabaf762dca13f2197548380121ad8 | /beer-song/beer_song_test.py | 761f09f04a2044f0a3c224faaa93715505645455 | [
"Unlicense"
] | permissive | ikostan/Exercism_Python_Track | ff0be0386cf3fb1b62db54f72b8db15161928af7 | a6d52ad74e36db1d2bf82ed15362c1e4341d741d | refs/heads/master | 2023-08-09T16:56:17.615800 | 2020-10-16T00:46:55 | 2020-10-16T00:46:55 | 191,260,562 | 0 | 0 | Unlicense | 2023-09-04T01:17:29 | 2019-06-10T23:41:50 | Python | UTF-8 | Python | false | false | 19,079 | py | import unittest
from beer_song import recite
# Tests adapted from `problem-specifications//canonical-data.json` @ v2.1.0
class BeerSongTest(unittest.TestCase):
def test_first_generic_verse(self):
expected = [
"99 bottles of beer on the wall, 99 bottles of beer.",
"Take one down a... | [
"igorkostan@gmail.com"
] | igorkostan@gmail.com |
91bfa4b69dc8175e14f2c85dffe644cc6f7a0d71 | fe9e6580e954ed62c4e8fd6b860000bb553150a6 | /ecommerce/forms.py | bffb01b5ed4507bffcb530dd54713c62b71512fe | [] | no_license | Brucehaha/ecommerce | 037fb25608e848f5c0fd4ed78f42028d21872e39 | bea5e5a13ad1e958912b0ac99cfc556a593f91f3 | refs/heads/workplace | 2023-01-03T19:35:13.894572 | 2018-06-20T07:22:19 | 2018-06-20T07:22:19 | 124,492,135 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 688 | py | from django import forms
class ContactForm(forms.Form):
fullname = forms.CharField(
widget=forms.TextInput(
attrs={
"class": "form-control",
"placeholder": "Your fullname"
}
)
)
email = forms.EmailField(
widget=forms.EmailInput(
attrs={
"class": "form-control",
"placeholde... | [
"henninglee2013@gmail.com"
] | henninglee2013@gmail.com |
c39dd68cbb8cce48de736b436b57f5a98d8f5348 | cdbf35888ab546e44cb07e48ca538f1c3184554b | /project00--part1/farid/model/model.py | 0dea252c19a2be5b9217276edc59bc6bb5f30f05 | [] | no_license | farid01683/AI | 85350b85940a2d0c456a3262c7b14d9dfef42f12 | d472d5b14282dea6690cb46af329f90a5cdf09fa | refs/heads/master | 2022-01-22T19:55:44.655532 | 2019-07-24T17:16:34 | 2019-07-24T17:16:34 | 198,030,879 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 300 | py | from keras.models import Sequential
from keras.layers.core import Dense
def creat_mlp(dim,regress=False):
model = Sequential()
model.add(Dense(8,inpute_dim=dim,activation='relu'))
model.add(Dense(4,activation='relu'))
if regress:
model.add(Dense(1,activation='relu'))
return model | [
"noreply@github.com"
] | farid01683.noreply@github.com |
33528cd85e5325910f82fa63bb57f9f679aeff7b | 284e9633e979ef51f6b1cf4525a90f2b3d9d1889 | /wasm/tests/test_exec_mode.py | 1914f102e50984a82c10b7d3464413d03322193d | [
"MIT"
] | permissive | JesterOrNot/RustPython | 01778140e2e7beaf2a8e2c3da2ce604d6eb116ba | bbe728e4ce203d6b328087b553acc8f81842f970 | refs/heads/master | 2020-12-14T19:26:42.785389 | 2020-02-04T21:10:09 | 2020-02-04T21:10:09 | 234,846,323 | 0 | 0 | MIT | 2020-01-19T05:36:26 | 2020-01-19T05:36:24 | null | UTF-8 | Python | false | false | 1,279 | py | import time
import sys
from selenium import webdriver
from selenium.webdriver.firefox.options import Options
import pytest
def print_stack(driver):
stack = driver.execute_script(
"return window.__RUSTPYTHON_ERROR_MSG + '\\n' + window.__RUSTPYTHON_ERROR_STACK"
)
print(f"RustPython error stack:\n{st... | [
"yanganto@gmail.com"
] | yanganto@gmail.com |
f8b8ecc8c9afc0614b9a66d3e6d49402720bd1bf | 11cd362cdd78c2fc48042ed203614b201ac94aa6 | /desktop/core/ext-py3/boto-2.49.0/boto/sts/connection.py | 8c0cf4b269ba1ac3926620ffdf9f697f9a4c88a2 | [
"CC-BY-3.0",
"LicenseRef-scancode-other-copyleft",
"LicenseRef-scancode-unknown-license-reference",
"ZPL-2.0",
"Unlicense",
"LGPL-3.0-only",
"CC0-1.0",
"LicenseRef-scancode-other-permissive",
"CNRI-Python",
"LicenseRef-scancode-warranty-disclaimer",
"GPL-2.0-or-later",
"Python-2.0",
"GPL-3.0... | permissive | cloudera/hue | b42343d0e03d2936b5a9a32f8ddb3e9c5c80c908 | dccb9467675c67b9c3399fc76c5de6d31bfb8255 | refs/heads/master | 2023-08-31T06:49:25.724501 | 2023-08-28T20:45:00 | 2023-08-28T20:45:00 | 732,593 | 5,655 | 2,244 | Apache-2.0 | 2023-09-14T03:05:41 | 2010-06-21T19:46:51 | JavaScript | UTF-8 | Python | false | false | 32,142 | py | # Copyright (c) 2011 Mitch Garnaat http://garnaat.org/
# Copyright (c) 2011, Eucalyptus Systems, Inc.
# Copyright (c) 2013 Amazon.com, Inc. or its affiliates. All Rights Reserved
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
... | [
"noreply@github.com"
] | cloudera.noreply@github.com |
a3cac7cff2c5cbd19e783ea7573def0d2719f2c2 | 967cd25c52be494817f69003ebcff5400ab1f51b | /thingspeak/testing/playground.py | e4c6b30449f5b80f757fb7921886b3266ff57354 | [
"MIT"
] | permissive | jutako/raspi | efc107bbf4c83d56ac8f8582dff8b3f56b151772 | f69d15a48765c85960e7d7da175d4f96cb1dfee3 | refs/heads/master | 2021-01-12T13:43:07.055659 | 2018-03-24T20:49:06 | 2018-03-24T20:49:06 | 72,223,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 159 | py |
temp = 10
hum = 20
key = 'VEHKJKJXTZBYLMVC'
import urllib
values = {'api_key' : key, 'field1' : temp, 'field2' : hum}
postdata = urllib.urlencode(values)
| [
"jussitapiokorpela@gmail.com"
] | jussitapiokorpela@gmail.com |
4166e7f506510ccae3d18172138df9b4a82e5770 | 490fafa60041db0e4ba1cd8f0a147f26bcde8b81 | /Data-Structures/lists/finding.py | 9d600b83bb23370360836e7c079ac8cf1f49eac0 | [] | no_license | vahidsediqi/Python-basic-codes | 29bad84a700b91f7beb6f585634914e0e0523652 | ed1af51610d1d0c1d9f1cc1b032365b7f917686f | refs/heads/master | 2021-05-26T03:51:39.541880 | 2020-05-20T13:33:14 | 2020-05-20T13:33:14 | 254,041,092 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 264 | py | letters = ['a','b','c','d','e']
# finding index of an item
# if the item is not in the the we get error
# to solve it we have to use if statment
print(letters.index('d'))
if 'f' in letters:
print(letters.index('f'))
else:
print('The letter is not exist') | [
"vsediqi@live.com"
] | vsediqi@live.com |
649b19115673556dea865aec69f56090f46ec14a | 194dae90bf1cc497f9162eca3957fdc6c9094e33 | /deeptennis/data/dataset.py | 2176d31477742cddff68bb3f0879234dbb4103e5 | [
"MIT"
] | permissive | sethah/deeptennis | 41ea80002a5d7993b6ca625bb59efef1d70371f2 | a689c5f1d6f5ff1d665aec99b8db6262d3442c3a | refs/heads/master | 2021-06-03T23:51:59.754478 | 2020-05-18T00:13:41 | 2020-05-18T00:13:41 | 147,436,170 | 34 | 6 | null | null | null | null | UTF-8 | Python | false | false | 1,289 | py | import numpy as np
from pathlib import Path
from PIL import Image
from typing import Callable, List
import torch
def compute_mean_std(ds: torch.utils.data.Dataset):
"""
Compute the mean and standard deviation for each image channel.
"""
tsum = 0.
tcount = 0.
tsum2 = 0.
for i in range(len(... | [
"shendrickson@cloudera.com"
] | shendrickson@cloudera.com |
9fc2d2257d8e3f9e9aa7e8d7bae0c0760336eeb8 | 919b8d06881302998d58cdc760d336c5d70b9055 | /firstdjangoproject/settings.py | c029eacca7b9b257c82ae2ce83c10c7c60487fd7 | [] | no_license | dharadhorda/django | 4f7a64b0fecbae245635755de28bd630f42126ae | 37ba50d002fc3ff2e1978de9f61b1ade3b040fdc | refs/heads/master | 2022-12-12T04:33:08.365851 | 2020-09-10T13:33:32 | 2020-09-10T13:33:32 | 294,416,594 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,214 | py | """
Django settings for firstdjangoproject project.
Generated by 'django-admin startproject' using Django 3.1.1.
For more information on this file, see
https://docs.djangoproject.com/en/3.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/3.1/ref/settings/
"""
f... | [
"71008060+dharadhorda@users.noreply.github.com"
] | 71008060+dharadhorda@users.noreply.github.com |
1e92de41ab21ce95eb3acba4eb3da6bff2bf176a | cfe872e89f657aa8a5f58c5efbab03b463575e16 | /CodeProject/wsgi.py | 89f82db22dfc65b9e954d5ad5b03cae1fbe490ce | [] | no_license | Akash-79/Code-Of-Thon | 91063c8c8aca08557f273a4b5c9c7889b12a1e66 | 921debaa136218b311f1b27d9aa96fe29224e11b | refs/heads/master | 2022-11-23T04:27:34.645409 | 2020-08-01T08:31:15 | 2020-08-01T08:31:15 | 284,213,083 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 399 | py | """
WSGI config for CodeProject project.
It exposes the WSGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('DJANGO_S... | [
"akashmalasane79@gmail.com"
] | akashmalasane79@gmail.com |
80e786872143779e1fca9b83e5ab6e2b6162d70c | 7c9a3e527c8e444c1be745a26c5803ded4977bf4 | /trades/migrations/0002_auto__add_trade__add_item.py | 714ab2836c1c559a46a5712e7c66496902cb44e8 | [] | no_license | sekl/esotrades | 5b536fb9632ebecdca3a479a5d255c513b8078c1 | 683f8f8e29f89eb0ef55ec56544a4d07a1944077 | refs/heads/master | 2016-09-09T19:52:38.898875 | 2014-03-08T12:26:49 | 2014-03-08T12:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,943 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Trade'
db.create_table(u'trades_trade', (
(u'... | [
"sebastian.klier@gmx.de"
] | sebastian.klier@gmx.de |
d4c07aa542fd2df9f7066b893a929bbebdacca97 | 0eb3cb7493b6cc604a1aea9afc7af02e89b38602 | /Chapter10. Files/file.py | 16b8206030bce27b3aa6d69377aa5c469ab2a262 | [] | no_license | ec4sug4/i | 8b7c2d21ff3e7c763464f3a77ea009683eb17d51 | 1dbd58bb12729749c220b9f1f92f63389e7a886c | refs/heads/master | 2023-05-10T17:08:57.966542 | 2020-07-02T09:33:01 | 2020-07-02T09:33:01 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 115 | py | fileref = open("olympics.txt","r")
line = fileref.readlines()
for i in line[:4]:
print(i)
fileref.close() | [
"subham.kumar032@gmail.com"
] | subham.kumar032@gmail.com |
5ce2a703f5302283b074de6d2a1fb30fb8b91aa4 | bc0938b96b86d1396cb6b403742a9f8dbdb28e4c | /aliyun-python-sdk-nas/aliyunsdknas/request/v20170626/DescribeTagsRequest.py | d76b528b9d21f049ae887b42b56847b5cd568288 | [
"Apache-2.0"
] | permissive | jia-jerry/aliyun-openapi-python-sdk | fb14d825eb0770b874bc123746c2e45efaf64a6d | e90f3683a250cfec5b681b5f1d73a68f0dc9970d | refs/heads/master | 2022-11-16T05:20:03.515145 | 2020-07-10T08:45:41 | 2020-07-10T09:06:32 | 278,590,780 | 0 | 0 | NOASSERTION | 2020-07-10T09:15:19 | 2020-07-10T09:15:19 | null | UTF-8 | Python | false | false | 2,120 | 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... | [
"sdk-team@alibabacloud.com"
] | sdk-team@alibabacloud.com |
3d9908bde294de7c224663f83522c34701c52a52 | e2daaaaeb89e6f4c6816f775fbe560c3fc765b4a | /HomeScanStaticAnalysis/controlflow.py | 3b57605063f2a412f609060aae77fc6eda6cd176 | [] | no_license | KulaniM/StaticAnalysis | deda8585de8faeef5ddeb0b1d0598cf37bbef65f | ecaad5113e7f9e267087a55496479c4384ccc646 | refs/heads/master | 2023-04-27T13:05:06.647890 | 2019-09-11T08:18:28 | 2019-09-11T08:18:28 | 207,722,516 | 0 | 0 | null | 2023-04-14T17:43:01 | 2019-09-11T04:23:28 | Java | UTF-8 | Python | false | false | 4,229 | py | ############################################################################################
########### depends on the output of this project https://github.com/gousiosg/java-callgraph
import sys
import json
callgraph = []
callgraphList = []
flowgraph = {}
forward = {}
backward = {}
init_caller_method =sys.argv[1] ... | [
"kulani41@comp.nus.edu.sg"
] | kulani41@comp.nus.edu.sg |
8ac060b920fdbfb4883e5b8557a11dcfbd7bdef8 | 47b739ab1293f7c6244ac70b438bfdcff61fe6fb | /question_model.py | a7024d38bdba531547ddbfb9a8059e3f9b1b5547 | [] | no_license | TotaltEcplise/Quiz_oop | c542d0dc0681f178c3710215c44c0b8e9f4d78b8 | 6c4ee83d3847495242d04e223371a8e605b1587f | refs/heads/master | 2023-03-07T06:42:00.136781 | 2021-02-22T13:16:18 | 2021-02-22T13:16:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 121 | py | class Question:
def __init__(self, q_text, q_answer):
self.text = q_text
self.answer = q_answer
| [
"77200688+huserdil@users.noreply.github.com"
] | 77200688+huserdil@users.noreply.github.com |
9d81dd559f41247e65e5cff71490669e802b1643 | 629a4ae44605505c564def28a7de2d01dc4331bf | /src/ProgDBTutor/quote_data_access.py | d7f80d07652e86c4e923d910109491c5950014e2 | [] | no_license | lfereman/tutorial | 80e3b00676dd835632c8dbed441a7bfc55b96d75 | 19ed3f438987deb7a773312155cb9957137edda8 | refs/heads/master | 2021-04-30T12:26:26.372761 | 2018-02-13T12:42:45 | 2018-02-13T12:42:45 | 121,274,767 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,575 | py | #Data Access Object pattern: see http://best-practice-software-engineering.ifs.tuwien.ac.at/patterns/dao.html
#For clean separation of concerns, create separate data layer that abstracts all data access to/from RDBM
#
#Depends on psycopg2 librarcy: see (tutor) https://wiki.postgresql.org/wiki/Using_psycopg2_with_Postgr... | [
"len.feremans@gmail.com"
] | len.feremans@gmail.com |
45feca857f34e368b1e8a792f14d2161e7944bc8 | 9a44bd208fba409164207fb5e2d8192a4fc345e7 | /Marc/crawling_foc.py | 58217f757b8bb3d7d166b3c1206e06ffec51287b | [] | no_license | sinlars/GuoTuMarc2 | 06e96b0ce230902a0975512f00ce7e5d9eb963f3 | 99d057b854ff245482e2e5c93c08ab31145ce9d1 | refs/heads/master | 2023-02-15T00:52:21.468424 | 2020-12-30T05:36:23 | 2020-12-30T05:36:23 | 325,466,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 30,543 | py | #coding:utf-8
import urllib.request
import lxml.html
from pymarc import Record, Field
from pymarc import MARCReader
import re
import xlwt
import sys,io
import openpyxl
from bs4 import BeautifulSoup
import gzip
import docx
from docx import Document
from io import BytesIO
import pymysql
import pinyin
import datetime
imp... | [
"1QAZ2wsx"
] | 1QAZ2wsx |
4b4e5b5f64b5b6c357d2474e845edb0281f3216f | 67296b720cc33df5cd8d8a5d45492128c21b0f90 | /collect_frames.py | 139cd487fac48e92b39d9d24f76518243edfccaf | [] | no_license | kaushikb258/World_Models | bd2b392f930e86380cc1a93a5f0e7cc12f5e68ff | d37e1a8f1b4cfae90fa038fa67557061a8e81a25 | refs/heads/master | 2020-04-10T21:23:13.903451 | 2018-12-11T07:49:00 | 2018-12-11T07:49:00 | 161,295,434 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,187 | py | import numpy as np
import sys
import os
import gym
from PIL import Image
import matplotlib.pyplot as plt
from utils import *
try:
os.stat("frames")
except:
os.mkdir("frames")
env = gym.make("CarRacing-v0")
episodes = 10000
#--------------------------------------------------------------------------... | [
"kaushikb258@gmail.com"
] | kaushikb258@gmail.com |
c42cc045d3613843df744ac6b74f7a368d40170e | f46e5ab4747d113215e46240eee4d75509e4be0d | /tests.py | 2dd01180f049fb3cb67a16cefd56d899698aae9a | [
"MIT"
] | permissive | xmonader/objsnapshot | 0d2dc17f9637dfe614332f125af5d867a8110118 | ab639630e6762a1d7c8e7df251f959e27e270e4e | refs/heads/master | 2021-01-22T06:19:26.026384 | 2017-05-30T13:12:22 | 2017-05-30T13:12:22 | 92,542,117 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,737 | py | from .objsnapshot import commit, rollback
class Human:
def __init__(self, name, age):
self.name = name
self.age = age
def inc(self, by=None):
if by is None:
by = self.age
self.age += by
def __str__(self):
return "{} {} ".format(self.name, self.age)
... | [
"xmonader@gmail.com"
] | xmonader@gmail.com |
57fd48037b9de1fa98c0b884626e6a2d481584e2 | e287723f843005f0639542f8bf83eebb62192137 | /monitoring/prober/scd/test_operation_simple.py | 3cd623c1e8308608c2db5a4a51ff2f0a786e2a10 | [
"Apache-2.0"
] | permissive | RFARREY/dss | 6c02f2aedd0a78260dccbefe3e0d13108031c00e | 2989f68fb1293c08104866e8b0df116487bf075f | refs/heads/master | 2023-07-28T11:58:11.185048 | 2021-08-19T05:56:56 | 2021-08-19T05:56:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,617 | py | """Basic Operation tests:
- make sure the Operation doesn't exist with get or query
- create the Operation with a 60 minute length
- get by ID
- search with earliest_time and latest_time
- mutate
- delete
"""
import datetime
from monitoring.monitorlib.infrastructure import default_scope
from monitoring.m... | [
"noreply@github.com"
] | RFARREY.noreply@github.com |
11276df4a89d1128a708b3fe2ff3a08e678a0a17 | c188122ea4797d10c6f8e1641a229545dc3fa53c | /core/thread/mtsleepA.py | 90c6ddea7f51e60da7f67b7b4c9cfb36cdb5c5ac | [
"BSD-3-Clause"
] | permissive | lostFox/autoRunSomething | e41fd34f44bb715fe6e21a70fa608e33efb779bc | 519f2ebca6e2c78aa3caeed2e88b8f92403a8b46 | refs/heads/master | 2021-07-15T23:08:24.624022 | 2021-03-03T00:16:40 | 2021-03-03T00:16:40 | 59,880,574 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 555 | py | #! /usr/bin/env python
# -*- coding: UTF-8 -*-
__author__ = 'james'
import thread
from time import sleep, ctime
def loop0():
print 'start loop 0 at:', ctime()
sleep(4)
print 'loop 0 done at:', ctime()
def loop1():
print 'start loop 1 at', ctime()
sleep(2)
print 'loop 1 done a... | [
"lei_zhang@jit.com.cn"
] | lei_zhang@jit.com.cn |
a605b1d00537686bda9a0600a32decd33694a451 | 698512c01048fcefcc14583089ef2e8c7962923a | /Python_Projects/Data_Visualization/Chap17_working_w_API/python_repos.py | 71713ed6cee6b967da24332c0021287834a44c1f | [] | no_license | Miguel-Tirado/Python | c76cb9846c9a2b9c6b3c4827cdb95042f4e5d447 | 227def380c64095c3040c848aa035ac46d26d079 | refs/heads/main | 2023-04-16T12:15:03.301275 | 2021-04-30T16:39:48 | 2021-04-30T16:39:48 | 346,443,032 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,795 | py | import requests
# Make an API call and store the responce
url = 'https://api.github.com/search/repositories?q=language:python&sort=stars'
headers = {'Accept' : 'application/vnd.github.v3+json'}
r = requests.get(url, headers=headers)
print(f"Status code: {r.status_code}")
# store API responce in a variable
# conver... | [
"miguel.e.tirado11@gmail.com"
] | miguel.e.tirado11@gmail.com |
3a6d883858b8888b951ebe9478f8c055c4023350 | b801a549da493431071ac13c13927d545e036a82 | /KNN.py | 448c8057381b79425c45e4537c49e0d9800c1703 | [] | no_license | minytie/Recommender-Systems-with-different-algorithms | eca2b416a4e57b4e2f2324bb232f26db8de080df | 3bd8c007608eb5a479bc03720a2ef3ccbb6515ba | refs/heads/master | 2022-12-15T13:46:51.901417 | 2020-09-06T00:58:10 | 2020-09-06T00:58:10 | 293,178,495 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 719 | py | from surprise import KNNBasic
from surprise import Dataset
from surprise.model_selection import cross_validate
import json
from tqdm import tqdm
# Load the movielens-100k dataset (download it if needed).
data = Dataset.load_builtin('ml-100k')
for k in tqdm([5 * i for i in range(1,20)],desc= "running KNN : ")... | [
"victor@MacBook-Pro.local"
] | victor@MacBook-Pro.local |
cdbe6cb7658953c0b092727fc4fecf6341ecc704 | a98e9a494cbc8dc4319fea3986e805ca08c61356 | /custom_model_runner/datarobot_drum/resource/predict_mixin.py | 144c26eae3cf89b305411794078dc56edd074227 | [
"Apache-2.0"
] | permissive | drdwa/datarobot-user-models | e24b91adee91b9af2e6d730ebf4aae79c7dc1ea5 | b890f88975c67c90bd5f3aef3abef872591ad295 | refs/heads/master | 2023-01-15T00:35:52.654073 | 2020-11-23T20:54:45 | 2020-11-23T20:54:45 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,192 | py | import os
import tempfile
from flask import request, Response
import werkzeug
from datarobot_drum.drum.common import (
REGRESSION_PRED_COLUMN,
TargetType,
UnstructuredDtoKeys,
PredictionServerMimetypes,
)
from datarobot_drum.resource.unstructured_helpers import (
_resolve_incoming_unstructured_dat... | [
"noreply@github.com"
] | drdwa.noreply@github.com |
71823020661ed6290534f1975e4bd38265fb1ff5 | 77c37bffac550aa48f146f9f082df75b53744d47 | /JMSSGraphics/Fire.py | 9c9625855804de7010331e6865750ad6f417372f | [] | no_license | toanh/JMSSGraphics | 95473d4ada68be47dc9d35ce699073d9eac3655a | 44493622b3b169cd6d064dc285f649d036375957 | refs/heads/master | 2021-05-12T00:54:16.501295 | 2018-05-13T12:22:31 | 2018-05-13T12:22:31 | 117,546,164 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,512 | py | from JMSSGraphics import *
from Particle import *
import random
import math
jmss = Graphics(width = 800, height = 600, title = "Fire!", fps = 60)
images = []
images.append(jmss.loadImage("fire01.png"))
images.append(jmss.loadImage("fire02.png"))
images.append(jmss.loadImage("fire03.png"))
images.append(jmss.loadImage... | [
"toan.kien@gmail.com"
] | toan.kien@gmail.com |
f34e145964579b358a43c5aeec09cc5535f79280 | 2ba0293397610e2f30e9a7038c65db6f6bbe974f | /Moves.py | 9af1d58229e9e3b17ba7e8d35c8959fe42c7ae42 | [] | no_license | Giruvagen/TextAdv | 2dcfcb21fe1612fdc812285fa2ad25e0086fe92d | cc58e960af749d59b475e81a508eb3e88245a063 | refs/heads/master | 2020-03-22T16:41:10.646193 | 2018-07-13T22:39:15 | 2018-07-13T22:39:15 | 140,343,760 | 0 | 0 | null | 2018-07-15T18:30:18 | 2018-07-09T21:24:31 | Python | UTF-8 | Python | false | false | 2,520 | py | #defines movement
import random
from content import mapdesc
from content import monsters
class motion(object):
def __init__(self, char):
self.char = char
def battle(self):
print("A monster appears!")
self.monster = random.choice(list(monsters.items()))
print("It's a wild {:s}!".fo... | [
"40126586+Giruvagen@users.noreply.github.com"
] | 40126586+Giruvagen@users.noreply.github.com |
fe3f96a2af6475819c782c04a2b8e8b6b3e3d814 | 52a7b1bb65c7044138cdcbd14f9d1e8f04e52c8a | /budget/urls.py | c353880f983753ec457815a9fa5d6fa7951041ab | [] | no_license | rds0751/aboota | 74f8ab6d0cf69dcb65b0f805a516c5f94eb8eb35 | 2bde69c575d3ea9928373085b7fc5e5b02908374 | refs/heads/master | 2023-05-03T00:54:36.421952 | 2021-05-22T15:40:48 | 2021-05-22T15:40:48 | 363,398,229 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 224 | py | from django.urls import path,include
from . import views
from django.contrib.auth import views as auth_views
urlpatterns = [
path('app/',views.index,name='index'),
path('add_item/',views.add_item,name='add item'),
] | [
"you@example.com"
] | you@example.com |
b3f0bdd99f6bee334536b269df6e3f5644de88b7 | 4b14a94152356019675f3d2ac5d668b2459cf153 | /event_app/myenv/bin/easy_install | cf53bcefe41418c2b60872bdcd5909a47f635904 | [] | no_license | arvicz22/eventapp | 20b0360a22b6b7a57b7cc55beca9d0e398161372 | 6bbe8666b31db51262f51992fa14c19137777c90 | refs/heads/master | 2021-01-15T21:44:52.596047 | 2014-03-13T07:34:03 | 2014-03-13T07:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 350 | #!/home/eric/Desktop/event_app/myenv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==0.9.8','console_scripts','easy_install'
__requires__ = 'setuptools==0.9.8'
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.exit(
load_entry_point('setuptools==0.9.8', 'console_scri... | [
"arvicz22@gmail.com"
] | arvicz22@gmail.com | |
ee0501d3fc56808a4fd300c256c1bd3071ec5d4c | fc4fa38962b121e31edf414a860a09caeb8048d2 | /Homework Problems & Solutions/HW 1/Shaik_Alimulla_HW1.py | df4f656e0119a969169fffd2d38f7f76cd6eb962 | [] | no_license | shaikalimulla/Data-Mining | 36da27846d4250eb232fdaa9a3f40195f0cd1a88 | 26311593a6ee902a5d148de22658cf703e2ef665 | refs/heads/master | 2016-09-14T12:50:35.244013 | 2016-04-30T02:47:04 | 2016-04-30T02:47:04 | 57,423,635 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,104 | py | #Assignment based on MAGIC Gamma Telescope Data Set ( http://archive.ics.uci.edu/ml/datasets/MAGIC+Gamma+Telescope )
import argparse
import numpy as np
class dataSet:
"""
Class to store the MAGIC Gamma Telescope Data Set
"""
def __init__(self, location):
with open (location, "r") as myfile:
... | [
"alimulla.shaik@gmail.com"
] | alimulla.shaik@gmail.com |
1f1a15327737df474e4091401068d90bf7b7a2d8 | df856d5cb0bd4a4a75a54be48f5b91a62903ee6e | /jishaku/__init__.py | be18c93d969f66dcdc330dc9e0ffd89dc6bb8cc2 | [
"MIT",
"Apache-2.0"
] | permissive | mortalsky/jishaku | 4c89bd69f6e1efcc45fcfdcc81427c71e10dc1de | 9cbbf64dd83697559a50c64653350253b876165a | refs/heads/master | 2023-07-20T04:55:19.144528 | 2021-01-22T08:18:12 | 2021-01-22T08:18:12 | 299,701,523 | 0 | 0 | MIT | 2020-09-29T18:16:24 | 2020-09-29T18:16:23 | null | UTF-8 | Python | false | false | 452 | py | # -*- coding: utf-8 -*-
"""
jishaku
~~~~~~~
A discord.py extension including useful tools for bot development and debugging.
:copyright: (c) 2021 Devon (Gorialis) R
:license: MIT, see LICENSE for more details.
"""
# pylint: disable=wildcard-import
from jishaku.cog import * # noqa: F401
from jishaku.features.basec... | [
"sansgorialis@gmail.com"
] | sansgorialis@gmail.com |
ff0717b66ccf936a78722d90e6d31dada09a8cf5 | 590c0fa3a144146d9ba3caf0ac7ff9e0a9e5c914 | /packages/riot/tft/__init__.py | 24c4fca9f3dd6ba4c7eb2a5045b91baa86f7a812 | [] | no_license | shoko31/InKeeperBot | 7154fbe1b2ac82a2ac5defe069927a00b0f37952 | c5fc16fc3ff0b2a113feb67e1d8e2c8dd7507b72 | refs/heads/master | 2023-05-25T23:00:41.163366 | 2020-07-23T11:45:49 | 2020-07-23T11:45:49 | 220,335,670 | 0 | 0 | null | 2023-05-22T21:38:27 | 2019-11-07T21:52:32 | Python | UTF-8 | Python | false | false | 181 | py | # __init__.py
from .tft_user import TFTUser
from .tft_game import TFTGame
from .tft_participant import TFTParticipant
from .tft_trait import TFTTrait
from .tft_unit import TFTUnit
| [
"elliott.zz59@gmail.com"
] | elliott.zz59@gmail.com |
582ef42efdfd7e420d4b88d395d1bce8c2254139 | 55826466383423f170e4fe8999e60670edd53704 | /script/DRQN_hindsight/2d/DRQN_hindsight_2D_static.py | cb2b14f8814f460763481320ae10f2931a84ed39 | [] | no_license | siyuan2018/SNAC | c48dc7ced78f30bc6847025b8637337737bd3467 | 049c0566e2c154f93b5015a1a4607fdb8b4be117 | refs/heads/main | 2023-03-28T20:25:53.886811 | 2021-04-05T18:19:46 | 2021-04-05T18:19:46 | 362,850,937 | 1 | 0 | null | 2021-04-29T14:46:51 | 2021-04-29T14:46:50 | null | UTF-8 | Python | false | false | 12,543 | py | import sys
import torch
import torch.nn as nn
import numpy as np
import pickle
import random
import time
import os
from collections import deque
sys.path.append('../../Env/2D/')
from DMP_Env_2D_static import deep_mobile_printing_2d1r
from DMP_Env_2D_static_hindsight_replay import deep_mobile_printing_2d1r_hindsight
# ... | [
"55855538+WenyuHan-LiNa@users.noreply.github.com"
] | 55855538+WenyuHan-LiNa@users.noreply.github.com |
86865a380e10df0386ac53bd7aac552daf77e862 | ba6c64c6f8d348a86c16395aaa5f8fadc6cf4386 | /python/lab3/weather_today.py | 55eb99344a6e96084ada05a6f8a6b5ec355564cf | [] | no_license | AmalM7/DataScienceAcademy | 875f00b1909a3b9ba76e178852db7aa6e851e220 | aa3719465f9582436f511ce56ad94cdf59354dca | refs/heads/master | 2020-03-30T19:21:32.129618 | 2018-10-07T19:59:39 | 2018-10-07T19:59:39 | 151,538,683 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import requests
import sys
if len(sys.argv)==1:
print("you have to inter the city name")
sys.exit(0)
else:
city=sys.argv[1]
api_key="bc3dbc9f88d3d484ee1865b765665f1b"
class Weather:
def __init__(self, key):
self.key=key
def get_city_weather(self, city):
r=requests.get("http://api.openweath... | [
"noreply@github.com"
] | AmalM7.noreply@github.com |
0878d152efa09a7a635eab712d773508164c86c7 | 9ad765ac96f6534addcd44d55527e4196f4f6603 | /leetcode/Num_51_N_Queens.py | fad6e3ea43cbbf1c7ce321cda5d3f5a4204e672a | [] | no_license | salalals/ojPython2 | 134838c21f75afa23fc99b5398e9b0564bc7bb5f | f61a7d7af02bc6f3474dd2832c21c2c6ea5635b8 | refs/heads/master | 2021-09-01T01:44:17.254272 | 2017-12-24T07:22:59 | 2017-12-24T07:22:59 | 111,899,307 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,030 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
class Solution(object):
def solveNQueens(self, n):
"""
:type n: int
:rtype: List[List[str]]
"""
'''
递归
思路简单,python写清楚实现还是需要练习
'''
solutions = []
self.solve_n_queens(n, 0, [], solutions)
... | [
"lshuo@amazon.com"
] | lshuo@amazon.com |
9918925b5893ab5e67cfe34926eb8f39e50a3f68 | a5b3c17361b0d68818a0088d2632706353aa768f | /app/core/urls.py | 2c01c9dc76b59d446a2cc277aaf6d2d00a8d8820 | [] | no_license | marcinpelszyk/django-docker-compose-deploy | 7bd6d91a08aa4c60fd801115e4277d26cfd77642 | 6e4716d5324172778e5babecb40952de66448301 | refs/heads/main | 2023-06-06T02:56:44.709915 | 2021-06-28T15:38:56 | 2021-06-28T15:38:56 | 380,349,649 | 0 | 1 | null | 2021-06-28T08:10:53 | 2021-06-25T20:42:07 | Python | UTF-8 | Python | false | false | 387 | py | from django.conf import settings
from django.conf.urls.static import static
from django.contrib import admin
from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
]
if settings.DEBUG:
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
urlpattern... | [
"marcin.pelszyk90@gmail.com"
] | marcin.pelszyk90@gmail.com |
88d871218ddc9d5a96e3ac821323d3bf566ce9b1 | fb05ae8048b188c7d73e45d0b0732223686eb4e4 | /dash-demo.py | 8c67cc6049a8940e154186d5777e2c72a2d37422 | [] | no_license | jluttine/dash-demo | 1b8bd0bf0b6570cf8e33c0fb9278390f37baa686 | 2eab4c7cd92b24214354d8a5e3bce866677efe50 | refs/heads/master | 2023-01-12T19:03:09.745917 | 2020-11-13T16:57:41 | 2020-11-13T16:57:41 | 312,356,690 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 3,211 | py | import dash
import dash_html_components as html
import dash_core_components as dcc
from pages import demo1_graph, demo2_datatable
# Create the Dash app/server
app = dash.Dash(
__name__,
external_stylesheets=[
"https://codepen.io/chriddyp/pen/bWLwgP.css",
],
# We need to suppress these errors ... | [
"jaakko.luttinen@iki.fi"
] | jaakko.luttinen@iki.fi |
069744ff71226f81911edc60bc48d467b30ed337 | b2a2a2f7e19fc8e9c6f5d2dedb0b4b10d7c813ae | /backend/api/util/functional/curry.py | 1a66ea3074629bc98d88a47586b5b1aef9541bb3 | [] | no_license | glenstarchman/bar-rate | d7a6e6660bd3fafe7777d435d33334e2be4d0480 | 575e5f695650487a679ede04af6f62d464c53c18 | refs/heads/master | 2022-02-27T01:31:17.879000 | 2019-09-26T14:43:05 | 2019-09-26T14:43:05 | 191,376,901 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 254 | py | import functools
def curried(n):
def curry(fn):
def _inner(*args):
if len(args) < n:
return curried(n - len(args))(functools.partial(fn, *args))
return fn(*args)
return _inner
return curry
| [
"glen@starchman.com"
] | glen@starchman.com |
3090368248d3f1123c7946855c97dbc0ec1154e9 | 4fd84e0e1097d1153ed477a5e76b4972f14d273a | /myvirtualenv/lib/python3.7/site-packages/azure/mgmt/iothub/models/certificate_properties.py | d91afb9c0adb00d0e035b9e1023cc3ad459f53fc | [
"MIT"
] | permissive | peterchun2000/TerpV-U | c045f4a68f025f1f34b89689e0265c3f6da8b084 | 6dc78819ae0262aeefdebd93a5e7b931b241f549 | refs/heads/master | 2022-12-10T09:31:00.250409 | 2019-09-15T15:54:40 | 2019-09-15T15:54:40 | 208,471,905 | 0 | 2 | MIT | 2022-12-08T06:09:33 | 2019-09-14T16:49:41 | Python | UTF-8 | Python | false | false | 2,165 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes ... | [
"peterchun2000@gmail.com"
] | peterchun2000@gmail.com |
d94e89c1a33b604c6d09bbc9becb67b7a20f9699 | 58ed092530bdb8a6f2bef0ebe261108e8a9c0aff | /myapp/search_indexes.py | abee499518bdc025949a48c1812c21f7f0f7d02f | [] | no_license | 100Rashmi/myTweeter | 2373fcb2ddf09432bfc17d1ddada935c3a29d6d1 | d7a5c067ee639347604a3cdaa11c14c0e11d5515 | refs/heads/master | 2022-12-27T00:06:52.553893 | 2017-11-06T22:16:13 | 2017-11-06T22:16:13 | 109,440,649 | 0 | 0 | null | 2022-12-07T23:47:29 | 2017-11-03T20:37:40 | Python | UTF-8 | Python | false | false | 1,292 | py | import datetime
from haystack import indexes
from myapp.models import Dweet, User
class DweetIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True)
content = indexes.CharField(model_attr='dweet_data')
dweet_id = indexes.CharField(model_attr='dweet_id')
created_time = in... | [
"singhrashmi579@adya.io"
] | singhrashmi579@adya.io |
bffc7093c19d2b1011751494132301c78945c914 | 4d1e2ed1bd2ff8ea1b3ba5613857503ccfce4b48 | /external/emsdk_portable/emscripten/1.34.1/tools/separate_asm.py | 4f48286e15bbbe77b1a786ad71f1c0635378d82d | [
"MIT",
"NCSA"
] | permissive | brooklynpacket/cocos2d-x | 7bf18909cf2af221aac70fdbe000658e7e97bcb8 | 03b3f8deef304bb9b5ed50acb23158e71712cc15 | refs/heads/master | 2023-08-24T10:38:11.252485 | 2019-02-06T01:23:56 | 2019-02-06T01:23:56 | 6,341,455 | 1 | 1 | null | 2022-09-26T13:53:36 | 2012-10-22T20:00:19 | C++ | UTF-8 | Python | false | false | 724 | py | #!/usr/bin/env python2
'''
Separates out the core asm module out of an emscripten output file.
This is useful because it lets you load the asm module first, then the main script, which on some browsers uses less memory
'''
import os, sys
import asm_module
infile = sys.argv[1]
asmfile = sys.argv[2]
otherfile = sys.ar... | [
"jeff@brooklynpacket.com"
] | jeff@brooklynpacket.com |
f044bb0442fbcbaa809b0a48dc4740ee1516c226 | c3e86a8cb94c67a7b0881d72a50e529b85cd27ac | /NameMixer2.0.py | 6c493c9546e36c0e61cfd4102f74382c99c81b06 | [] | no_license | Rinlix/Rix | 252e011089e6b7eec138db3f9e1dc50621974aa8 | 478eb79eb12e38f7479c45cc08ec6af3ebfd6c0e | refs/heads/master | 2020-04-16T16:55:58.775508 | 2019-01-15T00:24:41 | 2019-01-15T00:24:41 | 165,755,954 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,015 | py | #NameMixer.py
import random
import time
while True:
true = True
def rigged():
print('DToo much cringe and toxic, cannot survive...')
true = False
names = []
while true:
name = input('Enter A Name: [q] to randomize all names ')
if name == 'q':
num = len(names)... | [
"noreply@github.com"
] | Rinlix.noreply@github.com |
14cf80ef32e4bf3d66b3d4e93f8898f83441fbf8 | f1aeae7a5256ad26c3808375ed8bfd5c8d649825 | /config/lan_scope.py | 917412ce34627e538870a712375c434200ef612c | [] | no_license | wikimedia/phlogiston | 4f3f1f5de2e53027ba5c2ebfd69caa381da9dd38 | eb57b5adc7dc193dc3c4a94b6ffb68cca4984741 | refs/heads/master | 2023-06-30T12:28:33.190327 | 2019-03-28T03:05:23 | 2019-03-28T03:05:23 | 40,551,004 | 13 | 4 | null | 2016-10-18T20:01:47 | 2015-08-11T15:51:58 | Python | UTF-8 | Python | false | false | 93 | py | [vars]
scope_title = Language
default_points = 0
start_date = 2016-07-01
show_points = False
| [
"jaufrecht@wikimedia.org"
] | jaufrecht@wikimedia.org |
f0848bea7f02f1bf7e260eb65eeaf7fefbdc380a | daa90db36eff7050fe1224dc8caa403d9e95b5c9 | /tests/test_adjoints.py | 5fbab8f85551dc6a96b0c666a6f43509b69f6d57 | [
"MIT"
] | permissive | fagan2888/torchkbnufft | a19fc61648dc3b5665aa34680302691099c6dfac | 6c6e2c008ae3e8e48a938bedd25431f8db20c106 | refs/heads/master | 2020-12-02T23:29:45.918591 | 2019-12-19T20:15:47 | 2019-12-19T20:15:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,243 | py | import sys
import numpy as np
import torch
from torchkbnufft import (AdjKbNufft, AdjMriSenseNufft, KbInterpBack,
KbInterpForw, KbNufft, MriSenseNufft)
from torchkbnufft.math import inner_product
def test_interp_2d_adjoint(params_2d, testing_tol, testing_dtype, device_list):
dtype = tes... | [
"matt.muckley@gmail.com"
] | matt.muckley@gmail.com |
68ae33c92faff858b27bc9a95c7b7ab370f1c58e | 930e76d01a4674a46f6927a382465d08ebfff536 | /src/core/database.py | 8edc98348388d0577f18d87edd316f9b6ea6f2e9 | [
"BSD-3-Clause"
] | permissive | Glacier-Ice/data-sci-api | 6ed88f4530ee071a77745d88189ff6bc83bf0932 | ddd8c1776a2c52f7c6c9d59cab9836a5f8926bc2 | refs/heads/master | 2023-05-10T21:06:22.157143 | 2020-05-11T18:15:54 | 2020-05-11T18:15:54 | 240,423,916 | 5 | 3 | BSD-3-Clause | 2023-05-01T21:22:46 | 2020-02-14T03:56:40 | Python | UTF-8 | Python | false | false | 1,056 | py | import psycopg2
from flask import current_app
def _render_settings_from_current_config():
config = current_app.config
return {
"database": config["db_name"],
"user": config["db_username"],
"password": config["db_password"],
"host": config["db_host"],
"port": config["db_... | [
"rexwangcc@gmail.com"
] | rexwangcc@gmail.com |
cb51eb6a2f963f2087652b4694cfd9b3a685df21 | 2f791e0444719ddcb8cc407e72e869f7fac5181b | /graphics/PromIndexResultsMerger.py | 2fc9cf0aab3d3cf6444c6b94e434fe502cc537b0 | [] | no_license | ichen-lab-ucsb/WFLIVM_k-Seq | 35d522df889e35826e535be56ed4d5579efe2c1b | 68990737c2257cef2815d7df74e2f7686bc5a597 | refs/heads/main | 2023-04-20T15:02:36.076837 | 2021-04-23T22:26:09 | 2021-04-23T22:26:09 | 360,320,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,032 | py | ### this script concatenates the output files from the promiscuity index calculator (http://hetaira.herokuapp.com/) and merges I values with the master results table
### input files must be in an accessible directory (eg 'data/promiscuity_index_tables/WFLIVM-r_results_tables/') and must be in the format 'results (i).cs... | [
"noreply@github.com"
] | ichen-lab-ucsb.noreply@github.com |
bfb6270e3c9d1dea3f85b30e18b9ac93406c9354 | 3041068cd9882211a21d5a88b3843b21ff221ff1 | /bookclub/migrations/0004_notes.py | a610c96eee1764c359c9da46b3accfeef64b92d2 | [] | no_license | yardenroee/OriginBookClub | 82b7cbdd1aa0f2386242a06e020f8efc2384d0cd | 6305c6c333e490323ddc6b13d7ba98cef52e7828 | refs/heads/master | 2021-09-24T11:13:02.780516 | 2020-02-04T04:45:14 | 2020-02-04T04:45:14 | 236,394,318 | 0 | 0 | null | 2021-09-22T18:37:06 | 2020-01-27T00:05:01 | Python | UTF-8 | Python | false | false | 510 | py | # Generated by Django 3.0.2 on 2020-01-30 05:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bookclub', '0003_auto_20200129_0047'),
]
operations = [
migrations.CreateModel(
name='Notes',
fields=[
... | [
"yardenroee@gmail.com"
] | yardenroee@gmail.com |
74a1d218dd31db1af846475408c11a85b61f2503 | dbb451b9775b9345ccc26b562bbddf6d7ade94d8 | /Python v4/Django 2.2 v4/Misc/orm/orm_app/migrations/0001_initial.py | 10a85ba2565a2325d960d26339e9e4b8bf50627e | [] | no_license | ethan-mace/Coding-Dojo | b46968806c80c73b736f98155aea89b8b33c4b0b | a1c7c88e9f0e5a5ebcafde733d5acaebec071270 | refs/heads/main | 2023-02-22T15:19:44.030120 | 2021-01-26T15:48:17 | 2021-01-26T15:48:17 | 325,411,101 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 791 | py | # Generated by Django 3.1.3 on 2020-11-12 17:39
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Movie',
fields=[
('id', models.AutoField(au... | [
"ethanmace@protonmail.com"
] | ethanmace@protonmail.com |
1c72a69c41c707bacbf963e7c9a6acc1973fdfc0 | badd02f87eeee1216df4c66447e947f0f1cbe328 | /FlaskWebProject2/views.py | de8be825114043a447a1f9057b62635220fc4f58 | [] | no_license | Ajithvajrala23/Website-Using-Flask-Framework | 7dafbeb9eba7d8ad6f49c15eb58ec0ed4fb713f2 | c1ed1edb6d379daf6ef4ba3b36d27b7418231a64 | refs/heads/master | 2022-07-14T13:56:56.002797 | 2019-07-04T10:26:59 | 2019-07-04T10:26:59 | 192,701,155 | 0 | 0 | null | 2022-06-21T22:12:10 | 2019-06-19T09:25:56 | JavaScript | UTF-8 | Python | false | false | 5,260 | py | """
Routes and views for the flask application.
"""
from flask_sqlalchemy import SQLAlchemy
from datetime import datetime
from FlaskWebProject2 import app
import os
import requests
import operator
import re
#import nltk
from flask import Flask, render_template, request, send_file
from collections import Counter
#from b... | [
"ajith.vajrala@gmail.com"
] | ajith.vajrala@gmail.com |
95c65277f91241c50d4f1ba3d992e6bd1eade41d | 79605a09c30148d4d01ab6ac73f7ca4085a9915b | /mnist_fashion.py | fb343289ada36949d0138a74d01f0edb9acce635 | [] | no_license | ranjan103/Fashion-MNIST- | df43b768c5f6142d5a6a8e59e8d4fc5ee7023812 | 069e88b7b9bd5fcfa90790d1b6f23658b2b4144e | refs/heads/master | 2020-04-25T05:49:07.306261 | 2019-02-25T17:56:03 | 2019-02-25T17:56:03 | 172,556,316 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,348 | py | # -*- coding: utf-8 -*-
"""MNIST_fashion.ipynb
Automatically generated by Colaboratory.
Original file is located at
https://colab.research.google.com/drive/16fhQl202LeNZP_Wd6D2J1Drpb20Cg1ys
"""
import warnings
warnings.filterwarnings('ignore')
import pickle
import numpy as np
import pandas as pd
import json
impo... | [
"noreply@github.com"
] | ranjan103.noreply@github.com |
f88d26fd93f16bef39a4eafcdb8174838d8e21bd | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2147/60692/307788.py | 10de8faf4f82529d5d59df010ef8d72681e4f591 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 492 | py | n = input()
if n == '5 5 1 3 2':
print(0)
print(3)
print(3)
print(2)
print(5)
elif n == '100 109 79 7 5':
list1 = [27,52,80,50,40,37,27,60,60,55,55,25,40,80,52,50,25,45,72,45,65,32,22,50,20,80,35,20,22,47,52,20,77,22,52,12,75,55,75,77,75,27,7,75,27,82,52,47,22,75,65,22,57,42,45,40,77,45,40,7,50,... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
4161eecca6148d937ab2bcd601a934e81e885d24 | 2d7c6461c6af13c3938e91de09883e3e817fc21b | /connectedjuniors/posts/migrations/0004_auto_20201007_1942.py | c34132668362412b2c94314c4768cda0ae1f2c89 | [] | no_license | manishthakurhere/connectedjuniors | 64bcbfc1cc261be4f242fe373ad115ef865233e7 | 05abef607069b0c87ebd42770aa18aa5c4edbb43 | refs/heads/master | 2023-02-05T10:40:40.691471 | 2020-12-16T16:05:51 | 2020-12-16T16:05:51 | 322,033,440 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 689 | py | # Generated by Django 3.1 on 2020-10-07 14:12
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('posts', '0003_auto_20201007_1533'),
]
operations = [
migrations.CreateModel(
name='Category',
fields=[
... | [
"manishthakurhere@gmail.com"
] | manishthakurhere@gmail.com |
0be6afb5db488b9ad36be9deefede6211c4a3f37 | a02bd3d7ad77d0994a495da9870113591db13444 | /Part2/calc2.py | fe6dc22c6479f17cc025dfa8ec864419294ee75f | [] | no_license | devjunhong/simpleInterpreter | df7807f3460adb5898b7ce2b38c1ee6041e6eb42 | 8793711eaef02a9f29f201393d88c03f866d3512 | refs/heads/master | 2020-04-01T16:15:10.126792 | 2019-02-13T02:52:00 | 2019-02-13T02:52:00 | 153,372,921 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,616 | py | # Token types
# EOF (end-of-file) token is used to indicate that
# there is no more input left for lexical analysis
INTEGER, PLUS, MINUS, EOF = 'INTEGER', 'PLUS', 'MINUS', 'EOF'
class Token(object):
def __init__(self, type, value):
# token type: INTEGER, PLUS, MINUS, or EOF
self.type = type
... | [
"junhong.kim@milliman.com"
] | junhong.kim@milliman.com |
478b4ad805ee0087c6d18ba496681501d17cbbd0 | f0d925b64af90d903971aeb23225d9a4e98ee77d | /registration/tests.py | 36fbe28bf3359b091c359bea691af25368f9ac4c | [] | no_license | joseduno/django-playground-web | 8d0fd7c8746eaf4ffcd83970f95340dd23234f2b | a2121ac5e0e1ac06490e08b07f9f305988969778 | refs/heads/master | 2022-12-22T07:36:58.654226 | 2020-10-04T20:00:05 | 2020-10-04T20:00:05 | 291,525,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 558 | py | from django.test import TestCase
from .models import Profile
from django.contrib.auth.models import User
# Create your tests here.
class ProfileTestCase(TestCase):
def setUp(self): # debe siempre llamarse asi
User.objects.create_user('test', 'test@test.com', 'test1234')
def test_profile_exists(self):... | [
"jose.duno@spymovil.com"
] | jose.duno@spymovil.com |
bc35d37cce8170a1fc6e960d5ed877d19de0450d | 00377b7f3f704b26262a2bc8ed1e2661c3cc22ee | /Input_Output/1.py | edc6e4cb0d82bb938b21810d4b98f8cbff82f630 | [] | no_license | canshot/selflearning-Python-Ruby-Jaewan | 453d1a8a41d5746f5e6646616591bd7c6f0b335f | 6ea8a507620290a444794688360b1089d68b25d0 | refs/heads/master | 2021-09-04T02:35:43.705676 | 2018-01-14T19:26:49 | 2018-01-14T19:26:49 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | in_str = input("insert your PW")
print(in_str.upper()+" World!")
| [
"limjaewan@Lab448Print.local"
] | limjaewan@Lab448Print.local |
846029f797948ff4c428cce8a5922b17ffbbd67d | 78d35bb7876a3460d4398e1cb3554b06e36c720a | /sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2016_09_01/aio/_monitor_management_client.py | c050f4b4aa8fc88df3e7a1e1c02c2d1b67f42612 | [
"MIT",
"LicenseRef-scancode-generic-cla",
"LGPL-2.1-or-later"
] | permissive | catchsrinivas/azure-sdk-for-python | e35f59b60318a31b3c940a7a3a07b61b28118aa5 | 596227a7738a5342274486e30489239d539b11d1 | refs/heads/main | 2023-08-27T09:08:07.986249 | 2021-11-11T11:13:35 | 2021-11-11T11:13:35 | 427,045,896 | 0 | 0 | MIT | 2021-11-11T15:14:31 | 2021-11-11T15:14:31 | null | UTF-8 | Python | false | false | 3,731 | py | # coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may ... | [
"noreply@github.com"
] | catchsrinivas.noreply@github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.