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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd56c339b78756507aae6c9ee5d01037b3f502bb | ba46763cf8ecd8eb22b8e6033ed68b5a5b2f2395 | /cross-section/read_XSfb_from_data.py | 45fad680282e2669183648f263787d8463aba17e | [] | no_license | kazuki-sakurai/LHC_recast | 92c224f8e27d646675f0faf6d768dded026d88ef | 66bac802d0fe15312177d4143e85758e12212425 | refs/heads/master | 2021-01-09T05:50:26.708261 | 2017-11-17T16:29:56 | 2017-11-17T16:29:56 | 80,840,370 | 2 | 1 | null | 2019-03-14T14:32:18 | 2017-02-03T15:14:29 | Python | UTF-8 | Python | false | false | 1,906 | py | #!/usr/bin/env python
import sys, os
import numpy as np
from scipy import interpolate
def get_xsfb(infile, m_in, unit):
if unit == 'pb': fac = 1000.
if unit == 'fb': fac = 1.
dirname = os.path.dirname(__file__)
infile_path = os.path.join(dirname, infile)
data = np.loadtxt(infile_path)
tr... | [
"kazuki.sakurai.1225@gmail.com"
] | kazuki.sakurai.1225@gmail.com |
ad8896eded98ca8dd1abc0c510565e4fa348ab17 | 0481ecb46752eea02bbeedbf3ded92c8a6acdc18 | /httprunner_yaosansan/loader.py | 074eb4c8d28c8807ab0e0dee4263ceae0199942d | [] | no_license | whitexie/workwechat-interface | e5d2dae39c7b8569e60d461db09602c8fd273c81 | 145e431bd65351d9244ffa6e1e747809990004be | refs/heads/master | 2020-09-07T13:54:47.376186 | 2019-11-12T04:12:32 | 2019-11-12T04:12:32 | 220,801,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 258 | py | import yaml
def load_yaml(yaml_file_path):
"""
read yaml file
:param yaml_file_path: str
:return:
"""
with open(yaml_file_path, 'r') as f:
json_object = yaml.load(f.read(), Loader=yaml.FullLoader)
return json_object
| [
"shieber@163.com"
] | shieber@163.com |
8b0694bbd0567276a741b8362253e858aa967ba9 | 5b41ca66248cbbfd65f4eec920b8e6b23c4ba64d | /messagebox.py | fca82a8015ad086c1b45f71981d99f410bdb3e97 | [] | no_license | jejaksaid/python-gui | 2bcfd4b9b555a1e684961cee6868f209d78cc4e9 | f59a0e10951c33a866bbd7a7fb75d86e10abcf53 | refs/heads/master | 2022-12-17T06:34:17.342632 | 2020-09-26T12:07:07 | 2020-09-26T12:07:07 | 281,889,510 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,265 | py | import sys
from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMessageBox
from PyQt5.QtGui import QIcon
from PyQt5.QtCore import pyqtSlot
#Create a window with a button. If you click the button, the dialog will popup.
def window():
app = QApplication(sys.argv)
win = QWidget()
button1 = QPushB... | [
"noreply@github.com"
] | jejaksaid.noreply@github.com |
cbf2636b58eb80307527d3264435f464bf9c787e | aa2c403a5f333857217685c03e9ca950c315ccc1 | /egs/voxceleb/multitask/nnet/lib/finetune.py | 600edf7d901a7c1a538289d067e3d6b02bdc37d6 | [
"Apache-2.0"
] | permissive | entn-at/tf-kaldi-speaker-master | 5db8984c4bc86d1b3112586c377f926fa9dd3134 | 8392af04cbaee3fb3dd87329ad4b60d710f45d9f | refs/heads/master | 2020-12-06T10:48:41.272114 | 2020-06-30T09:09:25 | 2020-06-30T09:09:25 | 232,444,778 | 0 | 0 | Apache-2.0 | 2020-01-08T00:38:44 | 2020-01-08T00:38:44 | null | UTF-8 | Python | false | false | 9,145 | py | # Fine-tune a pre-trained model to a new model.
# Optimize the entire network after loading the pre-trained model.
# This require that there is no new parameter introduced in the model.
# This is appropriate to train an End-to-end triplet loss (or other) network from a softmax pre-trained network where
# no additional ... | [
"ruyun_li@outlook.com"
] | ruyun_li@outlook.com |
aa589907e356abf2a7b24506f773b839094ef43d | 3a89ee8d30e3df1270482b5dcb2df3e1da60281e | /ember/pssa/model.py | c69715dbde091c09c94bdf1eef1f6ea296e832d2 | [] | no_license | whigg/ember | 71968322cff2ea6e017b3433f8b9cca80bd3f1d5 | d4a6e04b29ab7de7bbce431282b68aa21397351a | refs/heads/master | 2023-01-05T04:13:51.048735 | 2020-11-03T03:30:58 | 2020-11-03T03:36:29 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,294 | py | import random
from collections import deque, defaultdict
from functools import lru_cache
from itertools import combinations
import dwave_networkx as dnx
from networkx import Graph
from ember.hardware.chimera import ChimeraGraph
from ember.hardware.transform import overlap_clique, double_triangle_clique
from ember.har... | [
"ipwnu777@gmail.com"
] | ipwnu777@gmail.com |
4f7d45874caf756b4c49443237a554b3a6d6fa09 | 305eb0000d98d01ac804d50d2f7ec145006f43bf | /agent/bot.py | 14c35fd9059bedf6993aab69ab499b326ab028dc | [
"MIT"
] | permissive | latticetower/dr-derks-mutants | e72109f873118cd2c6323fb15d5780bcc41b679e | 5c3ab86137ecb478a3013985172d160568a86b13 | refs/heads/main | 2023-03-03T00:58:31.167240 | 2021-02-04T04:28:35 | 2021-02-04T04:40:22 | 334,600,980 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 85 | py | import numpy as np
from agent.dqn_bot import DerkPlayer # change this if necessary
| [
"merlettaia@gmail.com"
] | merlettaia@gmail.com |
875f0277e8f0a1d890f62156d1ff2f9287f22dc2 | 508fd86b80959df7289f49c90c67b5da5b42d440 | /bin_to_dec_oct_hex.py | 9f57df283a83f6237be5262c92c546e0e8ab4815 | [] | no_license | habeebahmed/challenges | ea02e56fdf6cfbf702c6e4dfc2606e71250da5ac | b163ed0707364e472db9ef5c1b54975572fd2e19 | refs/heads/master | 2022-09-17T21:38:46.413225 | 2022-07-31T23:01:25 | 2022-07-31T23:01:25 | 225,154,386 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,906 | py | '''
Online Python Compiler.
Code, Compile, Run and Debug python program online.
Write your code in this editor and press "Run" button to execute it.
'''
# print("Hello World")
# b_num = list(input("Input a binary number: "))
# value = 0
# for i in range(len(b_num)):
# di... | [
"habeebahmed@Habeebs-MacBook-Pro.local"
] | habeebahmed@Habeebs-MacBook-Pro.local |
386a61ea077f264cdd7a36d12cd3aebae50c463d | 305585c6e2e2f9d69603f728f8ac1dd38d12e63b | /plot.py | 4c3271781150d2fdf7fffb86226e9e9bdab11755 | [] | no_license | yingted/scribbler-commander | 87d01e91426a2e2a7f20f8519922f3571d0710f3 | 5072feb6b8bc3126c92fedf2297ef6be72301376 | refs/heads/master | 2021-01-19T15:02:59.844424 | 2013-11-30T00:00:25 | 2013-11-30T00:00:25 | 32,125,465 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 693 | py | from pickle import load
from matplotlib.pyplot import *
from sys import argv
from itertools import cycle
from model import Prior
with open(argv[1])as f:
fig=figure()
ax=fig.add_subplot(111)
#clr=iter(cycle('bgrcmykw'))
clr=iter(cycle('bgrcmyk'))
for ent in sorted(load(f),key=lambda x:x['irp']):
start=ent['data']... | [
"yingted@gmail.com@2a0f7078-9aa0-a7c8-291c-ce4e4205d19b"
] | yingted@gmail.com@2a0f7078-9aa0-a7c8-291c-ce4e4205d19b |
e1a5744f6ecf92c626944827d21bdcfcd422a518 | d76d9b9498d028755d7b2b04482ba8c79cb339eb | /Python-Challenge/PyPoll/main.py | 7ab4c7286bad50ea051f1f044584493c76ae662b | [] | no_license | JonZagorski/Python-Challenge- | 9332f2a1bb4dcc89da4ee6938a3a931ca0e0688a | 53080cd5d97d67b9b6cfe351cb4293a3e6a7b499 | refs/heads/master | 2022-12-01T11:57:44.328423 | 2020-08-16T04:13:47 | 2020-08-16T04:13:47 | 286,357,194 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,918 | py | #import the important things
import os
import csv
#variables to store values go here
totalvotes = 0
number_votes = 0
#make a list to store candidates
candidates = []
#make list for vote counts
vote_counts =[]
#set the path to election_data
election_data = os.path.join("resources","election_data.csv"... | [
"noreply@github.com"
] | JonZagorski.noreply@github.com |
235bea81a7895dc78c4ca7bd704cd9fc6093faec | 7c5fb33929116bb77b438de3ead93b3978b5af71 | /alf/networks/action_encoder.py | 16792ab6d227f26716c18cf61406688f1e6c33a0 | [
"Apache-2.0"
] | permissive | HorizonRobotics/alf | d6dac891322a81ccb7e2a9749139627b1eda28cb | b00ff2fa5e660de31020338ba340263183fbeaa4 | refs/heads/pytorch | 2023-08-21T18:51:41.370566 | 2023-08-16T00:07:22 | 2023-08-16T00:07:22 | 178,459,453 | 288 | 57 | Apache-2.0 | 2023-09-14T20:40:20 | 2019-03-29T18:44:07 | Python | UTF-8 | Python | false | false | 2,719 | py | # Copyright (c) 2019 Horizon Robotics. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | [
"noreply@github.com"
] | HorizonRobotics.noreply@github.com |
23993e6b312f5319a07ecd4680effe7fcf0d9c67 | 0561e7ef249845903457870b50331977af95bb7c | /networks/pemp_stage2.py | 63de0014b8370800d1d72b8f18b2ed17c6a45622 | [
"MIT"
] | permissive | Jarvis73/PEMP | 70412d5d600aaabf13eaedea9fe0af0f02d2785c | d7a300f8b7565efe478473ee4a7ee63bf0031c8c | refs/heads/main | 2023-05-27T22:24:30.209445 | 2021-06-07T07:00:57 | 2021-06-07T07:00:57 | 372,802,221 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 11,778 | py | from collections import OrderedDict
from pathlib import Path
import torch
import torch.nn as nn
import torch.nn.functional as F
from networks import backbones
from networks.pemp_stage1 import net_ingredient, PEMPStage1, pretrained_weights, backbone_error
PriorNet = PEMPStage1
@net_ingredient.config
def priornet_co... | [
"zjw.math@qq.com"
] | zjw.math@qq.com |
31796965335c361024f29cf5de2c18699d806d6e | 0f2d3fca1ef0d59f5276b2e1e1af7b02c225917b | /tests/test_visualiser.py | 827a2853bb3584bb13a1ba442160337714b47305 | [] | no_license | breakingflower/door2door_mi_challenge | 4f3f47b8cfae91d2684a85df7956f1b201cec36f | 450f1ba9a0d281ca418da8d256da329db31a102f | refs/heads/master | 2023-04-13T23:34:06.637892 | 2020-09-28T20:15:38 | 2020-09-28T20:15:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,225 | py | ###################################################################
# Script Name : "TEST_VISUALISER.PY"
# Description : Tests for the visualiser/visualiser.py file ... | [
"floris.remmen@gmail.com"
] | floris.remmen@gmail.com |
f0c2651bd1caa32ffae059846f3a13da0a81e91e | 19c6ae914b454dd2e23e364b78fab8734e300316 | /api/migrations/0003_auto_20180414_1541.py | 020b94563bce9b5d0c3044ae773d370daada992d | [] | no_license | deepnirmal/Django-sample | 6e538a6f1acc989302c70459d388e1d49a86944b | 29eed30fec4d3f5f9d53090e6dd54707b45e37ce | refs/heads/master | 2020-03-10T23:29:13.531222 | 2018-04-16T05:17:07 | 2018-04-16T05:17:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 461 | py | # Generated by Django 2.0.4 on 2018-04-14 15:41
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
('api', '0002_auto_20180414_1524'),
]
operations = [
migrations.AlterField(
model_name='task',
... | [
"Deep.Nirmal@walmart.com"
] | Deep.Nirmal@walmart.com |
5ce0a9c5a2771d2c02defab056fef6f9f18b954d | 425348ff17e6dc9bf5e822378aa4c06260ec2e33 | /groceries_fwdtest.py | f4a2664871278fde506122239eebfdbc8f61fc05 | [] | no_license | themathgeek13/robotautonomyproject2020 | 002ff2d8b9a058f99611dd3c90086f16f7720660 | 2e09821ada48872b65d33710d5364e1bca8eedea | refs/heads/master | 2022-04-23T19:11:27.451491 | 2020-04-19T19:00:29 | 2020-04-19T19:00:29 | 254,685,153 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,171 | py | import numpy as np
import scipy as sp
from quaternion import from_rotation_matrix, quaternion
from rlbench.environment import Environment
from rlbench.action_modes import ArmActionMode, ActionMode
from rlbench.observation_config import ObservationConfig
from rlbench.tasks import *
from perception import CameraIntrins... | [
"themathgeek13@gmail.com"
] | themathgeek13@gmail.com |
b9053a14c9ecab360901c53e37eb3ed50d3054f1 | e1c10cc188de604dfbce7403a7612f0c84457db4 | /resources/lecturer.py | 2c4dc1f536de265a9bafc89e569c8a4b714c7e16 | [] | no_license | clemkofi/ccn_directory | 42499e640d098f96e810226b6602c7747e1456af | 50a8818f23e60ca74a075d77270aebfdd613505d | refs/heads/master | 2022-12-09T20:01:21.694835 | 2018-11-09T08:06:50 | 2018-11-09T08:06:50 | 155,115,133 | 0 | 0 | null | 2022-12-08T01:15:42 | 2018-10-28T21:00:12 | Python | UTF-8 | Python | false | false | 10,868 | py | from resources_classes.db import DatabaseReq
from flask import request, jsonify
from flask_restful import Resource, reqparse
from apiapp import pass_generator, get_timestamp, get_current_timestamp, get_date_from_timestamp, get_token_for_user
from notification_service.notification_mail import password_notification
from ... | [
"cak.nartey@gmail.com"
] | cak.nartey@gmail.com |
4c4e27e45b34e9331a3ec84ac79cfdf43b698848 | f2543f7266cc6f6bebee3d14081daaa676a6f80a | /tensorflow_federated/python/research/optimization/emnist_ae/dataset_test.py | aa4b7a71a5ea7055bce4f6d2649dd8c65cb6a93a | [
"Apache-2.0"
] | permissive | matech96/federated | d497d24e64399f6b1da673a8457e88a18bc29473 | b30a26d66162bd02a89a12f119e17925d161a26b | refs/heads/master | 2022-11-12T10:20:34.483506 | 2020-06-11T21:13:02 | 2020-06-11T21:13:30 | 271,650,529 | 0 | 0 | Apache-2.0 | 2020-06-11T21:31:51 | 2020-06-11T21:31:50 | null | UTF-8 | Python | false | false | 1,962 | py | # Copyright 2019, The TensorFlow Federated 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 o... | [
"tensorflow.copybara@gmail.com"
] | tensorflow.copybara@gmail.com |
49876f9f114cb015c6ec0352ca7ce0cdded1edee | 0393e64ac4ed8e3d745b31d44836b58571faaabb | /aefingar_forritun/daemi21-while.py | 62b274d4f84b333ad325bb3863b604122476a8e9 | [] | no_license | danielthorr18/forritun_git | c3647e1e6dd35cd55287bb2d51066d8ab55ea931 | b544371664a15dd0660aef83cdf474e506e1b412 | refs/heads/master | 2020-03-28T00:04:50.700712 | 2018-11-15T15:26:42 | 2018-11-15T15:26:42 | 147,368,645 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 197 | py | turns = int(input("Sláðu inn tölu: "))
counter = 0
while counter < turns:
pick = int(input("Sláðu inn tölu: "))
if pick % 2 == 1:
print("þú valdir", pick)
counter += 1 | [
"danielr18@ru.is"
] | danielr18@ru.is |
ddb9e86f2af78422c26df983d968c40f0bf75e76 | df4d6e326241b044b6de4064fd595be556f14902 | /src/mysite/resources/views.py | 6c8fb593075077c2a543a54423b686fcf0208c1a | [] | no_license | Joelant97/AppLeo-Proyecto_Final | 9218a088991a32ce90ed0a838ef88679d7f846d9 | ee1613d11302b007e254ecb676c8720d9a27d498 | refs/heads/master | 2021-06-24T10:30:56.337788 | 2020-08-26T09:18:24 | 2020-08-26T09:18:24 | 147,465,639 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,502 | py | from django.http import HttpResponseRedirect, HttpResponse
from django.shortcuts import get_object_or_404, render_to_response
from django.views import generic
from django.views.generic.edit import CreateView, UpdateView, DeleteView, View
from django.core.urlresolvers import reverse_lazy
from .models import Estudiante, ... | [
"joelant97@gmail.com"
] | joelant97@gmail.com |
1d9541158f83578238b98dcdfc19ba79daf98b49 | 9ac08da288a54b1b2a2e318cbfd906d30364eac8 | /src/unit3_challenge2.py | 6388b50d56c93b0519a184e13358bb6ab3b9d55e | [] | no_license | bigdatasciencegroup/datalab | 79bac9caf42352eefd0e79977cfb6e28c6af7323 | 83617eba3b9b1170e5f271d12e79ad7c6bcfdd66 | refs/heads/master | 2023-05-09T21:50:58.008163 | 2020-01-01T12:32:56 | 2020-01-01T12:32:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,950 | py | import sys
from sklearn.metrics.cluster import adjusted_mutual_info_score
from sklearn.feature_extraction.text import TfidfVectorizer, CountVectorizer
from src.base.task import BaseTask
from src.utils.models import FileSizeClusterer
from sklearn.base import TransformerMixin
import numpy as np
from io import BytesIO
fro... | [
"jonasitzmann@github.com"
] | jonasitzmann@github.com |
19e8f21141951d921204abcb75ae7fa31b3ef394 | 4d547798e619238c13dc5cf7c82e7f7ff2451c1c | /DjangoSunucu/Proje/Sunucu/models.py | 986ee05fdf47264d351d88dc101826a60916dc2a | [] | no_license | emogooo/Buyukbas-Android-IOS-Uygulamasinin-Sunucusu | c845224275dcdba712411a009725a90331360e3a | 5daf911c597c5fe437cc7fb02720e4d3253f54f3 | refs/heads/master | 2022-12-08T03:08:43.938063 | 2020-09-04T12:24:24 | 2020-09-04T12:24:24 | 292,840,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,593 | py | from django.db import models
"""
from django.db.models import signals
from django.dispatch import receiver
from django.db.models.signals import pre_save
"""
class Asi(models.Model):
ad = models.CharField(max_length=30)
aciklama = models.CharField(max_length=200)
def __str__(self):
return self.ad
c... | [
"58745898+emogooo@users.noreply.github.com"
] | 58745898+emogooo@users.noreply.github.com |
ff3b79306b579ddcb48b552d769e092672abe3e5 | ec2937329e810741c768f421b1f143dcc23e0431 | /testapp/models.py | 12fef266b580d5f71d6528cf84549bf78a0ff17a | [] | no_license | kaushikdobariya777/dk_lms | fdc0ebf09980f029f4072756ee5a82e07e3506fc | d26eb169d990a3eeea5d8e56be8dd44dcd13e76c | refs/heads/master | 2023-07-19T17:08:55.287103 | 2021-08-26T03:31:43 | 2021-08-26T03:31:43 | 400,028,560 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 252 | py | from django.db import models
class Employee(models.Model):
eno=models.IntegerField()
ename=models.CharField(max_length=30)
esal=models.FloatField()
eaddr=models.CharField(max_length=60)
def __str__(self):
return self.ename
| [
"kaus.patel777@gmail.com"
] | kaus.patel777@gmail.com |
d0b5c3f8d6c7520c4bec6204a5f3d9ed7fbba332 | f1a6e9228ee3a66a2b878b85ee6e6b5d6ac9ddfa | /gallery/wsgi.py | 0276e4ba6c10865c3587a5b1d6d76a8c445f3cd2 | [
"MIT"
] | permissive | Doktatech/Gallery | 499f0b645d6f9e74d7f16a688ea8a62d331f03d8 | 7916ce6e38c80817554b1d02f7886f7b1ee759f7 | refs/heads/master | 2021-09-09T11:54:25.624827 | 2019-06-17T13:03:13 | 2019-06-17T13:03:13 | 191,943,755 | 0 | 0 | null | 2021-09-08T01:04:47 | 2019-06-14T13:00:27 | Python | UTF-8 | Python | false | false | 394 | py | """
WSGI config for gallery 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/1.11/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault("DJANGO_SET... | [
"Doktatech2@gmail.com"
] | Doktatech2@gmail.com |
c9a604456c34d29080c08177efe61aef1e31a260 | 55cdb125dcff042f59798253ec63ee021755a01b | /cookie-Token/models.py | ac280672d77adad609d5c9fc3d8182ec488781df | [] | no_license | chaojixiaoyao/python-rear_end | 5b547548a57109ce4f067a9a140288af96388ba3 | 3c05d2d92948780ac8bd91d3bead05fb08900c38 | refs/heads/master | 2020-05-15T13:14:14.848573 | 2019-05-16T10:02:47 | 2019-05-16T10:02:47 | 182,291,566 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,641 | py | import json
def save(data, path):
"""
data 是 dict 或者 list
path 是保存文件的路径
"""
s = json.dumps(data, indent=2, ensure_ascii=False)
with open(path, 'w+', encoding='utf-8') as f:
f.write(s)
def load(path):
with open(path, 'r', encoding='utf-8') as f:
s = f.read()... | [
"noreply@github.com"
] | chaojixiaoyao.noreply@github.com |
727bc0e499477df5820ad111e776f25fb0102e8f | a5c975a059b785a413c5f8b47bc7127e326c4382 | /08_cell_line_prediction/nbconverted/plot_drug_response_classification.py | 1ed4b814ad288e7bec2cfab83ce5de61e928c983 | [
"BSD-3-Clause"
] | permissive | greenelab/pancancer-evaluation | a36d00c52ec1a6c44a1b3d7593adc107b546ea2c | 7650b0ff18dfa466b74937cfcac3317443d01056 | refs/heads/master | 2023-08-29T00:32:32.524308 | 2023-08-15T18:51:41 | 2023-08-15T18:51:41 | 283,575,430 | 9 | 2 | BSD-3-Clause | 2023-08-15T18:51:42 | 2020-07-29T18:38:57 | Jupyter Notebook | UTF-8 | Python | false | false | 8,622 | py | #!/usr/bin/env python
# coding: utf-8
# ## Analysis of drug response binary classification with held-out cancer types
# In[1]:
import os
import sys
import numpy as np
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
import pancancer_evaluation.config as cfg
import pancancer_evaluation.uti... | [
"jjc2718@gmail.com"
] | jjc2718@gmail.com |
61448bc81242a735d68558bf06e984de2a08c430 | 5e5b1a6cb0d3afe2c0b8e8ff36b53279c453b81b | /POC/POC/urls.py | ea1bc30c604473692e0068cacf39a74b4058abc1 | [] | no_license | akshayratimani/GITProjects | a422addd407680097d14fbc1e5e4c78c8a81b96a | 1ba9e272c11693337b7b295ab9dedcba75904525 | refs/heads/master | 2022-12-21T09:06:37.344947 | 2019-08-22T04:56:57 | 2019-08-22T04:56:57 | 195,341,518 | 0 | 0 | null | 2022-12-10T05:34:59 | 2019-07-05T05:00:40 | Python | UTF-8 | Python | false | false | 792 | py | """POC 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')
Class-based vie... | [
"akshay.ratimani@gmail.com"
] | akshay.ratimani@gmail.com |
64ee037a348f62ede96c0c96f074d48d1350d374 | 6b5c6d0258833d706cbcedc4499879bef659aeb4 | /tools/__init__.py | f5161f39b10fef2058eefc05f340a0aebcc33120 | [] | no_license | udjenweb/online_courses | ce80474a11d2dbb7c45e34597dd2ce79e6462074 | 515307de0ce3997610b150f361f88600fc8799bd | refs/heads/master | 2021-01-21T20:38:50.688646 | 2017-05-24T08:18:00 | 2017-05-24T08:18:00 | 92,264,065 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 423 | py | # coding: utf-8
from .eve.eve_sqlalchemy_fix import EveSQLAlchemy
from .eve.domains import Domains
from .aditional.current_object import CurrentObject
from .http.response_standard_json import (
response_data_error,
response_data_success,
)
from .aditional.console import draw
from .aditional.loggingconf import... | [
"udjen.web@gmail.com"
] | udjen.web@gmail.com |
ea6229eb0f4297817a25182b65275423940a989f | 425ef46a6f6a3fd799e059eeacda10068976a282 | /menu/migrations/0002_auto_20210605_2027.py | e8a60db0f6704a40945aa6dad772dcaf8c71bd1e | [] | no_license | dervin48/Final2021 | 6ac6365c9e2dbc31945afd7e5bf5a3ca5a97f439 | 30360210a3cdf9b5119b02af614a6421fb78c82a | refs/heads/master | 2023-06-28T22:24:35.515353 | 2021-07-28T03:39:59 | 2021-07-28T03:39:59 | 390,199,922 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 574 | py | # Generated by Django 3.2.3 on 2021-06-06 02:27
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('menu', '0001_initial'),
]
operations = [
migrations.RemoveField(
model_name='menu',
name='platillo',
... | [
"dervin48@gmail.com"
] | dervin48@gmail.com |
5088bebe0a74fe7a49d2306ad3b49bf4a1f417e8 | b3aa8da5d15267f9d644dd4a97678deda34edf20 | /management/urls_v1.py | 666c1d886cb4f9ec954e1883510dfc9ae035c2cb | [] | no_license | igarcez/quarantine-help-api | e6a79a7b8a71d50446ddb59db48afe35452c531e | af0563345c16cddc0c87f0d6f60f23b1f885c82b | refs/heads/master | 2021-05-22T17:45:17.010174 | 2020-04-04T15:38:11 | 2020-04-04T15:38:11 | 253,026,248 | 0 | 0 | null | 2020-04-04T15:02:57 | 2020-04-04T15:02:57 | null | UTF-8 | Python | false | false | 298 | py | from django.urls import path
from management.views import ListCreateRequestsAPIV1, MeRequestDetailAPIV1
urlpatterns = [
path("requests/", ListCreateRequestsAPIV1.as_view(), name="create_list_requests"),
path("requests/<int:pk>/", MeRequestDetailAPIV1.as_view(), name="detail_request"),
]
| [
"tony.thomas@keyflow.se"
] | tony.thomas@keyflow.se |
721df6306fe4aea832ee672e8b82516f53baa8c3 | 4fd73945d4794f4fd38aa66d433afca83fbadff5 | /Ch2_compare_test.py | 626c7cd609b2b86d3d0dac824f45c584faf089d4 | [] | no_license | jasper2326/Scrapy | be120ba1b4c6fd218343c717dc8919e88ddf0af8 | 71227812b917bbd54fef6fb423e4e1f1c0bfca24 | refs/heads/master | 2021-06-29T16:04:35.132250 | 2017-09-16T13:45:52 | 2017-09-16T13:45:52 | 103,092,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 795 | py | # author = Jasper_Jiao@ele.me
# -*- coding: cp936 -*-
# coding: cp936
import time
import re
import Ch2_compare
import Scrapy.Ch1.Ch1_download
NUM_ITERATIONS = 1000
html = Scrapy.Ch1.Ch1_download.download_3('http://example.webscraping.com/places/default/view/united-kingdom-239')
for name, scraper in [('Re... | [
"noreply@github.com"
] | jasper2326.noreply@github.com |
7a024d0157cfc178d4f1771c56c94ee8a96ad515 | fd41984178ffba0846fa7ab1f67c1a0843a5e3ff | /自动化办公与鼠标键盘模拟/2.读取PDF文件/读取PDF文件.py | f2f9dc6056b35277a8a88b16d765a546092ed2d4 | [] | no_license | LasterSmithKim/Python-Base | 23f17472ee80f7224e96a4185775c9cd05ac7a98 | 27756126d999ddabf53b6bdc7114903a297464a0 | refs/heads/master | 2020-03-28T08:00:11.156911 | 2018-11-28T09:54:51 | 2018-11-28T09:54:51 | 147,939,778 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,066 | py | import sys
import importlib
importlib.reload(sys)
from pdfminer.pdfparser import PDFParser,PDFDocument
from pdfminer.pdfinterp import PDFResourceManager,PDFPageInterpreter
from pdfminer.converter import PDFPageAggregator
from pdfminer.layout import LTTextBoxHorizontal,LAParams
from pdfminer.pdfinterp import PDFTextEx... | [
"kingone@yeah.net"
] | kingone@yeah.net |
1ab06a77f35eb8d3293bafaa982d6bf715318a5c | 40785f93b9db553b365ba5afc648ca6146002219 | /storage_down.py | 4522ff112393f19aab4b7b592539b2fba40fddc0 | [] | no_license | Juanmanuelramirez/storage_python_gcp | c088297baff7aee9f547168796344a7e6090b5cb | a1729bf6cc90502a53ef18b7f590b55443f8cdbd | refs/heads/main | 2023-02-21T17:18:35.528633 | 2021-01-25T22:16:31 | 2021-01-25T22:16:31 | 332,898,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 962 | py | # -*- coding: utf-8 -*-
"""
Created on Mon Jan 25 16:02:47 2021
@author: juan m ramírez
"""
from google.cloud import storage
def download_blob(bucket_name, source_blob_name, destination_file_name):
"""Downloads a blob from the bucket."""
bucket_name = "my-photos"
source_blob_name = "storage-o... | [
"juanmanuelramirez@users.noreply.github.com"
] | juanmanuelramirez@users.noreply.github.com |
5647512c5cd52dcc2a76ac3b597b98b37f41dd63 | 5552d301f74af1db5472fa6d1acbef8689ef3823 | /rango/choices.py | 5cfb0fef92463b3d77fdc4c242bc77788abad593 | [] | no_license | Conal97/IT-Group-Project | 4d80b1b9dd71db4b51c9f77408ecde3b24398bac | a916a82d605d32b68792382fc00bd45559734496 | refs/heads/master | 2023-07-05T12:37:17.393949 | 2021-08-06T21:37:42 | 2021-08-06T21:37:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 83 | py | CHOICES = (
(1, '1'),
(2, '2'),
(3, '3'),
(4, '4'),
(5, '5'),
) | [
"conalbrosnan@gmail.com"
] | conalbrosnan@gmail.com |
1ac38f27c28376b90ec2804af78323ee6e419204 | a2a55863b02704abd82dcaf915c86256ed2f34ca | /rabbitmq/py/test1/recv.py | 82a06f0696025786b693c9c161a52b31e3f7661c | [] | no_license | evilsmile/OpenSourceLearn | 5e4859e78a514da4c24c3aae9c15d02dc86bc603 | e660f066f634a4ae3021dd390d187f53513f6d1b | refs/heads/master | 2020-04-07T01:17:39.527435 | 2019-06-14T09:21:15 | 2019-06-14T09:21:15 | 58,425,995 | 0 | 0 | null | 2019-10-31T11:04:47 | 2016-05-10T03:10:30 | Erlang | UTF-8 | Python | false | false | 405 | py | #!/usr/bin/python
import pika
connection = pika.BlockingConnection(pika.ConnectionParameters('localhost'))
channel = connection.channel()
channel.queue_declare(queue='hello')
print "[*] Waiting for Messages. To exit press CTRL+C"
def callback(ch, method, properties, body):
print "[X] Received %r" % (body, )
c... | [
"freedominmind@163.com"
] | freedominmind@163.com |
2e9d12a6e7190233efa49503cb1d489948f47589 | 451aa47b80ce89318d74113a1dfea781f79af441 | /onsset/funcs.py | dc4b17a6dbbf24dd39c27c4307cd744e183e53e2 | [
"MIT"
] | permissive | Somalia-Electrification-Platform/onsset | 79f08d837aea9abde6e5956c56c78d6db27f31b2 | 64f05ce862e2918b17869da3534d35ef3a5b401a | refs/heads/Somalia | 2023-03-30T23:54:43.831492 | 2021-03-23T10:42:17 | 2021-03-23T10:42:17 | 299,992,794 | 0 | 1 | NOASSERTION | 2021-03-22T10:19:37 | 2020-09-30T17:06:48 | Python | UTF-8 | Python | false | false | 10,014 | py | from onsset import *
import matplotlib.pylab as plt
import seaborn as sns
def tech_specifications(discount_rate, grid_generation_cost, grid_power_plants_capital_cost, grid_losses,
mg_hydro_capital_cost, sa_pv_capital_cost_1, sa_pv_capital_cost_2, sa_pv_capital_cost_3,
sa... | [
"asahl@UG.KTH.SE"
] | asahl@UG.KTH.SE |
ab4e73de38b60f3eace6b12186f95914e219c73f | 315d69e851b6faac40553c3c494f7681ffe783a3 | /KulliSharif/KulliSharifapp/serializers.py | a220f53fb0edd2796c425096163bac9c165766b5 | [
"MIT"
] | permissive | iqran-star/API-PROJECT | b6f1293f7b8fe45126ce96ddded2f1a2b94ca07f | 77d021098fd17b4ce086f8e6f914a7722fa9b558 | refs/heads/main | 2023-07-24T20:36:39.297576 | 2021-08-16T09:06:34 | 2021-08-16T09:06:34 | 396,709,238 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 552 | py | from rest_framework import serializers
from .models import *
class EventSerializers(serializers.ModelSerializer):
class Meta:
model=Events
fields='__all__'
class ProjectSerializers(serializers.ModelSerializer):
class Meta:
model=Projects
fields='__all__'
class VideoSerializers... | [
"khan@gmail.com"
] | khan@gmail.com |
2578e88ce408cf417424eda2136335cf2eb1c5d0 | a851830dbfd27d850e887d1cbc56c906512585d2 | /AS0/ps0-4-code.py | 7c37625f2438b193a9384e90e5fc0fc757b603e6 | [] | no_license | AlexisDrch/Computer-Vision | d6861f1e11401b6c0b131026bc22a76433b74025 | dc2687d53af73dd4e973bf969c48ae9f343bd49d | refs/heads/master | 2021-01-25T11:55:47.316194 | 2018-04-06T06:15:49 | 2018-04-06T06:15:49 | 123,440,935 | 8 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,549 | py | # ### 4. Arithmetic and Geometric operations
from scipy import misc
from scipy import ndimage
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.image as mpimg
# ### a.
# input 2 pictures as numpy ndarray
picture_1 = misc.imread('./pictures/ps0-1-a-1.jpg')
picture_2 = misc.imread('./pictures/ps0-1... | [
"aleksi.durocher@wanadoo.fr"
] | aleksi.durocher@wanadoo.fr |
caf01fee84b8f19a586c8dadd8b3aa0ec0be2030 | be3f8a09a5b8859fffa07673cdfd17723e843b86 | /src/Socket_Control/coordinate_collation_interface.py | 61179a2af41d390603fb1d43dad2348078877ed4 | [
"MIT"
] | permissive | SamKaiYang/2019_Hiwin_Shaking | 88646a0a9ff87dfe96a3fb90ede44602bd413d53 | d599f8c87dc4da89eae266990d12eb3a8b0f3e16 | refs/heads/master | 2020-07-22T13:25:21.063822 | 2019-09-09T03:29:11 | 2019-09-09T03:29:11 | 207,216,404 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,413 | py | #!/usr/bin/env python3
# license removed for brevity
#encoding:utf-8
import tkinter as tk
import shake_strategy_trigger as shake_trig
import shake_strategy_content as shake_cont
# interface for collation
# =======================================================================
# =23/07/2019:add above pos_collation ... | [
"tt00621212@gmail.com"
] | tt00621212@gmail.com |
e2a9bbdc2ea7cc162fcbc32b492bac04782e2765 | a01eb0b3e5f1ab895aa2873154c1e30d67a26767 | /venv/lib/site-packages/recordclass/dataclass.py | 6314b71002756048efa70598bfc80df6e0ab70b5 | [] | no_license | edonadini/SM_Exam | bb20af3826388d34459cbaf79ea57d65757772a5 | e1e3cb9ca47e4224c856bb1d9f3477e8fb844e14 | refs/heads/master | 2022-04-17T16:08:07.735003 | 2020-02-21T10:30:27 | 2020-02-21T10:30:27 | 239,159,329 | 0 | 0 | null | 2020-02-18T17:18:03 | 2020-02-08T15:59:40 | Python | UTF-8 | Python | false | false | 6,990 | py | # coding: utf-8
# The MIT License (MIT)
# Copyright (c) «2015-2020» «Shibzukhov Zaur, szport at gmail dot com»
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software - recordclass library - and associated documentation files
# (the "Software"), to deal in the Software wit... | [
"fedes770@gmail.com"
] | fedes770@gmail.com |
d521724116b490a6181f5b3f286c4bc901268838 | 93ff3a214354128910c5c77824c64678d78e556d | /downloads/views.py | cd885baeb2cf1ca88ff849bf9cbe45dc2e079bad | [
"LicenseRef-scancode-public-domain",
"MIT"
] | permissive | samoKrajci/roots | 1fc2c7f205ba9dc0d9026026253c7349c3a551aa | 9c6bf6ed30e8e6ff9099e9dca6d56a2df2ef10b0 | refs/heads/master | 2021-09-23T02:20:17.927687 | 2017-01-01T19:05:22 | 2017-01-01T19:05:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,090 | py | from sendfile import sendfile
from django.conf import settings
from django.core.exceptions import PermissionDenied
from django.contrib.auth.decorators import login_required
@login_required
def download_protected_file(request, model_class, path_prefix, path):
"""
This view allows download of the file at the sp... | [
"tomasbabej@gmail.com"
] | tomasbabej@gmail.com |
b2604be8d025306b86a7c2085b36874e3b15e52b | 61b86155af0ba6b052172f1ec22fb16db85a4139 | /pii-detector/wpapper/address-generator/app.py | d1f33256c9599a944a762d727c92ac3ecbe06681 | [] | no_license | exsmiley/counter-dox-9001 | 010eedfd530ec9a51d98e2b1eba45c66256d8841 | 4306f78785b3f2a5c5c585c2a1ee40ecb117651b | refs/heads/master | 2021-03-19T18:40:28.571024 | 2018-02-18T11:02:52 | 2018-02-18T11:02:52 | 121,838,122 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 148 | py | from flask import Flask
from faker import Faker
fake = Faker()
app = Flask(__name__)
@app.route('/fake')
def get_fake():
return fake.address()
| [
"contact@papper.me"
] | contact@papper.me |
1145c0f615ad23c04858d918f11de82d472a12dc | ad3f8004c9618b682be086976b4e684020983614 | /AVByPass/asgi.py | 2bcce0d7cc7db17592d7ffc2947300ba2e95b410 | [] | no_license | h1ck0r/AVByPass | 772520e8e5ed06e046bccd027f462fe65a044cd8 | 45756de452cc1f7d079f5b0bdcf942ef51d8094d | refs/heads/main | 2023-07-14T07:45:29.311293 | 2021-08-27T09:05:54 | 2021-08-27T09:05:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 393 | py | """
ASGI config for AVByPass 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJANGO_SETT... | [
"1356654790@qq.com"
] | 1356654790@qq.com |
310c8ae150190d6740b6121ace9773d0a661e430 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/CodeJamData/11/32/13.py | c3ba2816bd0c1116751668d1ffb42f0e53b1d0e5 | [] | no_license | Kawser-nerd/CLCDSA | 5cbd8a4c3f65173e4e8e0d7ed845574c4770c3eb | aee32551795763b54acb26856ab239370cac4e75 | refs/heads/master | 2022-02-09T11:08:56.588303 | 2022-01-26T18:53:40 | 2022-01-26T18:53:40 | 211,783,197 | 23 | 9 | null | null | null | null | UTF-8 | Python | false | false | 2,460 | py | filename = "B-large.in"
outputname = filename + "out.txt"
inFile = open(filename, 'r')
outFile = open(outputname, 'w')
numCases = int(inFile.readline())
def getTime(fullGapList, ttb, numStations):
currTime = 0
counter = 0
while currTime < ttb and counter < len(fullGapList):
currTime +... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
7f824ee40e811bbb0b10b06bebe9de412a97a178 | 65e07d1e35598e5686e743e9bdefcdd5e1269a0d | /archiveit_redirect.py | 51440f3afb3374425033df8ef6d544f7754a5e5a | [] | no_license | ale-gaeta/bentley_scripts | 94dbf3e120c218ec0af8ed235bc304ca45b3518e | 2ad4b986212715a495036697d78952dc53dad74c | refs/heads/master | 2023-03-15T14:12:12.595590 | 2016-06-30T19:02:55 | 2016-06-30T19:02:55 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,501 | py | import os
from os.path import join
import requests
from lxml import etree
import csv
import re
import HTMLParser
def get_redirect_metadata(redirect_dict, collection_id, redirect_dir):
skip = ['createdDate','lastUpdatedDate','active','public','note','url']
starting_seeds = {}
for seed in redirect_dict:
... | [
"djpillen@umich.edu"
] | djpillen@umich.edu |
0266bd7134271024524ddc5c990c861f50637257 | 33e6e2263f5119b9c636a0bcd709d1640ac4e3ad | /ex/ch4-6.py | 84ef988befad8c221b56e13a508437158c808018 | [] | no_license | jonsant/python | 5efee9c4314acedf2ef137cc432910963303ea0c | 9f42e2334e40cb59d70ede63f682c94130e84c7d | refs/heads/master | 2020-07-01T15:11:06.297789 | 2019-09-06T07:40:36 | 2019-09-06T07:40:36 | 201,206,113 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 71 | py | numbers = list(range(1, 21, 2))
for number in numbers:
print(number)
| [
"jonssonanton@hotmail.com"
] | jonssonanton@hotmail.com |
f9088491167a8f8b689fd4cfdb455a3caa9daabc | 6d85b0c31816d14e37ff2e9ba29edc700aeb072d | /tests/test_log_post.py | cdbc5b26ebfb60308d6fb50a78fe0877b4e746e6 | [] | no_license | shayan-7/accesshandler | 6221fddf23add8d5d70d7cf4d9494a86ad64e51f | 22e25dcbc557f8c3ba087c9480876637db95941d | refs/heads/master | 2020-12-30T04:59:44.717051 | 2020-02-22T11:39:18 | 2020-02-22T11:39:18 | 238,868,370 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,602 | py | from bddrest import status, given, when
from accesshandler.models import Rule
from accesshandler.cache import redisconnection, keystr
from .helpers import LocalApplicableTestCase
class TestLog(LocalApplicableTestCase):
@classmethod
def mockup(cls):
session = cls.create_session()
cls.rule1 = ... | [
"shayan.rokrok@gmail.com"
] | shayan.rokrok@gmail.com |
2bcab1d17e72142051b25c45ac0f9e27124939ed | fda60b266df8f793e7ad19fa9caaf6a149a84064 | /homework4/cham/hw4_1_3.py | 1666fe173c3a73bf36f77c6381a9838deadb38a2 | [] | no_license | hoangi19/tkdgtt | eb589b75438441c992a2126b59195740a64ba286 | 36f0f51930f119d0a3f7ee37f3584d8a55e914ee | refs/heads/master | 2022-10-30T00:35:04.238463 | 2020-06-10T12:18:50 | 2020-06-10T12:18:50 | 262,357,661 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 269 | py | # Liet ke cac day nhi phan co do dai n
n = int(input("Day nhi phan co do dai n = "))
a = [0]*n #list a co n phan tu gia tri 0
def lietke(i):
for v in [0,1]:
a[i] = v
if i==n-1:
print(*a)
else:
lietke(i+1)
lietke(0)
| [
"viethoanghy99@gmail.com"
] | viethoanghy99@gmail.com |
2a90475a226a8743f66d4c4e113d97af8b7e8754 | 2f737cb4ac4e00d7f850624d5a9fc94e7425155b | /interview/views.py | b577b8b321bbb2cc19bd49026e5b968117448b1b | [] | no_license | eppel81/testchallenge | bd3a789a37280d8471a04c19eb1b4bdcf319fea7 | 3dce0ac40e1acbe691659786e765e34eb15a0ede | refs/heads/master | 2016-08-11T07:46:18.963408 | 2015-11-03T14:22:54 | 2015-11-03T14:22:54 | 43,557,586 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 12,076 | py | # -*- coding: utf-8 -*-
from django.shortcuts import render, get_object_or_404, Http404, redirect
from django.contrib import auth
from django.core.context_processors import csrf
from django.http import HttpResponseRedirect
from django.core.urlresolvers import reverse
from django.contrib.auth.decorators import permissio... | [
"gogenko@ukr.net"
] | gogenko@ukr.net |
434fdb58896efe0f73e59f882ed49683762ff4ed | c78e4099ed26a16e10c6c84fa1340ecab87543f2 | /userbot/__main__.py | 1acb072dc64b8265230aca7f8b60fbdbe52a84c0 | [
"MIT"
] | permissive | Azharjacx/NandiOXbot | 6cd903636249471470b2d6fe3d5c29e6cb5541f4 | c1ee9162123d4ecda1da79124ae1219d79e148a0 | refs/heads/master | 2022-04-17T02:20:15.729587 | 2020-04-18T17:47:21 | 2020-04-18T17:47:21 | 256,779,578 | 0 | 0 | MIT | 2020-04-18T14:53:51 | 2020-04-18T14:53:51 | null | UTF-8 | Python | false | false | 8,938 | py | from userbot import bot
from sys import argv
import sys
from telethon.errors.rpcerrorlist import PhoneNumberInvalidError
import os
from telethon import TelegramClient
from var import Var
from userbot.utils import load_module
from userbot import LOAD_PLUG, BOTLOG_CHATID, LOGS
from pathlib import Path
import asyncio
impo... | [
"noreply@github.com"
] | Azharjacx.noreply@github.com |
0ca7a55823766868ef8a426788307d7b230bcd74 | a042315d28c3e8914abdad8b3949f393a03d18c5 | /src/models/legendre_duality_toy_interp/model.py | 48f265d0acb6372a5ab13d4c9df312f117545a6a | [
"MIT"
] | permissive | lavoiems/NeuralWassersteinFlow | 76e80971a24f5f2d28023c18f81e5388194751f6 | b120778d75fc7afc9b6a56724768ab39ad7c0b91 | refs/heads/master | 2022-04-15T19:00:46.474142 | 2020-04-10T22:40:33 | 2020-04-10T22:40:33 | 225,720,524 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,229 | py | import torch
from torch import nn
class Critic(nn.Module):
def __init__(self, i_dim, h_dim, **kwargs):
super(Critic, self).__init__()
x = [nn.Linear(i_dim+1, h_dim),
nn.ReLU(inplace=True),
nn.Linear(h_dim, h_dim),
nn.ReLU(inplace=True),
nn.Linea... | [
"samuel.lavoie.m@gmail.com"
] | samuel.lavoie.m@gmail.com |
bb6602a7854840f66e247e8cbf478158d0ad52eb | 131d655a07e9341c18173d34c4bad7e214ed28d4 | /windowsandlabels.py | a8ae8b7a35b29aac2e0bd7f6ed1a65be8d189d2d | [] | no_license | Harsh200/pythontkinter | d5ca4329e36346393ac28ce83e9df8e6b61654eb | d81914fb95e3e18c933b77fab5efb2bcc19aba94 | refs/heads/master | 2020-04-24T10:46:28.534256 | 2019-02-21T17:01:16 | 2019-02-21T17:01:16 | 171,905,022 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | import tkinter
window=tkinter.Tk()
lbhello = tkinter.Label(window,text="Hello World")
lbhello.pack
window.mainloop()
| [
"harsh.saxena_ccv17@gla.ac.in"
] | harsh.saxena_ccv17@gla.ac.in |
9bdb23c1d36a920a54a4a88f4c8e96b6ad9d5338 | 135705380fd6496c8629b31510622a72a86e4795 | /guestbook/__init__.py | 857d8ca01768ac3f30d21ebe110f281f8c5b0e48 | [] | no_license | c-nova/guestbook | aa1b577835ba291b95fa4fc2bfa24971205fec3c | c83c43957c0e06b091218e725a8a2a31e29e1174 | refs/heads/master | 2016-08-11T19:05:42.008387 | 2016-01-06T03:47:30 | 2016-01-06T03:47:30 | 49,036,023 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,738 | py | # coding: utf-8
import shelve
from datetime import datetime
from flask import Flask, request, render_template, redirect, escape, Markup
application = Flask(__name__)
DATA_FILE = 'guestbook.dat'
def save_data(name, comment, create_at):
"""投稿データを保持します
"""
# shelveモジュールでデータベースファイルを開きます
database = shel... | [
"iguazudemo2@gmail.com"
] | iguazudemo2@gmail.com |
42e0edb633c9498ca865bd735ff7de4fec5a8333 | e0045eec29aab56212c00f9293a21eb3b4b9fe53 | /hr_payroll_account/models/hr_payroll_account.py | 8b32bbc1e6f2d79fb1556864a63d4f9623022933 | [] | no_license | tamam001/ALWAFI_P1 | a3a9268081b9befc668a5f51c29ce5119434cc21 | 402ea8687c607fbcb5ba762c2020ebc4ee98e705 | refs/heads/master | 2020-05-18T08:16:50.583264 | 2019-04-30T14:43:46 | 2019-04-30T14:43:46 | 184,268,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,589 | py | #-*- coding:utf-8 -*-
# Part of ALWAFI. See LICENSE file for full copyright and licensing details.
from odoo import api, fields, models, _
from odoo.exceptions import UserError
from odoo.tools import float_compare, float_is_zero
class HrPayslipLine(models.Model):
_inherit = 'hr.payslip.line'
def _get_partne... | [
"50145400+gilbertp7@users.noreply.github.com"
] | 50145400+gilbertp7@users.noreply.github.com |
cd5bbdded967c000f91d69083bde75bb9d01067e | e4a4859e588efbadbb18d796b48db772645a008d | /blog/views.py | 0b1ccf7691cd7039f579182f370ef5f66bdbad81 | [] | no_license | majorsigma/mysite | d2f4c8343231bfaa8ad830640e52f6d9bdc1808b | aec90d5696a93f9a70ffb29be3734be33ee26cfd | refs/heads/master | 2023-04-11T09:21:53.157049 | 2021-04-27T06:36:24 | 2021-04-27T06:36:24 | 357,853,595 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,669 | py | from django.shortcuts import render, get_object_or_404
from .models import Post, Comment
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from django.views.generic import ListView
from .forms import EmailPostForm, CommentForm
from django.core.mail import send_mail
from taggit.models import Tag... | [
"olalekan.o.ogundele@gmail.com"
] | olalekan.o.ogundele@gmail.com |
fdf636afdf8305c4b4a96ecb60581c46eb1ff1c1 | eb9efff3d2996a2640cdf50954a8c13a97b34491 | /ssh_run_wl.py | 2a70f8c5f613e8cff7128edf76b96b51bfef016a | [] | no_license | jagratac/genVT_wlcBench | 3b0b3fde15bb988577d29d83c14b56235f8dbe53 | 5e3d86b0dbd1e76e216f8dd665e6472e76e28a1a | refs/heads/main | 2023-08-27T16:08:18.250486 | 2021-10-25T05:05:38 | 2021-10-25T05:05:38 | 416,367,671 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 906 | py | import sys
import yaml
import paramiko
def get_VM_info():
with open(sys.argv[1]) as f:
data = yaml.full_load(f)
return data['ip'], data['un'], data['pwd'], data['cmd']
def Create_SSH():
if None in [host,un,pwd]:
print('Missing one of the required credentails')
return N... | [
"jagrat.acharya@intel.com"
] | jagrat.acharya@intel.com |
7b684337197c473ca2fbb5bd628978519553e9fb | 2f07911e75ded21b80cae89ded82ce38f03a7931 | /example.py | 95c0f6863c126d023a70847fc9d9b552a45d593c | [] | no_license | benmaier/radial-distance-layout | 2b1571c34dd167301bfb8ea9750a177ac420cda9 | 9be12e2906138e239e72eeb6082ebcd3d569b3dc | refs/heads/master | 2022-02-23T08:09:58.174365 | 2022-02-12T21:44:41 | 2022-02-12T21:44:41 | 50,359,905 | 3 | 2 | null | null | null | null | UTF-8 | Python | false | false | 806 | py | from radial_distance_layout import radial_distance_layout
import matplotlib.pyplot as pl
import networkx as nx
paths = [ [ 'a','b','c'] ]
paths += [ [ 'a','b','d'] ]
paths += [ [ 'a','e','f','g'] ]
paths += [ [ 'a','e','f','h'] ]
paths += [ [ 'a','e','i'] ]
paths += [ [ 'a','j','k'] ]
paths += [ [ 'a','j','l'] ]
di... | [
"benjaminfrankmaier@gmail.com"
] | benjaminfrankmaier@gmail.com |
7f2cd7da5bd2d83385ca30d7cfaefa4f25d1f118 | d30e6c0e68955f27f1f81c898283c36b1f21954d | /my_pipeline.py | cdbd57e28392c109c3d3a524763eafead64eaf9e | [] | no_license | chStaiger/ACES | 0d9bb8ad5cf435a0b5ae6a8fe756b458026b78a1 | 33892fb2562cdb5b3784545ceb103a3c36db2168 | refs/heads/master | 2021-01-10T13:28:39.974974 | 2016-03-08T15:14:11 | 2016-03-08T15:14:11 | 53,335,156 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,817 | py | # @Author
# Christine Staiger
# staiger@cwi.nl; staigerchristine@gmail.com
# July 2013
from picas.clients import CouchClient
from couchdb import Server
from picas.modifiers import BasicTokenModifier
from picas.actors import RunActor
from picas.iterators import BasicViewIterator
from SetUpGrid import SetUpRun, RunInsta... | [
"christine.staiger@surfsara.nl"
] | christine.staiger@surfsara.nl |
26e3adefa2e96ed18b13e2448b6fdad2336a3893 | cf6a9086157598a95458bdd4185c3ea89af74f75 | /newtest.py | 13674149afdfcbc75f819a1135c74af39b897ecd | [] | no_license | KyungrokH/testing- | b26811efbb549260a177307202551bb0211939bc | 38762224543d423b184486ad0eb428f93632eee9 | refs/heads/master | 2022-12-05T01:20:33.685789 | 2020-08-12T21:19:06 | 2020-08-12T21:19:06 | 287,074,902 | 0 | 0 | null | 2020-08-12T21:19:07 | 2020-08-12T17:29:20 | null | UTF-8 | Python | false | false | 64 | py | ## adding file in the new branch
print ("file in test_branch")
| [
"noreply@github.com"
] | KyungrokH.noreply@github.com |
3bb95ced81396f906f7822e77e1d040cd8901b31 | d33b2ce08591d23b06ab466f5dd6e302e3d4af2f | /fgcz_biobeamer.py.bak | 36ca192e64d75ab8a4deb5d3140b2ca66875ef94 | [] | no_license | Python3pkg/BioBeamer | 8b5fceb94664dbe7ce15603276f9628bbe6d25ca | 61dc1299fb47ece91ff9a7d333149cb2bfd500f3 | refs/heads/master | 2021-01-21T09:28:49.967511 | 2017-05-18T06:10:05 | 2017-05-18T06:10:05 | 91,655,529 | 0 | 0 | null | 2017-05-18T06:10:03 | 2017-05-18T06:10:03 | null | UTF-8 | Python | false | false | 1,595 | bak | #!/usr/bin/python
# -*- coding: latin1 -*-
"""
Copyright 2006-2015 Functional Genomics Center Zurich
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your opti... | [
"raliclo@gmail.com"
] | raliclo@gmail.com |
c3ab9466356c578a57a12b37f52986a52084c61f | 7ac11fbd946902189cad24b893128003e3df8211 | /instance/config.py | 1c955fa164465b3af0ebfab8cf58aa6d4d3b610b | [] | no_license | maxwellkimutai/Issue-Tracker-Flask | 6208b9712f767b09ce2f4026eb17eb3addfe10f6 | b1b9b2b50f8db700a10f99936f157654f596f4e4 | refs/heads/master | 2020-04-12T09:10:10.584044 | 2018-12-17T14:58:55 | 2018-12-17T14:58:55 | 154,103,371 | 0 | 4 | null | 2018-10-25T07:05:31 | 2018-10-22T07:32:37 | Python | UTF-8 | Python | false | false | 24 | py | SECRET_KEY='trackerkey'
| [
"maxwellkimutai@gmail.com"
] | maxwellkimutai@gmail.com |
d57b71394ab89f33a7b8a6c07d5e138611f899dd | cf2e40054af8a9d8c05b51000649d06ec572853d | /Cryptography/app.py | 127c3aabb0b7dc3f2c2e1e2b2b7a233cd43abdc1 | [] | no_license | Wiejeben/HR-Development-1 | 688ab5d60d310b37302e4a0ac29e0b78d6dc819e | a39a82288f3c1ce635ae0a42d41aef848efc4afe | refs/heads/master | 2021-05-30T01:57:27.857728 | 2015-10-11T10:38:40 | 2015-10-11T10:38:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 660 | py | message = raw_input("Enter a message: ")
offset = input("Encryption offset (number): ")
result = ""
offset %= 26
for char in message:
if char.isalpha():
# Apply offset
number = ord(char) + offset
if char.isupper():
# Uppercase
if number < ord("A"):
... | [
"wiejeben@gmail.com"
] | wiejeben@gmail.com |
0d7f42721b6eacdb5d33d48f5de654197b6e11ed | 750684eb0746831a0a386563c1741b7d77688be3 | /Code/Practice/Django/nsurds/rds/serializers.py | 89c2e6e1923f7a391a892de8c0114629b4cd4eb6 | [] | no_license | NSU-FA20-CSE299-2/Group04 | baa8b9135c6dd1dccc58cc3d57eb3687f3f33ab2 | fad1a7d158cb9098aa8b502a9e8a9a464323e44e | refs/heads/main | 2023-02-21T11:37:19.250373 | 2021-01-19T09:09:38 | 2021-01-19T09:09:38 | 309,945,555 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 190 | py | from rest_framework import serializers
from .models import student
class studentSerializer(serializers.ModelSerializer):
class Meta:
model = student
fields = '__all__'
| [
"abdullah.mahfuj@northsouth.edu"
] | abdullah.mahfuj@northsouth.edu |
0683bf8ad5c3c694f51449ee7707083a89cb157e | 75c23ba89772bfce73e6d370c18aefaf70baf4e5 | /bin/easy_install-3.6 | f9533533f76d00f9583ce63cda6dec7388aa4659 | [] | no_license | DanielscSeta/Mestrados_FCUP | 30dd529a9e9235021889ede8b659b599fe7fd75e | ce99367b6624e3445e2458f394e8411204c16bf4 | refs/heads/main | 2023-07-27T21:29:18.481205 | 2021-09-10T16:07:19 | 2021-09-10T16:07:19 | 404,388,992 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 255 | 6 | #!/home/jx23/Mestrados_FCUP/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from setuptools.command.easy_install import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"joaquim.tiago1999@gmail.com"
] | joaquim.tiago1999@gmail.com |
19041833fbb00349ef3cb22e3d4012571f7a05d5 | 633701ef4d039d2cd0d4409bd8ad765b748f1b96 | /ZuheGesdatos/src/GeneraConsulta/Title.py | a9ed747f9776c39769e601dca4aa2371d7973735 | [] | no_license | wahello/gesdatos | 4c991536f3265bf937ad117ed0c9c9b913182db5 | b7fa1939056baa01b48d310d981a5fb1493d6698 | refs/heads/master | 2020-03-11T12:25:37.275071 | 2015-12-14T04:25:35 | 2015-12-14T04:25:35 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,434 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import wx
class Title1(wx.Panel,):
def __init__(self, parent,*args, **kwds):
wx.Panel.__init__(self, parent,size=(100,100))
self.SetBackgroundColour("3399FF")
self.text = wx.StaticText(self, label="SElECCIÓN y FUNCIONES", pos=(0, 0))
self.font =... | [
"FABIO@FABIO-HP"
] | FABIO@FABIO-HP |
396fc78c6deed3bed86bd2e205d2cd7e3306ecc9 | 3c000380cbb7e8deb6abf9c6f3e29e8e89784830 | /venv/Lib/site-packages/cobra/modelimpl/infra/rsvpcbndlgrp.py | 1881c27187fd0259b96e7e54cb6987147cafcdb7 | [] | no_license | bkhoward/aciDOM | 91b0406f00da7aac413a81c8db2129b4bfc5497b | f2674456ecb19cf7299ef0c5a0887560b8b315d0 | refs/heads/master | 2023-03-27T23:37:02.836904 | 2021-03-26T22:07:54 | 2021-03-26T22:07:54 | 351,855,399 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,141 | py | # coding=UTF-8
# **********************************************************************
# Copyright (c) 2013-2020 Cisco Systems, Inc. All rights reserved
# written by zen warriors, do not modify!
# **********************************************************************
from cobra.mit.meta import ClassMeta
from cobra.m... | [
"bkhoward@live.com"
] | bkhoward@live.com |
47fd02cdb905a982497ef7ab2f1f11f846f17513 | 8b0c0da3d066d0f277f3d41c30bda28802f034a1 | /nlcd/local.py | e7cfa69dfc4b15f7d5aea58e450d68bc9a100eb6 | [
"MIT"
] | permissive | LucidAi/nlcd | 95dad7deb20f966222ccbc9d7e0dd62cdca1ea99 | 0cf17211e6272505b20089dc300ef0702645bec8 | HEAD | 2016-08-05T09:06:30.072959 | 2015-02-20T06:38:30 | 2015-02-20T06:38:30 | 18,310,003 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 2,115 | py | # coding: utf-8
# Author: Vova Zaytsev <zaytsev@usc.edu>
import os
import json
def project_dir(dir_name):
return os.path.join(os.path.dirname(__file__), "..", dir_name)\
.replace("\\", "//")
# with open(project_dir("conf/dev.json"), "rb") as fp:
# CONF = json.load(fp)
SECRET_KEY = "h8(e(u3#k)l802(... | [
"zaytsev@usc.edu"
] | zaytsev@usc.edu |
ed7f7ae9b779ad7805b38ff2e7e05e94049da473 | 520f8bbd2e9dcbdb576d51a0bee3d23b12094d76 | /helloworldapp/urls.py | 0757e9528ae14128e8bab3bafbf9228b4f32ec57 | [] | no_license | KoyanagiAyuha/helloworldproject | c3927831bf1c6ad00756a5fc87593935f267792e | c6e7ad14b8075914ac71f7a8849732c6760ecd46 | refs/heads/master | 2022-11-29T01:30:20.044669 | 2020-08-10T04:57:37 | 2020-08-10T04:57:37 | 286,204,256 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 114 | py | from django.urls import path
from .views import hellofunction
urlpatterns = [
path('world', hellofunction),
] | [
"ayuhakoyanagi@AyuhanoMacBook-Air.local"
] | ayuhakoyanagi@AyuhanoMacBook-Air.local |
fac7a4a64b214d06b499eece4d7bdc6d4ceb1240 | 2d557cb608984e1978132be8acdb41b96f3bfcf9 | /polls/migrations/0001_initial.py | 3b78c1d0e9db1fba2f7bf8b4a69c745c4760d361 | [] | no_license | apoorv1997/Django | 58756b4207884e96b408eeb31fda4ff77640c632 | 6884c282e5012769ca2ea11424741b928f8bcf2e | refs/heads/master | 2021-01-15T11:29:54.122023 | 2017-08-08T09:00:19 | 2017-08-08T09:00:19 | 99,620,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,230 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.4 on 2017-08-07 14:20
from __future__ import unicode_literals
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.Crea... | [
"apoorv.b15@iiits.in"
] | apoorv.b15@iiits.in |
3d4f973e6319ac02322d9c9e19a44bb5e11c4a74 | 360c777a2b77be466b1cf7c8fd74d6fd04f56b55 | /nexus_auth/models/ping.py | 7afa266c0b95f5154844d34bf4d67367e1726a27 | [
"MIT"
] | permissive | hreeder/nexus-auth | 790a3b2623ddf443138a4b0f0af1380dbc4db8ae | 8d51aef01647e32ba4a284f02de73a2caad7cf49 | refs/heads/master | 2021-01-10T10:08:37.190558 | 2016-02-29T12:27:21 | 2016-02-29T12:27:21 | 52,789,087 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,237 | py | from nexus_auth import db
from nexus_auth.models.groups import Group
TYPE_SERVER = 0
TYPE_GROUP = 1
class PingServer(db.Model):
id = db.Column(db.Integer, primary_key=True)
servers = db.Column(db.Text)
display_name = db.Column(db.String(64))
class PingTarget(db.Model):
id = db.Column(db.Integer, prim... | [
"harry@harryreeder.co.uk"
] | harry@harryreeder.co.uk |
8f143a7d68ae3d9c5a95915c75116b1bf55deea6 | 2a03035b0ff1585a7b429bd8be4dc70b25ca4577 | /Python/HackerRank/Cloudgame.py | 790ebe4f2f4acc5d5de277975800f86f940a764e | [] | no_license | prtkmishra/AI_ML_Learning | 6be783a7b695681d397c21bd719e608b25524c7f | 46f7b55508bf3f4c7e39c497f143bf8ea7e63490 | refs/heads/master | 2023-06-29T23:30:54.309049 | 2021-08-02T13:42:44 | 2021-08-02T13:42:44 | 276,331,600 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,622 | py |
class Cloudgame:
"""
There is a new mobile game that starts with consecutively numbered clouds. Some of the clouds are thunderheads and others are cumulus. The player can jump on any cumulus cloud having a number that is equal to the number of the current cloud plus or . The player must avoid the thunderheads... | [
"mishra.eric@gmail.com"
] | mishra.eric@gmail.com |
3173fdd72b9488c31024b627d504418b381ca1a4 | d22c766670843e66a4d3b2c808090fccb58674d2 | /python_int/fib.py | 959dfa950fe3e5a8790f57254b7ab4b4c46a34b5 | [] | no_license | gnuwho/test_bootstrap | b6c6554848932c35783eee147f0b60b5afe72121 | bee3f02a9cf162ae346f1b3ece1ed5793bf220ed | refs/heads/master | 2021-01-11T16:31:16.401322 | 2017-02-11T04:10:09 | 2017-02-11T04:10:09 | 80,097,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 131 | py | def F(n):
if n == 0: return 0
elif n == 1: return 1
else: return F(n-1)+F(n-2)
for i in xrange(2000):
print F(i)
| [
"gnuwho@gmail.com"
] | gnuwho@gmail.com |
78b4cd946d9b8904968af0f9c9b27cfba1edf1ae | 0e147f35dcc10ab063074b3a63beb575553cfa5d | /djangboots/urls.py | 4a246cc69912352a85c79cd2b1ff6f49fce104d4 | [] | no_license | joyonto51/djangoboots | f972fe75ceb6c349f4bb21d382e646cd5bbe6d6f | 0dcccda0524938431239a750878a3e0745821dae | refs/heads/master | 2021-09-23T03:53:22.281560 | 2019-12-23T16:16:30 | 2019-12-23T16:16:30 | 229,782,158 | 0 | 0 | null | 2021-09-22T18:17:48 | 2019-12-23T15:55:03 | HTML | UTF-8 | Python | false | false | 915 | py | """djangboots 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')
Class-ba... | [
"joyonto51@gmail.com"
] | joyonto51@gmail.com |
5e050b7544ba1fe410e841ccdc2c2724523bf8b8 | 306dd26becd8217d0d4f86e8c36e8fb9dfc069c7 | /Deep-Learning-master/Pytorch_/2_nn_module/2_nn_pytorch_cuda.py | d70c96dc4638e0784f477a3864f5c9b3075af5e8 | [] | no_license | fnasiri/data_science_lessons | cdded42481e697725841251100ca7999febfba6b | 382c0b5e46b355938d1791d39dcfd8170be14274 | refs/heads/master | 2020-03-24T11:27:44.449995 | 2018-07-28T15:03:56 | 2018-07-28T15:03:56 | 142,685,930 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | #----------------------------------------------------------------------------
import torch
from torch.autograd import Variable
#----------------------------------------------------------------------------
Batch_size = 64 # Batch size
R = 1000 # Input size
S = 100 # Number of neurons
a_size = ... | [
"farshad.nasiri@ga.co"
] | farshad.nasiri@ga.co |
8692c4889582e9c8f425306d8b5ac70d4ee7090e | e8cb5f716b064043708293f924ed1ba84005e417 | /examples/Redfish/ex09_find_ilo_mac_address.py | d05e42bb446a1e7359fb7eeacd4a665968932786 | [
"Apache-2.0"
] | permissive | injan0913/python-ilorest-library | 9207caeab89038f7e6ae803c55de183bda02edb3 | 8507d96cf7b9604a30ae6548cafc0003d1098b72 | refs/heads/master | 2020-12-24T22:20:13.135325 | 2016-06-23T18:26:33 | 2016-06-23T18:26:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,598 | py | # Copyright 2016 Hewlett Packard Enterprise Development LP
#
# 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 requ... | [
"jackgarcia77@gmail.com"
] | jackgarcia77@gmail.com |
a659a53ddd947fc5faaa1ec8face985450084653 | 84b000ed863b5899d1aef9415df3852e4775dd72 | /Conditional_Statements_Advanced/Exercise/P01Cinema.py | 981b0dfbe7f16a7fb2c3725d10f2dadeeacad93f | [] | no_license | jeniia/Python_Basic_SoftUni_2021 | 8dce327056b4b32807fbfe339d1df7ce1517cc38 | c1ad138167ea9530a376e128849176e76144c878 | refs/heads/main | 2023-04-29T03:11:48.323885 | 2021-05-21T15:47:37 | 2021-05-21T15:47:37 | 369,575,459 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 349 | py | screening_type = input()
rows = int(input())
columns = int(input())
income = 0
cinema_capacity = rows * columns
if screening_type == "Premiere":
income = cinema_capacity * 12.00
elif screening_type == "Normal":
income = cinema_capacity * 7.50
elif screening_type == "Discount":
income =cinema_capacity * 5.0... | [
"82292054+jeniia@users.noreply.github.com"
] | 82292054+jeniia@users.noreply.github.com |
af3293648faee313fc72fa54dbfcff027235b08b | a47427997bd767888763ed7ea0446d214da72513 | /todolist/todo/forms.py | c68bdcd768ba8838dd1f4f2388ed5b388cc2d2b6 | [] | no_license | davshibru/todo-form | dfd8fb091632c98b0a9e66178f7cf16e20d71834 | c05a22074e36df22ba90ad147eb5df033070e04e | refs/heads/master | 2020-05-04T16:55:00.456214 | 2019-04-03T13:15:02 | 2019-04-03T13:15:02 | 179,291,962 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 138 | py | from django import forms
from .models import To
class ToForm(forms.ModelForm):
class Meta:
model = To
fields = ('todo', 'action',) | [
"noreply@github.com"
] | davshibru.noreply@github.com |
08dde7520a5cc6318c6ea6a3daea7417cf1e7d49 | 8050168c08d5bb26f0da6784ca3d536950d43810 | /activity/migrations/0009_auto_20190305_1508.py | b246aa4d037ae5a5422101d5dacb29818286457f | [] | no_license | qoutland/docent | 043f945d8a3016fdc54ee113a108a608e58456dc | f4dffaa3b72d922dfb99e40e7f73155ad25a2509 | refs/heads/master | 2022-12-15T00:13:24.940849 | 2019-05-02T17:55:43 | 2019-05-02T17:55:43 | 164,701,946 | 1 | 0 | null | 2022-11-22T03:31:43 | 2019-01-08T17:41:28 | Python | UTF-8 | Python | false | false | 386 | py | # Generated by Django 2.1.3 on 2019-03-05 23:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('activity', '0008_auto_20190305_1507'),
]
operations = [
migrations.AlterField(
model_name='activity',
name='pic_url'... | [
"="
] | = |
f56ba54a66e2545698c9990565b4122d99a5cbe0 | 211b9135e09cf1ae290ea42349f495ab5ad62852 | /ligpargen/inout/pqr.py | f8724c2ebdb7a4dc4f61c287b35741b70cee4218 | [
"MIT"
] | permissive | quantaosun/ligpargen | e4691dea466918d8d237410bdef42a4b1c8785e7 | edc5445a57f858e800baa818cd5f6b3cdaa76ea9 | refs/heads/main | 2023-03-21T21:48:54.892052 | 2021-03-10T10:28:23 | 2021-03-10T10:28:23 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,337 | py | """
Module with functions to generate PQR input (PQR)
Author: Israel Cabeza de Vaca Lopez
Email: israel.cabezadevaca@icm.uu.se
"""
import os
kcalToKj = 4.184
def writePQR(molecule, pqrFile):
"""Generate PQR file
Parameters
----------
molecule : molecule class
Molecule class
pqrFile :... | [
"learsi9182@gmail.com"
] | learsi9182@gmail.com |
fff3e450967edd4d5d28de96357ed12b9db6ef16 | c50e7eb190802d7849c0d0cea02fb4d2f0021777 | /src/containerapp/azext_containerapp/tests/latest/test_containerapp_preview_scenario.py | c5bec1652214c86c622338ef87c1eb662d0ab5a8 | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | Azure/azure-cli-extensions | c1615b19930bba7166c282918f166cd40ff6609c | b8c2cf97e991adf0c0a207d810316b8f4686dc29 | refs/heads/main | 2023-08-24T12:40:15.528432 | 2023-08-24T09:17:25 | 2023-08-24T09:17:25 | 106,580,024 | 336 | 1,226 | MIT | 2023-09-14T10:48:57 | 2017-10-11T16:27:31 | Python | UTF-8 | Python | false | false | 9,214 | py | # --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------... | [
"noreply@github.com"
] | Azure.noreply@github.com |
b7abb0877ecfc6bc8c64ef9fc8b253984d33a132 | 273b6fac2e8d7f6492d3eba8de2e4e18f2931798 | /ceph_deploy/lib/vendor/remoto/lib/vendor/execnet/gateway.py | 244cfe4d412109549d77aad753735aa38ef34489 | [
"MIT"
] | permissive | sheepcat/ceph-deploy | 9e399476b8cac0f48328054189476072ead139a8 | 7e26b0311a733927b9750a84ba500c090be60cbd | refs/heads/master | 2021-02-21T06:48:13.723727 | 2018-09-19T13:02:55 | 2018-09-19T13:02:55 | 245,352,776 | 1 | 0 | MIT | 2020-03-06T07:09:36 | 2020-03-06T07:09:35 | null | UTF-8 | Python | false | false | 7,074 | py | """
gateway code for initiating popen, socket and ssh connections.
(c) 2004-2013, Holger Krekel and others
"""
import sys, os, inspect, types, linecache
import textwrap
import execnet
from execnet.gateway_base import Message
from execnet import gateway_base
importdir = os.path.dirname(os.path.dirname(execnet.__file__)... | [
"1728642273@qq.com"
] | 1728642273@qq.com |
6284288aa94622d03c3f24e10f3eb63df2e27dd0 | 22bcb68759d516eea70d18116cd434fcd0a9d842 | /scrap/infibeam_books_scrap1.py | 0fbafc3b59b8a0f06df21d43016818f71ac9c0f6 | [] | no_license | lovesh/abhiabhi-web-scrapper | 1f5da38c873fea74870d59f61c3c4f52b50f1886 | b66fcadc56377276f625530bdf8e739a01cbe16b | refs/heads/master | 2021-01-01T17:16:51.577914 | 2014-10-18T15:56:42 | 2014-10-18T15:56:42 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,183 | py | import downloader
import dom
import urllib2
import re
import time
import math
import pymongo
from collections import defaultdict
import datetime
siteurl='http://www.infibeam.com'
category_browser='http://www.infibeam.com/Books/BrowseCategories.action'
subcategory_browser='http://www.infibeam.com/Books/BrowseCategories... | [
"lovesh.bond@gmail.com"
] | lovesh.bond@gmail.com |
5a2ebd58eb237a8079aa77a1e5023bf20e50f182 | 4659f206098fdcaa72b059f1c5e4afe4c5fad3d5 | /planemo-de/xenv/lib/python3.7/site-packages/galaxy/__init__.py | 7653e9a409809c7918eef0427eacfbc2d38e427d | [] | no_license | Slugger70/galaxy-metabolomics | e1ef083316394ace66c1f69c313db0a0fc8c3dec | 0cbee8fe9e7cf1cc37832751ffdd9f88ff363136 | refs/heads/master | 2020-09-19T21:51:16.177730 | 2019-11-26T23:54:43 | 2019-11-26T23:54:43 | 224,306,539 | 0 | 0 | null | 2019-11-26T23:45:53 | 2019-11-26T23:45:52 | null | UTF-8 | Python | false | false | 370 | py | # -*- coding: utf-8 -*-
__version__ = '19.5.2'
PROJECT_NAME = "galaxy-lib"
PROJECT_OWNER = PROJECT_USERAME = "galaxyproject"
PROJECT_URL = "https://github.com/galaxyproject/galaxy-lib"
PROJECT_AUTHOR = 'Galaxy Project and Community'
PROJECT_EMAIL = 'jmchilton@gmail.com'
RAW_CONTENT_URL = "https://raw.github.com/%s/%s... | [
"ma.bioinformatics@gmail.com"
] | ma.bioinformatics@gmail.com |
e0aea1f878599eef2c1896784066fbcd9cbeccef | 05355e0e90938d80dac6021e435dadb8ed19f1eb | /train.py | 255479d1ab41ff97e895e58649381977216137d5 | [] | no_license | mike1201/word-rnn-tensorflow | bfed2f1e29011433a6b200fab2499d7d1b6a6657 | ec9b87bf8ce0252495736ec66069409a3712f2d8 | refs/heads/master | 2021-09-01T08:22:01.828717 | 2017-12-26T01:21:29 | 2017-12-26T01:21:29 | 113,801,663 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,159 | py | from __future__ import print_function
import numpy as np
import tensorflow as tf
import argparse
import time
import os
from six.moves import cPickle
from utils import TextLoader
from model import Model
# Deine Parser Variable
def main():
parser = argparse.ArgumentParser()
parser.add_argument... | [
"noreply@github.com"
] | mike1201.noreply@github.com |
b4c53b5a157de0b8ab97f5807d5db2eb6ef40504 | 5bcaa5ddaa54c6d48dc260fc9d65499b8ba8c0bd | /FunctionalTest/tests.py | 02d3779903360d1909ed69638b9bbf6be55900fd | [] | no_license | loonwebdev2/bgrysap | a848eb226daa5e9579279c298a8f1b5cf38f01c8 | 4e719b8f8b13ff44037083a8f50942bd27320332 | refs/heads/main | 2023-06-07T18:38:56.528773 | 2021-06-27T09:06:12 | 2021-06-27T09:06:12 | 373,497,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,218 | py | from django.test import LiveServerTestCase
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
from selenium.common.exceptions import WebDriverException
MAX_WAIT = 10
class BSMSTest(LiveServerTestCase):
def setUp(self):
self.browser = webdriver.Firefox()
... | [
"raymond.loon@gsfe.tupcavite.edu.ph"
] | raymond.loon@gsfe.tupcavite.edu.ph |
676a8d4121ad27fd5bfa82844f08c833b388178c | ffab02cf7e1213f91923cb1343cef4616a7de5a7 | /venv/bin/isort | 6d23f4819e78f95b81f0dc605acf081309c42fe5 | [] | no_license | mornville/flask_blog | 4e50d6c3f835274589b278ce14f2f445b691b087 | bf66060f3f519170e3d4865e6d85b6543359e9b0 | refs/heads/master | 2021-12-28T08:27:04.556959 | 2019-10-01T14:57:09 | 2019-10-01T14:57:09 | 203,522,537 | 0 | 0 | null | 2021-12-13T20:16:58 | 2019-08-21T06:37:56 | Python | UTF-8 | Python | false | false | 251 | #!/Users/ashutoshjha/Desktop/flask_blog/venv/bin/python3
# -*- coding: utf-8 -*-
import re
import sys
from isort.main import main
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())
| [
"aj97389@gmail.com"
] | aj97389@gmail.com | |
8e3355f79679a4b37fc3d64860a4ce31c5548fa8 | de8cfb5a1d39b40543e8e9d3f960f4b675781a08 | /dask/dataframe/shuffle.py | 4e85c7ce2194acd2302fb1ddeb476a43d0f86fd6 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | JDWarner/dask | 8b5c676d9078ecc498deb8fd47a54e1676c00a5f | 3dec8e3526520459668ced05f8e144fd7605d5ec | refs/heads/master | 2021-01-18T21:02:18.344193 | 2015-07-15T20:00:51 | 2015-07-15T20:00:51 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,141 | py | from itertools import count
from collections import Iterator
from math import ceil
from toolz import merge, accumulate, merge_sorted
import toolz
from operator import getitem, setitem
import pandas as pd
import numpy as np
from .. import threaded
from ..optimize import cull
from .core import DataFrame, Series, get, _F... | [
"mrocklin@gmail.com"
] | mrocklin@gmail.com |
b226a98fb2abde8bc174d9ed9e9c4d868c5bcc3a | ba6b396cda4c33e89400bc28a8d540d30ba51492 | /Laboratorio 2-Nicole Brito/subCocina.py | c689492865593988c0a40ca0899ca76002e030ba | [] | no_license | unimetadmin/laboratorio-2-mqtt-nicoolebs | f8195be3d6ccb39173df5163415da30cb0c5eeb6 | fcc61696d77249522889deaae21ea47e1999a8cf | refs/heads/main | 2023-05-01T06:37:09.148909 | 2021-05-10T20:53:15 | 2021-05-10T20:53:15 | 366,171,629 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,373 | py | # Laboratorio 2: IoT MQTT y Plotly
# Alumna: Nicole Brito Strusi
# Carnet: 20181110056
# SUSCRIPTOR DE LA COCINA DE LA CASA
#Importaciones
import sys
import paho.mqtt.client
#BASE DE DATOS
#Importaciones para la BD
import psycopg2
import conexionBD
import json
#Para insertar en la BD los datos de la neve... | [
"59893575+nicoolebs@users.noreply.github.com"
] | 59893575+nicoolebs@users.noreply.github.com |
fac506dcca52c0a95db2b6cf2410eac72f4596a2 | 2a900bc26b3562dac4e343730e749017afa1d4a7 | /setup.py | 52f4bb5b447e480e7e0f2c97b720887cd6a56bd5 | [] | no_license | SmallCell/fabric-expect | 95736e5e8df0aef83af87866ee01127844928358 | 54d75abdcb65ddf1f35f88e75e66332ec96f3e8e | refs/heads/master | 2016-08-03T15:01:35.400802 | 2014-04-08T14:01:24 | 2014-04-08T14:01:24 | 17,396,354 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,517 | py | from __future__ import print_function
from setuptools import setup, find_packages
from setuptools.command.test import test as TestCommand
import io
import codecs
import os
import sys
import fabric.contrib.expect
version = '0.0.1'
here = os.path.abspath(os.path.dirname(__file__))
def read(*filenames, **kwargs):
... | [
"lib.aca55a@gmail.com"
] | lib.aca55a@gmail.com |
1c70397d0cba4a372a847462b857a32c0fd54df2 | 13ff676f375a737339b0822906b10b5f5d5250d6 | /Python/gauss_adelante.py | b44fb6a97d2e9634e01f562e7ce36e3a37b29def | [] | no_license | m-herrera/ANPI-Catalog | 97e8dae9ee592cd27f0da4fe6da5eab01791a903 | 5397243bb2013854437de6ae22eafaad7bb49f12 | refs/heads/master | 2022-03-13T19:22:13.039730 | 2019-11-04T03:02:13 | 2019-11-04T03:02:13 | 212,427,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,064 | py | import numpy as np
"""
Metodo iterativo de gauss hacia adelante para solucion de sistemas de
ecuaciones.
Entradas: Matriz de Coeficientes, matriz de terminos independientes,
valor inicial y tolerancia.
Salidas: aproximacion y cantidad de iteraciones.
"""
def gauss_adelante(A, b, x0, tol):
n = len(A)
A = np.a... | [
"m.herrera0799@gmail.com"
] | m.herrera0799@gmail.com |
d8e80b2e43ef4f4214584e45ab62a4ea0ba00616 | 9a6bac2e1e2209b4add8304eeb33bee7c2af756a | /src/nextbox_daemon/jobs.py | 1cac0b851e43719c5fa7c9d32fa58992749d708a | [] | no_license | daringer/nextnext | 36bc0559e78c54806648479bc6afb81b342e48c6 | 05501abf801e5be6b33cc4ff7cc184aaf5092e42 | refs/heads/main | 2023-03-19T22:14:12.045738 | 2021-03-07T14:31:33 | 2021-03-07T14:31:33 | 341,177,426 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,755 | py | from datetime import datetime as dt
from time import sleep
from pathlib import Path
import psutil
from nextbox_daemon.consts import *
from nextbox_daemon.command_runner import CommandRunner
from nextbox_daemon.config import log
from nextbox_daemon.nextcloud import Nextcloud
class BaseJob:
name = None
interva... | [
"coder@safemailbox.de"
] | coder@safemailbox.de |
bb7eb4a7d4345b902f1d0c5637b12669cb5d8e4d | 0c79382188946515059a26b636ea4689edc24faa | /feitos/sequencias2.py | e733a577f467ecd3345a8d3b57963444aa58533a | [] | no_license | flaviocardoso/uri204719 | cbd2b9cb5fbb183d891128c05eb63ee8e4cb78c0 | 9ec7a9c9e7bb788f61a80dce203b9a0aea9d93f3 | refs/heads/master | 2021-09-11T19:51:14.831377 | 2018-04-11T17:31:05 | 2018-04-11T17:31:05 | 113,496,241 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 143 | py | #!/usr/bin/python3
#sequencias2.py 1156
S = 0
i, j = 0, 1
while j <= 39:
S += (j/pow(2, i))
j += 2
i += 1
print("{0:.2f}".format(S)) | [
"flavioc401@gmail.com"
] | flavioc401@gmail.com |
c553e7fd3437019d4e7b5b575e93d1ba5422ad57 | 527c39fa246ec9ba271589c63af2f0b2bc292d6e | /carwash_Project/asgi.py | 69d82c4b733b781314da018ccd064f678387f8cb | [] | no_license | shotttik/carwashProject | 422295d3da8870e1f31a69e50dfad3b1e310d7fd | 6d19a2a9f298c69cd357142a76e3f845ca5fa474 | refs/heads/master | 2023-03-04T20:47:19.979776 | 2021-02-18T13:36:14 | 2021-02-18T13:36:14 | 332,287,170 | 4 | 0 | null | null | null | null | UTF-8 | Python | false | false | 407 | py | """
ASGI config for carwash_Project 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.1/howto/deployment/asgi/
"""
import os
from django.core.asgi import get_asgi_application
os.environ.setdefault('DJAN... | [
"shota.akhlouri@gmail.com"
] | shota.akhlouri@gmail.com |
2656d3ab378b0588a8fdd7fde8e234e1c5d60d45 | 69208a0ff78088f0fccace4ad0f252af83e37d6b | /controller/page_assertion_controller.py | d8195d650d4160cc054cbddf11408f51ce1ad95f | [] | no_license | chesterqian/uitesting | 644147c5c052e06f205d203e4d8b2c0815116efd | a860fd48d6137932f12f9128022b877f5cfdd596 | refs/heads/master | 2022-12-20T10:45:59.219195 | 2020-09-29T05:11:37 | 2020-09-29T05:11:37 | 299,259,042 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,172 | py | '''
Created on Otc 31, 2013
@author: Jamous.Fu
'''
from locator.course_page_xpath import *
from common.global_config import Global
from common.logger import print_debug_info
from controller.basic_controller import BasicController
class PageAssertionController(BasicController):
def destory_page_assertion_objec... | [
"junjie.j.qian@pwc.com"
] | junjie.j.qian@pwc.com |
31d77e7d8179eb664dab536eb6a8bce353785b52 | 59bdad3fb33332b8d05f07107dcae45b6f9ba662 | /jornada/migrations/0001_initial.py | 500c98888d9f6de94ff035386c103dd9129bf53f | [] | no_license | dyronrh/hcmfront-for-test | 8bbad6ab75fd82fa84d75fa942e4d39033080934 | 911d97dffc3f788c0419233535a5e782cca776a5 | refs/heads/master | 2020-04-28T07:14:37.110512 | 2019-03-11T22:38:58 | 2019-03-11T22:38:58 | 175,084,959 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 826 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11 on 2019-03-08 22:47
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='JornadaC... | [
"dyronrh@yahoo.es"
] | dyronrh@yahoo.es |
8ddd904d104bd85b3787c7f127714834d0501a7f | 042620764a26feea1dc8fd6d040dc48046767373 | /app/app/__init__.py | f1e165aa18f436b99ff63069f7a469a38559a4c4 | [] | no_license | gwjrl520/FlaskProjets | ab29894d1920ce0015efcf9d003a336626e3fb69 | c8a1d346a9d3f6e85a754cfcc7f857310d49050d | refs/heads/main | 2023-05-03T05:35:26.808551 | 2021-05-24T08:44:17 | 2021-05-24T08:44:17 | 369,785,691 | 0 | 1 | null | 2021-05-24T08:44:18 | 2021-05-22T11:03:42 | Python | UTF-8 | Python | false | false | 1,299 | py | from flask import Flask
from commons.settings.extensions import apispec
from commons.settings.extensions import db
from commons.settings.extensions import migrate
from commons.settings.config import config_map
from app.resources import register_blueprints
def create_app(config_name):
"""Application factory, used... | [
"g715450338@163.com"
] | g715450338@163.com |
93149bb3a6b9892081504d75a719a82d1a7fa2e1 | f0a44b63a385e1c0f1f5a15160b446c2a2ddd6fc | /examples/transform_cube.py | f9f45274bed9265c28b79a03dfd4e3ccccfa5ad1 | [
"MIT"
] | permissive | triroakenshield/ezdxf | 5652326710f2a24652605cdeae9dd6fc58e4f2eb | 82e964a574bcb86febc677bd63f1626318f51caf | refs/heads/master | 2023-08-17T12:17:02.583094 | 2021-10-09T08:23:36 | 2021-10-09T08:23:36 | 415,426,069 | 1 | 0 | MIT | 2021-10-09T21:31:25 | 2021-10-09T21:31:25 | null | UTF-8 | Python | false | false | 1,407 | py | # Copyright (c) 2020-2021 Manfred Moitzi
# License: MIT License
from pathlib import Path
import math
import ezdxf
from ezdxf import zoom
from ezdxf.math import UCS
DIR = Path("~/Desktop/Outbox").expanduser()
p = [
(0, 0, 0),
(1, 0, 0),
(1, 1, 0),
(0, 1, 0),
(0, 0, 1),
(1, 0, 1),
(1, 1, 1)... | [
"me@mozman.at"
] | me@mozman.at |
d0efe615df556ed9568c2a46dc7edb0e76aaed81 | 88a21d7c30e308c048ba2b82fd65835d60811a6a | /Home.py | b1745874f94e487b684787feaf14fe71b1dd47a9 | [] | no_license | CameronSprowls/ObservableTextBasedAdventureGame | 35312bb253714ba044ad8bb784de68c0c68cfda7 | 3c8c8ca23404c19eb15dbd3ab2055a35364aecb5 | refs/heads/master | 2021-08-07T06:44:40.468100 | 2017-11-07T19:21:40 | 2017-11-07T19:21:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,911 | py | """
File to hold the class for a home.
Homes observe the monsters living within, will be notified when a monster in defeated
"""
from Monster import *
from Observer import Observer
from Enums import Monsters
class Home(Observer, Observable):
"""
Class for the home. Creates a home and has accessors and mutat... | [
"poiklasderf@gmail.com"
] | poiklasderf@gmail.com |
da00b288e95f277ab14510e7ad75bc93260b4c12 | ccdedc53d4df116f3764c0127fcad773bfd9725f | /app/views/__init__.py | 7ca4f15b37f096ef91004a60b0f441f15454d0b6 | [] | no_license | artdokxxx/gcore | 7538b7aa048395880004ebc81bc6180e33295a47 | 9f1923ffe80d75a23f08138f9d02f3f84c22caed | refs/heads/master | 2020-07-05T16:35:27.296598 | 2019-08-16T09:43:29 | 2019-08-16T09:43:29 | 202,700,763 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 42 | py | from .project_info import ProjectInfoView
| [
"artdokxxx@gmail.com"
] | artdokxxx@gmail.com |
a276018235cdff655b2d6d73f4a8ccf27c718a3e | 069f1daa989cd2796bdf07eae7716a7bd2267476 | /15/lattice_paths.py | 316f57ad55a0d26e9466cb8cc153f0891d0bdd9c | [] | no_license | samescolas/project-euler | 019503abb4ef5073a1bad38dbcc07aaf954615e0 | ddde07e998e5f3d911c30fb5cf63e3d76501e34a | refs/heads/master | 2020-12-02T06:18:40.897650 | 2017-12-10T22:43:41 | 2017-12-10T22:43:41 | 96,815,715 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 291 | py | #!/usr/bin/python
import sys
from math import pow
def factorial(n):
if n < 1:
return 1
return n * factorial(n - 1)
size = 20 if len(sys.argv) == 1 else int(sys.argv[1])
print("Number of paths on {}x{} grid: {}".format(size, size,
int(factorial(2*size) / pow(factorial(size), 2))))
| [
"samescolas@gmail.com"
] | samescolas@gmail.com |
178a568eb15b8f1f6c119a46bb1e92c144ad41c9 | 2104433581437ff225d406d4677d3b21d901b084 | /import/sodexo_import.py | c591297511f1128caab912655c71e9812b4078a1 | [] | no_license | Podbi/accounting | fd49442a79caf4a82fbbf7638929b7ca84e5389a | f2b5670627ed056821de05b3ca40c24ac61f3ce3 | refs/heads/master | 2021-01-12T08:29:26.972803 | 2020-11-02T19:56:47 | 2020-11-02T19:56:47 | 76,596,537 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,809 | py | # -*- coding: utf-8 -*-
from datetime import datetime
import sys
import csv
import sqlite3
import re
CURRENCY_CZK = 1
SOURCE_VALET = 1
from service.repository import Repository
from service.typeResolver import TypeResolver
if len(sys.argv) < 3:
raise Exception('Málo vstupních argumentů. Zadej název souboru a ro... | [
"podbi@centrum.cz"
] | podbi@centrum.cz |
9cc11c031d402aa471ad7494c5f177903ce3c503 | aede0629b0e6d013b9c961055ac0fc46acafa3b2 | /course2/assignment4.py | 9a891dab090f9a3ee168a062bbad0b788c366967 | [] | no_license | faisalsahak/python_for_everybody_specialization_coursera | aecd0078a94f924623e5bb00801066f9dbe6c26a | 42e4710a1a7324e69e7082e28e37285be2ee4294 | refs/heads/main | 2023-02-12T09:08:32.020955 | 2020-12-28T23:12:52 | 2020-12-28T23:12:52 | 325,133,452 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 928 | py | # Open the file romeo.txt and read it line by line. For each line, split the
# line into a list of words using the split() method. The program should build
# a list of words. For each word on each line check to see if the word is already
# in the list and if not append it to the list. When the program completes, sor... | [
"faisal@Faisals-MacBook-Pro.local"
] | faisal@Faisals-MacBook-Pro.local |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.