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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
27f01f5fbb99cb210d0cc41d4914c1b324bdd807 | 0180ae8f7515e1766abfc3adfafc2dfeb6389c80 | /app/tests.py | a14a076ae6977364918478bd4333ef2bdce24c7c | [] | no_license | geckoboom/identidock | ff62cfc90d6bff3f52d9507b76639b291c9fc02f | c71676e8cd2b00fde58299acf3690fedf9cd7ccd | refs/heads/master | 2022-12-07T10:29:22.977134 | 2020-09-10T13:42:29 | 2020-09-10T13:42:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 623 | py | import unittest
import identidock
class TestCase( unittest.TestCase ):
def setUp( self ):
identidock.app.config["TESTING"] = True
self.app = identidock.app.test_client()
def test_get_mainpage( self ):
page = self.app.post("/", data=dict(name="Moby Dick") )
assert page.status_co... | [
"ontroip@gmail.com"
] | ontroip@gmail.com |
f30d4428bfd66b649479c6287f8e5a80d0e995b2 | 9c4249f8581f8b0012967e907263f5fee000b6a9 | /downloadDataset.py | 910aa0705181f82e61b17471739cbce66ea0fbf4 | [] | no_license | mvonlanthen/AWS_IoT_predictiveMaintenance | 66e87d31e4b38703e632f2bcd0b0f4cf6def488a | 4b76b901fe4cf661a691bcf639a426c2d052a7d1 | refs/heads/master | 2020-09-13T19:33:12.268200 | 2020-01-23T14:52:20 | 2020-01-23T14:52:20 | 222,883,218 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,654 | py | '''
downloadDataset.py
------------------
Download, unzip and prepare the "Turbofan engine degradation simulation dataset"
into one csv file.
The orignal dataset is splited into 4 batches which are themselves splitted into
train and test sets. Each batch represent a different operating condition. Moreover,
the gro... | [
"ubuntu@ip-172-31-37-198.eu-west-1.compute.internal"
] | ubuntu@ip-172-31-37-198.eu-west-1.compute.internal |
6238e82437788028beba37bd4dc6074632053960 | bccfab4d853f7417401a084be95de293e66ccd2a | /mySpider/spiders/Museum72.py | 7cda6f18480e54909d7211b01dccc6d7a37022cd | [] | no_license | CS1803-SE/The-First-Subsystem | a8af03ce04a9de72a6b78ece6411bac4c02ae170 | 4829ffd6a83133479c385d6afc3101339d279ed6 | refs/heads/main | 2023-05-06T02:32:08.751139 | 2021-05-24T06:09:37 | 2021-05-24T06:09:37 | 363,400,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,504 | py | #lay
from ..items import *
class Museum72(scrapy.Spider):
name = "Museum72"
allowed_domains = ['nbmuseum.cn']
start_urls = ['http://nbmuseum.cn/col/col41/index.html']
custom_settings = {
'ITEM_PIPELINES': {
'mySpider.pipelines.MuseumPipeLine': 300,
},
'DOWNLOADER_M... | [
"1300978939@qq.com"
] | 1300978939@qq.com |
6eb6d4de09645455d43061b7dad393189614890e | 7589a3745000d3734344d3f5914a2a05cd3344f3 | /s11/code-S11/image.py | 441b793adb09ce8230ef235653ebd8a8f3ee207b | [] | no_license | gabrielorz/MI | 96f2cd107a74dea26a655fbf18020bdbedb03ef4 | da5302632bf94893c8b510c812cf706f39fe5403 | refs/heads/master | 2022-03-31T12:38:35.028606 | 2020-01-08T10:22:32 | 2020-01-08T10:22:32 | 213,033,525 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,621 | py | from scipy import misc
from skimage import data
from skimage import draw
from skimage import exposure, color
from scipy import misc
import numpy as np
import os
import os
class Image:
dic_procedural = {'coffee': data.coffee, 'astronaut': data.astronaut, 'ascent':misc.ascent, 'face': misc.face, 'checkerboard':dat... | [
"gabriel.garcia.hernando@gmail.com"
] | gabriel.garcia.hernando@gmail.com |
7a6896e042b321438461526138aeea11b4452adb | 54ea9a0a6b315c2a84c28ff402e41cfc28bfbcb1 | /job/admin.py | 94e7338914be31e649c95887ed3a7037d3c3a481 | [] | no_license | miyanda2/bauchi_jobs | 7601aaadc0cc9e6e6325565220c7ad5e0d306f3e | d7e461854c4fb6dafca04f29a7503ccc974ed7f8 | refs/heads/master | 2020-04-08T12:07:13.805700 | 2018-12-11T16:49:15 | 2018-12-11T16:49:15 | 159,333,805 | 0 | 0 | null | 2018-12-11T16:49:16 | 2018-11-27T12:42:46 | JavaScript | UTF-8 | Python | false | false | 126 | py | from django.contrib import admin
# Register your models here.
from django.contrib import admin
# Register your models here.
| [
"micheal@uplift.ng"
] | micheal@uplift.ng |
90eb0692880ac52e45658c3c6d019557735c736b | e1258c579a3dc16d655df1034056f008807d2f35 | /codesys/codesys_v3_webserver_int32_overflow_tra_2020_16.py | 87891dc8e143673a5aaf04ec21927066c2b9026c | [
"BSD-3-Clause"
] | permissive | kaisaryousuf/poc | b03567b5b942f216b447dddb35e33ad43d00aaca | 4421e2f188f58e39577ded684c3dad6a54dfdff8 | refs/heads/master | 2023-09-01T02:22:59.581458 | 2023-08-17T18:48:20 | 2023-08-17T18:48:20 | 209,402,486 | 0 | 3 | BSD-3-Clause | 2023-08-18T20:50:39 | 2019-09-18T20:55:41 | Python | UTF-8 | Python | false | false | 1,792 | py | import sys, struct, base64
from httplib import *
def usage():
print "usage : "+sys.argv[0] + " <target_ip> <target_port>"
print "example: "+sys.argv[0] + " 192.168.1.123 8080"
if len(sys.argv) != 3:
usage()
sys.exit()
host = str(sys.argv[1])
port = int(sys.argv[2])
if(port == 443):
conn = HTTPSConnecti... | [
"clyne@tenable.com"
] | clyne@tenable.com |
b832b3f2f0e2726e7fa8b3e141a108a87987f57a | 0f4328ee378b68920783e90e83161db193955d2f | /analysis/hiddenRepAnalysis.py | b3dd0b9dbf2f17c6616829367117f76aec1de695 | [] | no_license | BarryRun/gram-pytorch | 87df0c20eeada94e7a39fa1fd010e85499ccefcf | 5da57c3dfa663a996aa16b2a796037910826f385 | refs/heads/master | 2022-12-25T14:32:06.826409 | 2020-09-19T03:51:55 | 2020-09-19T03:51:55 | 294,862,052 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,866 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from datetime import datetime
import sys
import pickle
import collections
import numpy as np
from diagnosisRepAnalysis import read_best_params, get_diagnosis_rep
from collections import defaultdict
sys.path.append("..")
from dataLoader import load_dat... | [
"rhys@seu.edu.cn"
] | rhys@seu.edu.cn |
3ee0b16a3fa268a4f70f364d9ab5bc3b4fed2794 | 6630694f401f6f475dd81bb01ff9368db844ccff | /configs/repvgg/repvgg-B2_8xb32_in1k.py | b9a7d4ca5570518f0c4d0b81951e0e97c46606f9 | [
"Apache-2.0"
] | permissive | open-mmlab/mmpretrain | 98a4d6b3bb747efc3d50decebf84fc3ffa41076a | d2ccc44a2c8e5d49bb26187aff42f2abc90aee28 | refs/heads/main | 2023-08-30T19:11:24.771498 | 2023-08-23T02:45:18 | 2023-08-23T02:45:18 | 278,415,292 | 652 | 186 | Apache-2.0 | 2023-09-08T08:01:40 | 2020-07-09T16:25:04 | Python | UTF-8 | Python | false | false | 106 | py | _base_ = './repvgg-A0_8xb32_in1k.py'
model = dict(backbone=dict(arch='B2'), head=dict(in_channels=2560))
| [
"noreply@github.com"
] | noreply@github.com |
888b5fcafa91cb7b2ebdcb7e5c1c67b2ae52449b | ead27e8ab8433d7c15bf81f51c18029cee6d39ac | /neutron_diagnose/__init__.py | df9c144b676c044d7b1feeb4f6a93063a65e5059 | [
"Apache-2.0"
] | permissive | zhuzhichaoTM/neutron-diagnose | 7b42c1679cc648474c06919a6c16243dcf080d1c | 223d0d5edaf77a8264ce06d68adaa1b329bb9f1b | refs/heads/master | 2020-05-15T08:41:44.551121 | 2017-04-13T06:55:43 | 2017-04-13T06:55:43 | 182,163,864 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 771 | py | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distrib... | [
"shihz@fiberhome.com"
] | shihz@fiberhome.com |
bd559fbd2c336eb6d115472c556cf088f0332d40 | daad090dd655bec07a9a6d54ade3e5ed7045f68a | /hw5/pi.py | 2d9e4d5c546bac80db15c4d9248f20fd04f75110 | [] | no_license | lukemvu/cs450 | 3482cac68cf4d080048fd015861318665985717e | e02a924052886302eb12519702cba980d0fa283b | refs/heads/master | 2023-03-22T15:34:11.487946 | 2021-03-16T17:22:24 | 2021-03-16T17:22:24 | 348,432,607 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,117 | py | # -*- coding: utf-8 -*-
# Copyright 2015 Sameer Suhas Marathe
#
# 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 re... | [
"luke.m.vu@gmail.com"
] | luke.m.vu@gmail.com |
ecd093a5aeace082019b63dbf57457c3adf1e20f | c65ef74f5c6169f650c636e7e8d540618bd69558 | /A2C/value_function_baseline/actor.py | dbd42c4615810426840dc755c53ea4ba1d885fa6 | [] | no_license | Khev/RL-practice-keras | 0cf0721d29f8b0d19ebe41e1e83dbeb5a7fc3650 | 67cccdffd4e7e380666f24441eda8f72a33d9d81 | refs/heads/master | 2021-06-04T09:47:39.731355 | 2020-02-29T22:24:31 | 2020-02-29T22:24:31 | 149,169,937 | 19 | 5 | null | null | null | null | UTF-8 | Python | false | false | 2,967 | py | import numpy as np
import matplotlib.pyplot as plt
import tensorflow as tf
import gym
from collections import deque
from keras.models import Sequential
from keras.layers import Dense
from keras.optimizers import Adam
from keras.optimizers import RMSprop
from keras import backend as K
from keras.utils import to_categor... | [
"kokeeffe@mit.edu"
] | kokeeffe@mit.edu |
8991c20fb3e004f3a8e3d681c17dfb74d32de62a | 9f6788873e06527413b11001845672dc666c1915 | /utils/loss_validate.py | 32ab817f8aadf78de2ca3fa8e6e29c392720ebc0 | [] | no_license | zakmatt/lung_diseases_classification | f63b54d243dcef3f3846dec52b7a9c13c5818f22 | fa3c20816ae44923aed34dec6688ed4feb648d37 | refs/heads/master | 2022-07-14T20:11:15.960519 | 2019-08-01T23:12:14 | 2019-08-01T23:12:14 | 135,772,899 | 0 | 0 | null | 2022-06-21T21:18:24 | 2018-06-01T23:50:06 | Jupyter Notebook | UTF-8 | Python | false | false | 4,953 | py | import numpy as np
import os
import tensorflow as tf
class WrongShapeException(Exception):
pass
def mask_to_categorical(masks, batch_size=1, img_cols=256, img_rows=256):
masks = tf.keras.utils.to_categorical(masks, 2)
masks = np.reshape(
masks,
(
batch_size, img_cols * img_ro... | [
"zak.matthew@yahoo.com"
] | zak.matthew@yahoo.com |
03d6b9442657118869f4d81fda133e26f127d88b | 645cd832def2330ea923d69fcc82cf5b7719415b | /python/smqtk/algorithms/relevancy_index/__init__.py | 36a407c72a844017a2550d0d6d0e1b72ee4d9c2c | [] | no_license | mrG7/SMQTK | 3103b6c59e347930a330e3284b288cb7af20f3b6 | 19917babd63767726b1bc21a184a5006366b59af | refs/heads/master | 2021-01-20T11:35:21.861708 | 2015-10-02T21:50:44 | 2015-10-02T21:50:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import abc
import logging
from smqtk.algorithms import SmqtkAlgorithm
__author__ = "paul.tunison@kitware.com"
class RelevancyIndex (SmqtkAlgorithm):
"""
Abstract class for IQR index implementations.
Similar to a traditional nearest-neighbors algorithm, An IQR index provides
a specialized nearest-n... | [
"paul.tunison@kitware.com"
] | paul.tunison@kitware.com |
19fbc98fa9d809509ce8e1bf5a669affa193f000 | ef9080867c640847a7072c0a1a6c3f770a050f12 | /assignment2/cs231n/classifiers/fc_net.py | e7d2080ae338362e0db5dd76382335b9e79a8bb8 | [] | no_license | J-JunChen/cs231n | 24759817a18900e91780a6fb090b6a0439ea3650 | 6597a9b954604d9490f269ef9fc33b7794ac4a01 | refs/heads/master | 2023-01-01T06:05:03.868169 | 2020-10-25T13:15:44 | 2020-10-25T13:15:44 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 20,798 | py | from builtins import range
from builtins import object
import numpy as np
from ..layers import *
from ..layer_utils import *
class TwoLayerNet(object):
"""
A two-layer fully-connected neural network with ReLU nonlinearity and
softmax loss that uses a modular layer design. We assume an input dimension
... | [
"JunStitch"
] | JunStitch |
3f06029ceb9f9184313732f15f1334894534e149 | 18375af374e91e721fb16e5415bc4fc7540e5ced | /currency_exchange/views.py | cf8a2101498baf62f88fd5a950b8ec6f7712a9a2 | [] | no_license | youssefelmasry/tahweela_app_demo | 64d802df33ad6361a714a3119b3380b9afe98e4e | ee55b23e601f5e6580e9f051f6da89acab37d3a1 | refs/heads/master | 2023-02-25T23:05:08.853738 | 2021-01-29T17:55:33 | 2021-01-29T17:55:33 | 334,214,124 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 793 | py | from rest_framework.generics import ListAPIView
from rest_framework.views import APIView
from currency_exchange.serializers import RateExchangeSerializer
from rest_framework.response import Response
from currency_exchange.models import BaseCurrencies
class BaseCurrenciesListView(APIView):
def get(self, request):
... | [
"yusufelmasry9@gmail.com"
] | yusufelmasry9@gmail.com |
2d21df815a992618fea1b1c56a61c64f357a3169 | cb75140ebed613adea538bad2b0de29c67db9213 | /mundo3dicionario4.py | 9fa3434ba392346299146c757d3c24be598229f0 | [] | no_license | AndsuLucas/exercicios-python | bdbacda7144a38d0d4852a05b15dadac6c830a88 | b78eceb1f7c73a02dfc3cd7175e851fee19bf972 | refs/heads/master | 2020-04-07T01:09:28.691794 | 2018-11-17T17:15:06 | 2018-11-17T17:15:06 | 157,932,756 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,066 | py | from time import sleep
#quantas pessoas foram cadasradas,média de idade, quntas mulheres,pessoas acima da media
f = 0
funcao = str
contador = 0
cadastrototal = []
dc = dict()
soma = 0
am = 0
while True:
contador+=1
dc['nome'] = str(input('nome:'))
while True:
dc['sexo'] = str(input('sexo: [M/F]')).... | [
"a.lucassilvadeoliveira@gmail.com"
] | a.lucassilvadeoliveira@gmail.com |
6333b09aba873b5e01d30fc103a78cbe1fe4e540 | fa2d32a77ebd558ffe54eea67504308fa1ac2d2c | /learn.strings_lists_tuples_sets/convertstring2list.py | 49f94079f5c63f303f9fb141816fcc83b042643f | [] | no_license | prpllrhd/morePYTHON | 329362c18a447f913fa1f73c06fd0451b1a79009 | 739f64eb5462de532a8f1788ebe7631cb155f565 | refs/heads/master | 2021-06-05T19:59:43.276455 | 2019-01-20T19:53:34 | 2019-01-20T19:53:34 | 14,663,754 | 0 | 1 | null | 2015-07-08T06:12:08 | 2013-11-24T15:38:51 | Python | UTF-8 | Python | false | false | 87 | py | #!/usr/bin/env python3
a = "sameer rakhee yuvi avni aai"
b = list(a.split())
print (b)
| [
"samy@rakhees-Air.fios-router.home"
] | samy@rakhees-Air.fios-router.home |
f0202c853270176392aa90efe01b29e5549434cc | 80ef89008f34f3e52d3045db2ef158e9ad09832a | /homework/tf_regression.py | 60fc3016ff551928bf8cf1548a2f35d3ed9675e5 | [] | no_license | phantomamoeba/ast383 | 7836a24f28d4a2e0a110b04a72080f4e9bbfb1d5 | c68bb8c053d4c4dec6093c4a0349539423db7e2a | refs/heads/master | 2021-09-13T09:13:34.283002 | 2018-04-27T16:31:47 | 2018-04-27T16:31:47 | 118,023,850 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,646 | py | import os
import numpy as np
import tensorflow as tf
__all__ = ['linear_regression']
def linear_regression(x, y, gamma_w, gamma_b, minibatch_size, learning_rate,
training_epochs, architecture, method):
assert x.shape[0] == y.shape[0]
assert architecture in ['neural', 'explicit']
as... | [
"polonius@davistx.com"
] | polonius@davistx.com |
2a363433acaaec2e11b27accea62497c51739654 | 305369594545fca818bbb8e0254f97a3ec50ccfd | /32c09a6e325db19533e2e272caed35fd.py | d09d0f72a2fbc88aec3ddb22bb95fb0c3d343f56 | [] | no_license | jkitchin/ACS-2016-data-sharing | c1950cf31f3bdb380e41427febb1888fb394a3ff | c23fc008d24aa637d2864d02533de2bf6bac7de7 | refs/heads/master | 2021-01-10T09:49:40.550918 | 2016-03-15T02:05:45 | 2016-03-15T02:05:45 | 53,690,308 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 46 | py | return [x for x in data if x[1] == 'anatase']
| [
"jkitchin@andrew.cmu.edu"
] | jkitchin@andrew.cmu.edu |
b5aaf890a1d7e6c6702ed2586719bf9dd36d1ebb | fd9ad90be33b4875a954fe93d62a485e1a1abdfa | /category/migrations/0002_alter_category_slug.py | dd16eed4e8f0a212df21c7d42e6b33299445d7e5 | [] | no_license | Elbek-Dalaboyev/greatkart-django | e25beba3e7e688fbcd8367b8f24e05069bf31d03 | 9ff1f1c37891efe4d5fc426e96d634eedf8b3ce2 | refs/heads/main | 2023-04-27T00:37:10.112281 | 2021-06-09T08:59:26 | 2021-06-09T08:59:26 | 373,591,851 | 1 | 1 | null | 2021-06-09T08:59:27 | 2021-06-03T17:36:04 | JavaScript | UTF-8 | Python | false | false | 390 | py | # Generated by Django 3.2.3 on 2021-05-26 15:06
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('category', '0001_initial'),
]
operations = [
migrations.AlterField(
model_name='category',
name='slug',
... | [
"dalaboyeve@gmail.com"
] | dalaboyeve@gmail.com |
b0cb1666b5a760c435bb522037d7d54bbb2539ba | 99d2addf16d5637fd0133fe23153119be4f34e43 | /app/recipe/tests/test_recipe_api.py | 2a5d8b332fa1e633243ad9fa6e74d1c0354b7a55 | [
"MIT"
] | permissive | mtbriones/recipe-app-api | b3db6c7f59d4a37da922efacc204405c5fcc0e69 | 31a24626e92fb2a039bc892fc9743b5799e96956 | refs/heads/master | 2022-11-30T00:37:09.006763 | 2020-08-12T09:27:49 | 2020-08-12T09:27:49 | 285,354,960 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,767 | py | import tempfile
import os
from PIL import Image
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from rest_framework import status
from rest_framework.test import APIClient
from core.models import Recipe, Tag, Ingredient
from recipe.serializers import ... | [
"mike@pahrsek.com"
] | mike@pahrsek.com |
baf15faab8930e47cb6f8e16e1a1e395a3a4b8b9 | 2283ba3286f90d8ed8213050e18a11f57f84e320 | /App/ToDoList/toDoAccess.py | 24f6e9213db251923f859095cd65dc57de0fdcea | [] | no_license | Wills-Personal-Projects/LifeOrganizer | ab508861e7ed699d3c51b95ea85015eac0fe3a80 | 8b2a84912a41e72597d6d6bdce36ad841b3c8fc4 | refs/heads/master | 2023-03-06T08:14:37.576149 | 2021-02-11T21:55:56 | 2021-02-11T21:55:56 | 330,888,967 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,839 | py | #!/usr/bin/python3
from ..Path.filePaths import getScreenPath, getToDoPath, getBaseToDoPath, getNamesPath
from ..Screen.screenAccess import getScreen,setScreen
def getToDoListDim(n):
tDListFile = open(getToDoPath(n), "r")
dim = tDListFile.readline().rstrip().split()
return dim
def getToDoList(n):
tDLi... | [
"wjett18@gmail.com"
] | wjett18@gmail.com |
7995c49cfea7af746aefc9153ce50d173056983a | a95fc8b2975f4e263e66347ba7fc098bcbd1427f | /TF2.0_YOLOv3.py | 0fa9968adae99c170ab5a9d9d0e049ef699d21c9 | [] | no_license | Zachary4biz/notebook_collection | 66f996c45525473776c647fe430b821649dad43a | 9804e72fd230ecba04c68a11e62b1bf6d72c56b7 | refs/heads/master | 2021-06-17T12:58:06.112829 | 2021-06-10T04:14:25 | 2021-06-10T04:14:25 | 188,944,592 | 2 | 2 | null | null | null | null | UTF-8 | Python | false | false | 11,714 | py | #!/usr/bin/env python
# coding: utf-8
# In[1]:
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
get_ipython().run_line_magic('matplotlib', 'inline')
from tqdm.auto import tqdm
import concurrent.futures
from multiprocessing import Pool
import copy,os,sys
from ... | [
"zachary4biz@yeah.net"
] | zachary4biz@yeah.net |
e1bfa27cf691a0b6ee3d8d8a074da682433cef02 | f20931826a557f0d884f8b46de259840c29b7428 | /meiduo_mall/meiduo_mall/utils/authenticate.py | 2079f8c659a70dbebbb5291a0c6b7c9cbcc4867e | [] | no_license | zy723/meiduo_project | 38ccecc2fa1d61f2eb848ebc572dd43d45a534c8 | f50a8105c63554b57419cb3494c3d323bb343f9c | refs/heads/master | 2022-12-15T02:34:42.578549 | 2020-05-20T16:56:27 | 2020-05-20T16:56:27 | 248,264,846 | 0 | 0 | null | 2022-12-12T20:28:41 | 2020-03-18T15:08:40 | TSQL | UTF-8 | Python | false | false | 2,024 | py | """
增加支持管理员用户登录账号
JWT扩展的登录视图,在收到用户名与密码时,也是调用Django的认证系统中提供的authenticate()来检查用户名与密码是否正确。
我们可以通过修改Django认证系统的认证后端(主要是authenticate方法)来支持登录账号既可以是用户名也可以是手机号。
修改Django认证系统的认证后端需要继承django.contrib.auth.backends.ModelBackend,并重写authenticate方法。
authenticate(self, request, username=None, password=None, **kwargs)方法的参数说明:
reque... | [
"zy723@vip.qq.com"
] | zy723@vip.qq.com |
9e819a87ebc1032db2785b8533da9e1f29cd9fe5 | f62e4c46fb0f98879fb63977fa29631b02e3928c | /16 задание/РекурсФункцСТекст_005.py | 555d533ac95655abf5e3a748654d72868d9b32bc | [] | no_license | SeveralCamper/USE-2020-2021 | c34f4d7a2c3e0f51529141781f523b63242a835d | ac1122649f2fd431a91af5dda5662492e2565109 | refs/heads/master | 2023-09-03T13:36:05.822568 | 2021-10-27T12:54:10 | 2021-10-27T12:54:10 | 392,303,515 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 454 | py | # Задание 16 № 9163
# Ниже на пяти языках программирования записан рекурсивный алгоритм F.
# Чему равна сумма всех чисел, напечатанных на экране при выполнении вызова F(1)?
count = 0
def F(n):
global count
count += n
print(n)
if n < 4:
F(n + 1)
F(n + 3)
print(F(1), count)
# Ответ: 25 | [
"mikha.alkhimovich@mail.ru"
] | mikha.alkhimovich@mail.ru |
300d9ae15924aa6d8ac27e9aeaf6236d61811704 | 482f24b9eda8ca802ef6f04d9f3cf8c1a79a9af2 | /dags/02_pemex_proveedores_contratos.py | d91735162881a333b7d6e5e856cecce044ceb361 | [
"MIT"
] | permissive | erikriver/mixtli-etc | 773896c831290a7b74374bc89983c87a033baac3 | 0c8e991cb6d92f0a3c87f41f7688a6a327e2472d | refs/heads/master | 2020-03-07T12:53:11.506416 | 2018-04-05T12:59:44 | 2018-04-05T12:59:44 | 127,487,455 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,935 | py | # -*- coding: utf-8 -*-
#
# Copyright (c) 2018 Erik Rivera
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify... | [
"erik.river@gmail.com"
] | erik.river@gmail.com |
fda3a1030b55d55ed9191c6305d8643fcbda2aa8 | f8f78541796303975df16e97b38d0903ba2e363e | /Lesson6.13_Pandas.py | 35defc36b6d0a1ff794618e7a64ae895e74c9846 | [] | no_license | cb1118/dataAnalyst | 19537dab4b65dd068c6d626e1e2fda03eee6f914 | 65f54ef03c8a78586e7c64dd10f84ce65c467b70 | refs/heads/master | 2020-03-23T22:19:16.351054 | 2018-08-27T03:40:15 | 2018-08-27T03:40:15 | 142,168,420 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,322 | py | # -*- coding: utf-8 -*-
"""
Created on Sun Apr 1 18:59:47 2018
@author: CB1118
"""
import pandas as pd
countries = ['Albania', 'Algeria', 'Andorra', 'Angola', 'Antigua and Barbuda',
'Argentina', 'Armenia', 'Australia', 'Austria', 'Azerbaijan',
'Bahamas', 'Bahrain', 'Bangladesh', 'Barbados'... | [
"cb1118@att.com"
] | cb1118@att.com |
29bc3192a686ccae8db44c3e1d6e73ecf673b46d | 6dbfd83c4641d798934a7eb1c5f45757d6504ebe | /cloud/fs/redis/user.py | d1e12468a7051964f76203be6c7100fdfca9d109 | [] | no_license | xuanyuan1332/simple_cloud | 015e5eba38e82b3e0c78f44e535fd5bc0ff441dc | ffbbaa22816d79ae45c3475e25e352129a70057d | refs/heads/master | 2022-11-22T21:01:29.130241 | 2020-07-14T11:39:00 | 2020-07-14T11:39:00 | 280,647,428 | 0 | 0 | null | 2020-07-18T12:00:52 | 2020-07-18T12:00:52 | null | UTF-8 | Python | false | false | 663 | py | '''用户相关
'''
import json
from .base import BaseRedis
class UserRedis(BaseRedis):
'''用户操作reids
'''
user = '{username}'
sign_in = 'sign-in-{project_id}'
def get_sign_in(self, project_id):
sign_in = self.sign_in.format(project_id=project_id)
nums = self.redis.get(sign_in)
if... | [
"l1328076914@gmail.com"
] | l1328076914@gmail.com |
1ced79828f6469f7bab445f3f426e7431206e4f3 | ca5da7e25c0f4f96572dedf8831cb0f111490c28 | /OK/Python/HackerRank/Practice/Loops.py | 169f88823be1d26e6d51117e2eb78eb8634b3b7e | [] | no_license | 317702550/THC | fecc44aa953f9f6b98cb7e1856ef12537f629393 | f9fe9ddb2e55c5beab3eba8102915a7690524659 | refs/heads/master | 2020-07-05T08:53:11.087930 | 2019-12-10T15:54:35 | 2019-12-10T15:54:35 | 202,597,617 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 182 | py | #!/usr/bin/python3
# Maximiliano Proaño Bernal
# 03/12/19
# Python 3.7.3
# Ciclos
if __name__ == '__main__':
n = int(input())
i = 0
while i != n:
print(i**2)
i = i + 1
| [
"maxpbernal@ciencias.unam.mx"
] | maxpbernal@ciencias.unam.mx |
5e70589d8b5f904dfb860f482ccaa3caf4c7ec29 | 8685c7b28fcaf26505ec4210ff69f30ed0884d80 | /tools/c7n_gcp/c7n_gcp/actions/cscc.py | 32b0c5015f39db0b3979318624ad86139f3e2225 | [
"Apache-2.0"
] | permissive | AnatoliiHromov/cloud-custodian | 9026d490b1c8aabcdab07c5d95a3e7bdda11ce7b | 54b48040c0de8a34cea4c48209ca7e395285465b | refs/heads/master | 2022-10-13T15:56:48.654462 | 2020-06-04T16:32:25 | 2020-06-04T16:32:25 | 269,630,235 | 2 | 0 | Apache-2.0 | 2020-06-05T12:35:17 | 2020-06-05T12:35:14 | null | UTF-8 | Python | false | false | 8,032 | py | # Copyright 2018-2019 Capital One Services, LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed ... | [
"noreply@github.com"
] | noreply@github.com |
a387bd8541f6ae4169b7b9ac79fbcd17e4dbf771 | 84153ccd9d502d1e086000d66e58eaf756f52ed1 | /tweetme2-web/node_modules/watchpack-chokidar2/node_modules/fsevents/build/config.gypi | f499035769cb92132bf631e258809b1c8655ae7f | [
"MIT"
] | permissive | ezorfa/TweetMe | a86d6714595a1cd57054fadb62bd67d27448a995 | ff7843d79ba685265f32cab7fabb7f2336122dcc | refs/heads/master | 2022-12-14T14:57:37.897380 | 2020-08-23T21:52:08 | 2020-08-23T21:52:08 | 288,664,127 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,654 | gypi | # Do not edit. File was generated by node-gyp's "configure" step
{
"target_defaults": {
"cflags": [],
"default_configuration": "Release",
"defines": [],
"include_dirs": [],
"libraries": []
},
"variables": {
"asan": 0,
"build_v8_with_gn": "false",
"coverage": "false",
"dcheck_al... | [
""
] | |
b0be373768e61a07dd665ce7b0eb613136816abd | a6dbcecdccc91f602307ab2d0ec166005a4d07dd | /env/Lib/site-packages/setuptools/msvc.py | 5979ed2de99cbf74c525d28735b05cdc666c7368 | [] | no_license | lishaojie977/hmsc | a4b95368de1ae2298ff140a5556f89fc8146b7e9 | 0ca87753d138cd0cb62bb7ba641b0dcd79b83115 | refs/heads/master | 2022-04-28T16:22:56.629037 | 2020-05-03T12:47:45 | 2020-05-03T12:47:45 | 257,158,062 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 40,844 | py | """
Improved support for Microsoft Visual C++ compilers.
Known supported compilers:
--------------------------
Microsoft Visual C++ 9.0:
Microsoft Visual C++ Compiler for Python 2.7 (x86, amd64)
Microsoft Windows SDK 6.1 (x86, x64, ia64)
Microsoft Windows SDK 7.0 (x86, x64, ia64)
Microsoft Visual C++ 10.0... | [
"1171987472@qq.com"
] | 1171987472@qq.com |
38f7ec7f0bfb8a30bba8a7a34b7649c99e83b107 | f91e85aaad8cbe48c819a15fc2f7d728a1ab50a1 | /chapter21-case_study/pyimagesearch/utils/captchahelper.py | 2a7163debbb6e4c4e3cb9bbbac24500607c290f8 | [] | no_license | amuLee/StarterBundle | ac9c28cffc8494ac9957e014304bf2de8be5a6d1 | 861fe66d9bab55390c7faca5026769697fc51307 | refs/heads/master | 2020-05-23T14:05:18.849342 | 2019-05-15T09:42:34 | 2019-05-15T09:42:34 | 186,793,654 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 984 | py | # import the necessary packages
import imutils
import cv2
def preprocess(image, width, height):
# grab the dimensions of the image, then initialize
# the padding values
(h, w) = image.shape[:2]
# if the width is greater than the height then resize along
# the width
if w > h:
image = im... | [
"leeamu340@gmail.com"
] | leeamu340@gmail.com |
ba287699cf45b5845e4ef5418bb4df38b2b91214 | fb265f7443acf7c72e3a7d95e2be5a268ecd8443 | /rcwa/test/fastRunner.py | 68958164b6b599d0dc72f99e7be7ab2fdd7527df | [
"MIT"
] | permissive | itsjmj/rcwa | 71f1bd6bfbff1bb2cc630b6b35a23d1f919c329d | a946c3819e5e52ad9c92a8a73c48360749b06196 | refs/heads/master | 2023-08-25T19:04:44.699749 | 2021-05-12T15:25:56 | 2021-05-12T15:25:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,190 | py | """
Run all the core unit tests, not the lengthy and major integration tests
"""
import context
import unittest
import sys
import testCrystal
import testHarmonics
import testLayer
import testMaterial
import testMatrices1x1Harmonics
import testMatrices3x3Harmonics
import testNetlistParser
import testSolver1x1Harmonics
... | [
"jordan.e@berkeley.edu"
] | jordan.e@berkeley.edu |
6618cc7ee42d5c64ce1da566bff7ac57a6f4fe95 | 86317245051f5256751ca3ac186eaffccf55af52 | /src/menu.py | 9e2bc6d87931c718dff91cfadeb55fabe57dd88a | [] | no_license | SaulCastel/LFP_PROY1 | aae34f98b2e784484fb284800515e6eb1d1857bf | f27d3d7c7c6c7ba13774b4dcaaa79370cfdf65f7 | refs/heads/main | 2023-03-31T01:33:19.910787 | 2021-03-22T07:48:05 | 2021-03-22T07:48:05 | 348,588,069 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 692 | py | class Item:
def __init__(self, id:str, name:str, price:str,desc:str) -> None:
self.id = id
self.name = name
self.price = price
self.desc = desc
class Section:
def __init__(self, name:str) -> None:
self.name = name
self.items = []
def newItem(self,item:Item):... | [
"saulcastel016@gmail.com"
] | saulcastel016@gmail.com |
c446ccc3868b590d3af20686969206a7817c1464 | a3ff213f844fa494ba2ba06d26b4e7ba77fa7a58 | /django_patterns/management/__init__.py | b9b47da6d3b268a3cc8c8f9d7cdfcbbc09ce161d | [] | no_license | monetizeio/django-patterns | f757771c46859b9157b48d0f875a397239706702 | 9b5567cbc0d4ed58a9ff074bccc9026982daf307 | refs/heads/master | 2021-01-13T01:50:56.949546 | 2013-03-19T23:23:18 | 2013-03-19T23:23:18 | 5,908,449 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,044 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# === django_patterns.management ------------------------------------------===
# Copyright © 2011-2012, RokuSigma Inc. and contributors. See AUTHORS for more
# details.
#
# Some rights reserved.
#
# Redistribution and use in source and binary forms of the software as well ... | [
"mark@roku-sigma.com"
] | mark@roku-sigma.com |
f17124384ece9a83dcb41df9bd0ab948cf7e0c16 | 8409cbba351dc3572949e933ea2e265c44452844 | /hsn_v1/densecrf.py | ddc2fd145b1d2ef2d2d89d3e17d3ee796e8775df | [
"MIT"
] | permissive | Kitatine/hsn_v1 | ffa239659745fc11083cbc61dd5d9e0c014c7a10 | 8cc524a7932deead6ff87fc5945522cf310b9fcd | refs/heads/master | 2022-09-06T19:03:09.757180 | 2020-06-01T16:26:46 | 2020-06-01T16:26:46 | 268,572,420 | 0 | 0 | MIT | 2020-06-01T16:20:33 | 2020-06-01T16:20:32 | null | UTF-8 | Python | false | false | 2,870 | py | import os
import numpy as np
import pydensecrf.densecrf as dcrf
from pydensecrf.utils import unary_from_softmax
import matplotlib
matplotlib.use("TkAgg")
import matplotlib.pyplot as plt
class DenseCRF:
"""Class for implementing a dense CRF"""
def __init__(self):
self.gauss_sxy = 3
self.gauss_c... | [
"ly.hc.chan@gmail.com"
] | ly.hc.chan@gmail.com |
ea8178226894384605a4056cb9263a40ae392b4f | eecd9cb2117aee5f8a41a38e07697524c5908003 | /concourse/client/api.py | 6364f9311bca6d38d5e26f4f165613ef1eb30a26 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | adracus/cc-utils | 426608fb2c7184e5f68c9073da9e7f1535e025ce | dcd1ff544d8b18a391188903789d1cac929f50f9 | refs/heads/master | 2020-04-25T23:30:25.454654 | 2019-02-27T14:31:19 | 2019-02-27T14:31:19 | 173,148,221 | 0 | 0 | Apache-2.0 | 2019-02-28T16:36:09 | 2019-02-28T16:36:09 | null | UTF-8 | Python | false | false | 8,926 | py | # Copyright (c) 2019 SAP SE or an SAP affiliate company. All rights reserved. This file is licensed
# under the Apache Software License, v. 2 except as noted otherwise in the LICENSE file
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the Licens... | [
"christian.cwienk@sap.com"
] | christian.cwienk@sap.com |
0d038bc8a4bea84b0f0d51230a42d848d9d9ce14 | 5c1e5935129b4d0f5626f64bd62e3370b0553262 | /vendor/deadline/custom/plugins/GlobalJobPreLoad.py | d1287dd2131f2cf667340d1bd133e38875f5b207 | [
"MIT"
] | permissive | dangerstudios/OpenPype | c72f9d6d3a4a964697fa77712c116cfd2949b696 | f82ed5e127340e852a7517ff1e13e2524ee6e704 | refs/heads/main | 2023-04-21T00:25:02.364398 | 2021-04-13T22:10:36 | 2021-04-13T22:10:36 | 362,811,887 | 0 | 0 | null | 2021-04-29T12:35:54 | 2021-04-29T12:35:53 | null | UTF-8 | Python | false | false | 6,060 | py | # -*- coding: utf-8 -*-
import os
import tempfile
import time
import subprocess
import json
import platform
from Deadline.Scripting import RepositoryUtils, FileUtils
def inject_openpype_environment(deadlinePlugin):
job = deadlinePlugin.GetJob()
job = RepositoryUtils.GetJob(job.JobId, True) # invalidates cach... | [
"petr.kalis@gmail.com"
] | petr.kalis@gmail.com |
ed2bd9596b3c087bafd28769728ffae53934a728 | e12e1e738d06dbbcdb7f3d051614e7aa493f795d | /mysite/config/settings.py | 41635b0505022517d3d2ca9886160f51f35e9721 | [] | no_license | suhjohn/ec2-deploy-mysite | 34c13e1ae3ff33ca14a6223ee8036432ea98d460 | fb3c33cb64ecfa673f16da0385942f76bde748a1 | refs/heads/master | 2021-07-19T17:57:53.701059 | 2017-10-27T05:33:27 | 2017-10-27T05:33:27 | 108,366,401 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,380 | py | """
Django settings for mysite project.
Generated by 'django-admin startproject' using Django 1.11.6.
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 os
... | [
"johnsuh94@gmail.com"
] | johnsuh94@gmail.com |
a582113ccd4d7aff4595ecaf83c5980d1e086ed2 | ece386649b39403cbb23e4c4071178e178311343 | /blog/admin.py | 46814e609e37e1a6f18bc9b715de4f5ff9a253f8 | [] | no_license | GadinganJayHarley06/my_first_blog | c743352178f570400aa2ba256c4bec9530eb0a76 | b2e5921475c161565bc214290eacd47a237041de | refs/heads/master | 2021-09-06T01:51:10.285943 | 2018-02-01T12:31:19 | 2018-02-01T12:31:19 | 119,833,353 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 212 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# Register your models here.
from django.contrib import admin
from .models import Post
admin.site.register(Post)
| [
"jayharleygadz@gmail.com"
] | jayharleygadz@gmail.com |
2c78b769a6a36326247be3501afa66070e7edcc9 | 4a4e0cc6a1fb19404e9139b77e3c1cdeb7352ee6 | /自动写诗2/write_poem.py | b86a9968067863ab8ff3af02946713525b8ad660 | [] | no_license | zouhuigang/tensorflow | 11193b4f38b24e5635bb155c81afc9e564d1adae | f9d9b4bbcb53e5eeb192740be8470dda31a34af5 | refs/heads/master | 2021-08-28T12:01:47.718920 | 2017-12-12T06:04:32 | 2017-12-12T06:04:32 | 113,291,005 | 10 | 5 | null | null | null | null | UTF-8 | Python | false | false | 6,342 | py | import json
import os, sys,time
import logging
import math
import numpy as np
import tensorflow as tf
from char_rnn_model import CharRNNLM,SampleType
from config_poem import config_sample
from word2vec_helper import Word2Vec
from rhyme_helper import RhymeWords
class WritePoem():
def __init__(self,args):
... | [
"952750120@qq.com"
] | 952750120@qq.com |
270526ead40fed7395ab36a2f0e5538850c9fcd5 | 43575c1324dc0760958a110d7f056bce88422a03 | /listing/arrayqueue.py | fe91f1bc669035d14da292523bec642ed81d0941 | [] | no_license | nicolas4d/Data-Structures-and-Algorithms-Using-Python | 1ffd74d26f09de2057bdc53998a56e56ed77c1de | a879ce6fd4033867783ee487d57d459b029eb5f8 | refs/heads/master | 2020-09-24T12:48:30.726766 | 2019-12-31T03:15:44 | 2019-12-31T03:15:44 | 225,761,970 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,219 | py | # Implementation of the Queue ADT using a circular array.
from array import Array
class Queue :
# Creates an empty queue.
def __init__( self, maxSize ) :
self._count = 0
self._front = 0
self._back = maxSize - 1
self._qArray = Array( maxSize )
# Returns True if the queue is ... | [
"nicolas4d@foxmail.com"
] | nicolas4d@foxmail.com |
331391003523c28eedd1e4d6b841574bbed2b7ce | d3eba05768f13fb77037f094c8cd5bee0a2ce920 | /python/pyclaw/geotools/most2geoclaw.py | 110907c350aefc6585d894e4ed02d90d25a31179 | [
"BSD-3-Clause"
] | permissive | geoflows/geoclaw-4.x | cb262ffcc30b483e4e1bf0ba480f43408cb1b6fd | c8879d25405017b38392aa3b1ea422ff3e3604ea | refs/heads/master | 2023-07-10T06:39:42.774585 | 2021-02-23T20:15:36 | 2021-02-23T20:15:36 | 6,094,587 | 1 | 2 | BSD-3-Clause | 2023-06-28T16:50:43 | 2012-10-05T18:18:31 | Fortran | UTF-8 | Python | false | false | 3,350 | py | """
Module for converting MOST data and output to GeoClaw format.
"""
import os, glob, re
def most2tt3(fname):
"""
Converts MOST topo file to tt3 format.
"""
f = open(fname).readlines()
mn = f[0].split()
ncols = int(mn[0])
nrows = int(mn[1])
xll = float(f[1])
dx = float(f[2]) - xl... | [
"dave.jorge@gmail.com"
] | dave.jorge@gmail.com |
ac5953399a647183382fd235afa3078fcf3f2cf8 | 7c9f28e371e8dfa9290c05a48a9d924484b4b18c | /1.py | e742ff9920b98902a4a6413dc4ff9b62916929d0 | [] | no_license | Pavithralakshmi/corekata | 1f9d963da44a6fdcdedaf2e39452545f6cc52e9b | 06d1c7bba25681ce12e2ab93ce461228afb6b984 | refs/heads/master | 2021-04-30T01:53:37.414318 | 2018-10-11T17:58:39 | 2018-10-11T17:58:39 | 121,491,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 63 | py | s1=input("eter anything")
s2=input("enter somthing")
print(s2)
| [
"noreply@github.com"
] | noreply@github.com |
c663cfef1a695d5be22587d9ff42d87025c79fdc | 9edaf93c833ba90ae9a903aa3c44c407a7e55198 | /netex/models/destination_display_variant_ref.py | 3255e0537fdd4c971133e232146768cd1aa74573 | [] | no_license | tefra/xsdata-samples | c50aab4828b8c7c4448dbdab9c67d1ebc519e292 | ef027fe02e6a075d8ed676c86a80e9647d944571 | refs/heads/main | 2023-08-14T10:31:12.152696 | 2023-07-25T18:01:22 | 2023-07-25T18:01:22 | 222,543,692 | 6 | 1 | null | 2023-06-25T07:21:04 | 2019-11-18T21:00:37 | Python | UTF-8 | Python | false | false | 332 | py | from dataclasses import dataclass
from .destination_display_variant_ref_structure import DestinationDisplayVariantRefStructure
__NAMESPACE__ = "http://www.netex.org.uk/netex"
@dataclass
class DestinationDisplayVariantRef(DestinationDisplayVariantRefStructure):
class Meta:
namespace = "http://www.netex.or... | [
"chris@komposta.net"
] | chris@komposta.net |
1df2674dd840f1c05f994f93ddba2e65067ae23e | 3c639c452fac96b882fe2c26b47545079dd174ec | /RunEventNumberFilter/test/RunEventNumberFilter.py | 480e8087c369be7a4aee8a4529e23d65edb9612d | [] | no_license | cms-nd-user/RunEventNumberFilter | 84825ffdee1cd6aee5a695b21b66d84043859b41 | b47f4144a2e7a91baa726151319e090a45c5cd63 | refs/heads/master | 2021-01-21T13:08:39.958774 | 2013-08-20T16:15:36 | 2013-08-20T16:15:36 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,022 | py | # Auto generated configuration file
# using:
# Revision: 1.168.2.1
# Source: /cvs_server/repositories/CMSSW/CMSSW/Configuration/PyReleaseValidation/python/ConfigBuilder.py,v
# with command line options: SingleGammaPt35_cfi.py -s GEN,SIM,DIGI,DIGI2RAW,RAW2DIGI,RECO -n 2 --conditions FrontierConditions_GlobalTag,MC_36... | [
"slaunwhj@cern.ch"
] | slaunwhj@cern.ch |
beebfb738ee3a7772df0488cef9794e2a300da83 | 2a197966a829ceb02f240f85d70f1c276efd91a3 | /MCP3008_VOC.py | adbd4db4c0f32e40230d0b0275e1e0704bd64273 | [] | no_license | Tinymaxi/Luftmessdaten | 16443a9e0276699569ff7a24942fa4538729a535 | 274859f0cc0758b40b2e8f0796a96699bf4ffa1e | refs/heads/master | 2020-07-13T06:17:53.996156 | 2019-08-28T20:08:33 | 2019-08-28T20:08:33 | 205,014,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 615 | py | import busio
import digitalio
import board
import adafruit_mcp3xxx.mcp3008 as MCP
import time
from time import sleep
from adafruit_mcp3xxx.analog_in import AnalogIn
#spi = busio.SPI(clock=board.SCK, MISO=board.MISO, MOSI=board.MOSI)
spi = busio.SPI(clock=board.D21, MISO=board.D19, MOSI=board.D20)
cs = digitalio.Digital... | [
"noreply@github.com"
] | noreply@github.com |
9292b50897599760a3af3e865199ee693377afc0 | bca910213912e3f74e28b3da920695eabf9bab1c | /sat/list_articles_test.py | 7b6c3905d6be9e414f0bbc7044ab53b5d88b91b0 | [] | no_license | francescobenintende/hub-blog | e9f2850ad030ea3af7051d15a9ee186b770391ee | f8960f229c3806fc1c6989f3ab7b6192f46c982f | refs/heads/master | 2023-06-23T18:10:34.593326 | 2021-07-20T07:04:01 | 2021-07-20T07:04:01 | 387,029,336 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,639 | py | from hub_blog import app
class TestListArticles:
def test_list_articles_returns_articles_with_specified_tags(self):
with app.test_client() as c:
article_to_create_one = {
'title': 'Article One',
'content': 'Lots of interesting content.',
'tags': ... | [
"francescobenintende@icloud.com"
] | francescobenintende@icloud.com |
a32df99969cc2b00821ca9dfd9e146584b61aad7 | ed63b9b615c0f1484746e87b54a0c0b233ddf5c2 | /tests/test_parser.py | 90b755aedee63b62e364f59f3cb3c53381aaf2e0 | [
"MIT"
] | permissive | timofurrer/embedeval | ae02026da6cd5601b16afe1cbb543552cbf461ac | 08a69c950c9a0ac59a8a0ca728af2627c7bcc43a | refs/heads/master | 2020-07-29T10:41:56.322842 | 2020-01-20T10:32:46 | 2020-01-20T10:32:51 | 209,766,108 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,581 | py | """
embedeval
~~~~~~~~~
NLP Embedding Evaluation Tool
:copyright: (c) 2019 by Timo Furrer <tuxtimo@gmail.com>
:license: MIT, see LICENSE for more details.
"""
import textwrap
import uuid
import numpy as np
import pytest
from embedeval.parsers.word2vec_gensim import load_embedding as gensim_load_embedding
from embe... | [
"tuxtimo@gmail.com"
] | tuxtimo@gmail.com |
03f01b12540d4dda0403bbe2e399a4ae7b21bdfd | 76caf7060397c9b697e61613a40bd4d27dd93128 | /manage.py | 9105de0fd8553cd0f7e1d10ee894681e49aaf073 | [] | no_license | balaprasadmb/Eblogger | a0bb0f894e876ca86290bb70291271f43b64c5a3 | 115f931fb55914477db142909c755fc4cb431537 | refs/heads/master | 2022-12-02T19:10:22.442511 | 2020-02-25T12:27:55 | 2020-02-25T12:27:55 | 89,342,554 | 0 | 0 | null | 2022-11-22T04:28:20 | 2017-04-25T09:29:32 | CSS | UTF-8 | Python | false | false | 260 | py | #!/usr/bin/env python
import os
import sys
if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "eblogger.BootCamp.settings")
from django.core.management import execute_from_command_line
execute_from_command_line(sys.argv)
| [
"noreply@github.com"
] | noreply@github.com |
1e7fd967ad595fb9792cb574c9219de21724fb93 | ac652ff7636d4c3336918d0f96aa8ea1bba3ab28 | /fastvid/posts/serializers/postmodel.py | c0152d21e28e0e4c646800e2244e7b172f680400 | [] | no_license | pn101/fastvid | eebff58e9dd6b967a52361713ed34462e0713d88 | 9f57c577c558906e3fd5c3ab44f112588ae84ed2 | refs/heads/develop | 2021-01-20T18:58:34.398325 | 2016-07-05T09:29:49 | 2016-07-05T09:29:49 | 61,545,668 | 0 | 0 | null | 2016-06-20T13:14:42 | 2016-06-20T12:22:08 | null | UTF-8 | Python | false | false | 412 | py | from rest_framework import serializers
from posts.models import Post
class PostModelSerializer(serializers.ModelSerializer):
username = serializers.CharField(source='user.username')
class Meta:
model = Post
fields = [
'pk',
'username',
'title',
... | [
"philipnam101@gmail.com"
] | philipnam101@gmail.com |
5dd69b1619ff38f19f642f1981ad84e205ad6583 | 49f6ecfbf4cf66b0867311ce7d4ba5f690410b2f | /greeter_client.py | bc93f9ed2c90fa240e53385b66881e941c070aaa | [] | no_license | jha8/grpc | b93d434d6c1c58517de52a4158092069cc29c900 | 0d24e265addfd25806b807c0457a275bc1805887 | refs/heads/master | 2021-09-24T15:27:00.380727 | 2018-10-10T22:25:00 | 2018-10-10T22:25:00 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | # Copyright 2015 gRPC 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 applicable law or agreed to in writing... | [
"joeha909@gmail.com"
] | joeha909@gmail.com |
7968b2e1e5caed24d71f1e3153d7880c5f146136 | ea9704f1bddb32cc608525147f5d414184063de5 | /app/api/tokens.py | a98a8df86f54b70cf34ef45c2a98af54f62b59ba | [] | no_license | bastienbeurier/partners-web | f7fbcdf473873c76fe1b487e788e5c0391aef6a5 | 2903ccacd89f1c699e35df07d093cd7219ffadaf | refs/heads/master | 2022-12-13T07:52:38.645855 | 2018-12-25T10:52:03 | 2018-12-25T10:52:03 | 161,174,359 | 0 | 0 | null | 2022-12-08T01:28:19 | 2018-12-10T12:49:59 | Python | UTF-8 | Python | false | false | 495 | py | from flask import jsonify, g
from app import db
from app.api import bp
from app.api.auth import basic_auth, token_auth
@bp.route('/tokens', methods=['POST'])
@basic_auth.login_required
def get_token():
token = g.current_user.get_token()
db.session.commit()
return jsonify({'token': token})
@bp.route('/to... | [
"bastienbeurier@gmail.com"
] | bastienbeurier@gmail.com |
2b2276e3dd8f08b1dbd9b020b05b911e0447b425 | ec2a196f582effd10d1f1c80a99748597371294b | /2018/cyb_notify/models/model.py | 21736203da773772afb38cd45f7f15213c62d7fc | [] | no_license | baiqianyi/starfish | 71bffd4f2718a7b50c4ff7e6d66afd18dbccff4c | 89e63a0dc06f4cb73b87fae44206cda275f12fbd | refs/heads/master | 2020-03-25T13:48:10.978468 | 2018-08-26T00:27:48 | 2018-08-26T00:27:48 | 143,843,514 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,878 | py | import datetime
import utils.email_notify as en
import pymysql
class model:
def __init__(self,log=None):
self.logger = log
self.begin_delta_time = datetime.timedelta(seconds=360)
self.std_buy = -0.826
self.std_sell = 0.37
# 0.34453064057819965, -0.58066720314595333
s... | [
"710697439@qq.com"
] | 710697439@qq.com |
e27268bc22f9a86622a304e5caac2b5d7ec1d426 | ac8b9ab24164f5f282e9eaad2b2453690e5871c7 | /app.py | f54b84b37867cc222edf5c1d5bbfb3047cc0d0c7 | [] | no_license | Akrosys/M1_Python_EDA | 811cad373c49fea4a007db4213188162d1e199c9 | 7b17b05c5f2afc4da8042585fb385643cb288f18 | refs/heads/master | 2023-01-30T02:21:19.783569 | 2020-12-02T15:59:53 | 2020-12-02T15:59:53 | 313,864,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 683 | py | from flask import Flaskr
import os
import socket
# Connect to Redis
redis = Redis(host="redis", db=0, socket_connect_timeout=2, socket_timeout=2)
app = Flask(__name__)
@app.route("/")
def hello():
try:
visites = redis.incr("compteur")
except RedisError:
visites = "<i>Erreur de connection Redi... | [
"tumasgiu@users.noreply.github.com"
] | tumasgiu@users.noreply.github.com |
51bc17d770c472514c34e571a0a26ef96a715551 | f9235e935286e8b1b0d86957ebf843179ee1f733 | /PasswordLocker/platform.py | 38cabbd9ae56024350f327d77848bfab89a8fcab | [] | no_license | Oladunsi/automate_the_boring_stuff | 4a37203dec24f4c898161e7e517dd02184e247ef | 72963c38b42992c83826f141b0990c1aaf1abfac | refs/heads/master | 2023-02-20T01:52:28.796959 | 2021-01-19T14:02:57 | 2021-01-19T14:02:57 | 282,612,632 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,235 | py | import csv
import pandas as pd
def platform():
UserLocker = {}
Begin = True
while Begin:
platform = input("Enter the name of the platform You want to save its' username and password!!! ").upper()
if platform != "":
UserLocker["Platform"] = platform
UserName = input(f"... | [
"noreply@github.com"
] | noreply@github.com |
b9744336db4592f260f93b389841d5b72c0fcc0d | 960d14fb31f37adf70607e9cb0e986c7764a7bf8 | /pizza.py | 229035f4f512b90d84a0691b358e4a52b2c68c50 | [] | no_license | alexcar/PythonExercises | 7a33e47f7adbcbcb7239b138db1ef6ae04d57c2b | 5f21089b8b9758da948496acc1420869361c58c4 | refs/heads/master | 2023-07-27T01:59:16.110629 | 2021-09-15T19:13:34 | 2021-09-15T19:13:34 | 406,729,057 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | def make_pizza(size, *toppings):
"""Summarize the pizza we are about to make"""
print(f"\nMaking a {size}-inch pizza with the following toppings:")
for topping in toppings:
print(f"- {topping}")
| [
"alexandre.carvalho@live.com"
] | alexandre.carvalho@live.com |
3a2ad1e33b7dc2a198f28492c836efb94a98b834 | 3562fa51db47b1b1e97785191f0c04644d47c283 | /python/plat3/2152.py | 62489943de0aeb7ac35dc6bf78cf5e4aa950e1b3 | [] | no_license | seono/algorithm | c74181d564525e3a0214824c4a619c51cd52a042 | 78a252b29290eaa1ea076d76cd83e5dbbb7d8d89 | refs/heads/master | 2021-07-13T07:13:41.523888 | 2021-04-24T14:05:00 | 2021-04-24T14:05:00 | 244,609,427 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,697 | py | import sys
from collections import deque
sys.setrecursionlimit(100000)
input = sys.stdin.readline
N, M, S, T = map(int,input().split())
adj = [[] for _ in range(N+1)]
for i in range(M):
s,t = map(int,input().split())
adj[s].append(t)
cnt,SN = 0,0
dfsn = [0]*(N+1)
scc_arr = []
scc_num = [0]*(N+1)
finished = [Fa... | [
"tjsh0111@gmail.com"
] | tjsh0111@gmail.com |
1523aeb6c776c3d3f4d1591ad4e5cc42e0987fcf | fe149dc01dd185f43197038c97d6cc049fb6ba68 | /blog/migrations/0004_auto_20190419_0845.py | 7b8c4632fef3d25a4ea6ad97561f8a19c285b5b1 | [] | no_license | LBarry97/mysite | eee6e0971d394cf20f75d99919e067944b5ec714 | 5715add5c362e90e731afc6544007aafdfa6e0a3 | refs/heads/master | 2020-05-02T23:10:37.837629 | 2019-04-19T09:21:36 | 2019-04-19T09:21:36 | 178,274,075 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,273 | py | # Generated by Django 2.1.7 on 2019-04-19 08:45
from django.db import migrations, models
import django.db.models.deletion
import modelcluster.contrib.taggit
import modelcluster.fields
class Migration(migrations.Migration):
dependencies = [
('taggit', '0002_auto_20150616_2121'),
('blog', '0003_bl... | [
"lansanabarry97@gmail.com"
] | lansanabarry97@gmail.com |
cfc2f2d584cba1ecced6cada0df5775d6baf7951 | e8b23cacc1856e87319491200c2b24778fcd6699 | /Blackjack/blackjack.py | 1cfeddf18158a678cc2bc60cf68bcf08acc53d22 | [] | no_license | ACNoonan/PythonMasterclass | 69fa204fea1588458853172483b2b85075ac9829 | 479cfb4c1bc55e4c3480b214fa4028e0f1ed9f2a | refs/heads/master | 2022-12-13T04:28:57.573020 | 2020-09-19T17:23:47 | 2020-09-19T17:23:47 | 263,746,150 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,830 | py | import random
try:
import tkinter
except ImportError: # python 2
import Tkinter as tkinter
player_hit_count = 0
def load_images(card_images):
suits=['heart', 'club', 'diamond', 'spade']
face_cards = ['jack', 'queen', 'king']
if tkinter.TkVersion >= 8.6:
extension = 'png'
else:
... | [
"adamcnoonan@gmail.com"
] | adamcnoonan@gmail.com |
6f47ad10c4d8add20d063805aae912c0a742a686 | 9e988c0dfbea15cd23a3de860cb0c88c3dcdbd97 | /sdBs/AllRun/bd_-11162/sdB_bd_-11162_lc.py | b076fadab2c00cc4cf60f263d06b3a4df11907ba | [] | no_license | tboudreaux/SummerSTScICode | 73b2e5839b10c0bf733808f4316d34be91c5a3bd | 4dd1ffbb09e0a599257d21872f9d62b5420028b0 | refs/heads/master | 2021-01-20T18:07:44.723496 | 2016-08-08T16:49:53 | 2016-08-08T16:49:53 | 65,221,159 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 341 | py | from gPhoton.gAperture import gAperture
def main():
gAperture(band="NUV", skypos=[13.062792,-10.662778], stepsz=30., csvfile="/data2/fleming/GPHOTON_OUTPU/LIGHTCURVES/sdBs/sdB_bd_-11162/sdB_bd_-11162_lc.csv", maxgap=1000., overwrite=True, radius=0.00555556, annulus=[0.005972227,0.0103888972], verbose=3)
if __name__ ==... | [
"thomas@boudreauxmail.com"
] | thomas@boudreauxmail.com |
9a4a7f80301f045fa5e68ed1f5e0ef3af3e86480 | 00d4b8f0e974692af26da891a2ed0612d989abf0 | /script/program.py | 36fedeb83629aafae8369e4ff3dcb65972151391 | [
"MIT"
] | permissive | meteorolog90/PROGRAM | a8697d6781fb935b2b3545ef10bd2aad11e6d9df | 93ab22ef9c0cfb7cd0c833c08c5c7ed6318291ab | refs/heads/master | 2021-07-16T07:22:50.436225 | 2019-02-19T20:52:19 | 2019-02-19T20:52:19 | 147,817,658 | 0 | 1 | null | 2018-11-05T21:53:32 | 2018-09-07T12:00:53 | Python | UTF-8 | Python | false | false | 5,990 | py | #! /home/martin/anaconda3/bin/python3.6
import pandas as pd
import numpy as np
import cartopy.crs as ccrs
import cartopy.feature as cfeature
from matplotlib.colors import BoundaryNorm
import matplotlib.pyplot as plt
from metpy.gridding.gridding_functions import interpolate, remove_nan_observations
def main ():
whi... | [
"meteorolog90@hotmail.com"
] | meteorolog90@hotmail.com |
f5c2f6f667942466f986c459ee041e49ea69a197 | c1975972f4ebf8ce40515a0f09a6cb4aca951d94 | /venv/Scripts/easy_install-3.8-script.py | d2540252aaa23d2747328ccf4c55798dc84f918e | [] | no_license | anqier-lala/PO_001 | e30eb77b9a4be2614831b32ec47b8aa75fde87f6 | 0f0a437b2b4d1d7b393d41af1a1afcef92975d41 | refs/heads/master | 2022-07-03T19:00:51.789440 | 2020-05-19T15:29:57 | 2020-05-19T15:29:57 | 259,664,322 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 438 | py | #!D:\Git_code\PO_001\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==40.8.0','console_scripts','easy_install-3.8'
__requires__ = 'setuptools==40.8.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys... | [
"13077313846@163.com"
] | 13077313846@163.com |
32b305acaf5f83143bcdae4ddd616f2adcd7642a | 686248eaf40284ed593768057c58aeebaeae1497 | /cg.py | 9e0807e3b58cd3dd8e51a7fcd66bf9cd276a3220 | [] | no_license | chyyuu/kernel-call-graph | 76e6d3b4599886b3eac46083457fad472dc7d9a8 | 76fb610220bfae24f686f0bd37d8d806bf374548 | refs/heads/master | 2021-07-11T12:31:06.361565 | 2017-10-15T16:05:39 | 2017-10-15T16:05:39 | 106,992,794 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 537 | py | # -*- coding: utf-8 -*-
"""
Spyder Editor
This is a temporary script file.
"""
import networkx as nx
import matplotlib.pyplot as plt
#G=nx.path_graph(4)
#nx.write_adjlist(G, "/chycode/kernel-call-graph/g2.txt")
#G=nx.read_adjlist("/chycode/kernel-call-graph/g2.txt", create_using=nx.DiGraph())
#nx.write_adjlist(G, "/ch... | [
"yuchen@tsinghua.edu.cn"
] | yuchen@tsinghua.edu.cn |
813f053bea3bd35889f9553328b8c671b5afb626 | f23959561944599f02943350429eb76d8ad4cf81 | /hangman.py | b82bbc9228432b32684e559efabda769a60ab9bd | [] | no_license | yuuNishimura/hangman | 822b7df229215c6c4462bf1db775553473606e0b | 9b7f98cc6df93d9ce0fefd96916b5ed6f9ec9678 | refs/heads/master | 2023-06-17T18:11:22.030088 | 2021-07-13T09:26:07 | 2021-07-13T09:26:07 | 385,514,400 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,138 | py | import random
def hangman():
a = ["cat", "dog"]
n = random.randint(0, 1)
word = a[n]
wrong = 0
stages = ["",
"________ ",
"| | ",
"| 0 ",
"| /|\ ",
"| | ",
"| / \ ... | [
"westside020810@gmail.com"
] | westside020810@gmail.com |
33b855bde50b1d0eaf72ec0bde4d3cd78ab60fc0 | f2a97b4077d3988e2413ec7e6406ae6a5bc41ecb | /assignment 2/wormup-2/string_match.py | 0f5e76cd9048ef3d343254ebd85a3ec18e6b6c74 | [] | no_license | Sahyoun98/CS498 | 0cdc05add4faa061d6f88d7c6b270781ecf9d81f | 073de710d75a241b021ff93c9da504c5d49b8469 | refs/heads/master | 2020-03-30T14:17:43.993681 | 2018-10-15T03:29:44 | 2018-10-15T03:29:44 | 151,308,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 160 | py | def string_match(a, b):
length = len(a)
if length > len(b):
length = len(b)
x = [1 for i in range(length - 1) if a[i:i+2] == b[i:i+2]]
return len(x) | [
"hamzehsahyoun@yahoo.com"
] | hamzehsahyoun@yahoo.com |
b4819e1ec3e683284917e6a9291f28ae1220f9c7 | 85a9ffeccb64f6159adbd164ff98edf4ac315e33 | /pysnmp-with-texts/DELL-NETWORKING-TC.py | a5184bbe6b70262343039230a6f6eb6c4efb5c16 | [
"Apache-2.0",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | agustinhenze/mibs.snmplabs.com | 5d7d5d4da84424c5f5a1ed2752f5043ae00019fb | 1fc5c07860542b89212f4c8ab807057d9a9206c7 | refs/heads/master | 2020-12-26T12:41:41.132395 | 2019-08-16T15:51:41 | 2019-08-16T15:53:57 | 237,512,469 | 0 | 0 | Apache-2.0 | 2020-01-31T20:41:36 | 2020-01-31T20:41:35 | null | UTF-8 | Python | false | false | 18,834 | py | #
# PySNMP MIB module DELL-NETWORKING-TC (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/DELL-NETWORKING-TC
# Produced by pysmi-0.3.4 at Wed May 1 12:37:51 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, ... | [
"dcwangmit01@gmail.com"
] | dcwangmit01@gmail.com |
d67eb25ac2e4909f2eeb6a8ba705f13acca87cad | 9ce6a0eaba9f82d536ca4348a1594f90f5d67638 | /zException.py | 33d0d6ef5a48bf8d56b71c83d909615745a662ae | [] | no_license | Jeevankv/LearnPython | 028d57ac7b6b68d129e9769541ae509df8ef204d | 504b96795b6ccd107f0b176adc142246f9a26094 | refs/heads/master | 2022-12-21T15:53:27.669206 | 2020-09-01T10:36:38 | 2020-09-01T10:36:38 | 279,399,567 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 236 | py | #Exception Handling
a=int(input("Enter A\n"))
b=int(input("Enter B\n"))
def Divide(a,b):
try:
c=a/b
return c
except Exception as e:
print(e)
x = Divide(a, b)
print(x)
| [
"noreply@github.com"
] | noreply@github.com |
a092eb7078a59ea3dcfd2d364d4380b098066ba6 | c6da89d2af85263fe73cdaa74735c95deae3e951 | /not_used/mod_fair_stochastic_dominance.py | cf2721fadb06eef2fc9fb44c976063a54ae0e97e | [] | no_license | antonm94/Fairness_in_Bandits | 7489fb97f94c1b2116756ab76f1ac705687e088d | f37960efd1ef84e5d21f9c402393851f6c050305 | refs/heads/master | 2021-09-10T21:48:21.001625 | 2018-04-02T21:46:39 | 2018-04-02T21:46:39 | 106,277,769 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,165 | py | import random
import numpy as np
from thompson_sampling.calc_c import c_alg2
from fairness_calc import smooth_fairness
class ModFairStochasticDominance(object):
def __init__(self, bandits, T, e1, e2, delta, lam, distance):
self.k = bandits.k
self.arm = bandits.arms
self.r_theta = bandit... | [
"manton@student.ethz.ch"
] | manton@student.ethz.ch |
9df31fb3505037651d94f77ee635edd5db359530 | 710c6104124e57f778701291d573e746bbc559f3 | /teambuildingapp/env/bin/virtualenv | a574068755fad926eb2cb1903956c89cd0f2fa64 | [] | no_license | ckjoon/teambuilding | 711791952828529ac4c5a44d23a883ae66680836 | ee49e95e1cd56f4e7d8efbb46ab1c38b200c08a6 | refs/heads/master | 2020-04-09T13:33:33.205704 | 2016-12-04T20:20:25 | 2016-12-04T20:20:25 | 68,007,148 | 2 | 0 | null | 2016-12-04T20:20:25 | 2016-09-12T12:31:40 | HTML | UTF-8 | Python | false | false | 255 | #!/Users/JChoi/teambuilding/teambuildingapp/env/bin/python3.4
# -*- coding: utf-8 -*-
import re
import sys
from virtualenv import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"ychoi302@gatech.edu"
] | ychoi302@gatech.edu | |
90040b20dd66779595a0aa99340b7c09f6b8acaf | 235da299e64f217d5fc581bbe20d2020b989ea45 | /server/api/mongo/mongo.py | 5c31178c466ab317e207089a97118722ec687a55 | [] | no_license | DAWZayas-Projects/CORTINA-GUDE-JACOBO | 5f902c225e3bf78ba74758abe1c92168bca5b561 | 10c9cfd10fbbdade3a2c048c985aa289b1aa826f | refs/heads/master | 2021-01-12T01:40:13.236300 | 2017-06-19T19:38:36 | 2017-06-19T19:38:36 | 78,414,986 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 215 | py | from pymongo import MongoClient
try:
client = MongoClient()
db = client.AIPowerDB
print ("Connected successfully!!!")
except Exception as ex:
print ("Could not connect to MongoDB: %s" % ex)
client
| [
"jacobcg@gmail.com"
] | jacobcg@gmail.com |
71626b5ee0ccfe0ba075fb9842f193a99eeca3fa | 030b801cb9bed35be80bb305d60c155f806513a5 | /regex/regex.py | ef3129779cd88011001158299266d448c4056e85 | [] | no_license | Yerkonite/py4e | 67dea6f2843266cf789cc05ae1c9ed7f96614fae | dfaf2a8c4eaf0575762a810b79bb332128bbdef9 | refs/heads/main | 2023-01-03T17:29:40.070949 | 2020-11-02T11:29:22 | 2020-11-02T11:29:22 | 306,399,198 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | # Search for lines that start with 'X' followed by any non
# whitespace characters and ':'
# followed by a space and any number.
# The number can include a decimal.
import re
fname = input("Enter file:")
hand = open(fname)
y = []
for line in hand:
line = line.rstrip()
x = re.findall('[0-9]+', line)
if len(x... | [
"47889623+blackstar17@users.noreply.github.com"
] | 47889623+blackstar17@users.noreply.github.com |
1e3299112d0d4a422e71d7d55d2a4869b4e74dc6 | 917e376668f325c0452fe05fcf3f6348a6ac4336 | /tests/xla_interpreter_test.py | d3b758aa0cb0e09d3959f3ad74c8e0192d75cc0a | [
"Apache-2.0"
] | permissive | wusixer/jax | 5f8d78a89679db74d0d62806725cc820246d4b4e | 66de981e1dfbe04a41b2c003f171fea7bb92585f | refs/heads/main | 2023-06-15T09:10:45.599555 | 2021-07-06T01:58:11 | 2021-07-06T01:58:11 | 383,305,925 | 0 | 0 | NOASSERTION | 2021-07-06T01:32:55 | 2021-07-06T01:32:55 | null | UTF-8 | Python | false | false | 1,252 | py | # Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | [
"no-reply@google.com"
] | no-reply@google.com |
b4b13074223e847e9ab9ad0da398eb22f327322b | 5b8325ad8ec8e87fe85a74ada8f064b0a3ed8b94 | /main.py | 3d1afd8c64df97b7e9f99d3584ece9b90c09f0ec | [] | no_license | Ilyaslat/teensinAI_equipe6 | a9e48fe0a9d7ef5567c057dbf30b5fa88ed917db | 4d60eb9fffe646f759d916579e2a1dce771a3e99 | refs/heads/main | 2023-08-13T18:31:11.203045 | 2021-10-11T19:53:09 | 2021-10-11T19:53:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,667 | py | import tensorflow as tf
from tensorflow import keras
from tensorflow.keras import layers
# Define our training input and output data with type 16 bit float
# Each input maps to an output
X = tf.constant([[0, 0], [0, 1], [1, 0], [1, 1]], dtype=tf.float16)
Y = tf.constant([[0], [1], [1], [0]], dtype=tf.float16)
# Cr... | [
"noreply@github.com"
] | noreply@github.com |
a11834a8740c99d04887a515be714497458a6f92 | 33b3ab4ac3f1c4f8db6be538777a9d16c0c9045d | /textmine.py | 8f197587fa7ca7523dfaaa48ba51603e19610c63 | [
"MIT"
] | permissive | fredryce/stocker | fbe643d3406fbf63af6a13562afd8822e65e244a | 041fbe8348f7a035a607a214477cf423c4259171 | refs/heads/main | 2023-07-12T20:00:54.328703 | 2021-08-03T22:13:33 | 2021-08-03T22:13:33 | 392,459,545 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,964 | py | import spacy
import sqlite3
import pandas as pd
import json
import robin_stocks as r
import yfinance as yf
import re, string
from os import makedirs, getcwd, path
import threading
from datetime import datetime, timedelta
#for the user, associate the user with the most recent stock he/she disccussed about
#we can use th... | [
"xwang2945@floridapoly.edu"
] | xwang2945@floridapoly.edu |
8432bf99fe707d484f269c98c4d0077f351f625e | e931efb116e93cc2b92b472a7cf37bbf7be0598f | /DB_project/manage.py | 16f16eb5e9813dc12720e594bb6ee70b08668355 | [] | no_license | ghazalb76/DB_project | f4a2dd38c5e2be4a1ac5335ca468f0f541b08f88 | ac1edafffcc40f2779cbd0180534a22dc586d4f8 | refs/heads/master | 2021-01-04T20:23:18.186963 | 2020-02-15T16:25:09 | 2020-02-15T16:25:09 | 240,747,130 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 630 | py | #!/usr/bin/env python
"""Django's command-line utility for administrative tasks."""
import os
import sys
def main():
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'DB_project.settings')
try:
from django.core.management import execute_from_command_line
except ImportError as exc:
raise Imp... | [
"ghazal.b93@gmail.com"
] | ghazal.b93@gmail.com |
4c1f5b0e0a57e6c3f61c17a248587224aafe2656 | 9910a1e38dc02abd0e0684b83601c950598aa179 | /Bookmarks/models.py | c2045fe8ca931b508736934afbd17c660fd23bfc | [] | no_license | crispad/Bookmark-app | 2197b8bc25b927f02a7c61512203759e82e7e34b | 4430240799a0b67d7f196cf256b2a2a1676d9829 | refs/heads/master | 2020-03-21T14:18:07.095404 | 2018-06-27T07:33:36 | 2018-06-27T07:33:36 | 138,650,471 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 542 | py | from django.db import models
from uuid import uuid4
from django.contrib.auth.models import User
class Bookmark(models.Model):
id = models.UUIDField(primary_key=True, default=uuid4, editable=False)
title = models.CharField(max_length=200)
url = models.URLField(unique=True)
created_at = models.DateTimeFi... | [
"crispad06@gmail.com"
] | crispad06@gmail.com |
427df9e17f2ecf2d62cae9972583d48410810886 | 46def0fe8f0c3106e7abd5675730ec1905dc3a29 | /customer_transfer/models.py | 3327a7c616316ce3f47c0e570c86c8bfa172087d | [] | no_license | PillaiManish/Bank-Website-Django- | 23c88d4e694f8534918b58ed9cf31e246acaf020 | dd63deb94b52f429a6ff3560a4d5f522e9a56c1c | refs/heads/master | 2022-11-29T04:53:17.784472 | 2020-08-17T13:33:51 | 2020-08-17T13:33:51 | 245,742,928 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 320 | py | from django.db import models
# Create your models here.
class customer_transfer(models.Model):
self_userid = models.IntegerField()
to_userid = models.IntegerField()
date = models.DateField(auto_now=True)
to_amount = models.IntegerField()
def __str__(self):
return str(self.self_userid) | [
"pillaimanish00@gmail.com"
] | pillaimanish00@gmail.com |
acce8e1a21ccf28ffadc38b8002f50cdbcf6987b | afdda9b5185826747814dd82fdf74f809cfa62ef | /Python/tdw/librarian.py | ce2301ec287ecfd7eebbf45a81bb85c00ca3ed8d | [
"BSD-2-Clause"
] | permissive | lijin929/tdw | e011b831c650a383a22e7e16d934c7940416fcd0 | 957cff2b400fbd24e31bbae886c307ecb7a74cdb | refs/heads/master | 2023-08-14T22:35:29.172322 | 2021-09-14T13:52:30 | 2021-09-14T13:52:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 18,269 | py | import json
from typing import List, Dict, TypeVar, Union, Generic, Optional, Tuple
import pkg_resources
from pathlib import Path
import platform
from secrets import token_hex
class _Record:
"""
Abstract class for a metadata record.
"""
_PLATFORM = platform.system()
def __init__(s... | [
"alters@mit.edu"
] | alters@mit.edu |
a6f533ee1a748cadb33dd88731d1d874b6732849 | b138195f988aa6ce71ad35fc4d5707c2127739bb | /sesc_mate/wsgi.py | 6b7c2401184455e99900682d72ae1d9ac59abd21 | [] | no_license | WoodieDudy/SESC_MATE-backend | 46866cf449ab9b7be2401088967d593b4db396e9 | e46df5d9d6f8bca798965618963ba27a31e2dd23 | refs/heads/master | 2023-04-17T02:05:46.836769 | 2021-04-22T12:20:09 | 2021-04-22T12:20:09 | 359,822,475 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 395 | py | """
WSGI config for sesc_mate 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_SET... | [
"goshagks@yandex.ru"
] | goshagks@yandex.ru |
c35af357be8ae118dde3133aaaff753973cb786b | f756eedd0fd4cee9b369978d1e20287dd579e4da | /InmoovScript/services/7_Inmoov.py | ac1ef25dc0796c3cb41c2579757db642007edf0a | [] | no_license | linuxrodo/inmoov | cf02421443d6976f153a64c898e2c209e32cc246 | fe8391d6d59ccdf6bdf5b382872fdf4bf77f4b09 | refs/heads/master | 2021-01-21T09:06:52.835689 | 2017-02-23T04:07:38 | 2017-02-23T04:07:38 | 82,861,443 | 0 | 0 | null | 2017-02-22T23:05:24 | 2017-02-22T23:05:24 | null | UTF-8 | Python | false | false | 934 | py | # ##############################################################################
# INMOOV SERVICE
# ##############################################################################
# ##############################################################################
# MRL SERVICE CALL
# #############################... | [
"moz4r@free.fr"
] | moz4r@free.fr |
304cf36358cb78ff18c9f2fa5b28c3e25c49d023 | 8b3426e770056ae7d3d946dc2dc324bbaab4391c | /collatz.py | 0b9ac12199daace07475c0a719d631f4fefff323 | [] | no_license | ctrl101/journey | 9743896ca64cf2a2913823ffab4213b4e1988b5e | 893f8ce08005c5e89f4b5ccba870f8b726ae21f8 | refs/heads/master | 2023-01-13T15:08:14.346450 | 2020-11-17T01:12:54 | 2020-11-17T01:12:54 | 313,557,148 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 297 | py | def collatz(number):
if number % 2 == 0:
print(number // 2)
elif number % 2 == 1:
print(number += 1)
try:
number = int(input("Enter number :"))
while number > 1:
collatz(number)
number = number // 2
except:
print("must be an interger")
| [
"wevans560@gmail.com"
] | wevans560@gmail.com |
01cfcefe303540943ca361d2cab65b79310ffdd5 | fb7e69d5dfe309c90b7eba06e5cfef3ecaa141a7 | /v2.0/exercise9.7.2.py | 46f4e072ff6b6e30b2f25cfa775728f2170965da | [] | no_license | ajsaule/Python | 9e74c46b8f804faaaa18c2506f01d9d09d6f7a8d | d3546001822e6a514411e5ed5369f6b2cc18cee4 | refs/heads/master | 2020-05-09T16:12:22.800696 | 2020-03-15T23:02:58 | 2020-03-15T23:02:58 | 181,262,464 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 198 | py | file = open(input('Please type filename to open: '))
read = file.read()
count = dict()
for line in read:
if line.startswith('From'):
select = dict(str(line[34:36]))
print(count)
| [
"noreply@github.com"
] | noreply@github.com |
5d7a771e779f0b24d4bc1ae2bf01ac98e9d0c325 | 9423dd5312d6c05f61ec902a26ff627c6ef58f97 | /Python/functions/get_middle_point.py | 6d5bb3a5c5f3d271d454c9c6da74dc57df5a617c | [] | no_license | NehvedovichVlad/small_tasks | 01c093b07d521da59c559591559d61e81829df0f | 1c4085e3a2f0a4530c82f57b98f0f83b18e68567 | refs/heads/main | 2023-03-17T15:49:04.480092 | 2021-03-11T20:29:05 | 2021-03-11T20:29:05 | 308,935,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,013 | py | """"
Середина отрезка
Напишите функцию get_middle_point(x1, y1, x2, y2),
которая принимает в качестве аргументов координаты концов отрезка
(x_1; \, y_1)(x 1;y1) и (x_2; \, y_2)(x2;y2)
и возвращает координаты точки являющейся серединой данного отрезка.
"""
# -----------------------------------------------------------... | [
"vladislavnehvedovich@gmail.com"
] | vladislavnehvedovich@gmail.com |
7f574f502fc6e92a306eb7d28de67fe32e7f5549 | 3e3038c14e081bb110a702bcd385b54cd41a6261 | /879/879.py | f9e5434cbee5596262fbd6fb2addf7800dec5024 | [] | no_license | michael153/leetcode | 0f1535ae511f74fd60f479ed644c677de7ece1cb | 4be3b0d6892028f6abff1e0ec9c05e0b1e721c0b | refs/heads/master | 2020-07-04T09:09:12.192768 | 2019-08-13T23:35:57 | 2019-08-13T23:35:57 | 202,235,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 878 | py | class Solution(object):
def profitableSchemes(self, G, P, group, profit):
"""
:type G: int
:type P: int
:type group: List[int]
:type profit: List[int]
:rtype: int
"""
mod = (10**9 + 7)
dp = [[0 for __ in range(G + 1)] for ___ in range(P+1)]
... | [
"m.wan@berkeley.edu"
] | m.wan@berkeley.edu |
ea844bd080f216727d29578c7e83e37d9e5000c6 | e949a970f404a501d54ec0ea5cce6a9d8b0abc3e | /10chapter13某城市财政收入影响因素分析及预测模型(未完成)/code/chapter13Adaptive_Lasso变量选择模型.py | 6df38f606feb93dbacdf4287cdd433851b38653b | [] | no_license | xuhande/Data-analysis-and-mine-using-python | 3b20a25b9fc2d88e1e29d71b38a9a7589a92ff12 | 34a97afdc60a52d4ef72c5edf6f715182ddb57f7 | refs/heads/master | 2023-09-06T06:52:05.505839 | 2019-03-31T08:32:04 | 2019-03-31T08:32:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,106 | py | """模型参数
x1:社会从业人数; x2: 在岗职工工资总额;x3: 社会消费品零售总额; x4: 城镇居民人均可支配收入
x5: 城镇居民人均消费性支出;x6: 年末总人口;x7: 全社会固定资产投资额; x8: 地区生产总值
x9: 第一产业产值; x10: 税收; x11: 居民消费价格指数;x12: 第三产业与第二产业产值比
x13:居民消费水平;y: 财政收入
"""
import pandas as pd
from sklearn.linear_model import Lasso
import numpy as np
data = pd.read_csv('../../data2/C13_data1.csv')
... | [
"bihua201402@sina.com"
] | bihua201402@sina.com |
26413742d0a2765fe4de84c03b8f3b80530d12a0 | ba0e5bd46a81a0bbbaabc9f1bdb5ed08f04b5d1e | /boards/models.py | 6cd9eba0dbbba05989ef57081d24a9ac4eadf5a2 | [] | no_license | okok0415/Cheating_Detection | 2bdecbae289d946723269cd3cf9e47c63f9b5f14 | 4bdf63e987f32b3b511f361c6e5224da5a682205 | refs/heads/main | 2023-04-24T18:59:27.406963 | 2021-05-04T10:23:37 | 2021-05-04T10:23:37 | 353,056,284 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 400 | py | from django.db import models
from users import models as user_models
class Board(models.Model):
""" Board Model Definition """
title = models.CharField(max_length=200)
content = models.TextField()
user = models.ForeignKey(
user_models.User,
on_delete=models.SET_NULL,
null=Tr... | [
"dlawjdals11@naver.com"
] | dlawjdals11@naver.com |
4c8658c14906c41768a4f2f85fcae70ef46c9d23 | c78c1919b78751e88a8fa6816c27b6b173ba245f | /06_1_loss_and_optimizer.py | 224cac213a97ce3b013893ec7525074da72eab1c | [
"MIT"
] | permissive | umit-ai/pytorchTutorial | 742055e6abccc167f3bc821e800afca34ea0e769 | aa2573f1e829e7f1201e53dbb9df351785229fac | refs/heads/master | 2022-04-21T13:53:06.504027 | 2020-04-13T17:01:38 | 2020-04-13T17:01:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,015 | py | # 1) Design model (input, output, forward pass with different layers)
# 2) Construct loss and optimizer
# 3) Training loop
# - Forward = compute prediction and loss
# - Backward = compute gradients
# - Update weights
import torch
import torch.nn as nn
# Linear regression
# f = w * x
# here : f = 2... | [
"pythonengineerman@gmail.com"
] | pythonengineerman@gmail.com |
681900145067710e4f147f7537e281b59275efcb | e1a0a211adfdeaac830607ef01922ad2d7c602b5 | /cifar10.py | 0072978dc078387e4f3e6a51c60651a0d7d019ca | [] | no_license | yixu34/tftest | 7a0f294072ef491d3750917ce42afd09db561bf8 | 45efd9854faf217180350b4a9a42a2ad417e2c3d | refs/heads/master | 2022-12-09T12:38:07.948849 | 2020-08-24T00:23:08 | 2020-08-24T00:23:08 | 289,611,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 803 | py | import tensorflow as tf
from tensorflow.keras import layers
(x_train, y_train), (x_test, y_test) = tf.keras.datasets.cifar10.load_data()
x_train, x_test = x_train / 255.0, x_test / 255.0
model = tf.keras.models.Sequential([
layers.Conv2D(
filters=32,
kernel_size=(3, 3),
activation='relu',
in... | [
"yixu34@gmail.com"
] | yixu34@gmail.com |
2324633dffd51ed394a8b21d1ac6260a2f93d21b | 598caea4a632c7fbf1598a341b192fe19329f5cc | /bi-gram/test-new.py | e6b18bf534aea2ca91c274d2e78d16ef4e51f2d9 | [] | no_license | vijaym123/EECS-337-TweetAnalysis | c8917f6ab88413e9b9b67885e9d6d2db6b68cc09 | 3cba4c16b56832f2a91e81cc022c11ae3002622e | refs/heads/master | 2020-05-22T14:34:28.410722 | 2014-02-25T19:10:13 | 2014-02-25T19:10:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 13,389 | py | import re
import json
import nltk
from nltk.corpus import wordnet as wn
from collections import defaultdict
import math
from lxml import html
import requests
import sys
import unicodedata
year = raw_input("Golden Globes year: ")
pagename = "http://www.goldenglobes.com/awards/" + year
print "\n"
page = requests.get(p... | [
"vijaym123@gmail.com"
] | vijaym123@gmail.com |
defeb5a0a197d38f8b8809a81f0557ed0285e0b3 | dcf4df0c24fb2ba4f44ccc3e625e56aeabce5d9f | /calificaciones/urls.py | 021f927d58bdbab25719afd8c89f3099886c7c26 | [] | no_license | arelyibarrrivas13/calificaciones_Django | 19f5acfe051079d86fb4194f1f2487a2cdc34ddb | ead6a96db2f838ba045bb73f2683ceb6bf04c7ac | refs/heads/master | 2022-07-29T13:43:46.827219 | 2020-06-18T01:50:29 | 2020-06-18T01:50:29 | 273,113,800 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,109 | py | """calificaciones URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.0/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: path('', views.home, name='home')
Clas... | [
"48133757+IbarraRivasArely@users.noreply.github.com"
] | 48133757+IbarraRivasArely@users.noreply.github.com |
ddf9ff835fbc973f18c4f56f5c0ff7440397ec56 | 2ab444e427955d3dbf1f8c0947837c7d73e66a0a | /25-刘杰-北京/第九周/datasets/__init__.py | b57add28328dba5e5f4d023c2bafaed95b186619 | [] | no_license | Yang-chen205/badou-Turing | 6bfc0a4622cb0882f89117e73e2868d40601e7ff | f2a1b2f8b6b292815d92a294d49954616d3624d5 | refs/heads/main | 2023-08-07T03:57:07.471322 | 2021-09-26T08:20:10 | 2021-09-26T08:20:10 | 380,449,981 | 1 | 0 | null | 2021-06-26T08:12:02 | 2021-06-26T08:12:02 | null | UTF-8 | Python | false | false | 157 | py | #!/usr/bin/python
# -*- coding: utf-8 -*-
'''
@Project :badou-Turing
@File :__init__.py.py
@Author :luigi
@Date :2021/8/31 4:18 下午
'''
| [
"86213076+luigide2020@users.noreply.github.com"
] | 86213076+luigide2020@users.noreply.github.com |
3e307d287b62bc1365c9f84b092ce3f6e3f832fb | f370072d7d07681654d4a8c06b23e6508af5679c | /untitled1.py | ce7a8aabe886fbfd4e2e10628e197dab9749f4b8 | [] | no_license | Thitsugaya1/python | 58268f3544907db3e03a06d57119437ba942bc2e | 6de59c4c576d73e8552e3bd6a74ab49fda140097 | refs/heads/master | 2021-07-15T17:46:54.608543 | 2020-07-31T17:09:43 | 2020-07-31T17:09:43 | 194,190,801 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 392 | py | # -*- coding: utf-8 -*-
"""
Created on Tue Apr 01 19:47:47 2014
@author: Toshiron
"""
Cantidad_horas = float(raw_input("cantidad de horas: "))
Cantidad_anios = float(raw_input("Edad: "))
Total_Horas = Cantidad_anios*8760
Hd = 24/Cantidad_horas
Ho_dormidas = Total_Horas/Hd
Di_dormidos = Ho_dormidas/24
Yea... | [
"noreply@github.com"
] | noreply@github.com |
cec69182b84e9aa6bff4f48d54f59182d811ddf5 | de847b2e9a5236887fb6a164fedc0e0c86b84e6c | /pythonturorial/workshopprograms/userinput.py | 0b0ce93aae289361bd5e6a95386c281114c27be5 | [] | no_license | raghuprasadks/pythonmicrosoftexam | 9a6bcafcdbc5bb6727278f421bb1a31dc5b7427b | 68dacab8aa98d0ff39f1f36c3ce8e666be3760a0 | refs/heads/master | 2020-09-15T02:51:06.809959 | 2020-02-12T01:18:42 | 2020-02-12T01:18:42 | 223,330,626 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 475 | py | name = input("Enter your name")
print(type(name))
print('your name is ',name)
age = int(input("enter your age"))
print('your age is ',age)
nextyear = age +1
print('your age after one year',nextyear)
amount = float(input("Enter the payment made for purchase of fruits"))
print('float conversion',amount)
print("Enter ... | [
"prasadraghuks@gmail.com"
] | prasadraghuks@gmail.com |
fa81b6f980eefe4e61b156f0138eb67cf63c9040 | 34ec71e93a70c951e02f54f764ab401b9f739a70 | /FIEK-UDP/UDP_Klient.py | cab73eb248a6e06527dca912c336ca9003958618 | [] | no_license | FortesaHysenaj/Socket-Programming | b2057e66c7250cbdd69fe0d7d9a51c15e193b2b5 | 753a2a9313ff9d3796d6a30d70a923fe69b94631 | refs/heads/master | 2020-05-05T08:49:31.819994 | 2019-04-29T23:57:30 | 2019-04-29T23:57:30 | 179,879,523 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,054 | py | import socket
host = 'localhost'
port = 12000
print("----------------------------UDP KLIENTI-----------------------")
socketClient = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
print("Zgjedhni nje metode: \nIPADRESA\nNUMRIIPORTIT\nHOST\nBASHKETINGELLORE (+shkruaj nje fjale-fjali)\n"
"\nPRINTIMI (+shkruaj n... | [
"fortesa.hysenaj@studentet.uni-pr.edu"
] | fortesa.hysenaj@studentet.uni-pr.edu |
f8568e77c3e2310bd5d6c4a15288dd45bdcee7e4 | 3aaa2da49ef0f20897aa6580dc976d362d944aa8 | /parserInfor/parserInfor/settings.py | 5be1b2fbdf83292e2c4568e96ce0e2b77cdd6cc9 | [] | no_license | loyoen/parser | 8b995a70c06daba109a977ed888488a13a174e3e | 48323a01696d6cf4909fe1ca659acb825e6e2f3c | refs/heads/master | 2016-09-05T13:47:17.552809 | 2013-09-21T06:09:22 | 2013-09-21T06:09:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,624 | py | # Django settings for parserInfor project.
import os
DEBUG = True
TEMPLATE_DEBUG = DEBUG
ADMINS = (
# ('Your Name', 'your_email@example.com'),
)
MANAGERS = ADMINS
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
'NAM... | [
"Zenas@MICROSO-5K70BVP.(none)"
] | Zenas@MICROSO-5K70BVP.(none) |
2196349d34fe90de1d957e98c7117e16312f2e30 | d5080d96e40525f6d3cbf3f97910234fb4c35ee2 | /program/classifierExp.py | 12c35c44b61ff4c502d0903d0bc4a31aaf1442f0 | [] | no_license | kojotek/contest_at_least_we_tried_public | 2e1d60ae86f3a72340495d2d8d9d8f57f37ef506 | dc9959f3aee618b7b65a9b0bd17f2499d8529b39 | refs/heads/master | 2020-06-15T05:23:02.547145 | 2016-12-10T16:30:58 | 2016-12-10T16:30:58 | 75,324,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 746 | py | print(__doc__)
import numpy as np
import matplotlib.pyplot as plt
from sklearn import linear_model, datasets
# import some data to play with
iris = datasets.load_iris()
X = iris.data[:, :2] # we only take the first two features.
Y = iris.target
h = .02 # step size in the mesh
logreg = linear_model.LogisticRegres... | [
"dargemir@wp.pl"
] | dargemir@wp.pl |
740e1452267d94475b889877c0ab43214417c4d9 | 7c870e0f5951becc0242eb664b855e1404246e16 | /LeetCode/76.最小覆盖子串.py | e5e4a44bd156d83322bfaac4a010f1b809883477 | [] | no_license | kobe24167/Study | 73a0dddfee4e9067c6a49d2a218f5d57086a4bd7 | 8d85d746b9e0882bfb40ada208b689178bc8f3d8 | refs/heads/master | 2022-12-24T18:28:19.129921 | 2021-06-29T01:52:21 | 2021-06-29T01:52:21 | 161,650,160 | 2 | 0 | null | 2022-12-16T09:57:04 | 2018-12-13T14:24:40 | JavaScript | UTF-8 | Python | false | false | 1,463 | py | #
# @lc app=leetcode.cn id=76 lang=python3
#
# [76] 最小覆盖子串
#
# https://leetcode-cn.com/problems/minimum-window-substring/description/
#
# algorithms
# Hard (36.06%)
# Likes: 240
# Dislikes: 0
# Total Accepted: 13.9K
# Total Submissions: 40K
# Testcase Example: '"ADOBECODEBANC"\n"ABC"'
#
# 给你一个字符串 S、一个字符串 T,请在字符串... | [
"A9A7FD10AB8FD700CAD43011EEDFB4B7@i-search.com.cn"
] | A9A7FD10AB8FD700CAD43011EEDFB4B7@i-search.com.cn |
884621be26ade33f8eb4183988131399d396086b | e28ad0328a7c44573b90b613650dcdf80a99991a | /Examples/for.py | ccd20002a614e78500f5b8ed0418ebe95d7e70e4 | [] | no_license | ryankennedy712/Python | 34f3fbcff5e6b474877f08936ac746828ed03ff1 | 9282008ef949e7215d5e9bb0c948164b306a7b3b | refs/heads/master | 2020-06-11T00:14:33.494819 | 2020-03-02T00:46:59 | 2020-03-02T00:46:59 | 193,801,252 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 289 | py | #for loop
#for loops are annoying to get a hang of.
#they are more advanced while loops
#range() allows you to generate a temporary list of numbers given what you enter
#the first number is the start, the second number is the end but wont be included.
for x in range(1,10):
print(x)
| [
"34756837+ryankennedy712@users.noreply.github.com"
] | 34756837+ryankennedy712@users.noreply.github.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.