blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 3 281 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 6 116 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 313
values | visit_date timestamp[us] | revision_date timestamp[us] | committer_date timestamp[us] | github_id int64 18.2k 668M ⌀ | star_events_count int64 0 102k | fork_events_count int64 0 38.2k | gha_license_id stringclasses 17
values | gha_event_created_at timestamp[us] | gha_created_at timestamp[us] | gha_language stringclasses 107
values | src_encoding stringclasses 20
values | language stringclasses 1
value | is_vendor bool 2
classes | is_generated bool 2
classes | length_bytes int64 4 6.02M | extension stringclasses 78
values | content stringlengths 2 6.02M | authors listlengths 1 1 | author stringlengths 0 175 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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"
] | noreply@github.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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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'... | [
"="
] | = |
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"
] | noreply@github.com |
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 |
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 |
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 |
fe767d258b2e1863022c3822a5dc6cb9bef4067c | 4100d382fd6434846e00440e26bc216a6e4340bc | /spotify/v1/artist/__init__.py | 868c1903c3f1a009ee7cd3cd3c93cbb4ac0563f6 | [
"MIT"
] | permissive | jingming/spotify | 1aa96ffc90dde8d26c5ce93cac8422d4cd61fd39 | d92c71073b2515f3c850604114133a7d2022d1a4 | refs/heads/master | 2021-09-21T21:50:09.109613 | 2018-01-30T05:03:56 | 2018-01-31T00:32:47 | 118,386,962 | 2 | 1 | MIT | 2018-08-31T22:18:29 | 2018-01-22T00:35:19 | Python | UTF-8 | Python | false | false | 2,886 | py | from spotify.object.followers import Followers
from spotify.object.image import Image
from spotify.page import Page
from spotify.resource import Resource, UpgradableInstance
from spotify.v1.artist.album import AlbumList
from spotify.v1.artist.related_artist import RelatedArtistList
from spotify.v1.artist.top_track impo... | [
"niu@jingming.ca"
] | niu@jingming.ca |
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 |
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"
] | noreply@github.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 |
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 | |
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 |
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 |
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 |
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"
] | noreply@github.com |
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 |
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 |
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 |
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 |
1dffe5f62462692c17b0917a0d9f33174704c851 | 15f321878face2af9317363c5f6de1e5ddd9b749 | /solutions_python/Problem_200/1215.py | 2727d86b5e032b798fe4ae7360d004c88b3cc807 | [] | no_license | dr-dos-ok/Code_Jam_Webscraper | c06fd59870842664cd79c41eb460a09553e1c80a | 26a35bf114a3aa30fc4c677ef069d95f41665cc0 | refs/heads/master | 2020-04-06T08:17:40.938460 | 2018-10-14T10:12:47 | 2018-10-14T10:12:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 757 | py | def tidy(n):
a = list(str(n))
if len(a)>=2:
for i in range(len(a)-1):
if a[i]>a[i+1]:
a[i] = str(int(a[i])-1)
for j in range(i+1, len(a)):
a[j] = '9'
a = ''.join(a)
out = int(a)
return out
def check_tidy(n):
... | [
"miliar1732@gmail.com"
] | miliar1732@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 |
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 |
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 |
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 |
97c119e854804fc29fdc0b228df9eee8854e6983 | b0d8642517d423b59ccebb8983e265bfd35f87c6 | /modules.py | f4745c39ae5f9ad2cb8fba9bc7f8a89c9606dc77 | [
"MIT"
] | permissive | vuksamardzic/basic-py | 4016cf13f9efa225345f4547e59ecb0725b8d888 | 356766f895660376530a4734d751cea281d1920e | refs/heads/master | 2020-03-21T09:13:59.269764 | 2018-06-23T09:43:14 | 2018-06-23T09:43:14 | 138,389,167 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 82 | py | import greet
from greet import say_hello
greet.say_hello('Vuk')
say_hello('Tim')
| [
"samardzic.vuk@gmail.com"
] | samardzic.vuk@gmail.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 |
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 |
8f58e730976b0a677b30bf61b7b99c9ee4cc60a3 | e3365bc8fa7da2753c248c2b8a5c5e16aef84d9f | /indices/nnaiddecamp.py | 19e17d66f304241ad72952f45ad26016da559867 | [] | no_license | psdh/WhatsintheVector | e8aabacc054a88b4cb25303548980af9a10c12a8 | a24168d068d9c69dc7a0fd13f606c080ae82e2a6 | refs/heads/master | 2021-01-25T10:34:22.651619 | 2015-09-23T11:54:06 | 2015-09-23T11:54:06 | 42,749,205 | 2 | 3 | null | 2015-09-23T11:54:07 | 2015-09-18T22:06:38 | Python | UTF-8 | Python | false | false | 139 | py | ii = [('MarrFDI3.py', 1), ('ClarGE2.py', 19), ('ClarGE.py', 2), ('WadeJEB.py', 1), ('SoutRD.py', 1), ('ThomGLG.py', 1), ('MackCNH2.py', 1)] | [
"varunwachaspati@gmail.com"
] | varunwachaspati@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 |
46bc6096a386be5c695dcde7e327e88b94c36061 | d4a8e4a398ceef4cb2e952892824340a498929c6 | /main.py | 586a4fb05baf50974d3f847344bbc3a506142d4c | [] | no_license | RimveUnfinishedProjects/Chat4Hack | 0f490669b4d4d3c5cfa41c59b2bd652b4ef36696 | 32f127ece76f9814af3e711db961f8dffd475373 | refs/heads/master | 2022-04-02T21:49:04.300853 | 2019-12-23T00:38:15 | 2019-12-23T00:38:15 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,507 | py | from kivy.app import App
from kivy.lang import Builder
from kivy.uix.screenmanager import ScreenManager, Screen
from kivy.properties import ObjectProperty, StringProperty
from kivy.uix.popup import Popup
from kivy.uix.label import Label
from database import DataBase
from kivy.core.window import Window
import ca... | [
"noreply@github.com"
] | noreply@github.com |
c6ea130a24af604e6bb0ea95cbdbb09ad519387e | d567f92ff1524e67d4129f1a7e853b3427b79e87 | /test5.py | ea86ebd5383f5da58dfb9bd8d893565cb3c18f16 | [] | no_license | XinjieWen/test | 667f6580186fbae9385c9e386e48a9f6afce7ab6 | cd7d4162b5e373746f371ce25c71e7c4fab5198c | refs/heads/master | 2022-05-13T01:03:26.237326 | 2022-05-09T07:56:35 | 2022-05-09T07:58:24 | 134,082,823 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 17 | py | print('hello5')
| [
"jasonxjwen@tencent.com"
] | jasonxjwen@tencent.com |
97fa49f015a6ef465e398e28ba407222aa6ef2cd | fed1dc97a37469e49c817d99124deec2dd1e8ff6 | /pythonSearch/requestsCSDN.py | bcc2086ad8b9864cb536fee7c4f221d5847c897e | [] | no_license | AngiesEmail/ARTS | 38b6e798730f8a7117a8df6ae3f89eadcf020911 | 6ccc54f25f7f3e0cb16a87cfd4ad577b5ba1f436 | refs/heads/master | 2020-03-26T03:57:21.447886 | 2019-10-07T07:44:15 | 2019-10-07T07:44:15 | 144,478,653 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 573 | py | # -*- coding:utf-8 -*-
# 导入库
import requests
import os
import sys
from bs4 import BeautifulSoup
def getHTMLText(url):
try:
r = requests.get(url)
r.raise_for_status()
r.encoding = r.apparent_encoding
demo = r.text
soup = BeautifulSoup(demo,'html.parser')
result = soup.article.get_text()
title = soup.ti... | [
"yuanfangrui@topjoy.com"
] | yuanfangrui@topjoy.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 |
5482f68ce92c5b80a7fc402e4fa7bc06151e25cc | f250ec4dd1b49750f5b42d577cf42b47c929d7bc | /python_django/dojo_secrets_2/apps/secrets_app/views.py | 59ef738b1e2532dcb2d144c4703af0437a352c37 | [] | no_license | charlie320/programming_labs_projects | 2204607109d49b2a5dd738cd067b073aef44e0b0 | 33b32a6ff83ddb1e7ef832eb8286e42d3a6eca12 | refs/heads/master | 2021-09-05T11:21:29.622439 | 2018-01-26T20:54:56 | 2018-01-26T20:54:56 | 106,962,753 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,406 | py | from django.shortcuts import render, redirect, reverse
from django.db.models import Count
from ..login_app.models import User
from .models import Secret
# Create your views here.
def index(request):
current_user = User.objects.currentUser(request)
secrets = Secret.objects.annotate(num_likes=Count('liked_by'))
... | [
"Charlie@CharlieulieiMac.home"
] | Charlie@CharlieulieiMac.home |
40c80298125d22d148038ffefb051f1a267a1a50 | 6e3b8a04a074c30cf4fc43abe7a208f772df795b | /Mid-Exam/2-task.py | 58c67fe8bae90b41f94cde4ab24bb1499bf056e6 | [] | no_license | majurski/Softuni_Fundamentals | dc0808fdaab942896eebfb208fb6b291df797752 | bf53a9efdcb45eb911624ab86d762a6281391fb8 | refs/heads/master | 2022-11-29T06:06:06.287984 | 2020-08-10T19:36:18 | 2020-08-10T19:36:18 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 730 | py | arr = input().split()
new_arr = list(map(int, arr))
result = []
line = input()
while line != "end":
value = line.split()
command = value[0]
if command == "swap":
index_1 = int(value[1])
index_2 = int(value[2])
new_arr[index_1], new_arr[index_2] = new_arr[index_2], new_arr[index_1]
... | [
"noreply@github.com"
] | noreply@github.com |
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 |
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 |
611a198b6cec04fdddfb406e56a5c9bfb18e4eed | 3402ee0e96b9d1d2ae00cb3a0f001d399411f634 | /Server/data_layer/data_layer.py | ab70ff6a55f260a56fd11e102856e4f1517c7c66 | [
"MIT"
] | permissive | kerenren/Turbo-Kanban | d5854464e30014b1c7e5d2748734cb73bfaaf87f | 1a15382b33336f9a86a4b4b147aad12ab0b05265 | refs/heads/master | 2023-02-07T22:08:52.540796 | 2020-12-28T14:01:18 | 2020-12-28T14:01:18 | 319,048,893 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 680 | py | #!/bin/python3
import os
def get_dir_info_by_path(path):
result_files = []
walk_obj = os.walk(path)
for items in walk_obj:
root = items[0]
files = items[2]
for child_file in files:
file_path = os.path.join(root, child_file)
file_statinfo = os.stat(file_p... | [
"renkelei.kelly@gmail.com"
] | renkelei.kelly@gmail.com |
4c4458a3f8cea7e2f3c299b6152409241cc9459f | f320dfb79830a3dc52dd674b16cb319223ee9b47 | /user_profiles/migrations/0002_auto_20191026_2242.py | f2c01999c1a380552b3d90250b1d2bd981efebe6 | [] | no_license | yk220284/django | 91bfcf4fe238d49c81ac46323988f501a4017e9f | 046af69a19a11804fa5b5ed2a801fab3af21bca8 | refs/heads/master | 2020-08-28T18:42:12.484929 | 2019-10-27T01:24:31 | 2019-10-27T01:24:31 | 217,788,582 | 0 | 0 | null | 2019-10-27T01:24:33 | 2019-10-27T01:05:09 | Python | UTF-8 | Python | false | false | 668 | py | # Generated by Django 2.2.6 on 2019-10-26 22:42
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('user_profiles', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='student',
name='college',
... | [
"Yankang@MacdeMacBook-Air.local"
] | Yankang@MacdeMacBook-Air.local |
72791e17e71456aade20cc9cc4e32de6523e144b | 34f5146e25144d4ceced8af38b5de2f8fff53fdd | /ui/mainwindow.py | 158a3002e7c464033c18697b89cd33491f8128a1 | [] | no_license | fadiga/mstock | 3271eeb0b8339b27347bbb70b96bc1f161ed6901 | a5f621ed58bd881d9a232498ef23762a5f9c186f | refs/heads/master | 2021-05-25T11:56:28.430965 | 2017-09-25T19:08:27 | 2017-09-25T19:08:27 | 39,653,154 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,419 | py | #!/usr/bin/env python
# -*- coding: utf8 -*-
# vim: ai ts=4 sts=4 et sw=4 nu
# maintainer: Fad
from __future__ import (
unicode_literals, absolute_import, division, print_function)
from PyQt4.QtGui import QIcon
from PyQt4.QtCore import Qt
from Common.ui.common import FMainWindow, QToolBadgeButton
from ui.menut... | [
"ibfadiga@gmail.com"
] | ibfadiga@gmail.com |
a8a654e2f4bef5e6c0b3f42a9577d868d6002d9e | c893333a4fd8b15c9e3c8d7d6cc0ec375cc11bb7 | /nuke/fxpipenukescripts/archive.py | 13fcd78d5b2b32eabb19bf536cbe8e7ca0cd8dbb | [] | no_license | khpang/vfxpipe | 63af3545157897afa8eb307984056f9c916017e8 | fde184a8f4cb5b4c98108bb1b2f2e8fd92cbafeb | refs/heads/master | 2021-01-24T01:21:02.329898 | 2013-01-30T02:35:22 | 2013-01-30T02:35:22 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,242 | py | import shutil
import threading
import time
import nukescripts
import nuke
import os
import datetime
shotData = True
class archiveInterface():
def interface(self):
# set up the new script name
scriptName = os.path.basename(nuke.value('root.name'))
date = datetime.date.today()
forma... | [
"throb@throb.net"
] | throb@throb.net |
7ea19293b8c1d06c2af7679ddb75fb3ef9ba13b1 | dcbb43c577fdd963638fdeb3d1042912725f5e1d | /venv/Scripts/pip3-script.py | f1fcd00d229b401b3d22581a13ab71f40c18657d | [] | no_license | ag5300cm/SaumPi2 | 1ac42b1bdcc3d36df8473936817554830f1b094b | 6f7528109ef5e15a70c5b708dba630cc07c9f511 | refs/heads/master | 2020-03-28T11:15:42.453172 | 2018-09-12T21:30:12 | 2018-09-12T21:30:12 | 148,194,186 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 412 | py | #!C:\Users\Benjamin\PycharmProjects\SaumPi\venv\Scripts\python.exe
# EASY-INSTALL-ENTRY-SCRIPT: 'pip==9.0.1','console_scripts','pip3'
__requires__ = 'pip==9.0.1'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[... | [
"bhillenbrand101@gmail.com"
] | bhillenbrand101@gmail.com |
af5136259e7632ef6c77f2dedcef1585efd50be9 | ce93c4d770792714810127e337f6a56ddce1aed2 | /plugins/gedit2/fuzzyopen/fuzzyopen/suggestion.py | 77982e7ffcbfd43d1bdb16abb5d25bf4e7bc0a95 | [] | no_license | mereghost/gmate | bb8f7bce3f48bb96489babac6410024cd5673d6f | a986da119eb153e76578539f2dbcad6738f1a92a | refs/heads/master | 2021-01-16T20:47:45.944601 | 2012-01-26T19:30:12 | 2012-01-26T19:30:12 | 1,666,484 | 9 | 1 | null | null | null | null | UTF-8 | Python | false | false | 4,168 | py | """
Class for suggestions
"""
import os
import subprocess
import gio, gtk
from util import debug
import util
max_result = 15
class FuzzySuggestion:
def __init__( self, filepath, show_hidden=False, git=False ):
self._filepath = filepath
self._show_hidden = show_hidden
self._git = git and util.config... | [
"andrewliu33@gmail.com"
] | andrewliu33@gmail.com |
6ab0738ddfb5846b6196cc354c896871968b71f9 | eb84ba23b8412ba4071c86b1e32dd28f39d423d2 | /mugen-backend/Mugen/wsgi.py | 55b49e2e9f63651c671f185545168b06b1f039e5 | [] | no_license | tsukuyomi3/Mugen-Player | 5b6135a81aa33a6f1983011301ddf9dbd504d14d | b61de1fc11f46c3284feac2a7ce0228038669b2f | refs/heads/main | 2021-06-05T04:41:20.410202 | 2020-10-06T11:42:54 | 2020-10-06T11:42:54 | 101,651,151 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 403 | py | """
WSGI config for Mugen 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/2.2/howto/deployment/wsgi/
"""
import os
from django.core.wsgi import get_wsgi_application
os.environ.setdefault('D... | [
"noreply@github.com"
] | noreply@github.com |
9749962025eab7f8672f220e73430cd6450798d6 | 373102b585532c54f24df422521638f81761d26d | /refugio/forms.py | 7cf39b61ed2c3fe274718e3eb2a51fee1864dfb7 | [] | no_license | programacionparaaprender/refugio2 | d58beb92b23df537dacbdecea5ace30072256646 | f4f3874e1cf1b4493ebe4ed1ffd4ac268239a54a | refs/heads/master | 2022-11-12T22:37:13.861491 | 2020-07-05T22:04:55 | 2020-07-05T22:04:55 | 277,390,544 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 825 | py | from django import forms
from django.contrib.auth.models import User
""" class PasswordForm(forms.ModelForm):
class Meta:
model = Mascota
fields = [
'nombre',
'sexo',
'edad_aproximada',
'fecha_rescate',
'persona',
'vacuna',
]
labels = {
'nombre':'Nombre',
'sexo':'Sexo',
'edad_apro... | [
"yancel209@gmail.com"
] | yancel209@gmail.com |
1e97caa9740ddd276af8721952d53c64e6237066 | de8b832a3c804837300b9974dc0151d9294fa573 | /code/experiment/GenderSoundNet/ex18_1_1_1_1_1_1_1_1_1_1_1_1_1_1/genderSoundNet.py | d318188bf1b8d63c08f77854ab0b089a4eff19a9 | [] | no_license | YuanGongND/Deep_Speech_Visualization | fcff2ac93e5adffd707b98eb7591f50fe77c1274 | 73a79e3596d9a5ee338eafb9a87b227696de25d1 | refs/heads/master | 2021-07-19T23:00:36.294817 | 2017-10-28T01:04:59 | 2017-10-28T01:04:59 | 105,332,686 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,377 | py | # -*- coding: utf-8 -*-
"""
Created on Sat Aug 26 21:03:04 2017
Conduct erxperiment on IEMOCAP, three labels:
96001: emotion(0-4, 5 = other emotions)
96002: speaker(0-9)
96003: gender(male=0, female=1)
@author: Kyle
"""
import os
from sys import argv
_, newFolderName, gpuI = argv
os.environ["... | [
"ygong1@nd.edu"
] | ygong1@nd.edu |
3eb21352e9d9a3dcc23572a98430da9b90e4f9aa | db818127b373da9d88583e717f184f483a1f844d | /instruction_env/Lib/site-packages/numpydoc/tests/test_validate.py | b7127ce2012e8419e79f0df9f71e724b944e2723 | [
"MIT"
] | permissive | lfunderburk/Effective-Instructions | 4af5a763b5021668abd6d37f1d860eeff07bfee8 | ce40f890fb8623ff1ec9c3e9e1190505cbd1e6db | refs/heads/main | 2023-04-14T22:43:48.363281 | 2021-04-26T05:40:19 | 2021-04-26T05:40:19 | 331,163,652 | 0 | 0 | MIT | 2021-04-26T05:40:22 | 2021-01-20T01:58:52 | null | UTF-8 | Python | false | false | 32,871 | py | import pytest
import numpydoc.validate
import numpydoc.tests
validate_one = numpydoc.validate.validate
class GoodDocStrings:
"""
Collection of good doc strings.
This class contains a lot of docstrings that should pass the validation
script without any errors.
See Also
--------
AnotherC... | [
"hanh.tong@tap.work"
] | hanh.tong@tap.work |
cd77c134d12365a252030bc1ea72ea577fe53e8a | 91ee7224de43029922f1396592bdf7802fe1e15e | /TrainingPadaX/python-flask-login/app.py | 4ced875ee0672caa28a2879a13fa6d2f89dcd994 | [] | no_license | Soniafish/Soniafish.github.io | 83aefae6b0180fa0e2f39c8dbdcbb799889d7cec | 1174dbd87a7aeae3489cfbd899752c3517ffe20a | refs/heads/master | 2021-09-13T01:13:56.406930 | 2021-08-17T14:04:16 | 2021-08-17T14:04:16 | 72,912,535 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,397 | py | # !/usr/bin/python2
# coding:utf-8
from flask import Flask
from flask import request
from flask import redirect
from flask import render_template
from flask import session
app=Flask(__name__)
app.secret_key = 'A0Zr98j/3yX R~XHH!jmN]LWX/,?RT'
@app.route("/")
def index():
if 'username' in session:
... | [
"sonia.lin@kantech.com.tw"
] | sonia.lin@kantech.com.tw |
555bdcfd6c04b099c7185c359968f2d00f2e12c9 | c5d1001b485a23a38d6acf4184ab1254d7c3484f | /grayscale/9thresholds/mainMultipleModelsLinear.py | 85eb5424f0374e5cb90d98ef29486bc263e0ce78 | [] | no_license | timurt/BinarizedNet | 74e1cdc52147c404e9458617e90c992296866e47 | 4bb8210a0c42088553231c33b430eb2a0fa60b37 | refs/heads/master | 2020-03-11T01:28:00.984756 | 2018-04-26T06:52:31 | 2018-04-26T06:52:31 | 129,692,207 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,129 | py | from __future__ import print_function
import argparse
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.optim as optim
import numpy as np
from torchvision import datasets, transforms
from torch.autograd import Variable
from binaryNet import Binary_W, Binary, Threshold
import shutil
import ... | [
"timurtibeyev@gmail.com"
] | timurtibeyev@gmail.com |
b4aec3c94de4ef1c9d0804e58f30aa47e9eeb51c | 22c6303398fe9d3a01ea2e2dee56a7c51ffb8106 | /src/StyleVarPane.py | caec6f9ba7540e07c20e8041d2bf85d34f9bbcfc | [] | no_license | prrg/BEE2.4 | 07c3d96b58bda8d7b4383d46778d01bcf970a5e4 | ffd30eb140e04db781229b27992aaed4385b438b | refs/heads/master | 2020-04-01T18:45:12.625402 | 2018-10-04T05:28:13 | 2018-10-04T05:28:13 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 9,859 | py | from tkinter import *
from tk_tools import TK_ROOT
from tkinter import ttk
from collections import namedtuple
import functools
import operator
import img as png
from BEE2_config import GEN_OPTS
from SubPane import SubPane
import packageLoader
import tooltip
import utils
import itemconfig
from typing import Union
s... | [
"spencerb21@live.com"
] | spencerb21@live.com |
7e064e4f1d6fd411ba34c8d74ef4610795f58dba | 2d4cb0621e5bb9680144562694aedea1fd4d0d86 | /artificial/train.py | c65139818f50dde87ecd8ed76e56b7986d6c5862 | [] | no_license | ForeverZyh/robust_rnn | a29f539b2d77a85e7ad509791e89429da7e23958 | a6afcd2e3814b8eff66e43be3119d994c989b7d0 | refs/heads/master | 2020-09-15T14:19:22.692429 | 2019-12-28T03:56:58 | 2019-12-28T03:56:58 | 223,473,847 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 775 | py | import tensorflow as tf
import numpy as np
from simple_rnn_model import params, SimpleRNNModel1
from utils import get_one_hot
training_X = np.load("./X_train.npy")
training_y = np.load("./y_train.npy")
training_num = len(training_X)
test_X = np.load("./X_test.npy")
test_y = np.load("./y_test.npy")
nb_classes = 2
trai... | [
"yuhao.zhang@wisc.edu"
] | yuhao.zhang@wisc.edu |
6a9573d123ee3c2eab2c86427659496281d46515 | d90b10f4fcd0199bf064edf2b46a77dbc64b2a50 | /PythonGitPrograms/5-Inheritance, Multiple Inheritance.py | 3a263f20e107af833200f4061b3f94f5fa0724a1 | [] | no_license | satyam93sinha/PythonBasics | f13d56f84d77523b9d77e989ed09dd2d61446220 | e07499884f617f2717d6aea75818db07f8f1584f | refs/heads/master | 2020-04-22T19:53:38.449222 | 2019-03-18T13:02:04 | 2019-03-18T13:02:04 | 170,622,798 | 0 | 2 | null | 2019-10-01T16:51:48 | 2019-02-14T03:44:47 | Python | UTF-8 | Python | false | false | 426 | py | class Base1:
a, b = 5, 9
print('Base1, a:{}, b:{}'.format(a, b))
class Base2:
#print("Base2.mro:{}".format(Base2.mro()))
a, c = 2, 3
print("Base2, a:{}, c:{}".format(a, c))
class Child1(Base2):
d, e = 1, 'go'
print("Child1, d:{}, e:{}".format(d, e))
class Child2(Child1, Base2, Base1):
pr... | [
"satyamkumarsinha9@gmail.com"
] | satyamkumarsinha9@gmail.com |
0d689174ed920a61e2ae5b29e1be0b018ef5fb2d | 4676ab33b20fb9206e12bee6c12dc01d2331effb | /main.spec | 692a47201ba61b89d9274edac73300215ef5d923 | [] | no_license | acer-king/Goal-detection | 94cbf531adbbdbc182dd123fe5f1d9b4d73f112d | a138cd153acf569c73577d03dbf91a511aee1bb9 | refs/heads/master | 2022-12-03T03:35:50.762543 | 2020-08-17T17:36:43 | 2020-08-17T17:36:43 | 288,245,195 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 857 | spec | # -*- mode: python ; coding: utf-8 -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['D:\\upwork\\indian\\detecting goal'],
binaries=[],
datas=[],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
... | [
"acerking03@gmail.com"
] | acerking03@gmail.com |
857cffe6d12559c9007f01ee6dc6f8354189063e | 93c55344aa8e527600a906e118b7db45f7e3f208 | /10-matplotlib/labels.py | 0913636d7521c7a1e972838cbaa630fa8be5ec32 | [] | no_license | skolakoda/ucimo-data-nauku | 5b6642894967bc5f460b6d509a826bacfc66928c | 0e1530d5654b49706e1a34b38e288cf972ad23fa | refs/heads/master | 2021-09-19T18:33:45.194310 | 2018-07-30T13:08:56 | 2018-07-30T13:08:56 | 114,565,046 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 217 | py | import matplotlib.pyplot as plt
year = [1950, 1951, 1952, 2100]
pop = [2.538, 2.57, 2.62, 10.85]
plt.plot(year, pop)
plt.xlabel('Year')
plt.ylabel('Population')
plt.title('World Population Projections')
plt.show()
| [
"mudroljub@gmail.com"
] | mudroljub@gmail.com |
2ba4b6eb69fd971459ad3d9a0373b59660585f26 | 8b1e05154bdbe7aa595310c6cc5ab7ec84be88d5 | /contrib/zmq/zmq_sub.py | d1e7d5ca10f658bb882adb7e6afca5d704fa7a20 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | AustraliaCash/AustraliaCash-Core | c2ab806db3c123c41882aacd1af23109cce6b4db | 5e31845eea27eecd06135ddd873d4f37fba9ee60 | refs/heads/master | 2023-07-09T20:26:35.387036 | 2023-06-26T20:27:24 | 2023-06-26T20:27:24 | 157,548,102 | 9 | 6 | MIT | 2023-06-26T20:27:25 | 2018-11-14T12:50:16 | C++ | UTF-8 | Python | false | false | 3,406 | py | #!/usr/bin/env python3
# Copyright (c) 2014-2021 The AustraliaCash Core developers
# Distributed under the MIT software license, see the accompanying
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
"""
ZMQ example using python3's asyncio
AustraliaCash should be started with the command l... | [
"31876349+farsider350@users.noreply.github.com"
] | 31876349+farsider350@users.noreply.github.com |
9c770fd102ad3cc35dacc09a06de543cc152e717 | 8c9e166fdbc213c8a9121bef3cac962cb94a5cc3 | /Lab 9 28Sep/lab_ise_gui/lab_ise_gui/calculator.py | 826deb28faad56102736e28fdca1d2c67325d76a | [] | no_license | nesarasr/Information-Systems-Lab | e7e5d94c5da3163376dc08ef2486c0eb88db90e8 | 6f86f6095228ab937247abe36db7b28fe2fe572c | refs/heads/master | 2022-04-12T00:25:01.904127 | 2020-03-28T10:50:53 | 2020-03-28T10:50:53 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,037 | py | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 26 15:42:07 2019
@author: Satyajit
"""
from PyQt5 import QtGui , uic ,QtWidgets , QtCore
import pyqtgraph
import sys
import numpy as np
from functools import partial
def exit_func():
sys.exit(0)
if __name__=='__main__':
a=str()
a... | [
"noreply@github.com"
] | noreply@github.com |
4e98cba026ffbfa488d602586ed1fb56b70a4b3e | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/117/usersdata/168/26292/submittedfiles/al2.py | 2636de789a2d58357263296f2d1affdab045e0ff | [] | 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 | 136 | py | from __future__ import division
#INICIE SEU CDIGO AQUI
n=float(input('Digite n'))
n1=int(n)
n2=n-int
print('%.2f'%n1)
print('%.2f'%n2)
| [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
1872c2b02787510ea089a882647d262201237e43 | e7f708af4b599ec6763e0d3b311e2cb47cc155d8 | /payments/admin.py | f69953885eba02d24436b82c8477468a8e0d0cfd | [] | no_license | dmontoya1/tu-licencia | d48bc8779d8cda50c7a382cb1c14e2ae3668ebc8 | d436d665ba797d7b90fcdcc58bcef3e79b917682 | refs/heads/master | 2023-05-14T16:38:52.408066 | 2020-06-08T20:24:39 | 2020-06-08T20:24:39 | 371,433,421 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 418 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.contrib import admin
# from .models import Invoice
# class InvoiceAdmin(admin.ModelAdmin):
# list_display = ('__unicode__', 'user', 'release_date', 'is_discharged', 'payment_status')
# readonly_fields = ('release_date', )
# sea... | [
"dmontoya@apptitud.com.co"
] | dmontoya@apptitud.com.co |
9eeafd4847d7b39c112746a6e759becc2bf0aef7 | f17c4d393617f0b2d4303b24e59f7fa867b6e483 | /migrations/versions/a0ef55bfc5a9_.py | c2bdd3f0b49e65ba44c8d12f0b696d8d3648a802 | [] | no_license | kodespy/kapes | 611de2451ddc7f930c6075746375640aedb656ab | 95119d89290422efccf72e565524b75742645778 | refs/heads/master | 2021-01-22T17:48:12.899716 | 2017-08-18T17:39:46 | 2017-08-18T17:39:46 | 100,735,072 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,503 | py | """empty message
Revision ID: a0ef55bfc5a9
Revises: None
Create Date: 2017-08-18 08:12:53.661047
"""
# revision identifiers, used by Alembic.
revision = 'a0ef55bfc5a9'
down_revision = None
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! #... | [
"kodespy@gmail.com"
] | kodespy@gmail.com |
8d33dfc0c8f80b0f4cd63f78511920a1f5adc4ab | ca0b950d4232132c340c75513809fa4f72c52b0e | /animations/color/base.py | 219dfc936d7e23b3c1ae58d7bc9b918f5d57462e | [
"MIT"
] | permissive | LeLuxNet/GridPy | e32cebd157823669b001499263e1788993c0cf13 | 5f4d02d2b254be1f0682b724a96a99009a415308 | refs/heads/master | 2022-12-21T08:20:03.913594 | 2020-09-23T18:31:44 | 2020-09-23T18:31:44 | 260,533,711 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 608 | py | class ColorGeneration:
def generate(self):
return None
def generate_list(self, amount):
colors = []
for i in range(amount):
colors.append(self.generate())
return colors
class IndexColorGeneration(ColorGeneration):
def __init__(self, max_index):
self.m... | [
"ginnythecat@lelux.net"
] | ginnythecat@lelux.net |
dd0f144786bc13cb2bcfd0f6f6dc726d47af6982 | 4100e7b9349b611c1922b37891355c46ef376f1e | /Rivet/script_and_example/fix_e-_yodas.py | 36cba4143c4aa22296611e862ef088107bda2a64 | [] | no_license | kdlong/LesHouchesVBSstudies | 8bc0c888056a232e3ea9371cccdd300d0a9f314c | 5ee351546520896935a2e53480034c40def668fc | refs/heads/master | 2021-03-16T09:39:05.363696 | 2019-05-13T03:10:15 | 2019-05-13T03:10:15 | 113,029,275 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,081 | py | import sys
analysisfile = open(sys.argv[1],'r')
new_analysisfile = open("fixed_"+sys.argv[1],'w')
prestring=""
found_histo=False
header=False
wrong_histo=False
print "Start adapting the histogram {0}.".format(sys.argv[1])
for line in analysisfile:
if line.find('END YODA_HISTO1D') != -1:
line.strip('\n')
if ... | [
"stephan.braeuer@stud.uni-goettingen.de"
] | stephan.braeuer@stud.uni-goettingen.de |
015f94220909b436deb31345160eebc80132c586 | 3ab1f37b4372d0796c85ef24343dd8c03accb6ef | /OddEvenLinkedList.py | 5004fdb3d7cf1ccbd577d641dc11c9e1fe6a488c | [] | no_license | Blossomyyh/leetcode | 2be6a99534801fc59fe9551317ca49c3704b1c3d | 38615779eb43d147587467e11dc22761ac0726cb | refs/heads/master | 2023-01-22T16:56:26.624677 | 2020-11-20T13:47:43 | 2020-11-20T13:47:43 | 266,845,278 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 649 | py | # Definition for singly-linked list.
class ListNode:
def __init__(self, val=0, next=None):
self.val = val
self.next = next
class Solution:
def oddEvenList(self, head: ListNode) -> ListNode:
if not head or head.next == None: return head
odd, even, second = head, head.next, head.... | [
"blossomyyh@163.com"
] | blossomyyh@163.com |
d50572d4090c707e69adf085200b9658c585e677 | d9803bd42d8edc8fd089b89588fdd2033cfb3fb0 | /GISJob/items.py | f6727c91947caf098c54d563ca06722592793253 | [] | no_license | pengshaowei/GISJob | d718a66a1dacbc5dbac1084594cb572205d0d457 | 8d94f1fe25d41880d643923233b2569dfc7bd91e | refs/heads/master | 2020-03-27T06:15:38.437874 | 2016-06-29T06:43:08 | 2016-06-29T06:43:08 | 62,027,652 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 842 | py | # -*- coding: utf-8 -*-
# Define here the models for your scraped items
#
# See documentation in:
# http://doc.scrapy.org/en/latest/topics/items.html
import scrapy
class GisjobItem(scrapy.Item):
url = scrapy.Field()
job = scrapy.Field() #岗位名称
location = scrapy.Field() #工作地点
salary = scrapy.Field() #薪资
ins = scr... | [
"www.pengshaoweip@qq.com"
] | www.pengshaoweip@qq.com |
ca30c61d529defb6e21e782cba161535f29b1a71 | c538092a01585082ecfdf8845886faea3985f067 | /duckietown_utils/rllib_callbacks.py | 85090a0f568738d85d21c62e0f49e1f851cce444 | [
"MIT"
] | permissive | BoAi01/Duckietown-RL | ef3fdd8205e499b1a68d592fed0934a8c9cba3e7 | 434787a1caf1e5a8ec1d45a30c1ec8eb35ff91ba | refs/heads/master | 2023-04-11T02:15:32.067588 | 2021-04-23T15:30:33 | 2021-04-23T15:30:33 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,969 | py | """
RLlib callbacks used to log custrom metrics and a hack to save trajectory data.
"""
__license__ = "MIT"
__copyright__ = "Copyright (c) 2020 András Kalapos"
import logging
import numpy as np
import ray.rllib as rllib
from ray.tune.logger import pretty_print
from ray.tune.result import TRAINING_ITERATION, TIMESTEPS_... | [
"kalapos.andras@gmail.com"
] | kalapos.andras@gmail.com |
9ed2a579f1ddb1d50c17e4406c162616c1ca964f | 7162dbf9809c05c67e6d0569f1644a236ee1049b | /Exercises/Daxita/Class & Object/count_object.py | cca1fb1f815f7ec9dbe48d6e8185dd2f4985b7e1 | [] | no_license | yogi-katewa/Core-Python-Training | acc20bf388b2ee664209926cbddda5db86d26682 | a30e62092f5455531a0ee8d18168f5ba39968a56 | refs/heads/master | 2021-01-13T16:36:27.151828 | 2017-01-18T07:39:38 | 2017-01-18T07:39:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 167 | py | class Foo(object):
counter = 0
def __call__(self):
Foo.counter += 1
return (Foo.counter)
foo = Foo()
a=foo()
a=foo()
a=foo()
print("Object Called : ",a) | [
"daxita2013@gmail.com"
] | daxita2013@gmail.com |
7246a717056fa85a8c381a15a40d9fff59077e68 | 9e4fc18f267f49e1efeb69f2e95e4c4a00ce8ce6 | /Python Practice/3.1-2_FizzBuzz.py | 8a04e6282dd558c98d016cb2446bc1d3ec41931a | [] | no_license | cookiewho/IPS_Workshop_2020 | 1de50e80abbedafeb48f7907ffca8461d2d2bd4a | 4dda2febb7dfa6645042e8e7a6d1138465ad12cf | refs/heads/master | 2022-12-25T02:59:16.436013 | 2020-10-09T17:31:31 | 2020-10-09T17:31:31 | 284,307,980 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 328 | py | '''
Given an integer, print "Fizz" if it's divisible by 3, print "Buzz"
if divisible by 5, "FizzBuzz" if divisible by both 3 & 5, "Not fizz
or buzz" otherwise (without the quotes).
'''
a = int(input())
s = ""
if a%3 == 0:
s+=("Fizz")
if a % 5 == 0:
s+=("Buzz")
if len(s) > 0:
print (s)
else:
print("Not fizz o... | [
"dinkwho@gmail.com"
] | dinkwho@gmail.com |
a0ab444893ad20b5e907d2942d6ab465c68323c3 | 053441eba6ecf082d48f76807ad097e89d31b94c | /paddlevideo/modeling/losses/cross_entropy_loss.py | 325ee35b569b2d542b6fe215f04f4338fb9adab6 | [
"Apache-2.0"
] | permissive | shippingwang/PaddleVideo | 9cf4ff7c8b7f9c60fe6309c4a719698bfdba00b5 | 48e6bb5f67ad44f7ef3c5cd683e8e7b8c50f0918 | refs/heads/main | 2023-03-17T10:38:39.257643 | 2020-12-01T06:19:41 | 2020-12-01T06:19:41 | 312,490,608 | 1 | 0 | Apache-2.0 | 2020-11-13T06:21:55 | 2020-11-13T06:21:54 | null | UTF-8 | Python | false | false | 1,293 | py | # Copyright (c) 2020 PaddlePaddle Authors. 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 applic... | [
"shipeng1108@163.com"
] | shipeng1108@163.com |
3ddfc499ca5c451fb47020aa62fc4830e9025699 | 51de2f4d75b645827a466a92160c69f5a5aa27cb | /Code/intermediatary codes/code_cross_correlation.py | ab14fb2f3784959e8895d9c99c1ef290da158cb4 | [] | no_license | agc-shubham/speechAnalysisAndSynthesis | 399e58ff71443abdb3233278a96532aa10a9098b | f308d9f9d23d2a6097fe31126d535ad1d25d7b97 | refs/heads/master | 2020-07-30T07:23:20.058568 | 2019-09-22T12:41:59 | 2019-09-22T12:41:59 | 210,133,352 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,659 | py | import numpy as np
from scipy.signal import butter, lfilter, freqz
from matplotlib import pyplot as plt
from scipy.io import wavfile
from scipy.fftpack import fft,fftfreq
from matplotlib import pyplot as plt
import plotly.plotly as py
import peakutils
x=np.array([1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5,1,2,3,4,5])
y=... | [
"agc19shubham@gmail.com"
] | agc19shubham@gmail.com |
aed1f7d9aa11a49f7656442d5d5040bfb80df6b3 | 262655fd203a91cd533f8ecec893f821de8b4c84 | /src/features/build_features.py | bb82e8218c19928ffb8372d7d40a17c3661164f8 | [
"MIT"
] | permissive | GeorgesAlkhouri/bikeshare | a73bcddf30a8f68f4db4a0fe3368c81e3bf70d4c | 8dfd83bc062d2c557d5d14f303b3377de9df4353 | refs/heads/master | 2020-11-25T00:06:15.590043 | 2020-01-08T12:43:39 | 2020-01-08T12:43:39 | 228,397,213 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,662 | py | def cast_column_type(df):
category_features = ['season', 'holiday', 'mnth', 'hr',
'weekday', 'workingday', 'weathersit']
df[category_features] = df[category_features].astype('category')
return df
def drop_columns(df):
df = df.drop(columns=['dteday', 'instant'])
return df
... | [
"alkhouri@informatik.uni-leipzig.de"
] | alkhouri@informatik.uni-leipzig.de |
a9ea1d708b1afa66b221cc8119ea3d36a1a87fed | 75669eaa1f249beefa8f0b23beb1edbe72e6e92f | /function_practice.py | 9e0e5765e9a9fd8abaa21abf8ce619b4a019289f | [] | no_license | faryalj/HighSchoolCamp | 0859d70e6050a1d15185c2adccc7d601057b246d | f30fa2b05982cf8a4fbed71901f6f9bac8d2d25c | refs/heads/master | 2020-06-03T14:22:32.632876 | 2019-06-14T19:21:31 | 2019-06-14T19:21:31 | 191,602,784 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 488 | py | """
title: function_practice
author: Faryal
date: 2019-06-12 11:22
"""
#Age_calculator
def age_calculator(current_date, birth_year):
return current_date - birth_year
current_date = int(input("What year is it?"))
birth_year = int(input("When were you born?"))
print(f"You are " + str(current_date - birth_year) + "... | [
"faryalmjabbar@gmail.com"
] | faryalmjabbar@gmail.com |
db1dce711edcbeb35ad6b34bcd858cc7e5978198 | ffb6a79786b1446a2f1ed66e44f9d2225b2eb463 | /calculate_hours_google.py | 78a61e392b3adc1db07ab6fb7d5fdc042fc3ca76 | [] | no_license | rborgwald/calculate-hours | eeb15d5c47fca2a81ac2ca1766b96843f2ec57f9 | a58bd7e5237600e99c372fe332290586801ccf39 | refs/heads/master | 2020-03-14T03:51:57.788622 | 2018-05-26T21:55:28 | 2018-05-26T21:55:28 | 131,428,943 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,430 | py | #!/usr/bin/python
# To set this script up, follow instructions at https://developers.google.com/calendar/quickstart/python
# Also, you might need to run: pip3 install --upgrade google-api-python-client
from __future__ import print_function
from apiclient.discovery import build
from httplib2 import Http
from oauth2cli... | [
"rborgwald2885@gmail.com"
] | rborgwald2885@gmail.com |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.