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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6dc7df348f7ef3111d18950993f5efc39de88ea9 | 41d95796e81289c87ef839ab78e74decb862d556 | /Website_Scanner/general.py | eb69beec20a259e92191c11a442cab9ffbc7de01 | [] | no_license | Sliking/Redes | 770446b5be0118f39af9860e8d6f78957a279478 | 32183dfe0abcb005b2c622c3878b0db8f2208cb7 | refs/heads/master | 2021-01-10T15:47:32.462242 | 2015-11-26T23:38:27 | 2015-11-26T23:38:27 | 45,213,119 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 317 | py | import os
def create_dir(directory):
print("[DEBUG] Checking folder")
if not os.path.exists(directory):
os.makedirs(directory)
print("[DEBUG] Created folder -> DONE!")
def write_file(path, data):
print("[DEBUG] Writing in file")
f = open(path, 'w')
f.write(data)
f.close()
print("[DEBUG] Write -> DONE!") | [
"miguelpinto25@hotmail.com"
] | miguelpinto25@hotmail.com |
8a52bc396fcafcd7f2ed6b20d0b110a3e5a59648 | 1d60c5a7b8ce6277bff514e376f79848f706344c | /Data Scientist with Python - Career Track /22. Machine Learning with the Experts: School Budgets/02. Creating a simple first model/01. Setting up a train-test split in scikit-learn.py | 09e603e05172de82530517858d1031747721ca01 | [] | no_license | DidiMilikina/DataCamp | 338c6e6d3b4f5b6c541c1aba155a36e9ee24949d | 3bf2cf3c1430190a7f8e54efda7d50a5fd66f244 | refs/heads/master | 2020-12-15T13:16:54.178967 | 2020-05-06T17:30:54 | 2020-05-06T17:30:54 | 235,113,616 | 4 | 3 | null | null | null | null | UTF-8 | Python | false | false | 2,016 | py | '''
Setting up a train-test split in scikit-learn
Alright, you've been patient and awesome. It's finally time to start training models!
The first step is to split the data into a training set and a test set. Some labels don't occur very often, but we want to make sure that they appear in both the training and the test... | [
"didimilikina8@gmail.com"
] | didimilikina8@gmail.com |
541ace914988b412fc67783dc869ac4be019861e | f7893f02b386bcbbb19f5fd8102b742d59de221b | /educazione civica/data_analysis.py | b08694352b2f2f1d623c91a575035d130561e603 | [] | no_license | Nick-Cora/SISTEMI-E-RETI_quarta | 31bb708a72cd13f8c7f78235b1bd0911f6eac9db | 8a10402176885a46cbc1e3660f01c6b941855a49 | refs/heads/main | 2023-06-16T15:10:28.703103 | 2021-07-14T13:49:53 | 2021-07-14T13:49:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,271 | py | '''
This program plot some graphs about CO2 effects on climate changing using matplotlib.
Author: Andrea Tomatis
'''
import matplotlib.pyplot as plt
import csv
def plotEmissionsByYear(emissions):
fig, (ax1) = plt.subplots(1, 1)
ax1.set_title('Emissions by Year and Type')
ax1.set_xlabel('Year')
ax... | [
"noreply@github.com"
] | Nick-Cora.noreply@github.com |
12e4828e3b5e912252a0998ff78bb73a30201e47 | 8d902f52d27bc433534c27ae2c83fa73d5148cf4 | /blog_api/articles/migrations/0002_auto_20201005_1255.py | 492f0a90eff41602e26bd1d40ddb86e6a3a3ccf3 | [] | no_license | AleksanderRadziszewski/zadanko_api_mrx | f39d3f8c3169b683809153fa331aeddcac232ebd | 1197c6533904509467429c3fdf764ae5dadc1f2b | refs/heads/master | 2023-01-22T13:53:15.384122 | 2020-11-20T09:48:24 | 2020-11-20T09:48:24 | 301,105,359 | 0 | 0 | null | 2020-11-16T15:55:34 | 2020-10-04T10:53:44 | Python | UTF-8 | Python | false | false | 929 | py | # Generated by Django 2.2.6 on 2020-10-05 12:55
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('articles', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='Article',
fields=[
('id',... | [
"radziszewski.aleksander@gmail.com"
] | radziszewski.aleksander@gmail.com |
668a774ae59db7287f12b14d726b4dfd98b97063 | 6b757245104fc83aec31d87a07a40b1fa75648ad | /spec/lab_results.spec | 940b4ed432dc49e9e50f479d22626a95923a7a54 | [] | no_license | BaobabHealthTrust/module_chronic_care | d8a74edb3aa30822986217300aca747f884b98e0 | b4652c9dd1ed9f8ebdba25783f3e99883dfd2b55 | refs/heads/master | 2021-01-04T14:18:56.341563 | 2015-06-10T11:32:21 | 2015-06-10T11:32:21 | 9,372,578 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,024 | spec | P.1. LAB RESULTS [program: CHRONIC CARE MODULE, label: Lab Results]
C.1.1. For all patients capture the following lab results
Q.1.1.1. Test Type [pos: 1, concept: Test Type, field_type: number]
O.1.1.1.1. FASTING BLOOD SUGAR
O.1.1.1.2. NON-FASTING BLOOD SUGAR
O.1.1.1.3. RANDOM BLOOD SUGAR
O.1.1.1.4. CHOLESTEROL FASTING... | [
"F88kavutausiwa@gmail.com"
] | F88kavutausiwa@gmail.com |
9b930250c80b39f856585160a5b1f150a3d9355a | 6053cef7fc0b063a6105cd38659ba082ee706335 | /tweettools/blockmute.py | 945725ca153e6f977a12db922ae170e6fb90aabe | [
"MIT"
] | permissive | jdidion/blockmute | 18dd24535d75d6c8998a432a1a5b657a3e91b93f | 05984da637206d2bc5c69d2f68b10a1df4f9985f | refs/heads/main | 2021-01-19T19:52:16.657531 | 2018-04-29T01:20:39 | 2018-04-29T01:20:39 | 101,212,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,470 | py | #!/usr/bin/env python
# Block everyone you've muted, and vice-versa.
from argparse import ArgumentParser
import time
from tqdm import tqdm
from tweettools import get_client
def blockmute(api, sleep_secs=300):
mutes = set(api.GetMutesIDs())
blocks = set(api.GetBlocksIDs())
new_blocks = mutes - blocks
... | [
"github@didion.net"
] | github@didion.net |
11f4eb1213cc849d8556bf6e1d9aa1f0ca6f08b8 | 1b7da2f11e509828476e21ca665279602de7b509 | /portal/users/forms.py | 661f5b3ff3f721fe5bdc8ca0f4e8022ce56aa3f7 | [] | no_license | rosenene/oap | 922f3955e4f3a583e6829eed0d518f2c7f806d58 | 32598b7d6c9d6677c889258f21752878ad30d0a5 | refs/heads/master | 2022-04-26T20:31:37.850145 | 2020-04-16T07:47:19 | 2020-04-16T07:47:19 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,478 | py | from django.contrib.auth import get_user_model
from django import forms as django_forms
from django.contrib.auth import forms, get_user_model
from django.core.exceptions import ValidationError
from django.utils.translation import ugettext_lazy as _
from django.contrib.auth.models import Group
from cv_registration impor... | [
"marijani.hussein@eganet.com"
] | marijani.hussein@eganet.com |
1f329583d0700cf40723e268122106387cae7255 | 31a60b44e078fa75033c4deb8528c2da9726a370 | /run_files/191012_regularizer_comp_toy.py | 2fa0dbccf291c278969dfc082ea0e8ba0d5509a6 | [] | no_license | janmaltel/stew | 85f8d4592ab1c06ced21c99a8ea480c679562f8b | a1ed53499c6ace8a92a83b959680f89cf95cf5b7 | refs/heads/master | 2021-12-29T16:39:38.138520 | 2021-12-15T13:35:04 | 2021-12-15T13:35:04 | 157,102,775 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,544 | py | import numpy as np
import stew.example_data as create
import stew.mlogit as mlogit
import stew.utils as utils
import matplotlib.pyplot as plt
from stew.utils import create_diff_matrix
from sklearn.linear_model import LinearRegression
from stew.regression import *
import matplotlib.pyplot as plt
import os
from datetime ... | [
"j.m.lichtenberg@bath.ac.uk"
] | j.m.lichtenberg@bath.ac.uk |
f48dc0bb0e3338adb57a05756843397e2ed53700 | e00367eb58bee8756cde8bd3218a26188e06f691 | /a1.py | 01f8ecc1eccdd5726ab516fd6d58fd90fa303679 | [] | no_license | kc113/pyprog1 | 176b345b09e9ba8317777401a6b2fa9257b03799 | 0f6067b6adfa9d9244093d9d60d2489ad3f57dbe | refs/heads/master | 2021-07-04T07:32:29.032604 | 2020-09-09T13:44:04 | 2020-09-09T13:44:04 | 169,087,473 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,876 | py | def seconds_difference(time_1, time_2):
""" (number, number) -> number
Return the number of seconds later that a time in seconds
time_2 is than a time in seconds time_1.
>>> seconds_difference(1800.0, 3600.0)
1800.0
>>> seconds_difference(3600.0, 1800.0)
-1800.0
>>> s... | [
"noreply@github.com"
] | kc113.noreply@github.com |
e0d35b7ac5b882a39a6e7533e9b46ac4bddf2677 | 27752fee55422acb5264f3e19fa45c6ab421338d | /convetions/dd_game.py | 85d73a3f18d03f0dfcf8422d46f269be85dcc7f5 | [] | no_license | Tuzosdaniel12/learningPython | 0be4ae6c2aa4e45744afc1bac5bf38b932433023 | 966fcc6a05e2b203f8d134b8ac0d3f0f179ad19a | refs/heads/main | 2023-06-03T07:55:18.228505 | 2021-06-17T09:34:54 | 2021-06-17T09:34:54 | 359,373,334 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,756 | py | import logging
import random
logging.basicConfig(filename="game.log", level=logging.DEBUG)
logging.info("You wont see this")
logging.warn("OH NO")
player = {'location': None, 'path': []}
cells = [(0, 0), (0, 1), (0, 2),
(1, 0), (1, 1), (1, 2),
(2, 0), (2, 1), (2, 2)]
def get_locations():
mon... | [
"danielsoledad@gmail.com"
] | danielsoledad@gmail.com |
e27620ac43423c4e604d8e08a4bc43ff1c01c49e | c9c97b5f002577f97fe14fb12951cec7dae5c3e1 | /data/jpg_to_npy.py | eb0019236a7071b28919ec4a1afaec2cc1c26ed9 | [
"Apache-2.0",
"MIT"
] | permissive | trandaitai327/ml-lab-02-classification | b44eed12ff4568031a6c78a5c36f5c5a819977c8 | 0130e89eef80e9f69d2a6c578313841c770bc7f7 | refs/heads/main | 2023-05-30T19:25:38.418310 | 2021-06-07T15:18:42 | 2021-06-07T15:18:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,829 | py | import os
import numpy as np
import cv2 as cv
import pandas as pd
IMG_ORIGINAL_SHAPE = (1365, 2048, 3)
def center_crop(image,out_height,out_width):
image_height, image_width = image.shape[:2]
offset_height = (image_height - out_height) // 2
offset_width = (image_width - out_width) // 2
image = image[... | [
"lenam.fithcmus@gmail.com"
] | lenam.fithcmus@gmail.com |
803580c059f93d0449041f08382f5606284c6fb1 | c08c6f4aafcb20664901bc3c03bb494d21b27a27 | /ECES_ETUDIANTS/models.py | 97e17f5e127e6b81ee89bf2857b329b0a77c9df1 | [] | no_license | sodelblaude/ECES | a2697035ab4f92e8539d961141feb5a66620baf7 | 40516a6b1ee70819abf7efaf018129d8ca1ab6c2 | refs/heads/master | 2020-06-07T17:57:29.045477 | 2019-06-21T08:38:26 | 2019-06-21T08:38:26 | 193,067,417 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | from django.db import models
#LE MODELE PERMET DE DEFINIR NOS CLASS
# C'est ici que nous allons mettre toute nos classes
#de notre application
class Etudiant(models.Model):
Nom=models.CharField(max_length=15)
Prénom=models.CharField(max_length=15)
Age=models.CharField(max_length=10)
Adresse=models.Cha... | [
"valdymat103@gmail.com"
] | valdymat103@gmail.com |
ca3c02332d3ccf4d3e891037df99d35e83248cb1 | 6af6b8e3ddb4cf58c3f630bb1ac8f68a9fadf195 | /0019_Remove_Nth_Node_From_End_of_List/RemoveNthNode.py | 66b56ff7cc4aa7755407823db20b1548c667afc3 | [] | no_license | alanx3x7/LeetCode | 40b956b6b09201a746871634682f35091dabaf9b | e93e9cb9592c9900244475e3abc1ec0838e84b96 | refs/heads/master | 2022-12-31T08:43:39.972063 | 2020-10-12T14:48:19 | 2020-10-12T14:48:19 | 292,080,551 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | # Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode:
dummy = ListNode(0, head)
list_len = 0
first = head
... | [
"alanx3x7@gmail.com"
] | alanx3x7@gmail.com |
8123946902a81003128ee0d87a5c4b3bb5e41636 | 2948b4b847e0932d54a886b04d13e922d15fb91f | /venv/Lib/site-packages/pip-10.0.1-py3.6.egg/pip/_internal/utils/appdirs.py | 2384e888b657f541d44c50ba3e234c597041991a | [] | no_license | SESCNSUTeam/game-pycharm-lesson | 7a91835d7da7567934c24f383903b377abb44bb9 | 564d7ae73066e902132cc30ba3498442c340a959 | refs/heads/master | 2020-04-11T15:57:14.240735 | 2019-03-17T09:24:23 | 2019-03-17T09:24:23 | 161,908,485 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,194 | py | """
This code was taken from https://github.com/ActiveState/appdirs and modified
to suit our purposes.
"""
from __future__ import absolute_import
import os
import sys
from pip._vendor.six import PY2, text_type
from pip._internal.compat import WINDOWS, expanduser
def user_cache_dir(appname):
r"""
Return ful... | [
"43309818+JulianIsFree@users.noreply.github.com"
] | 43309818+JulianIsFree@users.noreply.github.com |
2d83f6345f4629fb349ea3e2aa1ecd09b77cec8b | 6fa701cdaa0d83caa0d3cbffe39b40e54bf3d386 | /google/ads/googleads/v8/googleads-py/google/ads/googleads/v8/services/services/account_budget_proposal_service/transports/base.py | 86d3e463eb723e6cf5e1dcff665b4d0e784c1fce | [
"Apache-2.0"
] | permissive | oltoco/googleapis-gen | bf40cfad61b4217aca07068bd4922a86e3bbd2d5 | 00ca50bdde80906d6f62314ef4f7630b8cdb6e15 | refs/heads/master | 2023-07-17T22:11:47.848185 | 2021-08-29T20:39:47 | 2021-08-29T20:39:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,334 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"bazel-bot-development[bot]@users.noreply.github.com"
] | bazel-bot-development[bot]@users.noreply.github.com |
8de03800ce956e70bd058db4c1cd6136cf605ddc | bc946239f484f07904909fa65515fda74ceb71ce | /ejerciciotriangulo.py | a0cd8795c334875618ec8f2e2a06e9dc567f723e | [] | no_license | janethM99/equisD | 4cf39d0fa693aa9f56bddd227f5d13473f645184 | 0862c7f8ba3d7f8bc8e5ee10734741d9ad1fa532 | refs/heads/main | 2023-05-29T13:30:35.475221 | 2021-06-18T01:25:58 | 2021-06-18T01:25:58 | 374,511,751 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 219 | py | #calcular la base y la altura de un triangulo#
base = float(input("ingresar la base del triangulo: "))
altura = float(input("ingresar la altura del triangulo: "))
print(f"El area del triangulo es {(base * altura)/2}") | [
"aleja.malave@outlook.com"
] | aleja.malave@outlook.com |
e893065715e7c4684f02b3c02e766926ea42f323 | 8b05c8484443fda9c25bdaf522a85c64a0318f23 | /dynamic_carousel.py | a836cd3a4d93a2939c200272094971a72e8888d0 | [] | no_license | jash-kothari/facebook_ads_automation_cli | 12583a19897b315f585231107e6d9270c6f8249f | 9a2cb5e465086d34eb82b8a1da84b4f5e7cccd84 | refs/heads/master | 2021-06-08T15:38:44.143490 | 2016-09-27T07:49:33 | 2016-09-27T07:49:33 | 69,229,976 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 668 | py | from facebookads.objects import Ad
from facebookads.adobjects.campaign import Campaign
import header
import create_adset
import dynamic_cards
choice = raw_input("Please enter yes to create a new Adset or enter no to choose existing one.\n").lower()
if 'yes' in choice:
adset_id = create_adset.create_adset()
else:
ads... | [
"jash.kothari@Mirraw.com"
] | jash.kothari@Mirraw.com |
4ce08d3a81f2c8daa89d41aab8e8d1e00d37a966 | ca8a39e0f5b4f23a03738599f724748f9fd3a6a8 | /climbing-stairs/climbing-stairs.py | 088084d73bcef2500b62c15534cc913bd336f483 | [] | no_license | eschanet/leetcode | 01bafec756267a17dbac75dba80b86ef527b7fdc | 9fe6714d440a445ca0c7b5e2f2a2c0410157ae63 | refs/heads/main | 2023-07-18T10:29:56.502817 | 2021-08-29T16:13:23 | 2021-08-29T16:13:23 | 370,804,844 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 345 | py | class Solution:
def climbStairs(self, n: int) -> int:
if n == 1:
return 1
elif n == 2:
return 2
first, second, third = 1, 2, 3
for i in range(3,n+1):
third = first + second
first, second = second, third
re... | [
"eric.schanet@gmail.com"
] | eric.schanet@gmail.com |
cc472b1754e73618c88e880b49f00b891157f7e0 | 2e682fd72e3feaa70e3f7bf2a3b83c50d783ec02 | /PyTorch/dev/cv/image_classification/DPN-68_ID1889_for_PyTorch/timm/data/dataset.py | 4b32a3a0617ad45b963c62d5fc03f7d56de6b2f8 | [
"GPL-1.0-or-later",
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"BSD-3-Clause",
"LicenseRef-scancode-generic-cla",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"CC-BY-NC-4.0"
] | permissive | Ascend/ModelZoo-PyTorch | 4c89414b9e2582cef9926d4670108a090c839d2d | 92acc188d3a0f634de58463b6676e70df83ef808 | refs/heads/master | 2023-07-19T12:40:00.512853 | 2023-07-17T02:48:18 | 2023-07-17T02:48:18 | 483,502,469 | 23 | 6 | Apache-2.0 | 2022-10-15T09:29:12 | 2022-04-20T04:11:18 | Python | UTF-8 | Python | false | false | 6,548 | py | #
# BSD 3-Clause License
#
# Copyright (c) 2017 xxxx
# All rights reserved.
# Copyright 2021 Huawei Technologies Co., Ltd
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain ... | [
"wangjiangben@huawei.com"
] | wangjiangben@huawei.com |
2841931a07574dad65ab0d24dd0ced987d5314b0 | 60a8a5afdf4d9bbc89d067b2659cd35534910563 | /core/theblog/urls.py | 58d056b865e3ed48c6e2ee325cdad96000edf7fe | [] | no_license | momentum-cohort-2019-02/w4-miniblog-dmm4613 | ab684a03cecbe0678afc6998a456a4f3394e6ab1 | 25acb00633f552770e4a28547dacfedee389d5c4 | refs/heads/master | 2020-04-27T19:08:34.042290 | 2019-03-11T14:13:57 | 2019-03-11T14:13:57 | 174,603,642 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 414 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.index, name='index'),
path('blogs/', views.BlogListView.as_view(), name='blogs'),
path('blogs/<int:pk>', views.BlogDetailView.as_view(), name='blog-detail'),
path('bloggers/', views.BloggerListView.as_view(), name='bloggers... | [
"dmm4613@gmail.com"
] | dmm4613@gmail.com |
57f473dd8feae656978a9fd608936ecdf4093c69 | 7fb2a7e98be8bef537a3e7b81c27b1796e69a050 | /apps/cart/views.py | a0cc07f656e890ae28a37207988d98adf34ae556 | [] | no_license | zxallen/Django_T | 06442d58959c67a5d743cd52f1e32be274d378e6 | 95635216218c371f355f0c4e9f2184e5b6cb34a1 | refs/heads/master | 2021-09-10T05:26:18.021278 | 2018-03-21T04:55:21 | 2018-03-21T04:55:21 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,217 | py | from django.shortcuts import render
from django.views.generic import View
from django.http import JsonResponse
from goods.models import GoodsSKU
from django_redis import get_redis_connection
import json
# Create your views here.
class DeleteCartView(View):
"""删除购物车记录:一次删除一条"""
def post(self, request):
... | [
"hellojiazhixiang@gmail.com"
] | hellojiazhixiang@gmail.com |
aa59338c2545d309d57041a93ac7d16d875edb83 | a4d3d7515b9cbe29bb125f13db311faad45cd596 | /Practice Python/12_ListEnds.py | 820037ff21736246576b999ef7c0b15dc9e77892 | [] | no_license | DanilaFadeev/computer-science-course | 0e48be4d56197a99b6f3dbfa2298aba3f0b3653f | b7386d3c09640bb52248493f1d407af6ab0e35e5 | refs/heads/master | 2021-05-19T13:11:22.008971 | 2020-07-07T21:51:16 | 2020-07-07T21:51:16 | 251,716,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 518 | py | # https://www.practicepython.org/exercise/2014/04/25/12-list-ends.html
# Write a program that takes a list of numbers (for example, a = [5, 10, 15, 20, 25]) and makes a new list of only the first and last elements of the given list.
# For practice, write this code inside a function.
from random import sample, randint... | [
"demidovich.daniil@gmail.com"
] | demidovich.daniil@gmail.com |
2d91756e0b88a97e6793befb1bbdbb48bc1aeaed | 2d6bdc525085bd3409833f824b830725068ac2b3 | /hw3-awelsh/lr.py | 461b6b8234a15b2d09985a9891d602c123adf102 | [] | no_license | xelarock/machine-learning | a3835281b57291563573a3ca6cb415e306bb7d2c | 8d05bc2fab74cb42de18614b1f5ba400490deb64 | refs/heads/master | 2023-01-04T20:04:40.785530 | 2020-11-14T03:56:44 | 2020-11-14T03:56:44 | 289,991,271 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,763 | py | # THIS CODE IS MY OWN WORK, IT WAS WRITTEN WITHOUT CONSULTING CODE WRITTEN BY OTHER STUDENTS.
# Alex Welsh
from abc import ABC, abstractmethod
import pandas as pd
from sklearn.metrics import mean_squared_error
import numpy as np
class LinearRegression(ABC):
"""
Base Linear Regression class from which all
... | [
"welsh6263@gmail.com"
] | welsh6263@gmail.com |
0dcac4aca6617a9ef7da23c13d41c070f15d4041 | 3d9689945a2b40f4ffc975e19eb21a68aa1e12e3 | /homepage/migrations/0001_initial.py | 86c909114bf4830e62b7d346987f2bf770c291bf | [] | no_license | mjdemory/RoastBoast_assessment | 45adcb8715435dd2e8220e51c5e377a443faefa2 | 2d3d8b595c3b9ef52328ee6a4a762e0de2d42ff1 | refs/heads/master | 2022-12-01T18:11:52.871404 | 2020-08-21T20:39:18 | 2020-08-21T20:39:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 724 | py | # Generated by Django 3.1 on 2020-08-21 15:04
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='RoastBoastModel',
fields=[
('id', models.Auto... | [
"mjdemory2891@gmail.com"
] | mjdemory2891@gmail.com |
de8445c9a181dc0ebfe77e5d5325e310352fb5c9 | 458cbc8f3f9db206901fff7d8da14d2069b55468 | /Plugin/Edit Labels Scripts/Recover index.py | 42213a4be44cf1b9e0a7bf6b0f28956f392770db | [] | no_license | gergelyk/lv_edit_labels_plugin | e0374fb5d0a8b40edbf0d6c9d48ac51361c47c8d | d9cd5069eff07b66c10aef5d8aac42164c13de06 | refs/heads/master | 2021-01-12T09:20:59.923098 | 2016-12-11T00:03:52 | 2016-12-11T00:03:52 | 76,143,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 819 | py | # Append index at the end of the label, unless it is already there.
# Example:
# foo -> foo 2
# foo 1 -> foo 1
# bar -> bar 1
import re
indices = {}
has_index = []
cores = []
for label in labels:
core, index = re.match( '(.*?)(\\d*)$', label).groups()
core = core.strip()
has_index.appe... | [
"grzegorz.krason@gmail.com"
] | grzegorz.krason@gmail.com |
453574190afbadf01fad742c24929e94bf313b5f | baed2c2da1f776c0968d3cacd2fa45bdbe5482d6 | /S4cam/groupedCameras/TMP/legacy_designs/TMP_baseline_rev_multicam_test3_elliptical_stop_leaders_8_39/elliptical_aperture/3_mk_merit_func_align_prism_and_set_margin.py | e83b329923c4042e2689350f76cda65679e0d9ef | [] | no_license | patogallardo/zemax_tools | 5ae2fe9a1e8b032684b8cf57457ee4f3239d9141 | 90d309c2f96c94469963eb905844d76fa2137bf9 | refs/heads/master | 2023-01-08T22:52:16.865852 | 2022-12-20T21:36:28 | 2022-12-20T21:36:28 | 234,634,525 | 7 | 3 | null | null | null | null | UTF-8 | Python | false | false | 8,451 | py | import zmx_api
import zmx # noqa
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
from progressbar import progressbar
import os
XRADIUS = 2500
YRADIUS = 2747
TARGET_KEEPOUT_RADIUS_MM = 150.0
def eval_distance_to_rim(max_rs, MFE, surfnum):
qsum_rownums = []
radius_rownums = []
MFE.... | [
"26889221+patogallardo@users.noreply.github.com"
] | 26889221+patogallardo@users.noreply.github.com |
b0180f0833dca1b9127dd50372deb32c85234b22 | c39ab19ab18c0d52e9d678998ba07a3735e11743 | /aboutPython/DATAstructure By Python/3.5_quicksort.py | df8d7f84d9c00582f8d612eacd84657dd3418586 | [] | no_license | presscad/Some_codes | 8037fd3ef9cb38bb9066351823ba0a67b05870cc | 5f830bb06be0af9361c1eefd0a7648981feec827 | refs/heads/master | 2020-09-13T06:14:46.789228 | 2018-09-27T11:13:04 | 2018-09-27T11:13:04 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py |
def swap(lyst,i,j):
"""Exchange the items at position i and j ."""
temp=lyst[i]
lyst[i]=lyst[j]
lyst[j]=temp
def quiccksort(lyst):
quicksortHelper(lyst,0,len(lyst)-1)
def quicksortHelper(lyst,left,right):
if left<right:
pivotLocation=partition(lyst,left,right)
quicksortHelper(lyst,left,pivotLocation-1)
... | [
"ruiruiwangpr@163.com"
] | ruiruiwangpr@163.com |
2a14be9deb50ba0595ead2eb7bdf6e778ae11912 | 5ea83cda3e20500064d15e1069b140082e6e6b0e | /google-cloud-code/next19/demo/python/python-hello-world/src/app.py | 3f0dfc5115774992f8984b08db3617408139e31f | [
"0BSD"
] | permissive | intetunder/k8s | 167db39172f7e1cb5dab0c0d9b864e94b2cfc61b | 2f4da1beb86305c3192fe610ba7fc9610b854346 | refs/heads/master | 2022-12-22T02:08:50.833507 | 2019-07-25T13:41:32 | 2019-07-25T13:41:32 | 184,310,241 | 0 | 0 | null | 2022-12-10T05:07:00 | 2019-04-30T18:14:49 | Python | UTF-8 | Python | false | false | 472 | py | """
A sample Hello World server.
"""
import os
from flask import Flask
# pylint: disable=C0103
app = Flask(__name__)
@app.route('/')
def hello():
"""Return a friendly HTTP greeting."""
message = "Hello Sarah!!!"
return message
if __name__ == '__main__':
server_port = os.environ.get('PORT')
if ser... | [
"sander.hvas@yoti.com"
] | sander.hvas@yoti.com |
50c5dd1046b86e17916c7169ac1be8c2aa36dc0b | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/49/usersdata/107/19461/submittedfiles/pico.py | d085c047956c05bb79cd9376fc75eadbc27af13d | [] | no_license | rafaelperazzo/programacao-web | 95643423a35c44613b0f64bed05bd34780fe2436 | 170dd5440afb9ee68a973f3de13a99aa4c735d79 | refs/heads/master | 2021-01-12T14:06:25.773146 | 2017-12-22T16:05:45 | 2017-12-22T16:05:45 | 69,566,344 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 612 | py | # -*- coding: utf-8 -*-
from __future__ import division
def pico(a):
posicao=0
for i in range (0,len(a)-1,1):
if a[i]> a[i+1]:
posicao=i
break
cont=0
for i in range (posicao,len(a)-1,1):
if a[i] <= a[i+1]:
cont=cont+1
if cont==0 and posicao !=0:
... | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
fbb11fb2821d8cec1aa674e8b8c9774ffa3bb6a0 | a29a73de4df917da642adec96286d7ed3b2a0a42 | /myDPPG/multi.py | 3ab2121bab417ecc06fe4c81341767f8ee807ff4 | [] | no_license | tankche1/Learn-To-Run | 9f0546f2d2c74cf18879579a3ccb2aeb3bea2765 | 27a48c8e1ec5864ab58caa9df4098a1089641cc0 | refs/heads/master | 2021-03-24T11:07:15.949621 | 2017-10-18T14:43:41 | 2017-10-18T14:43:41 | 101,266,609 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,683 | py | from multiprocessing import Process, Pipe
# FAST ENV
# this is a environment wrapper. it wraps the RunEnv and provide interface similar to it. The wrapper do a lot of pre and post processing (to make the RunEnv more trainable), so we don't have to do them in the main program.
from observation_processor import genera... | [
"15307130191@fudan.edu.cn"
] | 15307130191@fudan.edu.cn |
4101fd7aac1737d98b2dfafe6118696400bd4e4a | 844e0cd4ffbe1ead05b844508276f66cc20953d5 | /test/testconfigurationmanager.py | e9fae9d325da652711c99ddbfa3770ec19e87574 | [] | no_license | Archanciel/cryptopricer | a256fa793bb1f2d65b5c032dd81a266ee5be79cc | 00c0911fe1c25c1da635dbc9b26d45be608f0cc5 | refs/heads/master | 2022-06-29T13:13:22.435670 | 2022-05-11T20:37:43 | 2022-05-11T20:37:43 | 100,196,449 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,083 | py | import unittest
import os, sys, inspect
currentdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
parentdir = os.path.dirname(currentdir)
sys.path.insert(0, parentdir)
from configurationmanager import ConfigurationManager
class TestConfigurationManager(unittest.TestCase):
def setUp(... | [
"jp.schnyder@gmail.com"
] | jp.schnyder@gmail.com |
78f6c9508926bb72db7cfc744f340c080d1ff20f | 5a72bbbfa6ba66f8ca8e5d415f7ef8046b703e3a | /espeakui/translate.py | a8f1229b704962f8f9340a400a6909e9867e2ded | [] | no_license | asrp/espeakui | 907a2d09f55c40388780a391d7810ec9852219cf | af4ccdfc3ed10171df4f13046b0a34ab6c591ad7 | refs/heads/master | 2021-08-18T09:51:20.440251 | 2021-01-23T12:13:06 | 2021-01-23T12:23:59 | 83,885,778 | 5 | 0 | null | null | null | null | UTF-8 | Python | false | false | 976 | py | # -*- coding: utf-8 -*-
languages = ["en"]
translate = {lang: list() for lang in languages}
data = """
∈, in
≤, less than or equal to
ε, epsilon
>, at least
<, at most
*, star
=, equal
⊆, subset of
. . ., dot dot dot
"""
for line in data.strip().split("\n"):
line = line.split(",")
source, targets = line[0], lin... | [
"asrp@email.com"
] | asrp@email.com |
f6dc057cbe777ed6682a582199a2f44966ec2911 | d554a95c6e4ccaf48d117d93ea539e03e3f2580c | /probability.py | 0b89ba3aa493d472049d5ff8e057ac0434541a7f | [] | no_license | nflowe3/Data-Science-Scripts | 6c7e7f750cbfee6b4a59b51332beb09ec8897873 | 904d8a591335cb3a2e97829348bde35aff10980f | refs/heads/master | 2016-09-14T12:49:23.180860 | 2016-05-10T06:11:12 | 2016-05-10T06:11:12 | 58,434,315 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,771 | py | from math import sqrt, pi, exp, erf
from collections import Counter
from matplotlib import pyplot as plt
from random import random
def normal_pdf(x, mu=0, sigma=1):
sqrt_two_pi = sqrt(2 * pi)
return (exp(-(x-mu) ** 2 / 2 / sigma ** 2) / (sqrt_two_pi * sigma))
def normal_cdf(x, mu=0, sigma=1):
return(1 + erf((x-mu)... | [
"nflowe3@uic.edu"
] | nflowe3@uic.edu |
3cfd4f568e6ffdcfd6dd491273951a3e1e5b164b | 972ee201b8981e83f05f9425aaac308281599674 | /send_crypto_prices.py | 5d9e8a4f4f20a1b3c7147015340a52dba2ac892d | [] | no_license | asaxenastanford/cryptocurrency | 33c14c69bdfde2b7ca0169028a573e46fc2a2d26 | a3b18c0a62bca0e0eb943f53ff6454ee68622e2f | refs/heads/master | 2021-09-17T16:21:31.403771 | 2018-07-03T21:32:43 | 2018-07-03T21:32:43 | 115,469,346 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,840 | py | import requests
# set up twilio
from twilio.rest import Client
# Twilio Account SID and Auth Token
client = Client("ACccab7c080046b07164cbd6ce8be7720e", "eb69728002b879b6edccc3d6b73541d0")
# Set the request parameters
base_url = 'https://bittrex.com/api/v1.1'
end_point_market = '/public/getmarkets'
end_point_ticker ... | [
"noreply@github.com"
] | asaxenastanford.noreply@github.com |
5ff1be72bc5a23bce877142396a7bf84d88f7fd4 | 005d04d0dfab5996db7e6f5b4d4a5fa167e02bc3 | /task2/src/app.py | ce099b12b0b98264905bc195fd43e35d86226cf3 | [] | no_license | julianctni/imir-16-17 | d37c5becb7ca50fced44f11066ad9a05da97467b | da36a21deaa78324e632d8016d8b01ebbdb03bad | refs/heads/master | 2020-12-02T05:27:22.687795 | 2016-12-20T16:12:28 | 2016-12-20T16:12:28 | 71,782,732 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,758 | py | import os
from tkinter import Frame, Tk, Label, Button, Canvas, filedialog, StringVar, BOTH, TOP, W, E, N, S, NW
from PIL import Image, ImageTk
from search import perform_search
class Size:
def __init__(self, width, height):
self.width = width
self.height = height
class ImageView:
def __init... | [
"finn@schlenk.biz"
] | finn@schlenk.biz |
7a90ea4c923c661c0d964d4b6a668ae80f788fd6 | 1e59b06bc7d5cbe7e52d030d5e0c3ea47926cc20 | /klpmis/django_extensions/management/commands/sqlcreate.py | e4387dd3c7b5cf92dbfddd65d87d1789dc70e47c | [] | no_license | klpdotorg/KLP-MIS | 70b965e90ed4b00de3d1f40d961d6077399ddba6 | 38fde6d51cbc1d07b3930782d93c9f646be50562 | refs/heads/master | 2016-09-06T05:40:36.627085 | 2015-06-18T13:59:02 | 2015-06-18T13:59:02 | 848,517 | 1 | 2 | null | 2013-08-06T12:13:50 | 2010-08-19T10:57:15 | Python | UTF-8 | Python | false | false | 4,139 | py | from optparse import make_option
import sys
import django
from django.core.management.base import CommandError, BaseCommand
from django.conf import settings
class Command(BaseCommand):
option_list = BaseCommand.option_list + (
make_option('-R', '--router', action='store',
dest='router... | [
"basavaraj.hiremath@mahiti.org"
] | basavaraj.hiremath@mahiti.org |
579ea29fb99dc58412be4efc1f1a6bbed9d95ace | 3dc4a2d92d1e06ff48618f7fd9ac28ea5840572d | /docs/nginx_ui_doc_service_backup/gscloud/backup/openstack/ui/services.py | 063acc824258f824d60b9c108404ad0a19c1d0b5 | [] | no_license | padmakarkotule/python-101 | a390153abe783a0725fcbaa8d3d94eab3ab588bd | e6a0d9d742dcdc5ee921169f3447643d18179ba5 | refs/heads/master | 2021-09-25T11:36:02.259512 | 2020-07-02T14:42:24 | 2020-07-02T14:42:24 | 197,585,358 | 0 | 0 | null | 2021-09-22T19:18:16 | 2019-07-18T12:45:28 | Python | UTF-8 | Python | false | false | 441 | py | import sys
import os
from django.conf import settings
from django.conf.urls.static import static
# Class - Used to upload files.
class FileUpload():
def __init__(self, filename, *args):
self.filename = filename
def handle_uploaded_file(self):
filew = 'static/' + self.filename
with ope... | [
"padmakar.kotule@gmail.com"
] | padmakar.kotule@gmail.com |
066554d6b1f8b0a91a6ca227d27ae0ea8cfbd211 | 9a1b033774e371bd6442048f43e862dfb71abed7 | /Comprehensions/Lab/Flattening_Matrix.py | 57887545e4a87d7ca53a75baebc41865c380cf13 | [] | no_license | mialskywalker/PythonAdvanced | ea4fde32ba201f6999cd0d59d1a95f00fb5f674b | c74ad063154c94b247aaf73b7104df9c6033b1a5 | refs/heads/master | 2023-03-09T00:13:28.471328 | 2021-02-24T15:21:11 | 2021-02-24T15:21:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 139 | py | n = int(input())
matrix = [[int(j) for j in input().split(', ')] for i in range(n)]
flat = [x for row in matrix for x in row]
print(flat)
| [
"kalqga123@gmail.com"
] | kalqga123@gmail.com |
79e171b293a11af7c55dcfd304741e6a8dff7301 | 04e51f7266cdf0f7e6688c6efb93afb0759ed58b | /manage_warranties/admin.py | 8a1238dfb81d177d4ba5681acb9136fb2bd3e751 | [] | no_license | clibbon/ASI_Project | e1f976282ababecddb1b8e39a264ae7bda9722de | dbfa96597f7da6c291faa4023a80bc53f03446b3 | refs/heads/master | 2016-09-06T04:57:20.069451 | 2015-04-19T17:13:15 | 2015-04-19T17:13:15 | 31,902,683 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | from django.contrib import admin
from manage_warranties.models import (Customers, Products, ProductSellers,
ProductModels,Importers,Warranties,
MessageHistory)
# Define field views
class CustomerAdmin(admin.ModelAdmin):
list_display = ('c... | [
"alex.clibbon@gmail.com"
] | alex.clibbon@gmail.com |
a25b6496f12166e06a56177364a4c1ecfbc4a31f | ffd5e689f88c49ab7af3554c22dc0c36301084fa | /thinking_and_testing_uniq_or_not_uniq.py | d7b067767d0bea11d3b61a30da4b020ac1ca2f17 | [] | no_license | ellismckenzielee/codewars-python | 1710e6f0499047139479de386927c7dbd5f1cdf6 | af3f4b4534798a58115d0565730aae28ce87437e | refs/heads/master | 2023-08-09T13:38:40.964141 | 2023-08-01T14:45:22 | 2023-08-01T14:45:22 | 168,981,376 | 45 | 18 | null | null | null | null | UTF-8 | Python | false | false | 199 | py | #thinking and testing: uniq or not uniq kata
#https://www.codewars.com/kata/56d949281b5fdc7666000004
def testit(a, b):
a = list(set(a))
b = list(set(b))
a.extend(b)
return sorted(a) | [
"ellismckenzielee@gmail.com"
] | ellismckenzielee@gmail.com |
2608309d75b242e37c62b26375240c97a2840513 | 6ccd7e382c234839d729158740367fa3d0e73d76 | /pc端/serialplot-master/cfgWindow.py | b5ab3ac23c5d5a43edff45d58e1e5fe30491df18 | [] | no_license | mingfeidong/NUEDC | 6b6c3d3311c34195ed9df649549a4047dbd2f6ce | 35f8b741b8259deaf451321ca9dbceb332677949 | refs/heads/master | 2020-09-04T05:49:50.855154 | 2017-07-27T03:36:03 | 2017-07-27T13:00:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 27,842 | py | '''
ConfigFrame is a class that gets packed into the root window. Takes config
settings from the user and passes them into the approrpate functions when the
Go button is pressed
'''
import sys
if sys.version_info[0] < 3:
#If we're executing with Python 2
import Tkinter as tk
import tkMessageBox as messagebo... | [
"grngrngrngrn@163.com"
] | grngrngrngrn@163.com |
b36813afec190c46a7d2302af035a14eaa02a543 | e70a7d9c14279c0b07da8e5ad0a11d858c693294 | /diffusion_benchmarks/iaea3d.py | 150eafbab48127cc88f3b0fad8270f94816ea753 | [] | no_license | Relzohery/detran-examples | 0d035bf04d2fcda94f1f9a6bf48915f0940bcfab | d0937c63fdda36dac54420df723c4243cf3abc27 | refs/heads/master | 2022-12-17T21:23:31.459132 | 2020-09-01T20:49:33 | 2020-09-01T20:49:33 | 279,376,516 | 0 | 0 | null | 2020-07-13T18:04:50 | 2020-07-13T18:04:49 | null | UTF-8 | Python | false | false | 5,873 | py | # detran-examplesdiffusion_benchmarks/iaea.py
#
# Solves the 3D IAEA PWR benchmark problem. Note, because of modeling
# limitations, the void regions beyond the normal reflector are simply
# filled with more reflector.
#
# Reference keff ~ 1.029096
#
# Reference:
# Benchmark Problem Book, ANL-7416, Suppl. 2, Argonn... | [
"robertsj@mit.edu"
] | robertsj@mit.edu |
3d7a692985e73617ae07c6327e87e0e7f1fba9f7 | 6303391d47ed92705d9a390136e52173720cdfaf | /djangogirls/bin/django-admin.py | 2f652ae37aa0a0771b1dc3d4026ce9bbffda36c4 | [] | no_license | GloriaS18/my-first-blog | dbdb49c2c9bd48917395daa14f82795eac94572b | 661940a891106a46731736e27e84e634c7fae65d | refs/heads/master | 2021-01-15T14:58:44.064901 | 2016-09-17T20:15:27 | 2016-09-17T20:15:27 | 68,476,120 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 170 | py | #!/home/ubuntu/workspace/django_girls/djangogirls/bin/python3.5
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"gloriasuriel@hotmail.com"
] | gloriasuriel@hotmail.com |
e5bc633da5a7a8bc72a5896a2acd1b80d49ca5f1 | 91fb65972d69ca25ddd892b9d5373919ee518ee7 | /python-training-courses/pfc-sample-programs/func_example_002_a_with_its_use.py | fa56a44bfd53a1e492b260df8427a8512dba5dd3 | [] | no_license | zeppertrek/my-python-sandpit | c36b78e7b3118133c215468e0a387a987d2e62a9 | c04177b276e6f784f94d4db0481fcd2ee0048265 | refs/heads/master | 2022-12-12T00:27:37.338001 | 2020-11-08T08:56:33 | 2020-11-08T08:56:33 | 141,911,099 | 0 | 0 | null | 2022-12-08T04:09:28 | 2018-07-22T16:12:55 | Python | UTF-8 | Python | false | false | 867 | py | # func_example_002_a_with_its_use.py
# refer to func_example_002_without_its_use.py
#
# Passing variable number of arguments to the function
def add_numbers (*myNumbers):
sum = 0
for i in myNumbers:
sum = sum + i
return sum
num01, num02, num03, num04, num05, num06, num07, num08,... | [
"zeppertrek@gmail.com"
] | zeppertrek@gmail.com |
211c727e8d52656e27ff87503013df32b74cd429 | bc54edd6c2aec23ccfe36011bae16eacc1598467 | /simscale_sdk/models/flow_rate_mean_outlet_vbc.py | e896a0e17e908cfccdaca58f5a681e31f2fb9e87 | [
"MIT"
] | permissive | SimScaleGmbH/simscale-python-sdk | 4d9538d5efcadae718f12504fb2c7051bbe4b712 | 6fe410d676bf53df13c461cb0b3504278490a9bb | refs/heads/master | 2023-08-17T03:30:50.891887 | 2023-08-14T08:09:36 | 2023-08-14T08:09:36 | 331,949,105 | 17 | 5 | null | null | null | null | UTF-8 | Python | false | false | 4,305 | py | # coding: utf-8
"""
SimScale API
The version of the OpenAPI document: 0.0.0
Generated by: https://openapi-generator.tech
"""
import pprint
import re # noqa: F401
import six
from simscale_sdk.configuration import Configuration
class FlowRateMeanOutletVBC(object):
"""NOTE: This class is auto gene... | [
"simscale"
] | simscale |
7c250db6b4b45846c7ccc8b7a8c83c3314752242 | edee2739b7f1500fa3d877b56ed1658c0e49febb | /tracker/urls.py | ebb01a017aa8a5889626924fc1e4239dcd5150dd | [] | no_license | SaurabhKumarVerma/covid__tracker | b1752686da9b5a3848d5a1f5b2f4ae91620c60a3 | 7b06854bb61daad61b30e2e3411c84d60ae480a1 | refs/heads/master | 2022-11-26T23:55:51.141376 | 2020-08-02T15:07:05 | 2020-08-02T15:07:05 | 281,354,073 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | """covid__tracker URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/2.2/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... | [
"Saurav88871kumar@hotmail.com"
] | Saurav88871kumar@hotmail.com |
7e50f5c46098e16de5b7cfc59d1af7492507b124 | e0c2b6a86bb025580ccb450c80039d0db3087e7d | /django.wsgi | 1b652c93667fc9e4aa2b98ee0a381606bda505ab | [] | no_license | yeminghua/gelange | 332eb18406d67995452a7613c256f2b1e506f974 | d026966bdbb31912893d80f7bd69ffc98a6c3f18 | refs/heads/master | 2016-09-06T18:34:05.048296 | 2014-10-06T02:25:26 | 2014-10-06T02:25:26 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 530 | wsgi | import os, sys
#Calculate the path based on the location of the WSGI script.
apache_configuration= os.path.dirname(__file__)
project = os.path.dirname(apache_configuration)
workspace = os.path.dirname(project)
#
sys.stdout = sys.stderr
sys.path.append(workspace)
print workspace,"(-------------------------------------... | [
"2523357239@qq.com"
] | 2523357239@qq.com |
4ff26129e91fe2b58d30667b48e363455eebdd6a | 636f56227558589e2323d4a28f14dbad465772f2 | /fun.py | 50616e13a666a738150909b357519f4a1bab3e6d | [] | no_license | ParthRoot/Basic-Python-Programms | 82dc4b190c1048d1f69b28b98bd7d67ecbdb4efb | 16abb3d71c25dd1564ad3fbcd888ef36367cdf5c | refs/heads/master | 2023-03-14T22:29:41.298816 | 2021-03-17T09:11:13 | 2021-03-17T09:11:13 | 262,701,673 | 0 | 1 | null | 2021-03-16T17:04:34 | 2020-05-10T03:05:09 | Python | UTF-8 | Python | false | false | 612 | py | #Create A function
def fun():
print("Hello")
fun()
#Take argument to function
def fun1(name):
print("Name:-",name)
fun1("Parth")
tup = ("Parth","Jaimin","Varshil","Tirth")
c = len(tup)
for i in range(c):
fun1(tup[i])
A = ["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S"... | [
"noreply@github.com"
] | ParthRoot.noreply@github.com |
50b2a4e66eb4c1ca11dc8c4dceff8ba7ac17e7ca | faf8837e2131721733cdc8dba4dd616d6ef9f647 | /data_exploration.py | 964f7b9814c47e6b4ec06324abd99ac989475055 | [
"MIT"
] | permissive | rubenwo/ml2 | ffec34e435c37625e62512ebb687c430eb086909 | a981bb28e9990c8053d6bf909b9591244776d616 | refs/heads/master | 2022-12-09T19:41:31.090680 | 2020-09-24T15:15:13 | 2020-09-24T15:15:24 | 297,377,231 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 641 | py | import matplotlib.pyplot as plt
import pandas as pd
import seaborn as sns
df_train = pd.read_json('./data/train.json')
# cuisine_count = {}
# uniques = df_train['cuisine'].unique()
#
# for unique in uniques:
# cuisine_count[str(unique)] = 0
#
# for i in range(len(df_train)):
# cuisine_count[str(df_train['cuis... | [
"rwoldhui@avans.nl"
] | rwoldhui@avans.nl |
79ffe5d130fb052429b3fd502d82e0063444a616 | 3145d0d178cd2108c34f15528d21cdb3cc82e12b | /nmaptools/xmlclasses/host.py | 8a3b95454b6df6255b4e6130132637019c8b323e | [] | no_license | craig-stevenson/nmaptools | b3e51146a7081769c4b42280784a9daac6aadfa0 | 0555cc855085557cfd2423df9ad4ab4ba4fe4ddc | refs/heads/master | 2021-01-18T05:14:44.855940 | 2016-12-07T00:17:06 | 2016-12-07T00:17:06 | 67,656,104 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 80 | py | class Host(object):
""" """
def __init__():
""" """
pass | [
"craig.stevenson@gmail.com"
] | craig.stevenson@gmail.com |
1754189cd09d90ce234534057586811cd9ec1a8f | 1ed29cb9c3bc606044c12068ac8a770e5f68497a | /pwaProject/pwaProject/asgi.py | 219df782b15bbb285f43b656ab1b173e9fc26280 | [
"MIT"
] | permissive | pongkiat/djangoProject | a2d15f990e0f3c436ff73396aacaf81370548ab5 | 246db3dea9f885af191b7585f8b88c611ea14984 | refs/heads/master | 2020-12-23T01:10:15.519699 | 2020-01-30T03:12:20 | 2020-01-30T03:12:20 | 236,986,169 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 397 | py | """
ASGI config for pwaProject project.
It exposes the ASGI callable as a module-level variable named ``application``.
For more information on this file, see
https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SE... | [
"pongkiat@OzMBP.local"
] | pongkiat@OzMBP.local |
d533929137010a828e0c1fe70530eb874680c0e9 | ca5fc43049f94a794d90a561fd8126f02b603599 | /i3py/core/features/options.py | cdcfff349c6f5457d6e1affa7b82a7ef3f760806 | [
"BSD-3-Clause"
] | permissive | Exopy/i3py | 32d9ee343d21d275680a2d030b660a80960e99ac | 6f004d3e2ee2b788fb4693606cc4092147655ce1 | refs/heads/master | 2022-02-18T21:51:16.423188 | 2019-08-28T23:51:02 | 2019-08-28T23:51:02 | 63,874,745 | 1 | 0 | BSD-3-Clause | 2018-05-23T09:45:26 | 2016-07-21T14:07:58 | Python | UTF-8 | Python | false | false | 1,960 | py | # -*- coding: utf-8 -*-
# -----------------------------------------------------------------------------
# Copyright 2016-2018 by I3py Authors, see AUTHORS for more details.
#
# Distributed under the terms of the BSD license.
#
# The full license is in the file LICENCE, distributed with this software.
# ----------------... | [
"marul@laposte.net"
] | marul@laposte.net |
cc453d0093726966b9dabdcfb9474dc063796d6f | a7c69c094cb77b351af7e5c95ef1e7319c8688a5 | /src/subscriptions/validators.py | b070f13ad5a89d91df65fa5a190344c45847f909 | [] | no_license | betanio/Eventex-WttD | cce65fc1bcee5f9a2713a7a970ba1413b950e771 | 1c62ce6b2d3ef552f0ce54f4b5278916eed50349 | refs/heads/master | 2021-01-15T11:48:24.598152 | 2012-04-17T11:23:07 | 2012-04-17T11:23:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 417 | py | # -*- coding: utf-8 -*-
# Optional: ugettext_lazy
from django.utils.translation import ugettext as _
from django.core.exceptions import ValidationError
# TODO: validação do dígito verificador
def CpfValidator(value):
if not value.isdigit():
raise ValidationError(_(u'O CPF deve conter apenas números'))
... | [
"betanio@betanio.com"
] | betanio@betanio.com |
408eefcd98a92dd07cb9fa4f21371235a339bf84 | d032bc0c01a7cd598481644e22043de8df4c71c4 | /consultant_app/versatilimagefield.py | 90f5c5be364e762bcd094b0cd36c0169a6108c18 | [] | no_license | amrit-kumar/project-for-engineering | eb5f410cd2f0a271633fb6c24132a36e6215f0e0 | 7e975866e540ab4625e735009fdba971df74e393 | refs/heads/master | 2020-12-03T01:49:02.429186 | 2017-06-30T09:09:46 | 2017-06-30T09:09:46 | 95,863,800 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,467 | py | import io
from io import StringIO
from PIL import Image
# from StringIO import StringIO
from .views import *
from versatileimagefield.datastructures import SizedImage
from django.utils.datastructures import *
from versatileimagefield.fields import VersatileImageField
from versatileimagefield.registry import versatile... | [
"kumaramrit38@gmail.com"
] | kumaramrit38@gmail.com |
bf4ab1b554798c38423c6b25ffc2e3404c7b9980 | eea1be5dbac7fa10167eae167eb6712e3937f53a | /siteuser/utils/models.py | 607ac2c9399c5f052d881715a70bed9367b4b671 | [] | no_license | chidimo/Voidcoin | 40962e46661b2a7106bd8e60d0830c3b9629b8fa | 227c160dfa671818522781aab013f2d1fcb098a9 | refs/heads/develop | 2022-12-09T17:40:26.294425 | 2019-07-04T08:32:20 | 2019-07-04T08:32:20 | 135,197,447 | 5 | 2 | null | 2022-12-08T02:08:45 | 2018-05-28T18:45:19 | Python | UTF-8 | Python | false | false | 441 | py | from django.db import models
from django.utils.translation import ugettext_lazy as _
from .fields import AutoCreatedField, AutoLastModifiedField
class TimeStampedModel(models.Model):
"""
An abstract base class model that provides self-updating
``created`` and ``modified`` fields.
"""
created = Aut... | [
"orjichidi95@gmail.com"
] | orjichidi95@gmail.com |
36dfa2755c12bf056337ee1a4f8dd4a03a957371 | 17a675141ee04a3f35949306b76fc8af76cca1f8 | /pollster/polls/urls.py | 2a7c4dc3ef2d58a4d514ae4841964d9f91116482 | [] | no_license | huss-a/Django-Python-Poll-App | 208a071f05453b993eee2720b2e6f76ec90cd972 | 5f147cf52c6bca1c35d17bbddd649fb5f5398fee | refs/heads/master | 2023-04-05T02:13:09.302713 | 2021-04-03T11:47:44 | 2021-04-03T11:47:44 | 354,278,165 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 321 | py | from django.urls import path
from . import views
app_name = "Polls"
urlpatterns= [
path("", views.index, name="index"),
path('<int:question_id>/', views.detail, name='detail'),
path('<int:question_id>/results/', views.results, name='results'),
path('<int:question_id>/vote/', views.vote, name='vote'),
... | [
"hussaingoodboi@gmail.com"
] | hussaingoodboi@gmail.com |
f49e56dfa0326a19c62734b1c325bdc011750569 | cc86a3b84916ca8c6d94da6af2c910b1e4e06671 | /tests/test_build_system.py | 1f8d98d0a43befdf440e6801861ec89e1ee6d7eb | [
"MIT"
] | permissive | Jasper-Ben/kas | 0cf93914ceb47c6e1b4d06b18c5df801673d65e6 | 71cf5dc17bbfacc643500354891b95690e983dce | refs/heads/master | 2022-12-21T13:03:04.148283 | 2022-06-23T12:51:22 | 2022-06-23T15:58:37 | 294,092,277 | 0 | 0 | NOASSERTION | 2020-09-09T11:27:21 | 2020-09-09T11:27:21 | null | UTF-8 | Python | false | false | 1,835 | py | # kas - setup tool for bitbake based projects
#
# Copyright (c) Siemens AG, 2020
#
# 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... | [
"jan.kiszka@siemens.com"
] | jan.kiszka@siemens.com |
869060d928d937c0564f58f256cdcab94ae17193 | 1b124c5209cffe6544062b8233bf5f6b7f699b18 | /app.py | f372930a669abde982b43e8d270ba8bf59f50bcb | [] | no_license | graceloveora123/sqlalchemy-challenge | 272e2ff8d6519448da7c6a6226fb14ed7f5985c1 | c3d5cfc7a2b5a59524b080aff305032802b365a0 | refs/heads/main | 2023-03-18T11:53:55.352590 | 2021-03-08T05:34:10 | 2021-03-08T05:34:10 | 342,921,806 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,372 | py | import numpy as np
from sqlalchemy.ext.automap import automap_base
from sqlalchemy.orm import Session
from sqlalchemy import create_engine, func
from flask import Flask, jsonify
#################################################
# Database Setup
#################################################
engine = create_engine(... | [
"grace.bo.sun06@gmail.com"
] | grace.bo.sun06@gmail.com |
cc17fc76da532ee295786674a578eee107c245ad | 6752274eab7fb185f493027a1da27ff452dcc20b | /dict.ex.py | 53c8fec8db4ca80112361f4e03e4b6d7c8c1e194 | [] | no_license | smileyoung1993/pystudy | fa598b32b29bb3b5e705430a1e43e08a8bfe7ef5 | 3cd17b006db161a2e4b740a6ab3278a2c44d3f29 | refs/heads/master | 2020-03-19T13:22:26.465604 | 2018-06-08T06:29:51 | 2018-06-08T06:29:51 | 136,576,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,207 | py | # dict
#method 1
d = dict()
print(d,type (d))
# method2
d = {}
print(d, type(d))
# method 3
d = dict(one = 1 , two = 2 )
print(d,type(d))
# method 4
keys = ("one","two","three")
values = (1,2,3)
print(d,type(d))
d= dict(zip(keys , values))
print(d)
# 사전의 키
print("----------------key")
#
d= {}
d[10] = "10"
d[... | [
"znzlaos943@naver.com"
] | znzlaos943@naver.com |
e4d4b373570fda5ade6a5eb3a42fe9567339e80e | f47995e06e0f55045134039f7c3af62a799a1329 | /learnpythonthehardway/ex8/ex8.py | 3dc2d3e3be8edc4a39b45c914ee0855240ccfc02 | [] | no_license | roytest001/PythonHomework | bef0b37d96dd7f1aa3a96fe78ca5d25cd9e5e96d | e6ef9b4b38093284a31922bff9a8d0beb9ad7ec8 | refs/heads/master | 2021-01-21T23:33:51.253675 | 2016-10-02T03:34:16 | 2016-10-02T03:34:16 | 16,234,802 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | #coding=utf-8
formatter = "%r %r %r %r"
print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, True, True, False)
print formatter % (formatter, formatter, formatter, formatter)
#为啥打印输出双引号,为什么 %r 有时打印出来的是单引号,而我实际用的是双引号?
#Python 会用最有效的方式打印出字符串,而不是完全按照你写的方式来打印。这样做对于 %r... | [
"xxjbs001@126.com"
] | xxjbs001@126.com |
248595c051f82ce2e6704e87a08a396027838f94 | 7a14adcd5150c970f6a5f1ab83180f091dc0f6cc | /cart/models.py | d6dd38a5a6ae1625e18ef9beb7bc5d650f93ece2 | [] | no_license | synnea/the-modern-witcher | 0b4349e845e12e05f7abf6e0688200a6f54dd96d | f85c4de1fb3167b5c595ac6843c33a55495d7259 | refs/heads/master | 2022-12-09T15:09:23.602406 | 2020-03-05T18:17:27 | 2020-03-05T18:17:27 | 230,802,118 | 0 | 1 | null | 2022-11-22T05:13:41 | 2019-12-29T20:52:55 | HTML | UTF-8 | Python | false | false | 1,058 | py | from django.db import models
# Create your models here.
from django.db import models
from django.contrib.auth.models import User
from items.models import Item
import datetime
class Order(models.Model):
objects = models.Manager()
full_name = models.CharField(max_length=50, blank=False, default="Test")
p... | [
"carrie.poell@gmail.com"
] | carrie.poell@gmail.com |
07534f0568e07ffd2dbec5e462876a4982119e0d | cc0f8131064d1d7d5e6c97d42d0e71b16c334d81 | /GraphRepo/graphrepo/config.py | ed4f0c7165f0883a9dd23eefa262b3e26858fa89 | [
"Apache-2.0",
"MIT"
] | permissive | LennardSchaap/Github_Visualization | aa6591678cc5cd05c4d87f9b258c6ff167e4307d | 455dad5ae15d26706587dd92a256fd840654e157 | refs/heads/master | 2022-03-30T08:20:40.240726 | 2019-12-12T00:41:39 | 2019-12-12T00:41:39 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,598 | py | # Copyright 2019 NullConvergence
#
# 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 writi... | [
"lennard.schaap@hotmail.com"
] | lennard.schaap@hotmail.com |
334ab93f2d0f8c5b6bb94365ef6c0618db19fb52 | bdd3499808a2d6212c9067cdb8b7a33fccc5ac34 | /bin/pip3.7 | 3414d036599848714f811853931ffd7670a68a37 | [] | no_license | gabrielb77/chgate | 44963de6a7c1e0f98f02f3672fde0f278fbee2c9 | a0f3098b105702d534a49f7fd140fad70ace3e4b | refs/heads/master | 2023-04-14T21:56:18.434558 | 2021-05-01T13:14:45 | 2021-05-01T13:14:45 | 350,025,710 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 249 | 7 | #!/home/gabriel/gitrepos/chgate/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from pip._internal.cli.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"gabrielb77@gmail.com"
] | gabrielb77@gmail.com |
c96baa39b9776108de52e68614ff8a956ef413f8 | 444a9480bce2035565332d4d4654244c0b5cd47b | /research/recommend/JEPOO/model/mel.py | 3581eddba520c6e2403c416cad136096a7b09a35 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-proprietary-license"
] | permissive | mindspore-ai/models | 7ede9c6454e77e995e674628204e1c6e76bd7b27 | eab643f51336dbf7d711f02d27e6516e5affee59 | refs/heads/master | 2023-07-20T01:49:34.614616 | 2023-07-17T11:43:18 | 2023-07-17T11:43:18 | 417,393,380 | 301 | 92 | Apache-2.0 | 2023-05-17T11:22:28 | 2021-10-15T06:38:37 | Python | UTF-8 | Python | false | false | 3,514 | py | # Copyright 2023 Huawei Technologies Co., Ltd
#
# 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 a... | [
"noreply@gitee.com"
] | noreply@gitee.com |
556e496891ce059c0a7af9cfdb30d3809125d46a | 5c1cb9ceb61425b42f39824ac3e1d1c591b1ae08 | /accounts/api/serializers.py | a296d3a9eb974238c0859ade14ce17df93dc8cf4 | [] | no_license | codenit/DjangoBlog-API | c0b7e0fa9710c09ae7b955cf6bd89988421831a8 | 0e8a569e351121b8f7f15ce4c0c7da3be8b71a68 | refs/heads/master | 2020-12-30T14:34:16.279915 | 2017-05-13T19:26:08 | 2017-05-13T19:26:08 | 90,855,362 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,112 | py | from django.contrib.auth import get_user_model
from rest_framework.exceptions import ValidationError
from rest_framework.serializers import (ModelSerializer,CharField)
User = get_user_model()
class UserCreateSerializer(ModelSerializer):
password2 = CharField(label='Confirm Password')
class Meta:
mode... | [
"b.rohit751@gmail.com"
] | b.rohit751@gmail.com |
18928dfc8b26a880be56f710486d1fb3a41aa3a6 | 2727aa6dfc13e665f12b28de49a9f9f00b206ef2 | /personal/yxg352/FitHub/FitHub/settings.py | 487fae4f10f47a8d881282aefb8e90c3464c6268 | [
"MIT"
] | permissive | gentsk77/FitHub | 80e99052e1b41de64406023b7346c67871d1ed2d | 6a050e1d2718996af2cb672af6b9ea41d0da04d4 | refs/heads/master | 2020-05-02T09:04:17.577860 | 2019-05-06T12:17:32 | 2019-05-06T12:17:32 | 177,859,983 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 3,268 | py | """
Django settings for FitHub project.
Generated by 'django-admin startproject' using Django 2.1.7.
For more information on this file, see
https://docs.djangoproject.com/en/2.1/topics/settings/
For the full list of settings and their values, see
https://docs.djangoproject.com/en/2.1/ref/settings/
"""
import os
# ... | [
"yxg351@case.edu"
] | yxg351@case.edu |
0c8153f27fb67a668ee75237e7cd43c5388cfa62 | 92773cbdd70812f45e1b9b97bbc024aee4b4b18d | /Chapter7. Iteration/loop.py | 8765dd5a07dd4c28348fbcf1c1cc68b803ce3fd9 | [] | no_license | Abu-Kaisar/Python3Programming--Coursera | e46edc86294ac76109a89b2cb02e8b6af178dcce | e1b93899c4f507b9b32091283951e761e182b97a | refs/heads/master | 2022-11-21T07:40:28.985698 | 2020-07-19T04:07:51 | 2020-07-19T04:07:51 | 280,787,750 | 0 | 0 | null | 2020-07-19T03:58:52 | 2020-07-19T03:58:52 | null | UTF-8 | Python | false | false | 476 | py | # mylist = ["yo","mujju","salman","thuss"]
# for i in mylist:
# print("Hi", i ,"Dawat hai kheenchny aao")
# mylist = "dgsadafdua"
# for char in mylist:
# print("Hi", char )
s = "python rocks"
for ch in s:
print("HELLO")
import turtle # set up alex
wn = turtle.Screen()
mujju = turtle.Turtle()
f... | [
"mdmujahid97@gmail.com"
] | mdmujahid97@gmail.com |
6cea5daf636212eaff48705ad4f044d677c81e9d | 603050499539340ea00d10b47660361ae8a31f55 | /utils/tools.py | 9b7c116cbddeae4c754e77a014647b8b0ee4cc12 | [] | no_license | leondelee/PointGCN | ee10bc6b4760c810b20330102f92da880d743ffb | 118fc938e44ca678eb04aaf7d2abbd71c7d17968 | refs/heads/master | 2023-04-07T20:10:29.516774 | 2019-07-28T04:47:19 | 2019-07-28T04:47:19 | 189,544,434 | 13 | 1 | null | 2023-03-24T21:54:59 | 2019-05-31T07:00:16 | Python | UTF-8 | Python | false | false | 3,724 | py | # Author: llw
import os
import logging
from tqdm import tqdm
import yaml
import torch as t
import pptk
def show_point_clouds(pts, lbs):
v = pptk.viewer(pts)
v.attributes(lbs)
def normalize_point_cloud(pts):
norm = pts[:, 0] ** 2 + pts[:, 1] ** 2 + pts[:, 2] ** 2
norm = t.sqrt(norm).reshape(-1, 1)
... | [
"leevecent@outlook.com"
] | leevecent@outlook.com |
3e0199080f0e173abc45575108f0294e86c69627 | 94dc470e13c344269b8fc6aec1c6f7051d782151 | /Python-Scripts/corona_all_active.py | c239359c01c303b11a2e9b0b90ee9a71809fb2e1 | [] | no_license | venkata-sravan/Corona-Stats | ba6cd0d88979eaa86711548f0bf8692086a63721 | 303a50b8b176301586a515293d3f69e3e12c505a | refs/heads/master | 2022-04-27T02:57:50.401762 | 2020-04-17T08:28:41 | 2020-04-17T08:28:41 | 256,440,689 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,603 | py | #! /usr/bin/python3
import requests
import lxml.html as lh
import matplotlib.pyplot as plt
import numpy as np
import csv
import pandas as pd
source = requests.get("https://www.worldometers.info/coronavirus/")
doc = lh.fromstring(source.content)
tr_elements = doc.xpath('//tr')
Active_Map={}
i=0
# Since out first row i... | [
"ec2-user@ip-172-31-9-66.eu-west-1.compute.internal"
] | ec2-user@ip-172-31-9-66.eu-west-1.compute.internal |
a0053fe45551ebe58fb97b17632014d320aff29c | 5ebbad9b3a6664a65d1ebb50056f83fe50435d3a | /Open Elective Python/Unit 3/7.py | 215ba42a02c60afd4c2107dbe91ea45345e874e2 | [] | no_license | jugal13/Python_Lab | 5892c6f2c77d0222a6b31bc40774d24b46f86475 | f8b96b3ecf1b913f4121e8e6d89b1a610f4ecba2 | refs/heads/master | 2023-03-01T03:53:30.889295 | 2021-02-10T14:42:09 | 2021-02-10T14:42:09 | 145,228,905 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 65 | py | import time
millis = int(round(time.time() * 1000))
print(millis) | [
"jugaldeepak@gmail.com"
] | jugaldeepak@gmail.com |
4f43cadd7ce7a2b3252a0896805b3af46be81b92 | ff2eb3a755d739d9eafc0c7673e86e0e439d119f | /is_ironman.py | a2b4a51c9a186600ad84fc8b715f31fc92c63f79 | [] | no_license | telac/discord-group-ironman-bot | 48a3d8944066ec91776b08c4efdd6a2c67423d39 | dc8e0595b85a4ce87a56e52f4d9b738317062cfb | refs/heads/master | 2022-12-01T22:43:39.351594 | 2020-08-17T14:46:22 | 2020-08-17T14:46:22 | 288,027,323 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,203 | py | from asyncio import sleep
from datetime import datetime
from configparser import ConfigParser
import requests
from bs4 import BeautifulSoup
from discord.ext import commands, tasks
def config(section, filename='conf.ini'):
parser = ConfigParser()
parser.read(filename)
conf = {}
if parser.has_section(se... | [
"ca.westerlund@gmail.com"
] | ca.westerlund@gmail.com |
6b06c413a2f140e7891693fa52a8a9ce3fddecfb | 65bcb44034f33554b6a1387bb08366ccba932a4c | /env_FindTreasure/__init__.py | 37e4ed17ffcbc90f824bdc04122d051e6e62b300 | [] | no_license | huzican/Multi-Agent-Reinforcement-Learning-Environment | e9cd8e2a8736b0f0b4791dcc5e7f7dcf56c24ef1 | d529104fb6845aa811a88279a089e192b4f8f488 | refs/heads/master | 2022-06-10T10:03:28.807049 | 2020-05-01T23:34:03 | 2020-05-01T23:34:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 32 | py | from .env_FindTreasure import *
| [
"yifeng.zhu@utexas.edu"
] | yifeng.zhu@utexas.edu |
c9aaf04fd48dfb391e71df87bfe9992e3b8e9e6d | 2ae92a7512a6821d28f383e050a56203fdf2b6c3 | /week1/bike.py | b2b603ab90032c13991b19d7346c25cd996e9b0e | [] | no_license | py1-10-2017/MikeGerrity- | 7e4958c2190de078fb810fbb0e6bf3b10634f77a | f4981f3165024529f2d06bccbe7224b29aa08927 | refs/heads/master | 2021-08-06T19:18:27.494733 | 2017-11-06T21:49:36 | 2017-11-06T21:49:36 | 109,753,671 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 720 | py | class Bike(object):
def __init__(self, price, max_speed):
self.price = price
self.max_speed = max_speed
self.miles = 0
def displayinfo(self):
print "Price:", self.price, "Max Speed:", self.max_speed, "Total Miles:", self.miles
return self
def ride(self):
... | [
"mikegerrity@hotmail.com"
] | mikegerrity@hotmail.com |
674f90b04e7ff3a972ebfdec9636df1d6f7d64f7 | 77de0b8daf81dd83022015f1f2e52a2d2a81f3ee | /MeasureeMapQV.py | b027924c4517d5be8f15ab0efe1c74fbe9f3b320 | [
"MIT"
] | permissive | JinfengChen/chm1_scripts | 83a2f183f63d65e28fa402a01914aacb12894aa5 | 55d1783139f4ccc6e41c79812920785b1eaea65e | refs/heads/master | 2020-12-25T22:47:13.831530 | 2014-09-26T18:59:20 | 2014-09-26T18:59:20 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 37 | py | #!/usr/bin/env python
import pysam
| [
"mchaisso@uw.edu"
] | mchaisso@uw.edu |
4ca8ce30ee99012214565c98a486eb42d7d55227 | 7c28981339bc23ef9a4287fe57ff47baef690603 | /lookupdict.py | 584b6e1f96c02f30b736d0a72868aa429b873e3f | [
"Apache-2.0"
] | permissive | MetaphorExtractionTools/mokujin | 26620f7b43df37433d3f3d1ddbce0fed5ebe6af4 | c48d531dd23bdeef0ada898e796f13ba6797d137 | refs/heads/master | 2021-01-22T15:22:12.344968 | 2014-04-26T16:52:45 | 2014-04-26T16:52:45 | 19,182,305 | 3 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,007 | py | #!/usr/bin/env python
# coding: utf-8
# Copyright (C) USC Information Sciences Institute
# Author: Vladimir M. Zaytsev <zaytsev@usc.edu>
# URL: <http://nlg.isi.edu/>
# For more information, see README.md
# For license information, see LICENSE
"""
Simple dictionary lookup script.
Finds given word in mokujin dictionary... | [
"zvm@guest-wireless-nup-nat-206-117-89-004.usc.edu"
] | zvm@guest-wireless-nup-nat-206-117-89-004.usc.edu |
02cc6511db06e84bf79cc05b534d88a1807479be | 4f07c49ff9394352b464c94ca917faeb967d1b31 | /trainer/forms.py | 1fcd3db0b8be12ae62c1b806b52fb0fea9e31862 | [] | no_license | igandhi/gym_trainer | 0b47c90768d732547f7d81407260deeb3b6d7255 | e2068b9211740cf4b9d892bad6ebf2c71227366d | refs/heads/master | 2020-03-07T08:28:38.987607 | 2018-03-30T03:55:49 | 2018-03-30T03:55:49 | 127,379,314 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 287 | py | from django.forms import ModelForm
from .models import Routine, Exercise
class RoutineForm(ModelForm):
class Meta:
model = Routine
exclude = ['created_timestamp']
class ExerciseForm(ModelForm):
class Meta:
model = Exercise
exclude = ['routine']
| [
"ikegandhi@gmail.com"
] | ikegandhi@gmail.com |
a230e6aafa3e03bdd9995d307c925a4d98840639 | 81f8276be090ff9fa960d83db45bfe0b3c69ff39 | /test.py | 9d480a3922a04ae7c87c67955f1914d97189c9ae | [] | no_license | jon--lee/mlb-call-classifier | 1860c15b2f889a2b37daaaaefaed23cb19e808e5 | 28e15a908127a2ca78de92aee39c5dff516f6bf2 | refs/heads/master | 2020-06-07T03:04:54.034548 | 2015-07-23T00:06:54 | 2015-07-23T00:06:54 | 38,954,788 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 100 | py | import classifier
import neuralpy
import grapher
grapher.graph(filepath='results/bucknor-93-R.txt') | [
"123abcjonathanlee@gmail.com"
] | 123abcjonathanlee@gmail.com |
afce243a4d7ee76553735dace72d9cef5b52557d | 28e8ab381a8c1b4321cd83acff6aa33468166d6b | /python3.4Smartforest/lib/python3.4/site-packages/django/contrib/contenttypes/fields.py | 0e221dbc92678bea486b69b37beddeebeb62fc33 | [
"MIT"
] | permissive | letouriste001/SmartForest_2.0 | 343e13bc085d753be2af43aecfb74a5fffaa5e3b | 109b78bf1e8c8404800f377ab969395ccbb617be | refs/heads/master | 2020-12-21T16:54:22.865824 | 2016-08-11T14:17:45 | 2016-08-11T14:17:45 | 59,734,259 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 24,528 | py | from __future__ import unicode_literals
from collections import defaultdict
from django.contrib.contenttypes.models import ContentType
from django.core import checks
from django.core.exceptions import FieldDoesNotExist, ObjectDoesNotExist
from django.db import DEFAULT_DB_ALIAS, models, router, transaction
from django... | [
"aubert.christophe.pro@gmail.com"
] | aubert.christophe.pro@gmail.com |
b496a8209dca6cc74b9a14cb7ba3517009a8d688 | 6cd9f3ab378cbe17cbf8aa3bc66296dfc901a6fe | /iiotPython_NEW/sendData.py | eb039fa73ce795a2934c19d435afd32f628c604d | [] | no_license | loginwaregith/IIOT_backup | c1fad36097d1fe98c54197963cf45e30e023c069 | 724adb4171cfb1e2308734682ddff599016f4b65 | refs/heads/main | 2023-02-25T16:33:53.437463 | 2021-02-02T12:58:55 | 2021-02-02T12:58:55 | 335,266,581 | 0 | 1 | null | 2021-02-02T12:58:56 | 2021-02-02T11:29:43 | Python | UTF-8 | Python | false | false | 5,952 | py | #*********This script is used to send all the IIOT data from device to server**************************
#importing of required libraries
from time import sleep
import sqlite3
import requests as req
from datetime import datetime
import configuration as config
import logging as log
#making a connection with the datab... | [
"erp.anand.loginware@gmail.com"
] | erp.anand.loginware@gmail.com |
43fb2c1c4455250a9f92bec7c8fcdf6199268310 | 8d223de1565567926baefef6fef9f3586c653706 | /server/crypto.py | 99af1ef8d4337786784b555203be98d8cc18344b | [] | no_license | txuanson/money_exchange_socket | 9766997b058387dd7db5a05243f77bde4828925c | 5dc100ce4de729ed653d27fc58dfcfcfb237c990 | refs/heads/master | 2023-07-10T15:33:58.413999 | 2021-08-15T15:13:10 | 2021-08-15T15:13:10 | 395,272,826 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | import bcrypt
def hash_password(password: str) -> str:
return bcrypt.hashpw(password.encode('utf-8'), bcrypt.gensalt()).decode('utf-8')
def compare_password(password: str, hashed_password: str)-> bool:
return bcrypt.checkpw(password.encode('utf-8'), hashed_password.encode('utf-8')) | [
"khatmausr502@gmail.com"
] | khatmausr502@gmail.com |
220d417e2a532c64b69fe77a6dbb261b6f5561fc | a360a22af5e0b385db438b1324564ef317ff2f38 | /bancor_module/migrations/0007_bancor_tsymbol.py | 3b1d42b27ed85223c4faa9f0e0b7bf186e2d5cc0 | [] | no_license | ogglin/exchange_comparison | 3eb2d849e731f94e67509e4ce9130e33bb37bbaf | f3feae64aff26b574f7ecd24e6f7aff7bb95ec65 | refs/heads/master | 2023-04-26T07:45:06.229584 | 2021-05-31T18:52:29 | 2021-05-31T18:52:29 | 287,036,194 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 408 | py | # Generated by Django 3.1 on 2021-02-20 09:59
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('bancor_module', '0006_bancor_volume'),
]
operations = [
migrations.AddField(
model_name='bancor',
name='tsymbol',
... | [
"server.ares@gmail.com"
] | server.ares@gmail.com |
2342a695f7ae543b2d1627da8416831724d367c1 | 2904bc85e3a688a25dde16497a29c72bf4a5d27c | /scenic/model_lib/layers/nn_ops.py | e17ba90140baf732dfb65469ee7f3e72dd730a59 | [
"Apache-2.0"
] | permissive | shreyasarora/scenic | 2fda9ad6982e4391bb98c032adf59d2e8be3d3ff | c3ae6d7b5dc829fafe204a92522a5983959561a0 | refs/heads/main | 2023-08-28T21:00:32.857689 | 2021-11-10T16:59:03 | 2021-11-10T17:00:03 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 19,188 | py | # Copyright 2021 The Scenic 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 w... | [
"dehghani@google.com"
] | dehghani@google.com |
4f3f53556376f2c9e047b5edb06911d416ba074a | f062afcfc7da5ef1fae49ef1dbdb33a0edf83086 | /p1/s2.py | f94a87a13ce58c781dcd7b6eca9bc5debdc36449 | [] | no_license | harvestcore/pyweb | 473ea66c9b5dea22836dde966709ee5102330b9e | dbf6b762c33205f33f1ee9daf80dade56880a9f2 | refs/heads/master | 2020-04-01T18:51:53.108458 | 2018-12-18T18:47:10 | 2018-12-18T18:47:10 | 153,520,059 | 0 | 1 | null | 2021-10-10T20:50:33 | 2018-10-17T20:32:54 | Python | UTF-8 | Python | false | false | 2,733 | py | #!/usr/bin/env python3
import random
from time import time
def arrayAleatorio(array, tam):
for x in range (0, tam):
array[x] = random.randint(0, 100)
return array
def burbuja(array):
for passnum in range(len(array)-1,0,-1):
for i in range(passnum):
if array[i]>array[i+1]:
... | [
"aagomezies@gmail.com"
] | aagomezies@gmail.com |
77e406016f26b3a032b6e455aaa719b572e27045 | d662fb5d91cbf48b43c44958aad9c0bc1efd74a6 | /ORCA1/gen_amoc_info.py | 1494c44ff2ae8baac14471dab880bc03c68b3360 | [
"MIT"
] | permissive | julianmak/NEMO-related | e6200c7a69c5fef7ca26d0719e5c26d90ef8281c | d4cb9ebf8c496819144c5c03b5e885fd5ad2af71 | refs/heads/master | 2023-06-22T03:05:58.779417 | 2023-06-08T12:57:22 | 2023-06-08T12:57:22 | 125,502,547 | 4 | 4 | null | null | null | null | UTF-8 | Python | false | false | 4,917 | py | #!/usr/bin/env python3
# JM: 13 Oct 2018
# process the AMOC from the *grid_V.nc files and write them to a text file
import glob, sys
import matplotlib
matplotlib.use('agg')
import matplotlib.pyplot as plt
from numpy import zeros, argmax, unravel_index, amax, where, arange
from netCDF4 import Dataset
from pyCDFTOOLS... | [
"julian.c.l.mak@googlemail.com"
] | julian.c.l.mak@googlemail.com |
865a2ee42ce0b83535aff7031964ddbd3c0e5d36 | 2aace9bb170363e181eb7520e93def25f38dbe5c | /build/idea-sandbox/system/python_stubs/cache/d7b07d14c6c27a41803588e54091bf9fcf8a2c8736580b3083f089fcd6d4da3f/cython_runtime.py | ddb3e50bb33750fa1bc065bec7db3288f07423db | [] | no_license | qkpqkp/PlagCheck | 13cb66fd2b2caa2451690bb72a2634bdaa07f1e6 | d229904674a5a6e46738179c7494488ca930045e | refs/heads/master | 2023-05-28T15:06:08.723143 | 2021-06-09T05:36:34 | 2021-06-09T05:36:34 | 375,235,940 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 274 | py | # encoding: utf-8
# module cython_runtime
# from C:\Users\Doly\Anaconda3\lib\site-packages\scipy\_lib\_ccallback_c.cp37-win_amd64.pyd
# by generator 1.147
# no doc
# no imports
# Variables with simple values
__loader__ = None
__spec__ = None
# no functions
# no classes
| [
"qinkunpeng2015@163.com"
] | qinkunpeng2015@163.com |
eb2e7d1b25fa6419ac1847667a5fe019af42f82f | 19bc1dfbf8a8b4b1bfc9d6ead51479c72602b12e | /tests/test_resource_analysis.py | fea2cef5999b8d3a27c8c10067bde6f075b62ce6 | [
"MIT"
] | permissive | procha2/caper | a5297d6cfe7cf649ac5ac3544558f513b427713d | e9ea0baa3517178ce7b850df8a59eba6479fbcb6 | refs/heads/master | 2023-08-10T17:37:40.840958 | 2021-07-01T22:57:45 | 2021-07-01T22:57:45 | 300,260,107 | 0 | 0 | MIT | 2020-10-01T11:48:13 | 2020-10-01T11:48:12 | null | UTF-8 | Python | false | false | 3,119 | py | """Test is based on a metadata JSON file generated from
running atac-seq-pipeline v1.8.0 with the following input JSON.
gs://encode-pipeline-test-samples/encode-atac-seq-pipeline/ENCSR356KRQ_subsampled_caper.json
"""
import pytest
from caper.resource_analysis import LinearResourceAnalysis, ResourceAnalysis
def test... | [
"leepc12@gmail.com"
] | leepc12@gmail.com |
ca86f498a7bd3f6a3e7ad355b0e7a117ce894fd8 | 36a610b86b5b4dd7c6c295d4b71d1baf01b88f62 | /tool_run_model/tool/python3_venv/bin/toco_from_protos | 8e83c0ab9ee4789379568a2f24d28441bedaa80c | [] | no_license | nghialuffy/bkdn-ai-contest | cf9530e80c28ebec1024e330ab5655d4aedc03f5 | d1d79e022dfc98dfda91a37357d635ae000c5a18 | refs/heads/main | 2023-07-07T16:03:44.822355 | 2021-05-21T07:13:58 | 2021-05-21T07:13:58 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 307 | #!/media/nghialuffy/VMWAVE/BKDN_AI_CONTEST/tool_run_model/python3_venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from tensorflow.lite.toco.python.toco_from_protos import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"nghialuffy@github.com"
] | nghialuffy@github.com | |
724d3309334dd86c1d7cf46d985c3ee24b81bfaf | 5953ab83bc8a74a034bb7036e6f82ed8bf39899c | /Beta_version/XGAN/utils.py | 20e8a15d35f2283d91c5e0ec93168854659f74cf | [
"Apache-2.0"
] | permissive | rexwangcc/RecoverGAN | fe2f123760588672799d44732d6f1fa4d9d81098 | f7387271b43e0ce440a66f1f200ae70ce6b3f93d | refs/heads/master | 2021-03-24T12:48:28.364072 | 2017-07-21T03:02:21 | 2017-07-21T03:02:21 | 86,881,150 | 2 | 3 | null | null | null | null | UTF-8 | Python | false | false | 10,239 | py | import math
import json
import random
import scipy.misc
import numpy as np
from time import gmtime, strftime
from six.moves import xrange
try:
import simplejson as json
except:
pass
"""
Some codes from https://github.com/Newmu/dcgan_code
"""
import tensorflow as tf
import tensorflow.contrib.slim as slim
get... | [
"rexwang@bu.edu"
] | rexwang@bu.edu |
719fe8ceb0742f200fd6db96a72226d3bb87841c | 72332ab2422f3666a8dbedc93f0e279b6f64b584 | /rl/storage.py | e2afc423a71002c4b538f2fd6dd2587bbb079a0c | [
"MIT"
] | permissive | prasoongoyal/rl-learn | e5dddf25292d9eb82cd24a34a027c5392c795d77 | 0401ca8c60b11adbc6fddfda12c03876a45c2ad0 | refs/heads/master | 2021-06-30T19:31:45.473939 | 2020-11-11T13:50:00 | 2020-11-11T13:50:00 | 192,154,441 | 16 | 14 | null | null | null | null | UTF-8 | Python | false | false | 7,162 | py | import torch
from torch.utils.data.sampler import BatchSampler, SubsetRandomSampler
def _flatten_helper(T, N, _tensor):
return _tensor.view(T * N, *_tensor.size()[2:])
class RolloutStorage(object):
def __init__(self, num_steps, num_processes, obs_shape, action_space, recurrent_hidden_state_size):
sel... | [
"pgoyal@cs.utexas.edu"
] | pgoyal@cs.utexas.edu |
497277a27e50f16bd4dac4167ba204b4b27a60da | 80338a9379508bdf5d40e055e12f2621dee01daa | /usernameless/__init__.py | aadcfca92bdcc1431f589d7f88dbb0d88b56edf3 | [
"MIT"
] | permissive | johnnncodes/django-usernameless | 6ec75780edfec667ba653e50b0496e788832a36c | cf7b0904030e640ce51bf20c36521daf6abf447f | refs/heads/master | 2021-05-26T22:30:08.415853 | 2013-10-26T02:36:45 | 2013-10-26T02:54:10 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 104 | py | # -*- coding: utf-8 -*-
__title__ = 'usernameless'
__version__ = '0.1.0'
__author__ = 'Marconi Moreto'
| [
"caketoad@gmail.com"
] | caketoad@gmail.com |
3496cddcadb72837cd6c0a2f3e8ee009aa71c49a | 46daa7bc5b465c0ae36a988754167259b9fc6c5b | /python-cookbook/3-10.py | d589e3707dcf5ea32d314aa2a353c80636ef3a9e | [] | no_license | loveiset/corePythonExercises | 30acd883fe6979446be0a564d22578cf1061c7f4 | e3474568a0f56d22804a5021cb571cd75617f365 | refs/heads/master | 2016-09-06T20:02:17.036304 | 2015-10-15T08:00:08 | 2015-10-15T08:00:08 | 40,879,496 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 338 | py | import time,os,sys
def main(cmd,inc=60):
while True:
os.system(cmd)
time.sleep(inc)
if __name__=='__main__':
numargs=len(sys.argv)-1
if numargs<1 or numargs>2:
print 'usage: '+sys.argv[0]+' cmd [seconds]'
sys.exit(1)
cmd=sys.argv[1]
if numargs<3:
main(cmd)
else:
inc=int(sys.argv[2])
... | [
"loveiset@qq.com"
] | loveiset@qq.com |
b0e9d034f38256d73cecf9f4255f71cbf66f2f94 | f3bd271bf00325881fb5b2533b9ef7f7448a75ec | /classes/_eigensolver1.py | b6ce82292c594e6f6578a8c6eb7978f16397aebd | [] | no_license | obaica/xcp2k | 7f99fc9d494859e16b9b0ea8e217b0493f4b2f59 | 6e15c2c95658f545102595dc1783f5e03a9e6916 | refs/heads/master | 2020-07-15T17:27:43.378835 | 2019-02-11T16:32:24 | 2019-02-11T16:32:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 468 | py | from xcp2k.inputsection import InputSection
class _eigensolver1(InputSection):
def __init__(self):
InputSection.__init__(self)
self.N = None
self.N_loop = None
self.Diag_method = None
self.Eigenvalues = None
self.Init_method = None
self._name = "EIGENSOLVER"... | [
"xingwang1991@gmail.com"
] | xingwang1991@gmail.com |
2f76f6578ee20aea9b69a41ffd20301183b7ec6d | 0faed81feb588ea0b8fd64be3d760ca454bac5b5 | /callrecords/apps/bills/admin.py | 5f80e08c9fdd4702e6cb288837fcb8619eb31e40 | [] | no_license | tiagovizoto/work-at-olist-1 | b48c7614ee3204e2a4360496217aa73bbbcd967a | e5fca8ec7c2caa76fdbfd164433bb1b6dc887fb8 | refs/heads/development | 2020-04-27T14:34:13.617869 | 2019-04-03T12:27:38 | 2019-04-03T12:27:38 | 174,414,543 | 0 | 0 | null | 2019-04-03T12:32:52 | 2019-03-07T20:22:48 | Python | UTF-8 | Python | false | false | 491 | py | from django.contrib import admin
from .models import MinuteFee, FixedFee, Bill
class MinuteFeeAdmin(admin.ModelAdmin):
list_display = ('price', 'start', 'end',)
class FixedFeeAdmin(admin.ModelAdmin):
list_display = ('price', 'start', 'end',)
class BillAdmin(admin.ModelAdmin):
list_display = ('price', ... | [
"vizoto123@gmail.com"
] | vizoto123@gmail.com |
651310c6f400d407a975549d9c4a6f548f3cf9e9 | 33a1b588372ce8fec94378c0d990372d01e3660f | /fsdet/data/builtin.py | 709c2f3697f2efeae519e3543545737e16f0809f | [
"Apache-2.0"
] | permissive | xinghaidemao/few-shot-object-detection-custom | 0ab5af07ae1a2d532f9999df89c42dc3835415de | 66277921a9c38b0f0d55a4f0d07c54363b17070b | refs/heads/master | 2023-04-21T00:38:32.657431 | 2021-05-19T01:57:17 | 2021-05-19T01:57:17 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17,787 | py | """
This file registers pre-defined datasets at hard-coded paths, and their metadata.
We hard-code metadata for common datasets. This will enable:
1. Consistency check when loading the datasets
2. Use models on these standard datasets directly and run demos,
without having to download the dataset annotations
We hard... | [
"wangzheng@daheng-image.com"
] | wangzheng@daheng-image.com |
43183ccf971f9077b211e98ea3d6a03e7bac155e | 1ef309f94cd545e961acab91d8bf7080c573bd9d | /storeproject/admins/urls.py | 65cc779dc58c20fdd2309dcf28e5eeb2764ae78b | [] | no_license | lxd632484901/storeproject | 3e4cec0dfd0b23431412465db2eb4760206080ee | 019ec9b9b506dc2f987baf51bfc17e820d774177 | refs/heads/master | 2022-02-24T02:15:13.644768 | 2019-09-23T01:24:32 | 2019-09-23T01:24:32 | 208,996,682 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 885 | py | """shopping_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/1.8/topics/http/urls/
Examples:
Function views
1. Add an import: from my_app import views
2. Add a URL to urlpatterns: url(r'^$', views.home, name='... | [
"15998194741m@sina.cn"
] | 15998194741m@sina.cn |
c5a5f75a61d8ed3b0968604819ab56c080d2dc94 | 8e26678c76a28f87a9407945cd11ebd8e41754ce | /Python-Django scripts/PREPcheckLocs.py | 5be84b4562a67c544ad2590977bba4793cdaf88b | [
"MIT"
] | permissive | McDowellLab/ODM2queriesAndCZManagerScripts | 98e3e534e8da5fcbd64a541767082dc206684862 | bb17b9e14f31ef040aeb4c5140ea0d8ab861b591 | refs/heads/main | 2023-04-03T02:38:34.743111 | 2021-03-29T13:51:22 | 2021-03-29T13:51:22 | 351,455,367 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,708 | py | import sys
import os
import csv
import pandas as pd
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "templatesAndSettings.settings.developmentPREP")
# os.environ.setdefault("GDAL_DATA", 'C:/OSGeo4W64/share/gdal')
os.environ['GDAL_DATA'] = 'C:/OSGeo4W64/share/gdal'
# C:\... | [
"Miguel.Leon@unh.edu"
] | Miguel.Leon@unh.edu |
99884be196977a59e2a749233e3dcdcfc0a19ff2 | 2b72a92f2bc8b2f0c31ac100b3a17a6a1769d2a8 | /first_numbers.py | 4a7e62ad4c5c2e52474ba9ebeb720b3a2bb6f18c | [] | no_license | DePotterDev/Python_Crash_Course | 623b759f008806436a658de211ae2d07c93ad4a3 | 76ccb0398e164a10b07d49f582eafc6b7f3290fc | refs/heads/main | 2022-12-27T00:00:09.591345 | 2020-10-08T15:28:58 | 2020-10-08T15:28:58 | 302,384,028 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | for value in range(1, 5):
print(value)
for value in range(6):
print(value) | [
"depotter.laurens@gmail.com"
] | depotter.laurens@gmail.com |
6e1b0e5aa34daaa437c9eee45fc76dbcb0dc1c5a | 2a5d93182aecc251462c9d3844e7c3e28013013e | /mysite/chat/tests.py | 114198533bdb4a28861f61e98807da39f4a8fde4 | [] | no_license | burbaljaka/websocket_chat | 20acc9908cd7b0e122a3b96252208defdc7460d9 | ca6883987befb6bfad5973156b01bfe876b1414f | refs/heads/master | 2021-05-26T22:58:31.151913 | 2020-04-08T19:37:16 | 2020-04-08T19:37:16 | 254,182,479 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,906 | py | from channels.testing import ChannelsLiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.support.wait import WebDriverWait
import dill
class ChatTests(ChannelsLiveServerTestCase):
serve_static = True #emulate StaticLiveServerTes... | [
"kapitonov.timur@gmail.com"
] | kapitonov.timur@gmail.com |
4168a6134ffbc963226f819035ab681efd9c2368 | 85059a2fb09cdf3ba2446bb297b0f052132b20ce | /chapter_2/2_1_simple_message.py | 4f598be9b2abbf907b1f00ecf3140a09724b0629 | [] | no_license | rauldoblem/python-crash-course | 26d54eac58416f8c34e98a0f6c5a66c7e437d101 | 89c2364b90ff77fc3d54649d196426e6433e8482 | refs/heads/master | 2020-08-11T03:20:01.833271 | 2019-09-12T22:56:11 | 2019-09-12T22:56:11 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 52 | py | message = "First message with python"
print(message) | [
"marlonricslim@gmail.com"
] | marlonricslim@gmail.com |
c8220cfb06f2fc1e44e934193e67e00662fe9de2 | ba2b94c483abca07bd300fc254e90dca944714c1 | /test_gRPC_pb2_grpc.py | 393d7c8ce56e7f01bc4a03e17a171924c694d72f | [] | no_license | agurusa/test_gRPC | 402675d9b97e017cfe55f16da6bbfd06f82e8c9b | fbf646d42412af8129a65ea31699c6a5e4f56a7d | refs/heads/master | 2020-03-11T00:06:33.455852 | 2018-04-15T22:22:24 | 2018-04-15T22:22:24 | 129,655,532 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,597 | py | # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
import grpc
import test_gRPC_pb2 as test__gRPC__pb2
class test_gRPCStub(object):
# missing associated documentation comment in .proto file
pass
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"... | [
"agurusa@gmail.com"
] | agurusa@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.