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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e8f5af39b518fe0ceaa644b3df0e7147f104418d | 0462732ae54ede10362e0b8d894698f4839e2ba4 | /HFS_SF/CMO/NetypesfromGraph_v0.py | fc85b4b2d88756c85d0bd99f006139bd0f48bb37 | [] | no_license | PeterWanng/hfs | 7335a563cee90b6bd2ce470251936f2fd038e8fb | 10737634047f899a210f84397b1bce801656518e | refs/heads/master | 2021-07-10T06:13:03.429313 | 2017-10-02T16:08:53 | 2017-10-02T16:08:53 | 105,551,393 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 50,600 | py | #encoding=utf8
import sys
sys.path.append("..\..")
from tools import commontools
from matplotlib import pyplot as plt
import numpy as np
import igraph as ig
from igraph import clustering as clus
import re
import time
import os
from tools import commontools as gtf
import csv
import sc... | [
"peterwannng@gmail.com"
] | peterwannng@gmail.com |
3b7a89aed9eab0f5e558d9f4ec7f2fcf3604a239 | 4dd4edb7df160a151aa541c6aca51ac0c7912a46 | /WeLinkAPI/WeLinkAPI/__init__.py | f0ace5136acb89fd39c45c7f1480f2f45a456663 | [] | no_license | tshawn2014/WeLinkBackend | 9e05368b09b79f1612542a310f5c60a503bfee72 | 2542697b6f368bffcf1efd641230eaa7c22da493 | refs/heads/master | 2023-02-02T23:31:43.276350 | 2020-12-16T06:38:49 | 2020-12-16T06:38:49 | 304,161,020 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 142 | py | # import pymysql
# <!-- tsh local run --
# pymysql.version_info = (1, 4, 13, "final", 0)
# -- tsh local run -->
# pymysql.install_as_MySQLdb() | [
"tshawn2014@gmail.com"
] | tshawn2014@gmail.com |
27b8bb8a1aa06eea5daf0e65ae35336ce49cec83 | be5f6490e47347dc3d28faeb46484144e9e3e5ba | /wsgi.py | 860302d633efaa61db75cf173e03b0e301c94686 | [] | no_license | ipcrm/flask_puppet | 4d9e0706bc843942047ffaa1db5fe1f01f67dc24 | d8a5400a2d31c9a0a19bb5d1761143bdca502040 | refs/heads/master | 2021-01-01T05:05:33.990321 | 2017-05-30T03:40:48 | 2017-05-30T03:40:48 | 58,177,844 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 87 | py | #!env/bin/python
from webui import webui
if __name__ == "__main__":
webui.run()
| [
"mcadorette@puppetlabs.com"
] | mcadorette@puppetlabs.com |
5c9c68f5451ef62036cba6f3ce7dd3a70f5b2164 | 6744024e7b3a8715e709d2b78ff3f52eddc56dde | /tcase/api/serializers.py | fde4edd0a78acd7338255b528755a2ee491ed1d2 | [] | no_license | jc36/testcase | 97b45daf25cff78e1dcdfc5f47c27c9b87046627 | 3d761dcb3d9c1ee8154855c4796fd83326f5daf4 | refs/heads/master | 2020-03-09T21:36:05.315853 | 2018-04-19T06:36:05 | 2018-04-19T06:36:05 | 129,012,948 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,580 | py | from rest_framework import serializers
from rest_framework.fields import CurrentUserDefault
from tcase import services
from ..models import Like, Post, User
class LikeSerializer(serializers.ModelSerializer):
liker = serializers.HiddenField(default=serializers.CurrentUserDefault())
class Meta:
model ... | [
"jc36@rambler.ru"
] | jc36@rambler.ru |
ff2fdf9485bb9ed0503010a3bc8eee00abd92789 | 6fd51fb841fb687d66f2f9e83839663d5158884f | /ee/clickhouse/views/test/test_clickhouse_funnel_correlation.py | 5e22a4aa46fb0ac9739f31f8cfaf597cc11058a1 | [
"MIT",
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | sean810720/posthog | 1b846b57d62877bff9988577fca3c9bf8720acab | 1f951f7c39bbe55c7bcfd92a57bea15a401ea046 | refs/heads/master | 2023-08-07T01:09:33.008320 | 2021-10-07T08:41:07 | 2021-10-07T08:41:07 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,485 | py | import dataclasses
import json
from datetime import datetime
from typing import Any, Dict, Optional, TypedDict
from uuid import uuid4
import pytest
from django.core.cache import cache
from django.test import Client
from freezegun import freeze_time
from ee.clickhouse.models.event import create_event
from posthog.mode... | [
"noreply@github.com"
] | sean810720.noreply@github.com |
014dadd6751fe3bf44a387e8ed90580c24168a91 | 72c8c39a930b910d2ff406c8cf831d56a489ea3d | /MergeSort/mergeSort.py | 45e0aee4648f5dee030ca756554c24c1895a6986 | [
"MIT"
] | permissive | santhoshvai/Sorts | f0788a503bbe39cae409899f5bde0abf8764fd49 | 180c6d7ec656468dd1fa53b7924bc351d3ce7e2e | refs/heads/master | 2016-09-05T22:04:51.700190 | 2014-09-09T13:51:46 | 2014-09-09T13:51:46 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 887 | py | def merge_sort_MIT(A):
"""
Sort list A into order, and return result.
"""
n = len(A)
if n==1:
return A
mid = n//2 # floor division
L = merge_sort_MIT(A[:mid])
R = merge_sort_MIT(A[mid:])
return merge(L,R)
def merge(L,R):
"""
Given two sorted sequences L and R, r... | [
"santhoshvai@gmail.com"
] | santhoshvai@gmail.com |
a2210b80b17fc2c25f10a5d1274a2508f5ca54df | 86baf32396ddc18644f32d097b15b430f00c03cc | /ros2_track_imu/driver.py | 46775c1e7d36c97d88f55ceadfdc18cc4a53bb68 | [
"MIT"
] | permissive | capitaneanu/ros2_track_imu | b7e277eba4b3d97b6431d61339b6a6100277a3c6 | 21741c413ceec1104c62276a6d00deddb95fec4c | refs/heads/master | 2023-07-28T09:03:22.877895 | 2020-01-18T01:50:37 | 2020-01-18T01:50:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,452 | py | import rclpy
from rclpy.node import Node
from sensor_msgs.msg import Imu
from diagnostic_msgs.msg import DiagnosticArray, DiagnosticStatus, KeyValue
import math
import time
from transforms3d.euler import euler2quat as quaternion_from_euler
degrees2rad = math.pi / 180.0
imu_yaw_calibration = 0.0
class Ros2TrackIMUD... | [
"ankl@kth.se"
] | ankl@kth.se |
298b9cbf5ba7b4f5dbafb6f07e7d309fcb309ec5 | 6b9fddd4c0b5665127d18d99cf9f832ed010331a | /run.py | 77c6751c59a34602001f34a75a9a442dd7ead77f | [] | no_license | oleksost/Continuous_Control_DDPG | e41a6b6d0a0fb56a5b96a38b5784658646bcdf7f | 89b1aeacc065d824b3064da7c671ee62be3261de | refs/heads/master | 2020-04-29T01:01:15.790344 | 2019-03-14T23:59:27 | 2019-03-14T23:59:27 | 175,716,102 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,991 | py |
from unityagents import UnityEnvironment
import numpy as np
import torch
import sys
import argparse
from collections import deque
from ddpg_agent import Agent
import matplotlib.pyplot as plt
sys.stdout.flush()
parser=argparse.ArgumentParser(description='Train an agent:')
parser.add_argument('--env',default='Reacher_Li... | [
"oleks.ostapenko@icloud.com"
] | oleks.ostapenko@icloud.com |
49ddfd050e02c9a29ad478cd2401367cf761db46 | 9adc810b07f7172a7d0341f0b38088b4f5829cf4 | /experiments/ashvin/icml2020/murtaza/pusher/demo_state_td3.py | 1bb88eaceb172d7677d3cb4f22eca88400bb1641 | [
"MIT"
] | permissive | Asap7772/railrl_evalsawyer | 7ee9358b5277b9ddf2468f0c6d28beb92a5a0879 | baba8ce634d32a48c7dfe4dc03b123e18e96e0a3 | refs/heads/main | 2023-05-29T10:00:50.126508 | 2021-06-18T03:08:12 | 2021-06-18T03:08:12 | 375,810,557 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,221 | py | from multiworld.envs.mujoco.cameras import sawyer_init_camera_zoomed_in
from rlkit.launchers.launcher_util import run_experiment
import rlkit.misc.hyperparameter as hyp
from rlkit.launchers.experiments.murtaza.rfeatures_rl import state_td3bc_experiment
from rlkit.launchers.arglauncher import run_variants
if __name__ ... | [
"alexanderkhazatsky@gmail.com"
] | alexanderkhazatsky@gmail.com |
4b10fa53b97294463e20ad06343f2dd982acc650 | afebbb07b2b4eada17a5853c1ce63b4075d280df | /marketsim/gen/_intrinsic/orderbook/of_trader.py | 804ce5709645171b35783b2eb31d41c8a145e2c1 | [] | no_license | peter1000/marketsimulator | 8c0a55fc6408b880311d3ad49defc55e9af57824 | 1b677200a9d5323f2970c83f076c2b83d39d4fe6 | refs/heads/master | 2021-01-18T01:39:04.869755 | 2015-03-29T17:47:24 | 2015-03-29T17:47:24 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,224 | py | from marketsim import types
from marketsim.gen._out.trader._singleproxy import SingleProxy
from marketsim import getLabel
from marketsim.gen._out._intrinsic_base.orderbook.of_trader import OfTrader_Base, Proxy_Base
class Base(object):
_properties = {}
def __getattr__(self, name):
if name[0:2] != '__... | [
"anton.kolotaev@gmail.com"
] | anton.kolotaev@gmail.com |
b28426550722f331695c013bf055d217500ceada | 2486bac4d422a99cf06db68bb5b78f31bfff6526 | /ext/serf/build/check.py | fc49d336454f9da71bf4e7fd2c0d5395650656ff | [
"Apache-2.0",
"LicenseRef-scancode-generic-cla"
] | permissive | beachmiles/CommitMonitorSVN | 2d7bc1c7509cdbbcc107473cab3c2be4cf6d2445 | a0cbe1eb2d6e6063f3603477c0a9ef1ab39774dd | refs/heads/master | 2020-03-30T01:18:53.698019 | 2018-09-28T22:11:04 | 2018-09-28T22:11:04 | 150,569,973 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,188 | py | #!/usr/bin/env python
#
# check.py : Run all the test cases.
#
# ===================================================================
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
... | [
"miles2know@yahoo.com"
] | miles2know@yahoo.com |
b7345219fb5ba716b3fed095337bf4ff6b1df307 | 98c6ea9c884152e8340605a706efefbea6170be5 | /examples/data/Assignment_2/nwxtho001/question2.py | e5b2fd67ffe16d5f456ab603de434f28d2291d9f | [] | no_license | MrHamdulay/csc3-capstone | 479d659e1dcd28040e83ebd9e3374d0ccc0c6817 | 6f0fa0fa1555ceb1b0fb33f25e9694e68b6a53d2 | refs/heads/master | 2021-03-12T21:55:57.781339 | 2014-09-22T02:22:22 | 2014-09-22T02:22:22 | 22,372,174 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,398 | py | print ("Welcome to the 30 Second Rule Expert\n------------------------------------\nAnswer the following questions by selecting from among the options.")
seen = input ('Did anyone see you? (yes/no)\n')
if seen == 'yes' :
seen_type = input ('Was it a boss/lover/parent? (yes/no)\n')
if seen_type == 'no' :
... | [
"jarr2000@gmail.com"
] | jarr2000@gmail.com |
e3a4187c4bb177fb87c1bbaf83b0ba2474e6fb35 | fd11fd3a63ab711612bc914e383b504125c1eed6 | /nova/api/openstack/compute/contrib/server_sort_keys.py | 01ce14b70536245876fbf4395aa4d805eb3f7eb7 | [
"Apache-2.0"
] | permissive | projectcalico/calico-nova | 7692a2d391d41ca23d9282c13a4ed998d9e081e5 | d01a4e54df558092702ffeae3cb4551bfb2d7707 | refs/heads/calico-readme | 2023-06-12T04:10:20.471307 | 2015-09-07T22:14:51 | 2015-09-07T22:14:51 | 21,241,973 | 7 | 4 | Apache-2.0 | 2020-08-12T08:58:02 | 2014-06-26T13:41:49 | Python | UTF-8 | Python | false | false | 969 | py | # Copyright 2014 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed t... | [
"kaufer@us.ibm.com"
] | kaufer@us.ibm.com |
010ccca8e5866021ae689a6b1229dd26275293f7 | ba9455bf842f3a118718f6c42623f5407d104375 | /Data_Reduction.py | 47159a5c5d8c8a5179b8a559442e41fae23b23e8 | [] | no_license | WKroese/ALOP | 9ca3dcbfd91a0dd1ec919b02e6fc027235d2c039 | 3a03f18f27c49495fa04f6a278dc0d71602d633f | refs/heads/master | 2021-05-07T04:02:12.436822 | 2018-04-29T02:43:45 | 2018-04-29T02:43:45 | 111,083,428 | 0 | 1 | null | 2017-12-01T10:19:08 | 2017-11-17T09:16:45 | null | UTF-8 | Python | false | false | 3,746 | py | # Last update: 17-04-2018
# ALOP La Palma project 'Transients' Data calibration
# Authors: Daphne Abbink, Willem Kroese, Sacha van Ruiten, Yke Rusticus, Kira Strelow
import numpy as np
import astropy.io as ast
from astropy.io import fits
import matplotlib.pyplot as plt
import sp
XMIN = 1600
XMAX = 2601
YMIN = 500
YMA... | [
"noreply@github.com"
] | WKroese.noreply@github.com |
535f22dc015e9609cba7c8829680c4e77a5af4c9 | e8db54847a0f2d2878579dc9feb269e60ec5019d | /python/login.py | b570cdc7479dd0a30ad7cf0c838500e3bd209980 | [] | no_license | Poseidon1979/Tanzu_GitOps_demo | 62dd60f72a6f5f084186484937b6787703b1f80a | 7cf6753c1b27d8905282155e38c2723c5db25c2d | refs/heads/main | 2023-04-24T12:01:34.844768 | 2021-05-17T11:58:53 | 2021-05-17T11:58:53 | 359,063,203 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,925 | py | from requests.auth import HTTPBasicAuth, HTTPDigestAuth
from pathlib import Path
import json
import requests
s = requests.Session()
def get_clusters():
url_vcenter = 'https://vcsa-01.haas-451.pez.vmware.com/rest/com/vmware/cis/session'
username_vcenter = 'administrator@vsphere.local'
password_vcenter = 'rsKNMG... | [
"paul.yang1979@gmail.com"
] | paul.yang1979@gmail.com |
eba0c62274f2fdbf0b6d65d26e27890f3d410adf | 36a54f621ebb1b88c576398f900bf253d06336ad | /backend/app.py | d7b03b570194c9bdc6517eba380264309966ee9c | [] | no_license | g-freire/wind-dashboard | 224fa47b512b9c54b2669af78fb155479888a4bd | af2b3dc9f8043ba1d5caf18afbe1a6b91389091b | refs/heads/master | 2023-01-11T16:13:46.611203 | 2019-10-20T01:35:35 | 2019-10-20T01:35:35 | 179,980,246 | 0 | 0 | null | 2023-01-07T06:27:17 | 2019-04-07T14:48:17 | TypeScript | UTF-8 | Python | false | false | 3,559 | py | #!/usr/bin/env python3
from random import random, uniform
from time import sleep, time
import json
from threading import Thread, Event
# import pyodbc
from flask import Flask, render_template, url_for, copy_current_request_context, jsonify,make_response, request
from flask_cors import CORS
from flask_socketio import ... | [
"g.freire@rioanalytics.com.br"
] | g.freire@rioanalytics.com.br |
fb42934d23cdc94376fa7676d0d959c43185e4a6 | c42c21ca1d17595f0163097d521252c95d4ba08e | /game.py | 384e99a149b85c76a39ce8f9b114024cd65af5ea | [] | no_license | deepsleeping/dev | 913892b985df2287806cae6c2051aef6eaf07bf7 | 3c8d9a3034da6dad9cbbcbffa5224cf76cbbc37e | refs/heads/master | 2021-01-13T17:24:06.996392 | 2017-02-13T11:45:29 | 2017-02-13T11:45:29 | 81,791,861 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 505 | py | import random
print("반가워")
point = 10
rand=random.randrange(1,11)
tong=[]
while(point>0):
i=input("1부터10까지중 원하는 숫자를 골라서 적어")
if(rand>int(i)):
point = point -1
tong.append(i)
print("그 숫자보단 커")
elif(rand<int(i)):
point = point -1
tong.append(i)
print("그 숫자보단 작아")
else:
print("축하해")
print("네 점수는 {}점 ... | [
"kimrung4130@gmail.com"
] | kimrung4130@gmail.com |
7cf435eb848c7d03f3f9aad53f457dca59045ba8 | fb91c53b311cf191bc0f3a4efe5b1a0ba197944e | /play/tmp/0003_auto__add_field_coupon_coupons_released.py | e83fcdb8627bc6416c6a929aaadb00a6125eb43e | [
"MIT"
] | permissive | fraferra/PlayCity | e0ba878c52a321afbdbba68d25717b29a5dd3109 | 2bf97c30599b686ca0e642d1ebaf73fc99705291 | refs/heads/master | 2021-01-19T16:26:24.955470 | 2014-08-08T21:56:08 | 2014-08-08T21:56:08 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 10,807 | py | # -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding field 'Coupon.coupons_released'
db.add_column(u'play_coupon', 'c... | [
"fraferra@cisco.com"
] | fraferra@cisco.com |
e4f7d50b81def02a4fc5c109097676d372a8b5c3 | fbb12b2b7dcf7f2a33235f6766b4176c083a0c8e | /ARsyntax/workflow/rules/pseudoReplicates.smk | 66d10732db24581cccd7e5b362ac228197b0e3d1 | [] | no_license | birkiy/TermProjectCOMP541 | b76c8fa3a01e48dc302dc040a2c499c2c9f1b8ba | 400a81765889a21d0590b599c4ba0e529a56e3ca | refs/heads/main | 2023-01-19T21:36:55.085293 | 2020-11-30T12:59:14 | 2020-11-30T12:59:14 | 306,048,866 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,596 | smk |
folder = "results/mapping/processed"
rule pseudoReplicates:
input:
"results/mapping/processed/{raw}.merged.final.bam"
output:
header=temp("results/mapping/processed/{raw}.merged.header.final.sam"),
pseudo1="results/mapping/processed/{raw}.pseudo1.final.b... | [
"umutberkayaltintas@gmail.com"
] | umutberkayaltintas@gmail.com |
ffc66bf74de39af85ba59380d90ca0ccdb914a3e | 8ea17c587875d9342b25492ef325e372eed59126 | /crowdcropper.py | 13357f95440dc47218f1a862ca4f2452ecc5b379 | [] | no_license | rcui/crowdanalytic | eb370dcd27def2f2cb2d0c716bce5b8e85107afb | ac5e5d398a56c0ea7759f521c54e81235891f32a | refs/heads/master | 2021-05-04T08:51:10.456448 | 2016-10-09T02:57:03 | 2016-10-09T02:57:03 | 70,372,082 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 522 | py | import os
import numpy
import cv2
face_cascade = cv2.CascadeClassifier('haarcascade_frontalface_alt.xml')
img = cv2.imread('srcimg/crowd.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
faces = face_cascade.detectMultiScale(gray, 1.1, 5)
cropped = []
for (x,y,w,h) in faces:
cv2.rectangle(img,(x,y),(x+w,y+h),(... | [
"rcui@umass.edu"
] | rcui@umass.edu |
5802522e4965030c8e5f570f5d2332f19194e9f3 | 3ef0c1c5302922fe65d81553dd995ba13f868eb1 | /04_fgcmcal/fgcmHscCalibrations_cycle03_config.py | 2fe0434a2f060b16abcbd562fb5949911d7f1f9d | [] | no_license | lsst-dm/s20-hsc-pdr2-reprocessing | 5899cb71740c42301e0dce31441b7dcbbcb38dd3 | b60fdc58e144b18577946714ad88ed84bad6167a | refs/heads/main | 2023-07-24T21:09:03.264853 | 2023-07-10T00:59:30 | 2023-07-10T00:59:30 | 237,534,729 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 16,261 | py | import lsst.fgcmcal.fgcmFitCycle
assert type(config)==lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleConfig, 'config is of type %s.%s instead of lsst.fgcmcal.fgcmFitCycle.FgcmFitCycleConfig' % (type(config).__module__, type(config).__name__)
import lsst.fgcmcal.sedterms
# Bands to run calibration (in wavelength order)
config.ba... | [
"hchiang@lsst.org"
] | hchiang@lsst.org |
9c7884d6188ebf3902443ffe842e48faf11034b4 | 521111c3b272748b41c98d3bf238b5b64bf5b36f | /dynamics_sim-master/games/hdb.py | 07b0ccb0e6352c1aefe6d452c7d1c15d7c7014fe | [] | no_license | aaandrew152/dynamics_sim | 5ebd3c2d1fc9408e2f4d0ec414191745dffbdc7c | a2bae9dd550f17013a94bc969b8d7c92cb4dc029 | refs/heads/master | 2022-08-12T15:31:49.438988 | 2022-08-02T17:33:18 | 2022-08-02T17:33:18 | 32,927,918 | 6 | 3 | null | 2015-03-26T13:09:35 | 2015-03-26T13:09:35 | null | UTF-8 | Python | false | false | 950 | py | from games.game import SymmetricNPlayerGame
class HawkDoveBourgeois(SymmetricNPlayerGame):
"""
A class used to to represent the 2 player hawk-dove-bourgeois game. See U{http://www.life.umd.edu/classroom/zool360/L18-ESS/ess.html}
"""
DEFAULT_PARAMS = dict(v=30, c=100)
STRATEGY_LABELS = ('Hawk', 'Do... | [
"pingandrew@gmail.com"
] | pingandrew@gmail.com |
0ff48efc847a28f6d741a32eb687282b9fde2b37 | ff8d00c161e7120d965c353f10f10871c1dabc5c | /models/unet2dantialias.py | ad27c046690a3df8801b2ab58247e22ddfd0d3b2 | [] | no_license | Scu-sen/AAPM2020_open_kbp | b6c4dd0cbce958f8174bf18ef74e94cfdd1dd51e | 2db52d7186c8fe788994c7a5fd70dc9052e0ff8e | refs/heads/main | 2023-07-16T09:15:43.018031 | 2021-08-02T09:04:26 | 2021-08-02T09:04:26 | 391,871,924 | 26 | 0 | null | null | null | null | UTF-8 | Python | false | false | 15,320 | py | # https://github.com/vlievin/Unet
# https://github.com/adobe/antialiased-cnns
import numpy as np
import torch
import torch.nn as nn
import torch.nn.functional as F
import torch.nn.parallel
from IPython import embed
class Downsample(nn.Module):
def __init__(self, pad_type='reflect', filt_size=3, stride=2, channels... | [
"scusenyang@tencent.com"
] | scusenyang@tencent.com |
086a9a37c222334524b2121455b685678a95f665 | 63c7060562ec5d1a9153f0454ea6886b0a62a28e | /tb/axi_cdma/test_axi_cdma.py | 6b7ce9326dc3e25a24752ed080d6e17b2cf42064 | [
"MIT"
] | permissive | alexforencich/verilog-axi | 666e6dfbd14fd124bdcbc2798b4f557347fb8261 | 38915fb5330cb8270b454afc0140a94489dc56db | refs/heads/master | 2023-03-30T07:34:17.721579 | 2023-03-30T07:12:13 | 2023-03-30T07:12:13 | 142,810,315 | 1,042 | 342 | MIT | 2023-03-05T19:52:57 | 2018-07-30T01:36:26 | Verilog | UTF-8 | Python | false | false | 6,800 | py | """
Copyright (c) 2020 Alex Forencich
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... | [
"alex@alexforencich.com"
] | alex@alexforencich.com |
1fa173f6bfa99361c4de753688e6de4aa025f83f | ea378480ba678eb123ef826e3ca0c3eb8f4e538f | /paused/05. bk old/bk future includes/candidates/06.misc from nodebox/context.py | 1d6b06a511c7ed2c494ad636d23c4867059aa457 | [] | no_license | msarch/py | 67235643666b1ed762d418263f7eed3966d3f522 | dcd25e633a87cdb3710e90224e5387d3516c1cd3 | refs/heads/master | 2021-01-01T05:21:58.175043 | 2017-05-25T08:15:26 | 2017-05-25T08:15:26 | 87,453,820 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 155,609 | py | #=== CONTEXT =========================================================================================
# 2D NodeBox API in OpenGL.
# Authors: Tom De Smedt, Frederik De Bleser
# License: BSD (see LICENSE.txt for details).
# Copyright (c) 2008 City In A Bottle (cityinabottle.org)
# http://cityinabottle.org/nodebox
# All... | [
"msarch@free.fr"
] | msarch@free.fr |
88378b845ff068fb43132006a8b345799334f79d | 155a404b32b8e2708595c92dbce0e91a2d6949b3 | /tensorflow/batch_normalization_practice.py | f3ff93500e2f2c36d76c2d11de6d9efddcb73783 | [] | no_license | shykuopo/Python | c17b4d1da59f0fcf15f90632bad4e758676ca9f7 | e382dd924da0580a244e0852e4550915ff4a1e62 | refs/heads/master | 2021-05-15T23:27:31.751004 | 2017-10-10T09:44:35 | 2017-10-10T09:44:35 | 106,391,147 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,968 | py | import numpy as np
import tensorflow as tf
import matplotlib.pyplot as plt
ACTIVATION = tf.nn.relu
N_LAYERS = 7
N_HIDDEN_UNITS = 30
def fix_seed(seed=1):
# reproducible
np.random.seed(seed)
tf.set_random_seed(seed)
def plot_his(inputs, inputs_norm):
# plot histogram for the inputs of every layer
... | [
"Sam82267535@yahoo.com.tw"
] | Sam82267535@yahoo.com.tw |
fb5219a026dbe5e28b72b4d3c360e4020955bb23 | a1bbcdcbd174748c753a04930521edb63c920105 | /launcher.py | 331e48cc55542f053fb9e71d34164870333ff005 | [
"MIT"
] | permissive | palmtrww/Discord.py-Music-Bot | 85e4a5dbd9af53d035b1ef4fb35ccbb4a949ac5f | b9290924209e3708f7aec6d4c7b31eebdf35741d | refs/heads/main | 2023-06-05T16:50:59.138252 | 2021-06-25T03:37:03 | 2021-06-25T03:37:03 | 380,049,529 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 122 | py | from bot import MusicBot
def main():
bot = MusicBot()
bot.run()
if __name__ == "__main__":
main() | [
"noreply@github.com"
] | palmtrww.noreply@github.com |
106e8ef9bdd0d3126da30706509d16c6946a7daf | 138c96ca9d4fc9755cd3473bb6a5f614a446c3a3 | /05_chapter/kreator_postaci.py | 3c27b68f6f83a173ee65f442eaa3752192fd21d4 | [] | no_license | EdytaBalcerzak/python-for-all | 553d4a75fd800eef789fd76ad7cbbce982b81648 | 3b41ea38f978761a3b940134558e5c861c4810ea | refs/heads/master | 2021-01-20T09:24:09.975892 | 2017-04-24T16:34:22 | 2017-04-24T16:34:22 | 82,615,394 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,474 | py | # Napisz program Kreator postaci do gry z podziałem na role. Gracz powinien
# otrzymać pulę 30 punktów, którą może spożytkować na cztery atrybuty: siła,
# zdrowie, mądrość i zręczność. Gracz powinien mieć możliwość przeznaczania
# punktów z puli na dowolny atrybut, jak również możliwość odbierania
# punktów przypisanyc... | [
"edytabalcerzak1@gmail.com"
] | edytabalcerzak1@gmail.com |
9d5debcb9f80b706bfaf5b69b6b8ba1db581e571 | 88df0c723112277cd63783a3609c2fcd8eff525d | /BOJ/4949.py | 57fc068539dce32d471aa3866b09a6effbae30e5 | [] | no_license | JHW0900/Problem_Sloving | 72fc020f567eab2689dd9371c6d237c8777ce9fd | 0094ad023263cb2fa9872ddbaf98f96af810767f | refs/heads/main | 2023-06-29T04:37:58.396901 | 2021-08-06T23:13:20 | 2021-08-06T23:13:20 | 324,377,571 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 758 | py | import sys
input = sys.stdin.readline
tuple_types = {'(': ')', '[': ']'}
prev = []
while True:
now = cmd = list(map(str, input().rstrip()))
stack = []
if len(now) == 1 and now[0] == '.':
break
# if not cmd[-1] == '.':
# prev += cmd
# continue
# else:
# cmd = prev + cmd
# prev = []
for... | [
"jhw0900@gmail.com"
] | jhw0900@gmail.com |
f486e9a0a0c4bfa8648db2f3ab716096708a8df8 | 4b7e282fe480415f5d52c0fc0429f144156190fe | /google/ads/googleads/v8/common/types/feed_common.py | 12888a33eb9f184c2402a3337e503e869b2be75f | [
"Apache-2.0"
] | permissive | Z2Xsoft/google-ads-python | c4750357bb19da91bb3b6bf2fa84bef9d2df36d3 | 1779d52a0446c8afb2437b0a9e103dcb849f5590 | refs/heads/main | 2023-08-18T15:22:17.840364 | 2021-09-26T04:08:53 | 2021-09-26T04:08:53 | 410,444,398 | 0 | 0 | Apache-2.0 | 2021-09-26T04:08:53 | 2021-09-26T03:55:38 | null | UTF-8 | Python | false | false | 1,263 | py | # -*- coding: utf-8 -*-
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or... | [
"noreply@github.com"
] | Z2Xsoft.noreply@github.com |
c79372907a8f305b66e2b74c8a808c77cb75c5a3 | e14a60082da2955c9003802f75993b3c741d3152 | /petla_for.py | a0867f7206c1e6abc5c48d6bdf619c4cd94a794b | [] | no_license | AnnaKuc/Python-Tutorial | 98079c31f276cb395ef9d01053de4b6831b893b9 | 72e854b83570d7313c93bfb8a28f4eeb0dc0577e | refs/heads/master | 2022-11-15T03:54:41.758664 | 2020-07-06T09:55:15 | 2020-07-06T09:55:15 | 272,981,351 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 97 | py | for number in range(3, 20, 2):
print(number)
for character in "Python":
print(character) | [
"ania@test.pl"
] | ania@test.pl |
d5655f14e27d61edfb7d6882009fe9f0ad295296 | 163bbb4e0920dedd5941e3edfb2d8706ba75627d | /Code/CodeRecords/2755/60793/267817.py | 8e0ef8cec59b834a9a8d68728452208db38b0567 | [] | no_license | AdamZhouSE/pythonHomework | a25c120b03a158d60aaa9fdc5fb203b1bb377a19 | ffc5606817a666aa6241cfab27364326f5c066ff | refs/heads/master | 2022-11-24T08:05:22.122011 | 2020-07-28T16:21:24 | 2020-07-28T16:21:24 | 259,576,640 | 2 | 1 | null | null | null | null | UTF-8 | Python | false | false | 371 | py | for test in range(0, int(input())):
input()
ls1 = list(map(int, input().split()))
ls2 = list(map(int, input().split()))
l1, l2 = len(ls1), len(ls2)
ls3 = [0 for x in range(0, l1 + l2 - 1)]
for i in range(0, l1):
for j in range(0, l2):
ls3[i + j] += ls1[i] * ls2[j]
for i i... | [
"1069583789@qq.com"
] | 1069583789@qq.com |
9c71cae29c646dba625f6dd2f8a26ec85b2aa165 | 045e18de0e2c510f9815063a52e22ec582fa2edf | /test.py | 41daf909f5da1c09d8b16801f0ecf269dcfacb3a | [
"Apache-2.0"
] | permissive | Jerry671/natural-language-project | 283653a13e4863a73d2f2acadb99e61578221dc9 | 943415ac6085a74363b4f7e881454ebcfccc7689 | refs/heads/main | 2023-01-23T11:17:21.907122 | 2020-11-29T15:30:45 | 2020-11-29T15:30:45 | 316,448,524 | 0 | 1 | null | null | null | null | UTF-8 | Python | false | false | 191 | py | import networkx as nx
import matplotlib.pyplot as plt
import pandas as pd
path = "E:\\Mechine_training data\\soc-pokec-relationships.txt"
relation = pd.read_table(path, sep=' ', header=None) | [
"noreply@github.com"
] | Jerry671.noreply@github.com |
534fa21819f8bfb302859d97f72214eed5737a33 | ac3ef13962d8995c3d546b0b67b99acaa63aa88a | /quizXZ/migrations/0003_auto_20160302_1940.py | 4b67fe13f2e73c9c860d303c92a10ce904911c6b | [] | no_license | Caroline-xinyue/quizBase | a77f75a132afc9b9d873796710339a576810fee8 | 18919845535d5883c2eddbf791580cb497c50a57 | refs/heads/master | 2020-04-10T21:37:51.561960 | 2018-03-07T21:12:57 | 2018-03-07T21:12:57 | 70,264,584 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from django.db import models, migrations
from django.conf import settings
class Migration(migrations.Migration):
dependencies = [
('quizXZ', '0002_auto_20160301_1843'),
]
operations = [
migrations.AlterField(
mo... | [
"xzhang@brynmawr.edu"
] | xzhang@brynmawr.edu |
8b471253d968c59ece847fca7d424aeb60978e69 | 658af335063dc25e97630694ffe95d6a553e0d6b | /Awele/Joueurs/joueur_alphabeta_a.py | a4a22d8cbb13507fe8b61f989afc0d752cc5e7c0 | [] | no_license | Juju49/2i013Players | d99d4b63b86717e47925c1245eaf072beec605e2 | 69e727451095a08c871b2706ddc950b39c22d226 | refs/heads/master | 2020-04-18T03:36:04.306593 | 2019-05-21T16:03:08 | 2019-05-21T16:03:08 | 167,204,806 | 0 | 2 | null | null | null | null | UTF-8 | Python | false | false | 2,870 | py | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
sys.path.append("../..")
import game
import time
MOI = None
JEU = None
N = 3
WEIGHTS = [0.35, 0.15, 0.5]
TIMEOUT = 1.0
START_TIME = None
def getparcoursJoueur(joueur):
"""Int->List[Tuple(Int,Int)]
Retourne la liste des paires d'indic... | [
"julian.merle-remond@etu.upmc.fr"
] | julian.merle-remond@etu.upmc.fr |
26f36f99e3b9ef14808b1fb7abada37a0237de7b | a6c516f69b29dfc0b6a82078b9e5e74be856dd94 | /models/spectra.py | 601aabe978c8145f180202745657b148bf43816c | [] | no_license | scottwedge/InfraredSpectraDBApp | 894469b88947de420347bc767661ff057ee00b04 | d451a6613e4669fe09cddc7164913d85320878fc | refs/heads/master | 2021-05-16T19:00:36.065396 | 2019-06-17T10:53:19 | 2019-06-17T10:53:19 | 250,430,443 | 0 | 0 | null | 2020-03-27T03:25:05 | 2020-03-27T03:25:04 | null | UTF-8 | Python | false | false | 924 | py | from sqlalchemy import (
Column,
Index,
Integer,
Text,
ForeignKey,
String,
)
from .meta import Base
from sqlalchemy.orm import relationship
class Spectra(Base):
__tablename__ = 'Spectra'
spectra_id = Column(Integer, primary_key=True)
label = Column(String(32), nullab... | [
"noreply@github.com"
] | scottwedge.noreply@github.com |
495c686194df3677c638940f0900b1e8bed5d5c9 | c9cb89a4835371e84963f235f090669048b75d57 | /control.py | 3a72df06c2c0421cd318538b3b68c7b5ff72c36c | [] | no_license | SergioGasquez/autonomous-mobile-robot | a333197a12d009a97399e8e705c0c727b5c700ab | fe06e155cec24eae40c51510eb422c496cc0cf25 | refs/heads/master | 2018-10-14T05:33:22.887383 | 2018-07-11T21:52:49 | 2018-07-11T21:52:49 | 118,379,898 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 5,847 | py | #!/usr/bin/python
# Import libraries
from math import *
import rospy
import tf2_ros
from geometry_msgs.msg import Twist
from nav_msgs.msg import Path
from time import sleep # Library for implementing stops signs
class Control(object):
def __init__(self):
self._tfBuffer = tf2_ros.Buffer()
... | [
"noreply@github.com"
] | SergioGasquez.noreply@github.com |
ed9a98749599fa918cd6108cf1017d3f5d6ab8ab | 3a47f59b5b51470ccc8bd5db1de1daea53d0b39c | /experiments/dyadic/amazon_crawler/amazon_crawler/settings.py | 703192f30b6a3edaa107b51d703b5db1d7d10bc2 | [] | no_license | gegetang/compatibility-family-learning | c9c9218d4c90b8fea2ab9733c103f670e9367979 | d760068388b3e8fd6c58a883137ba3db7c9ffa29 | refs/heads/master | 2020-04-14T01:56:28.060115 | 2018-01-08T05:51:19 | 2018-01-23T05:58:41 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 770 | py | # -*- coding: utf-8 -*-
# Scrapy settings for amazon_crawler project
#
# For simplicity, this file contains only settings considered important or
# commonly used. You can find more settings consulting the documentation:
#
# http://doc.scrapy.org/en/latest/topics/settings.html
# http://scrapy.readthedocs.org/en... | [
"yongsiang.shih@appier.com"
] | yongsiang.shih@appier.com |
570e791962616acf2b90d808f402aaea2ee15533 | e1834bce67d20e73d10eb4533584d635f2840782 | /onir/datasets/nyt.py | 14b837a35362df7067ee673b9743e46b16f78994 | [
"MIT"
] | permissive | tgeral68/OpenNIR | f1d8361c1543fda401386ee5d87ecb14766c16da | 225b26185bd67fdc00f24de3ef70d35768e22243 | refs/heads/master | 2023-02-27T02:06:28.357884 | 2021-02-08T16:22:09 | 2021-02-08T16:22:09 | 327,644,600 | 0 | 0 | MIT | 2021-02-08T15:55:28 | 2021-01-07T15:03:22 | null | UTF-8 | Python | false | false | 16,788 | py | import os
import tarfile
import contextlib
import functools
from glob import glob
from multiprocessing import Pool
from pytools import memoize_method
from bs4 import BeautifulSoup
import onir
from onir import datasets, util, indices, log, config
from onir.interfaces import trec, plaintext
logger = log.easy()
_HELD_... | [
"sean.macavaney@gmail.com"
] | sean.macavaney@gmail.com |
3611831f18561cfa5af0f745acdf03a946f45c97 | d3762b1b4d908b2b43f6e0ae362daa7136c6c7a4 | /elections/management/commands/migrate_data.py | d427572608b5a937a16039325feb542271465cab | [] | no_license | pbahle/elections-api | c58cdf2b05f1560c8d6a69f8bc07e878458585c1 | 60cc06610ab7a279102018078f29f38d31e8bd26 | refs/heads/master | 2020-09-02T10:44:03.663386 | 2019-11-02T19:26:30 | 2019-11-02T19:26:30 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,838 | py | # pylint: disable=no-self-use
import sys
from datetime import timedelta
from pathlib import Path
from django.core.management.base import BaseCommand
from django.utils import timezone
import log
from elections import defaults
from elections.helpers import normalize_jurisdiction
from elections.models import District,... | [
"jacebrowning@gmail.com"
] | jacebrowning@gmail.com |
acc27c596245e4d7cc567d15066edcddd718ffee | eae5c9829e1ed45f8761379d0fc88216ecc884bf | /mainapp/templatetags/specifications.py | 80da9ad96dac257688f9e80e737279dfef4258e9 | [] | no_license | wildmaus/shopN | e125ca54c9fc6f77ae255b8c2295a189ec24f944 | b5f44604f9eef4e1842330482251f4051c034ac2 | refs/heads/master | 2023-08-24T13:35:14.851996 | 2021-11-02T09:47:16 | 2021-11-02T09:47:16 | 325,253,105 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,255 | py | from django import template
from django.utils.safestring import mark_safe
from mainapp.models import Smartphone
register = template.Library()
TABLE_HEAD = """
<table class="table">
<tbody>
"""
TABLE_TAIL = """
</tbody>
</table>
... | [
"tagilmaus@gmail.com"
] | tagilmaus@gmail.com |
af0fe42d093a7499d9686e4fb26fe87b9ee1d317 | 36920a18ad0b91ccd88a8c1dfbf38eced123115c | /iftt.py | 12a4c0e13017abcdcef77d31da627489ff59d9c5 | [] | no_license | mahesh07513/Flask-Alexa | 8926b83163d93f68dd4c64c8356006419f96d577 | 7952494893fc2b5408f17e4c3787b5e9264d523b | refs/heads/master | 2020-04-30T01:17:43.585664 | 2019-03-19T14:08:36 | 2019-03-19T14:08:36 | 176,525,677 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 436 | py | import requests
def email_alert(first, second, third):
report = {}
report["value1"] = first
report["value2"] = second
report["value3"] = third
requests.post("https://maker.ifttt.com/trigger/callpython/with/key/cE-g8Ez3Be3ryVsJKlQTHL", data=report)
print("Choose your first string.")
a = input()... | [
"mahesh07513@gmail.com"
] | mahesh07513@gmail.com |
8a5b9c0407ee9bebaf9b240ad797a428e4f1daf0 | 01af5c75c4b29e33f862ef8460cf77b1a21edf2a | /vicks/covidmail.py | e5f6f2614c72e8225090aa8d611c82bf4dc84d91 | [] | no_license | imvickykumar999/covid19slot | 42c72a1e795bce32ecf7c1850c9b71b6f21258b0 | 689ce0819f6f3fe4453eb6437f303558bef8a99a | refs/heads/main | 2023-05-27T03:00:15.272312 | 2021-06-06T22:19:35 | 2021-06-06T22:19:35 | 374,466,577 | 1 | 1 | null | null | null | null | UTF-8 | Python | false | false | 1,645 | py |
def covail(l=[
{'1key1':'1value1', '1key2':'1value2'},
{'2key1':'2value1', '2key2':'2value2'}
],
toaddr = "hellovickykumar123@gmail.com",
filename = None,
):
if filename == None:
filename = f"{toaddr.split('@')[0]}.xlsx"
import... | [
"imvickykumar999@gmail.com"
] | imvickykumar999@gmail.com |
8d7db82a4657e40c36be1643c2d9987499a8b4a9 | 5451f259e39c8601316a091e1a91a62d2e55d5d1 | /ncvxsp/linear_model/scad_coordinate_descent.py | 5792b104f76eb8062b3cc1cc165fd02d80646034 | [
"BSD-3-Clause"
] | permissive | Clej/ncvx-sparse | 22bf5672fee415d2d2ffb909bbdd52e89d531514 | 457a1a1e7c4422e1e7cd761d46c08055108d5c14 | refs/heads/master | 2023-06-29T14:11:23.495929 | 2021-08-06T20:12:59 | 2021-08-06T20:12:59 | 393,133,213 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 29,107 | py | # -*- coding: utf-8 -*-
"""
Created on Fri May 21 12:19:50 2021
@author: Clément Lejeune (clement.lejeune@irit.fr; clementlej@gmail.com)
"""
import sys
import warnings
import numbers
from abc import ABCMeta, abstractmethod
import numpy as np
from scipy import sparse
from joblib import Parallel, effective_n_jobs
fro... | [
"54889281+Clej@users.noreply.github.com"
] | 54889281+Clej@users.noreply.github.com |
c1fb632462fb073565ae995962ae392db45905b3 | a411a55762de11dc2c9d913ff33d2f1477ac02cf | /lte/gateway/python/magma/mobilityd/subscriberdb_client.py | 1fec443db1956ef872a11cfbc3a1d98d7a4c2e0f | [
"BSD-3-Clause"
] | permissive | magma/magma | 0dc48c1513d9968bd05fb7589f302c192b7c0f94 | 0e1d895dfe625681229e181fbc2dbad83e13c5cb | refs/heads/master | 2023-09-04T09:31:56.140395 | 2023-08-29T13:54:49 | 2023-08-29T13:54:49 | 170,803,235 | 1,219 | 525 | NOASSERTION | 2023-09-07T17:45:42 | 2019-02-15T04:46:24 | C++ | UTF-8 | Python | false | false | 6,221 | py | """
Copyright 2020 The Magma Authors.
This source code is licensed under the BSD-style license found in the
LICENSE file in the root directory of this source tree.
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES O... | [
"noreply@github.com"
] | magma.noreply@github.com |
5bbdc724ce248b43af1343eeccc75057631580a6 | c2e7648fca2aebc9577b26b411b0da10609da3f5 | /Pb_policy_iteration/cart_pole_modified_env/reproduce_FHCP_results/modified_algo/parameter_config_6.py | de351ae624e309c2014e04efafb2db15a7dec42a | [] | no_license | PandulaP/RL_Research | c3a6d42b6b3dad52b7c8758cd853cfb6cd638c28 | 8170206ef9ad2c42d690b8cf2f90a9bded7c9418 | refs/heads/main | 2023-06-14T22:04:35.216509 | 2021-07-02T07:05:02 | 2021-07-02T07:05:02 | 318,289,678 | 1 | 0 | null | 2023-01-03T13:43:04 | 2020-12-03T18:51:49 | Jupyter Notebook | UTF-8 | Python | false | false | 40,403 | py | #######################################
### Tested Parameter Configurations ###
#######################################
CONFIGS = {'S': [100]
, 'Actions' : [3]
, 'Roll-outs': [20]
, 'Significance' : [0.025, 0.05, 0.1]
}
########################################
### importing th... | [
"pandula2011@gmail.com"
] | pandula2011@gmail.com |
ca1b707109866827e14056049f57c913b474171f | 4229a406a83a573dc357c1144cae7c5aad6f673b | /trestle/tasks/__init__.py | 86a3ca67891864e7f9daa7aafdae8b49ba9a8a8d | [
"Apache-2.0"
] | permissive | xee5ch/compliance-trestle | dbc0647fe18e1164a75bcfdc4d38687df14e3247 | 969c10eceb73202d2b7856bac598f9b11afc696e | refs/heads/main | 2023-09-02T17:21:35.659432 | 2021-11-17T00:01:27 | 2021-11-17T00:01:27 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 754 | py | # -*- mode:python; coding:utf-8 -*-
# Copyright (c) 2020 IBM Corp. 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
#
# https://www.apache.org/licenses/LICENSE-2.0
#
... | [
"noreply@github.com"
] | xee5ch.noreply@github.com |
d04ae994a53ff06417f846f19c0403d3bc065f10 | e5d83ede8521027b05d9b91c43be8cab168610e6 | /0x0B-python-input_output/1-number_of_lines.py | 1dfc5fcc64012fcf583f7f599a0cd5e13d80cbb1 | [] | no_license | Danielo814/holbertonschool-higher_level_programming | 8918c3a6a9c136137761d47c5162b650708dd5cd | 832b692529198bbee44d2733464aedfe650bff7e | refs/heads/master | 2020-03-28T11:09:00.343055 | 2019-02-22T03:33:54 | 2019-02-22T03:33:54 | 148,181,433 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 290 | py | #!/usr/bin/python3
"""
1-number_of_lines module
"""
def number_of_lines(filename=""):
"""
returns the number of lines of a text file
"""
numlines = 0
with open(filename, 'r', encoding='utf-8') as f:
for line in f:
numlines += 1
return numlines
| [
"211@holbertonschool.com"
] | 211@holbertonschool.com |
536e8eda7de1c4a381f2c709fa56729cfbf19ee7 | 04b1803adb6653ecb7cb827c4f4aa616afacf629 | /native_client_sdk/src/build_tools/tests/verify_filelist_test.py | 2e01da1c93e9b3e5b6743a0e4d6f71f712de429d | [
"BSD-3-Clause"
] | permissive | Samsung/Castanets | 240d9338e097b75b3f669604315b06f7cf129d64 | 4896f732fc747dfdcfcbac3d442f2d2d42df264a | refs/heads/castanets_76_dev | 2023-08-31T09:01:04.744346 | 2021-07-30T04:56:25 | 2021-08-11T05:45:21 | 125,484,161 | 58 | 49 | BSD-3-Clause | 2022-10-16T19:31:26 | 2018-03-16T08:07:37 | null | UTF-8 | Python | false | false | 3,854 | py | #!/usr/bin/env python
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import os
import sys
import unittest
SCRIPT_DIR = os.path.dirname(os.path.abspath(__file__))
BUILD_TOOLS_DIR = os.path.dirname(SCR... | [
"sunny.nam@samsung.com"
] | sunny.nam@samsung.com |
c29ff1701a3bfbca5682d464670a0183a3517f7b | 8882bfe78b3a6e5d022f81c86512b22f851d9dc8 | /tgflow/TgFlow.py | ffb115f18b4e9744371863b4ed3007956ddc5bbd | [
"MIT"
] | permissive | inexcode/tgflow | 5600fa4040d30157daf6d2ad5fe8d625ac64789d | e7bbd7df87e7a711c1b2924f3f2ae909fb2086c5 | refs/heads/master | 2020-03-29T10:19:39.405683 | 2018-09-21T18:13:30 | 2018-09-21T18:13:30 | 149,799,442 | 0 | 0 | null | 2018-09-21T17:59:23 | 2018-09-21T17:59:23 | null | UTF-8 | Python | false | false | 6,673 | py | #import telebot
import hashlib
from enum import Enum
from . import handles
from . import render
import pickle,time
from .api.tg import telegramAPI
import pprint
pp = pprint.PrettyPrinter(indent=4)
action = handles.action
api,key = None,None
def_state = None
def_data= None
States = {}
UI = {}
Data = {}
Actions = {}
K... | [
"lkv97dn@gmail.com"
] | lkv97dn@gmail.com |
803fd511cf8216badd7699cc5ab9371a42411d21 | e863d44139f345eb256847a133b14966c3a81148 | /work/lastSubString.py | 95b9cbe706cfa5524c750ae00f502b97e28ea9ac | [
"MIT"
] | permissive | sreeaurovindh/code_sprint | 4d8b4fbce753e4ae463e0a0f2bd730ba91649dc7 | 4c37becbdfb49d5b8f942190006c2d27769da282 | refs/heads/master | 2021-05-01T15:50:59.975559 | 2020-12-30T04:32:57 | 2020-12-30T04:32:57 | 121,039,558 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 659 | py | #https://leetcode.com/problems/last-substring-in-lexicographical-order/discuss/369191/JavaScript-with-Explanation-no-substring-comparison-fast-O(n)-time-O(1)-space.-(Credit-to-nate17)
def lastSubstring(input):
start = end = 0
skip = 1
while (skip+end) < len(input):
if input[start+end] == inpu... | [
"sree@Srees-MacBook-Pro.local"
] | sree@Srees-MacBook-Pro.local |
ce3a6f33c2f5edf47d8f33c41751a788409d2fad | 1c6bbd9223dce3f40765cb097e2d40a770c26319 | /myenv/Scripts/django-admin.py | 54b9f159656458777fce053021a294542693f12e | [] | no_license | db237/my-first-blog | a1521082b442a02f0491b1322c3b9c3ec3f2142e | a1e469d9e82fcd1a3d214e6fc7f429ffe2354fda | refs/heads/master | 2022-12-09T20:34:28.741319 | 2020-08-19T18:19:18 | 2020-08-19T18:19:18 | 288,805,822 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | #!c:\users\dev bhati\djangogirls\myenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"devbhati2307@gmail.com"
] | devbhati2307@gmail.com |
5af30a2b0dea4f99b3e6d50ab17ef88efd55dbee | 43aac8bd31c412e2eccd24d65a349e535c1c4508 | /models/graphunet.py | a0323d9537794ed8b9e8cff92591df046d780b9e | [] | no_license | Spj-Zhao/HOPE | d7145f22141e0182d86650b27b617f169ebd13c9 | 24f99bb6c4f1d3e185e8988179347dde5c37f42c | refs/heads/master | 2022-12-27T08:57:30.052335 | 2020-10-01T15:16:54 | 2020-10-01T15:16:54 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,585 | py | import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.parameter import Parameter
import numpy as np
class GraphConv(nn.Module):
def __init__(self, in_features, out_features, activation=nn.ReLU(inplace=True)):
super(GraphConv, self).__init__()
self.fc = nn.Linear(in_f... | [
"bdoosti@iu.edu"
] | bdoosti@iu.edu |
eabb7322a1743993a880d4cad03011ddb2915ea7 | 5f57c3b3e62598a810696eebfe1a5b637dcd45a3 | /Custom calling.py | 7f1db2abdf7e348da2e7517dfbaf870bbbece706 | [] | no_license | k1k2k311/HLA-combined | 37d3f276a67dd8b831f4f2e6f155aedc6ac24201 | eb433aaa76ddda3b4883b8f80dd3d6214ca84b57 | refs/heads/main | 2023-07-01T00:33:26.427104 | 2021-07-03T07:54:31 | 2021-07-03T07:54:31 | 381,877,700 | 2 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,542 | py | # "data" format should be an allele list of results from various tools [2420,3303,2420,4404]
# "hla" should be either "A","B" or "C" (hla type)
# model_acc.csv = ( 100- accuracy rate) %
# Searching most frequent value
def frequent(list):
count = 0
no = list[0]
for i in list:
curren... | [
"noreply@github.com"
] | k1k2k311.noreply@github.com |
b6ce5d0d5ecec1d02a42b40f0d1e9f4ca9fab2e9 | dd8bf0fa2f8b0dda9e91790b066bfd8e419bbb86 | /candidate/views.py | 8bcbf0dd9b5e147cc07fde56d8a2575481bad1a0 | [] | no_license | devanshbhatia26/CVPrioritize | 3a73518d8fbbdf81d744ca3673f73322d7215e94 | d86ae12498e803c91933f0d7be0c3b2e54c599ca | refs/heads/master | 2023-02-18T14:57:20.979087 | 2018-08-09T10:58:32 | 2018-08-09T10:58:32 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 3,411 | py | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
from datetime import datetime
import json
from django.shortcuts import render, reverse
from django.http import HttpResponse, HttpResponseRedirect
from .models import Candidate, UploadFileModel, Application
from .forms import EditDetails, UploadFile
from d... | [
"dbhrockzz1@gmail.com"
] | dbhrockzz1@gmail.com |
9a6669dbb8aa1d8739a39c14d383548d2e889676 | 557d75e6dfb42c881d4df73950c41935635f2162 | /preprocessing/recon_all.py | d9bf4632fb59ca40f6606a9db0ddc41864471963 | [] | no_license | sssilvar/multiple-sclerosis | e6139558249f00a882ffeb9d4b82ac323a50ec96 | a2e1e97e1297d45c2b84c5c57b372eee26047941 | refs/heads/master | 2020-06-05T00:09:04.781033 | 2019-07-13T23:15:00 | 2019-07-13T23:15:00 | 192,245,761 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,045 | py | #!/bin/env python3
import os
import glob
from multiprocessing.pool import Pool
from os.path import join, isdir, basename
def recon_all(vol_file):
sid = basename(vol_file).split('_')[0]
t2_file = vol_file.replace('T1Wreg.nii.gz', 'T2Wreg.nii.gz')
cmd = f'recon-all -i {vol_file} -T2 {t2_file} -s {sid} -sd {... | [
"sssilvar@unal.edu.co"
] | sssilvar@unal.edu.co |
10b90cedd70c0f884a769e49b3708e09ff50e374 | a1ae058be4e115fc943f4a97ff20bc6d9578b4e7 | /checklist/views.py | e9c8aa0d45aa25224212a043435508d0526a3dc1 | [] | no_license | twagner000/tristanwagner | 141925784e7b5f2aa0c2d1e5c945cf53bdcb0740 | e1b0d523831659a58a172b3ab5fe2ffebab04890 | refs/heads/master | 2023-01-04T19:41:41.044650 | 2019-10-03T06:56:00 | 2019-10-03T06:56:00 | 39,306,731 | 1 | 0 | null | 2023-01-04T07:54:11 | 2015-07-18T17:30:52 | Python | UTF-8 | Python | false | false | 2,060 | py | from django.shortcuts import render, get_object_or_404, redirect
from .models import Checklist, AnsweredChecklist
def index(request):
checklist_list = Checklist.objects.all()
return render(request, 'checklist/index.html', {'checklist_list': checklist_list})
def take(request, checklist_id):
checklist = get... | [
"twagner000@users.noreply.github.com"
] | twagner000@users.noreply.github.com |
2af51abc842ea604d18e6b1ee94c111c9bc35cb8 | d35c58b7ff808537dc7edb47606dd2cc2253dbdc | /hometask3/hometask3.py | 8fb6d0bcd29ed5bbb9dce89d2bd9cb508aa926be | [
"MIT"
] | permissive | karotkin/hometasks | e5f043d299043e949c3ed9e70213426785da917e | 709d51f89a70b5b2146ecfd7b33e0fea41a8b24c | refs/heads/master | 2021-01-21T08:36:54.600877 | 2016-08-25T13:10:21 | 2016-08-25T13:10:21 | 66,083,066 | 0 | 0 | null | 2016-08-19T13:08:27 | 2016-08-19T13:08:26 | null | UTF-8 | Python | false | false | 3,432 | py | #!/usr/bin/python
import psutil
import datetime
import configparser
import time
import json
import schedule
config = configparser.ConfigParser()
config.read('config.ini')
timeint = config.get('setup', 'int')
filetype = config.get('setup', 'filetype')
snapshot = 1
# CPU_Load
cpu_usage = psutil.cpu_percent(interval=1... | [
"“yaroslav909@gmail.com”"
] | “yaroslav909@gmail.com” |
c68086f3cfc0a8c4d58bddae6939012e5f5d8e4b | 5cf4bcc45a2b755684a328fb6d99096d27ff506b | /M5HW2_McMillanChristian.py | d462294dfdfbd12da6cda1eb19666c1b5b8d75c5 | [] | no_license | meekmillan/cti110 | 6f6e34fb0e94be51788c07e2498ef14dbf1cdf4e | 7da0e4ce741ec2dda2fdab343246ad7d896ef04c | refs/heads/master | 2021-08-28T16:18:59.434491 | 2017-12-12T18:12:10 | 2017-12-12T18:12:10 | 104,909,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 319 | py | #CTI-110
#M5HW2 - Running Total
#Christian McMillan
#10/24
#This program will calculate a running total
# Initialize
total=0
newNum = int (input( "Enter a number?: "))
# Enter loop
while newNum >=0:
total +=newNum
newNum = int (input( 'Enter a number?: '))
# Print end of loop total
print("Total: ",total)
| [
"noreply@github.com"
] | meekmillan.noreply@github.com |
0d6361a1c0ab589a30c8857539292b0ea2ba6f17 | 43dabf77afd5c44d55b465c1b88bf9a5e7c4c9be | /drawing_random_circles.py | be298cbf90b23e67ea008144b485fca1b94b056c | [] | no_license | geegatomar/OpenCV-Computer-Vision-Adrian-Rosebrock | cc81a990a481b5e4347dd97369b38479b46e55bc | daa579309010e6e7fefb004b878ffb26374401d0 | refs/heads/master | 2022-11-18T13:07:08.040483 | 2020-07-20T01:55:39 | 2020-07-20T01:55:39 | 280,987,262 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 510 | py | import cv2
import numpy as np
# drawing 25 random circles
canvas = np.zeros((400, 400, 3), dtype="uint8")
for i in range(25):
radius = np.random.randint(180) # will generate random radius value between 0 and 100
centre = np.random.randint(0, 400, size=(2, ))
color = np.random.randint(... | [
"geegatomar@gmail.com"
] | geegatomar@gmail.com |
a4f7ad0e605de064bcf4e4489cdaed329f43483d | 5f1d1ba201c209022f1c3b12b2afa9429a23f7ea | /main.py | d283f8e78f042af754df23192e5f8cb655b13a91 | [] | no_license | DSchana/Art-Assemblage-and-Appreciator | 61927b321662faf72efb83aa5da6c9504f79d3a5 | f41be8571a22a26cb9eb315aed341f14f186ec4f | refs/heads/master | 2023-02-03T00:23:54.441047 | 2020-12-17T23:54:44 | 2020-12-17T23:54:44 | 321,794,286 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 8,460 | py | from typing import Optional, List
from fastapi import FastAPI, status, HTTPException
from fastapi.responses import JSONResponse
from models.user import User, UserAuth
from models.art import Art, Assemblage
import os
import json
import uvicorn
art = FastAPI()
art_lock = False
art_json = {}
### Users
@art.post("/a... | [
"dschana6@gmail.com"
] | dschana6@gmail.com |
5b2adb99ac1c7f639cd70f0a78682b1b33699973 | de24f83a5e3768a2638ebcf13cbe717e75740168 | /moodledata/vpl_data/303/usersdata/292/85489/submittedfiles/testes.py | 8470e2323f37fdef8789f886efdda325a1056e93 | [] | 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 | 87 | py | # -*- coding: utf-8 -*-
#COMECE AQUI ABAIXO
import datetime
n=date.today()
print(n) | [
"rafael.mota@ufca.edu.br"
] | rafael.mota@ufca.edu.br |
b02b27006734f133f41bee3ab8a81bc2992bd3f2 | d74f4d0ba3bb3c76813fe6d765106a1036404c49 | /Roblox2021_HackerRank/q3.py | e2d904a4e0a628a49b73b05eb771e212cab6b09f | [] | no_license | TahaKhan8899/Coding-Practice | 235ed05f0233f02ee9563aad374bcef456d4e1d8 | 29bee7e09d7b6c25b536775ad4257ea09ed202c5 | refs/heads/master | 2021-10-20T10:37:30.679328 | 2021-10-07T14:40:23 | 2021-10-07T14:40:23 | 175,536,862 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 881 | py | #
# Complete the 'compressWord' function below.
#
# The function is expected to return a STRING.
# The function accepts following parameters:
# 1. STRING word
# 2. INTEGER k
#
def compressWord(word, k):
stk = []
for i in range(0, len(word)):
if len(stk) == 0:
charFreq = [word[i], 1]
... | [
"khant21@mcmaster.ca"
] | khant21@mcmaster.ca |
24040a1b52951cb5c8894c540fa340873bbc9d93 | 2b42629e41c2473658335a0b750308fbb6e08249 | /app/model/fit_model_vector.py | feafcb8887512958be91f9f74bb7eecc397817c1 | [] | no_license | letotefrank/nlp-sim | 4bb163f099e1e43cf43e3ac56badcff790223e5d | 314f9dd822f87256bc679ef11861daa9815da4da | refs/heads/master | 2020-03-28T12:29:41.578013 | 2018-11-30T07:38:25 | 2018-11-30T07:38:25 | 148,303,925 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,566 | py | from fastText import train_unsupervised
import config
import os
import json
import itertools
from app.model.data_process import data_process
def fit():
'''
fastText训练语料库,save:local_model.bin;利用 预处理和分词 后的pre_data.txt 训练 sentence-vector
:return: fit result
'''
# 数据预处理。返回 id_url_df 用于结果拼接(id,url)
... | [
"frank.li@letote.cn"
] | frank.li@letote.cn |
3f7c090f4bee5ac6ad1794ca0676a0e4b8056d8e | e5fa58651bfd550ca79cfbdddbde6b570d6041e8 | /Chapter 5/tango_with_django_project/tango_with_django_project/urls.py | 4a51e4ce0cba6076c16d4266be4ebfc05eabbc62 | [] | no_license | ellieleep/tangowithdjango | 7dc6a3298c7978b5b7c8dacfd5d7aba270d53672 | 3bb7600be31f2f07f702104d5bf8805f7b2d0a1c | refs/heads/master | 2023-07-15T08:11:49.326139 | 2021-08-19T19:14:26 | 2021-08-19T19:14:26 | 390,139,979 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,047 | py | """tango_with_django_project URL Configuration
The `urlpatterns` list routes URLs to views. For more information please see:
https://docs.djangoproject.com/en/3.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='... | [
"32715340+ellieleep@users.noreply.github.com"
] | 32715340+ellieleep@users.noreply.github.com |
22a47b9290477f745fd0080eea00f78909aa3193 | 3445a1ea3ee67b03cff101ff8fdb4fedf9ba9a36 | /sql_queries.py | 191dd58c78933bc1e26acdbc41bf18252cab44dd | [] | no_license | DnyanadaArjunwadkar/Udacity-Data-Engineer-ND | c0d373f0a1da04084dd6f52b6b34017ae9cebc0b | e22151c031b7f3c76647a94f02364bfa98a4b88c | refs/heads/master | 2020-05-31T12:37:24.351126 | 2019-06-04T22:12:12 | 2019-06-04T22:12:12 | 190,285,324 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,953 | py | # DROP TABLES
songplay_table_drop = "DROP TABLE IF EXISTS song_plays"
user_table_drop = "DROP TABLE IF EXISTS users"
song_table_drop = "DROP TABLE IF EXISTS songs"
artist_table_drop = "DROP TABLE IF EXISTS artists"
time_table_drop = "DROP TABLE IF EXISTS time"
# CREATE TABLES
songplay_table_create = ("""CR... | [
"noreply@github.com"
] | DnyanadaArjunwadkar.noreply@github.com |
c1e2c8f2be5494462cd1924e83a6c93983a158ce | 9e9e0985789b51210c7fe315ae98949de8b23469 | /vyper/semantics/analysis/base.py | 449e6ca33884f5ad3fe588a64274abbbb3cdb0fa | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | vyperlang/vyper | ea614230edccf3424aad746f66874e1f32c55c57 | 158099b9c1a49b5472293c1fb7a4baf3cd015eb5 | refs/heads/master | 2023-08-30T02:18:48.923346 | 2023-08-27T02:59:27 | 2023-08-27T02:59:27 | 73,461,676 | 2,359 | 469 | NOASSERTION | 2023-09-14T13:05:24 | 2016-11-11T08:56:41 | Python | UTF-8 | Python | false | false | 8,346 | py | import enum
from dataclasses import dataclass
from typing import Dict, List, Optional
from vyper import ast as vy_ast
from vyper.exceptions import (
CompilerPanic,
ImmutableViolation,
StateAccessViolation,
VyperInternalException,
)
from vyper.semantics.data_locations import DataLocation
from vyper.sema... | [
"noreply@github.com"
] | vyperlang.noreply@github.com |
74ff9da07d0e3ef8fc39177aaef0c51a8f5fabb6 | 641357069b54b5044aff093e8fdce50fa5dde34b | /mod_02_globals_and_locals.py | a8d56af04676abe43d71b70ee435e8c63f9a97f8 | [] | no_license | jorgevila/decorators | 559000eff7c5fc084fbaa3f530386e70faf0558e | f73ede2f4d4d29d0918fb9127f343d534d2a1f51 | refs/heads/master | 2021-01-15T23:30:50.289603 | 2015-07-24T08:41:28 | 2015-07-24T08:41:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 6,782 | py | #===============================================================================
# MOD 02: global, globals and locals
#===============================================================================
# Let's continue with a small exercise before diving into scopes and namespaces
#====================================... | [
"pablo.enfedaque@skyscanner.net"
] | pablo.enfedaque@skyscanner.net |
c3e597348ecd704038d52109bd25c04c2baf9da0 | 54f352a242a8ad6ff5516703e91da61e08d9a9e6 | /Source Codes/AtCoder/abc003/D/4547211.py | 6a0acb9b36e11c97948531a48a505d78d41e9f86 | [] | 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 | 998 | py | mod = 10**9 + 7
def powmod(x, n):
ret = 1
while n > 0:
if n & 1:
ret *= x; ret %= mod; n -= 1
else:
x *= x; x %= mod; n >>= 1
return ret
fact = [1 for _ in range(1000)]
revfact = [1 for _ in range(1000)]
def setfact(n):
for i in range(n):
fact[i+1] = fact[i] * (i+1); f... | [
"kwnafi@yahoo.com"
] | kwnafi@yahoo.com |
b8f2c3b12f8e50b050374859c2cd7f0411825d78 | 2a4dc7f112b14bd336e343af3cd83232bba6ca4c | /telethon_add_to_group.py | 84cddc3ccf3c0be92d4d717c310c3d4f784c6d39 | [] | no_license | NdibeRaymond/telethon | 594b9ce3dc4de0ec1d81080ade99a3c7bca708f9 | 6fe1a26bb54addeb94bc0fe7bca28f2d086c0d5b | refs/heads/master | 2022-12-15T07:31:39.181468 | 2020-09-19T17:38:17 | 2020-09-19T17:38:17 | 296,770,807 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,977 | py | from telethon.sync import TelegramClient
from telethon.tl.functions.messages import GetDialogsRequest
from telethon.tl.types import InputPeerEmpty, InputPeerChannel, InputPeerUser
from telethon.errors.rpcerrorlist import PeerFloodError, UserPrivacyRestrictedError
from telethon.tl.functions.channels import InviteToC... | [
"noreply@github.com"
] | NdibeRaymond.noreply@github.com |
b350f1f0416822ef956cae7c7a8e285fdeae380a | 2d1649a7a00d49b72ed7e53afa4abb3c9281ce03 | /.history/ParticleFilter/go_to_goal_20190421181756.py | fa5c4dea237b41fd8aea882ecec9f2e1f521c0ff | [] | no_license | joshzhang5/CS3630Lab6 | 9547dc6c89198e9bb4aebd8359d4feb974082d20 | 69e6df12829e18a211ae850236d74b4d728046ef | refs/heads/master | 2020-05-15T13:59:51.906195 | 2019-04-22T18:21:42 | 2019-04-22T18:21:42 | 182,317,674 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 11,240 | py | # Jiaxi Zhang
# George McAlear
# If you run into an "[NSApplication _setup] unrecognized selector" problem on macOS,
# try uncommenting the following snippet
try:
import matplotlib
matplotlib.use('TkAgg')
except ImportError:
pass
from skimage import color
import numpy as np
from numpy.linalg import inv... | [
"josh@lawn-143-215-110-217.lawn.gatech.edu"
] | josh@lawn-143-215-110-217.lawn.gatech.edu |
e25ef82fd5e2f90d8835e797672d42b0e20ae461 | b62f99db3bccf932aaa4885257ecc3d30596df59 | /OFDM/PAPR reduction/PAPR (single carrier).py | 381df597e0f90ecdacb2386734d19512f573b9aa | [] | no_license | ganlubbq/communication-simulation | 00cb36ae0f3dfc3ea042dfcb77da0795d5140ad7 | 4dfbfc229ff1ac3bcfaa6b32db958c35a7a5e6d8 | refs/heads/master | 2021-07-26T17:23:47.212096 | 2017-11-07T10:27:48 | 2017-11-07T10:27:48 | 110,319,362 | 1 | 1 | null | 2017-11-11T04:59:23 | 2017-11-11T04:59:22 | null | UTF-8 | Python | false | false | 6,046 | py | import numpy as np
import matplotlib.pyplot as plt
Ts = 1 # 正常情況的取樣周期,同時傳送端也會每個Ts送一個symbol
L = 8 # oversampling factor
Fs = 1/Ts * L # 取樣頻率 (乘上L是因為過取樣(oversampled)的原因)
Fc = 1 # 載波頻率
for k in range(3):
if k == 0:
constellation = [-1+0j, 1+0j]
constellat... | [
"a5083a5083@gmail.com"
] | a5083a5083@gmail.com |
e9c2b8cd6f09b728d9ba53ba44af92899b6be039 | 6ab13b962c99523c12f52b7b99723cf470dfd504 | /0x02-python-import_modules/2-args.py | fcfdc066e3da2eb6727ad55f2f1d3ed506948cb1 | [] | no_license | OctaveC/holbertonschool-higher_level_programming | db4522a73c39a31a29d2e8190200cd6733019e13 | 350735ec7077647a25077ad24727c7f644eaf2d7 | refs/heads/main | 2023-08-18T03:48:17.535787 | 2021-09-23T01:05:47 | 2021-09-23T01:05:47 | 361,696,108 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 390 | py | #!/usr/bin/python3
if __name__ == "__main__":
import sys
for argv in range(len(sys.argv)):
if (argv == 0):
if (len(sys.argv) == 1):
print("0 arguments.")
elif (len(sys.argv) == 2):
print("1 argument:")
else:
print("{} arguments:".format(len(sys.argv)... | [
"octavec@outlook.com"
] | octavec@outlook.com |
fb8634a4c603789431dd34afcdb2ed4356e85859 | f23947b7531aa2ceae3e8444edc570b845362818 | /pygamess/pygamess.py | 6ecc75bb56ba96c5ec9ad0f7751952ed3e7639c8 | [] | no_license | andrepd/gamess | 8b581ad5aae4931274a42b5006a68966be84ff55 | 9365f4caedb300b8707be72ff8b32bcc2d51a9c8 | refs/heads/master | 2018-01-08T14:41:27.540722 | 2016-03-12T03:15:54 | 2016-03-12T03:15:54 | 51,661,161 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 5,566 | py | import sys
import os
sys.path.append('./lib')
sys.path.append('./data')
from gamin import gamin
from basis_list import basis_list
if(len(sys.argv)!=3):
print "Usage: python "+sys.argv[0]+" infile.pygam outfile.inp"
sys.exit()
test=gamin(sys.argv[1])
#DFT
functional={}
functionaldata=open("./data/xcfunctional... | [
"marcosgouveia13@gmail.com"
] | marcosgouveia13@gmail.com |
5fe4c7ed46fc6342f89f21baa980a8b8f0c9a22a | a814debee728e59a7a10d8c12b92c1f3ee97e19d | /Cadeias/Questao01.py | 5a06773ddc2a07e94da38507662ab3bf4ae50ea1 | [] | no_license | PedroVitor1995/Algoritmo-ADS-2016.1 | 0ee034d2f03b29d3c8177fb3402f7aeae08d07cf | 8e3b6dfb0db188b9f5d68dcb8619f6636883ab89 | refs/heads/master | 2021-01-01T15:51:56.636502 | 2017-07-19T13:47:36 | 2017-07-19T13:47:36 | 81,328,868 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 462 | py | #__*__ encoding:utf8 __*__
"""1. Faça a criptografia de uma frase digitada pelo usuário. Na criptografia, a frase deverá ser invertida e as
consoantes deverão ser substituídas pelo caractere #."""
def main():
frase = raw_input('Digite uma frase: ')
consoantes = 'BCDFGHJKLMNPQRSTVXYWZbcdfghjklmnpqrstvxywz'
for... | [
"noreply@github.com"
] | PedroVitor1995.noreply@github.com |
873fd33b792017d4797bb0d1acbb046e82beacde | 26f8a8782a03693905a2d1eef69a5b9f37a07cce | /test/test_destiny_historical_stats_destiny_historical_stats_period_group.py | 54f3aa5d3731b9a1cb0a50764667212af0aef180 | [] | no_license | roscroft/openapi3-swagger | 60975db806095fe9eba6d9d800b96f2feee99a5b | d1c659c7f301dcfee97ab30ba9db0f2506f4e95d | refs/heads/master | 2021-06-27T13:20:53.767130 | 2017-08-31T17:09:40 | 2017-08-31T17:09:40 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,391 | py | # coding: utf-8
"""
Bungie.Net API
These endpoints constitute the functionality exposed by Bungie.net, both for more traditional website functionality and for connectivity to Bungie video games and their related functionality.
OpenAPI spec version: 2.0.0
Contact: support@bungie.com
Generated by: ... | [
"adherrling@gmail.com"
] | adherrling@gmail.com |
f5e3ef2dd23127bdafeb35e907d3692943c20b20 | 3c5ec7efc413bcbfd930ad2fe0de2ce873d98b87 | /wordcount/urls.py | 8dea4f12cba6059907a74f29721e92012f62291e | [] | no_license | pythonstudy0708/wordcount-project | 75c0be909e3e3bbd5b5cb582c125210e3e7bdd7e | c76e9290bc15fe8cdd9e042ce87d0928cc3734ee | refs/heads/master | 2020-03-29T01:28:57.262645 | 2018-09-19T04:14:47 | 2018-09-19T04:14:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 206 | py | from django.urls import path
from . import views
urlpatterns = [
path('', views.homepage, name='home'),
path('count/', views.count, name='count'),
path('about/', views.about, name='about'),
]
| [
"python.study.0708@gmail.com"
] | python.study.0708@gmail.com |
d864b293e38504f4a6999312151c7b67dac4710d | fc8f76fa05deca2cc504170370d69c458ed499fe | /listings/urls.py | fed6b2a0217bc5a4a1c8116aa0c05adf7b22e4fb | [] | no_license | intelligentCoding/DjangoProject1 | 3e02eb0946e328634261ee3f87d77c3bb6677326 | 989407ad5724c0297963708ad4b9f553f913d5f8 | refs/heads/master | 2021-02-09T00:48:38.641093 | 2020-03-01T20:42:01 | 2020-03-01T20:42:01 | 244,217,799 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 237 | py | from django.urls import path
from . import views
urlpatterns = [
# home page
path('', views.index, name='listings'),
path('<int:listing_id>', views.listing, name='listing'),
path('search', views.search, name='search')
] | [
"kaaf_kaaf@hotmail.com"
] | kaaf_kaaf@hotmail.com |
66e384d968761a60e6fb3cf12522ac49e6c0e794 | 10e67ea36c018d0caa0e169ee5a71464d7e2ad29 | /myprojectenv/Scripts/django-admin.py | 50d8f4553aeb7c61d472cbf415d8276c53ed6764 | [] | no_license | nikharj7/iBlog | ca7d68d11b90d6cb4bea70047a5eddab48cf5c14 | 637238851932d901b8f16f2160368efc8c8fbf2c | refs/heads/main | 2023-02-06T05:04:36.884114 | 2020-12-28T19:17:55 | 2020-12-28T19:17:55 | 320,803,612 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 168 | py | #!c:\users\nikha\desktop\blog\myprojectenv\scripts\python.exe
from django.core import management
if __name__ == "__main__":
management.execute_from_command_line()
| [
"nikharj7@gmail.com"
] | nikharj7@gmail.com |
28eb9cf5f13dc05100ba9264f00df18331a9e5ba | ca7aa979e7059467e158830b76673f5b77a0f5a3 | /Python_codes/p04030/s999899727.py | d1c7afb12be8ed4228e960b1a6e2e0f7fc222ea5 | [] | no_license | Aasthaengg/IBMdataset | 7abb6cbcc4fb03ef5ca68ac64ba460c4a64f8901 | f33f1c5c3b16d0ea8d1f5a7d479ad288bb3f48d8 | refs/heads/main | 2023-04-22T10:22:44.763102 | 2021-05-13T17:27:22 | 2021-05-13T17:27:22 | 367,112,348 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 164 | py | s=input()
fin=""
for c in s:
if c=='1':
fin+="1"
elif c=='0':
fin+="0"
else:
if len(fin)>0:
fin=fin[:-1]
print(fin)
| [
"66529651+Aastha2104@users.noreply.github.com"
] | 66529651+Aastha2104@users.noreply.github.com |
f86cca745638f0ae4f6c7c24b5a49c2942f72fda | 356c2be7861c53cb058e04e983bd04ebcb0e4ef7 | /Python-100-Days-Of-Code/Python Code Exercises/main 2.py | de5aa8a49030160bbd280d2fe23408d967747197 | [] | no_license | HyperMG/Python-100-Days | 62c12dd5e5f6aca508539f9b8bd7064026817fff | 409deb295b8094b0d7b1968574a17ac2987edfdb | refs/heads/main | 2023-08-08T04:46:52.308496 | 2021-09-18T12:11:12 | 2021-09-18T12:11:12 | 392,434,973 | 1 | 0 | null | null | null | null | UTF-8 | Python | false | false | 125 | py | name = 'jack'
print(name)
name = 'Mahi'
print(name)
name = input('What is your name?')
length = len(name)
print(length)
| [
"noreply@github.com"
] | HyperMG.noreply@github.com |
59d74395b97e83d72ba4ba294b668e324f777e81 | c24e122c5f39896074a11664f521bc0258068675 | /src/Utils/ProcessCommunicator.py | 1af5f2e8a533a4816edbf7d3bf6d4eb1c3d355cf | [] | no_license | sjanibekova/selector_explorer_windows_desktop | 51c61adfdb7ca94e3e3eedab49bff1e9bf950027 | 04c1d47b7af23ac4cba3442fb736a90b827998f0 | refs/heads/main | 2023-07-08T20:04:10.448805 | 2021-08-12T11:18:57 | 2021-08-12T11:18:57 | 393,403,079 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 7,899 | py | import json
import zlib
import sys
from . import JSONNormalize
############################################
####Межпроцессное взаимодействие
############################################
#ProcessParentReadWaitString
def ProcessParentReadWaitString():
#Выполнить чтение строки
#ctypes.windll.user32.MessageBoxW(0... | [
"sdzhanybekova@seikolabs.kz"
] | sdzhanybekova@seikolabs.kz |
a76cfb7955e09eef938a7627cc74429d43d652ef | 35ccd03ab2deca4802b1e5bc48408a21d06ba6a7 | /word_embed.py | ada2bf5c4bb22b8a41c937ca9119d95db5d17208 | [] | no_license | Allen-Wu/CS394N-Project | 9f328b055c8a950ffeb69c43545f6aa66cd14bec | 294c920f432a0c422c2ba9ccbfbd5d747e9c049f | refs/heads/main | 2023-01-30T07:10:29.346015 | 2020-12-12T23:42:20 | 2020-12-12T23:42:20 | 312,946,375 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 4,857 | py | import numpy as np
import csv
import transformers
import tensorflow as tf
from sklearn.feature_extraction.text import TfidfTransformer
from sklearn.feature_extraction.text import CountVectorizer
from sklearn.model_selection import train_test_split
from transformers import BertTokenizer
import model
words_list = []
wo... | [
"shiyuwu@umich.edu"
] | shiyuwu@umich.edu |
374eb12b1ec6126e692a94315444e4a7bcf0621b | 4eaab9327d25f851f9e9b2cf4e9687d5e16833f7 | /problems/search_suggestions_system/solution.py | 47a2ff3a14f8b27c1b8af6d2a0b73ebff62b06d6 | [] | no_license | kadhirash/leetcode | 42e372d5e77d7b3281e287189dcc1cd7ba820bc0 | 72aea7d43471e529ee757ff912b0267ca0ce015d | refs/heads/master | 2023-01-21T19:05:15.123012 | 2020-11-28T13:53:11 | 2020-11-28T13:53:11 | 250,115,603 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,011 | py | class Solution:
def suggestedProducts(self, products: List[str], searchWord: str) -> List[List[str]]:
products.sort() # time O(nlogn)
array_len = len(products)
ans = []
input_char = ""
for chr in searchWord:
tmp = []
input_char += chr
inse... | [
"kadhirash@gmail.com"
] | kadhirash@gmail.com |
a0cb28bad70fcd7e7477f099e1ce87cedae8050d | f33b30743110532ddae286ba1b34993e61669ab7 | /比赛/力扣杯2020春季全国编程大赛/1.py | dff7e2ce6da1326a6dd9870c6a3b18e8dfb798d9 | [] | no_license | c940606/leetcode | fe9dcee7a5daa4d52999d5f53253dd6dd33c348b | 631df2ce6892a6fbb3e435f57e90d85f8200d125 | refs/heads/master | 2021-07-10T14:01:26.164966 | 2020-08-16T10:46:16 | 2020-08-16T10:46:16 | 186,588,449 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 73 | py | from typing import List
import collections
a = Solution()
print()
| [
"762307667@qq.com"
] | 762307667@qq.com |
f740a1d550dbe236f23cb79de7deffe6e5213387 | a2195e150561bfe5c025c3883be144aa173f36a8 | /pyimagesearch/nn/perceptron.py | 324afe4622b9f39c505b036fb4e3a5e060eaf058 | [] | no_license | s0lver/ann-katas | 0aab3f2a1396dd10a696df60c49feebcc174b632 | cccb605f292cb6a487c86efaa2b1a01eafe76830 | refs/heads/master | 2020-03-25T01:07:19.041950 | 2018-08-13T02:42:09 | 2018-08-13T02:42:09 | 143,222,681 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | import numpy as np
class Perceptron:
"""
Class that models the Rosenblatt perceptron
"""
def __init__(self, input_dimensions, alpha=0.1):
"""
Creates a Perceptron instance
:param input_dimensions: The dimensions of the input data (number of features))
:param alpha: The... | [
"rperez.github@gmail.com"
] | rperez.github@gmail.com |
55f6a7da71eeddea31816626e8b0ee0545b8b523 | 65d165179b1a497fcb654e69ab3d4830fcec0644 | /cogs/owner.py | 316c82881895d1c65cffc94fdb89b0251be4ab57 | [] | no_license | Haz1118/Discord_self_Bot | 04addbb3169621b3b3c13c7d09a5455121e107ee | 5101e8b1d8857f1af4ea21f02c7ab289ef087706 | refs/heads/master | 2021-04-08T13:36:21.996359 | 2020-03-20T15:06:40 | 2020-03-20T15:06:40 | 248,780,619 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 519 | py | import discord
from discord.ext import commands
import asyncio
class Owner(commands.Cog):
def __init__(self, bot):
self.bot = bot
@commands.command()
@commands.has_permissions(manage_messages=True)
@commands.guild_only()
async def 청소(self, ctx, num: int =1):
await ctx... | [
"noreply@github.com"
] | Haz1118.noreply@github.com |
c66751d12e778467d78176d59d437fc89c8bee5b | afd9185976540033ccaa7c5a2607090ec0b3c48a | /heroHealthApp/migrations/0001_initial.py | e4077d93adb6bc257017d486bf32d877f4d7b5f6 | [] | no_license | lukijan98/Simple-Django-App | 4510824e17648046ff6bb5d604ec629e726a94d5 | 26947ca0cb9a03833a351306861be28d82c65b5e | refs/heads/master | 2023-08-21T21:20:35.320535 | 2021-10-17T10:31:15 | 2021-10-17T10:31:15 | 417,804,906 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,886 | py | # Generated by Django 3.2.8 on 2021-10-15 14:19
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Config',
fields=[
... | [
"jelicl@ymail.com"
] | jelicl@ymail.com |
b993b3230a55f5fd587e1ba760952deb2b9114a7 | 73744088a38ba3938563dc57677e3c4b6814e3d6 | /commands/pause.py | e8b1b7004998c5184033bb2c8377979a8ca2be90 | [
"BSD-3-Clause"
] | permissive | roman-kachanovsky/cmd.fm-python | 76ed6a4f4da20c2ef7e6d4d9c1bee207b416f151 | 3365a9b26bc272fe7a11b404b74cd1920bd72d31 | refs/heads/master | 2021-01-19T00:29:59.902473 | 2017-05-05T13:30:21 | 2017-05-05T13:30:21 | 87,176,281 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 679 | py | from __future__ import unicode_literals, absolute_import
from .base import Command
from utils.colorize import colorize, Colors
class Pause(Command):
name = 'pause'
pattern = 'pause'
example = ('pause',)
description = 'Pause playback.'
@staticmethod
def handle(self, *args):
if self.pl... | [
"roman.kachanovsky@gmail.com"
] | roman.kachanovsky@gmail.com |
007948663d69f619005fc8e3dd55d57ac8bf414b | a6858bdf10144e95076ad8da5bf817f18dcc4ed5 | /python/08p1.py | 3a70f52f898162e9f667056ca0dbfccab79ab3cd | [
"MIT"
] | permissive | dsumike/adventofcode | cbc0183c20965fd289b80972afd857220a60c9c5 | cd5e484fa162bada67625c3779580d77e87d1daa | refs/heads/master | 2021-01-10T12:18:40.032290 | 2015-12-23T22:51:49 | 2015-12-23T22:51:49 | 47,273,430 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 364 | py | #!/usr/bin/env python
literal = 0
inmemory = 0
with open("../input/08.txt") as fileobj:
for line in fileobj:
line = line.rstrip()
literal += len(line)
# remove the outer " "'s, and decode the rest
inmemory += len(line[1:-1].decode('string_escape'))
print "literal: %d" % literal
print "in mem : %d" % inmemor... | [
"dsumike@gmail.com"
] | dsumike@gmail.com |
480b22b1552952509a2e4c51d2fa8303ef6314d2 | 72579ed38872d8d752fe87dce87986635758563b | /tests/base_testcase.py | 4cecbcaffcd42700dde0fd99957a17377825c8d7 | [
"Apache-2.0"
] | permissive | devhub/cardisco | 8f58c8be430f6b1a8624dc18b937bc44d66edb57 | 05449e88958740b0e698373a8fc9acd3f1b94a28 | refs/heads/master | 2020-06-01T06:47:59.337460 | 2011-12-30T19:35:29 | 2011-12-30T19:35:29 | 3,076,214 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,494 | py | # -*- coding: utf-8 -*-
# Copyright 2010 Mark Lee
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or a... | [
"dlrust@gmail.com"
] | dlrust@gmail.com |
9186c018173a5b0a44c6503fb95bc790c2898d4e | f3c4509c4f2830f5429058e0f324a9876654c2a9 | /sequbot_data/errors.py | 3c51604c38597b892baeadbb59f4c3a3974f9a76 | [] | no_license | phasnox/sequbot | 2482b65b1e4dd855d6c780fe54002affc21b88b0 | 86865383246c463028e263bf3a1e5fb6ba0134da | refs/heads/master | 2022-11-27T11:59:31.382355 | 2020-04-08T19:05:18 | 2020-04-08T19:05:18 | 254,175,116 | 0 | 0 | null | 2022-11-04T19:10:09 | 2020-04-08T18:58:11 | Python | UTF-8 | Python | false | false | 50 | py | class SocialAccountAlreadyExists(Exception): pass
| [
"phasnox@gmail.com"
] | phasnox@gmail.com |
4ef86e3b784b706086dad83933e4de1171ce7c67 | 26cae5bfec8dd416890714e095171c86eba9b521 | /0x16-api_advanced/2-recurse.py | 7d3893c192d0f843cf6e20da8d42e340a2a476fc | [] | no_license | hugocortesmu/holberton-system_engineering-devops | 58f1359bff9b97d2546e3d80f4b809557018824b | 59557c9a2424ebb4619397e3f49d6520312fb973 | refs/heads/main | 2023-08-03T13:51:53.440376 | 2021-10-09T02:56:23 | 2021-10-09T02:56:23 | 295,881,673 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 1,153 | py | #!/usr/bin/python3
""" module for function to return top 10 hot posts of a given subreddit """
import requests
import sys
after = None
def recurse(subreddit, hot_list=[]):
""" Args:
subreddit: subreddit name
hot_list: list of hot titles in subreddit
after: last hot_item appended to hot... | [
"hugocortesmu@gmail.com"
] | hugocortesmu@gmail.com |
b11b73d0f6d0548f2c0f073c85bd9cb2efbb7d01 | fa43f2da570e69440ab61bd5794e32622b289177 | /apps/login_reg/migrations/0001_initial.py | 0477742a6a49c98dfd18d710299ba10e66607197 | [] | no_license | ardenzhan/travel | 14d86885289ec5eb03523233b1f2335e6ac9a3e7 | f2a7836066d4e9b472dd28c5138a711a0c0a509e | refs/heads/master | 2021-08-19T07:09:18.248365 | 2017-11-25T04:22:37 | 2017-11-25T04:22:37 | 111,597,728 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 894 | py | # -*- coding: utf-8 -*-
# Generated by Django 1.11.7 on 2017-11-21 17:08
from __future__ import unicode_literals
from django.db import migrations, models
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='User',... | [
"arden@protonmail.ch"
] | arden@protonmail.ch |
115b553734b82703e35ac36ab72a8e52d72bee3c | 45a9db818c980db472bac010af8e1bdb69a230e3 | /api_tests.py | 93a8010c8e96c003fa4faf45b9508ffd501397dd | [] | no_license | bira37/desafio-sanar | db7f933be0490bbae0197dd14970fc0d22d82994 | b94f1d72105516bc5f07768e2efc2792be6575c0 | refs/heads/master | 2023-05-25T03:17:58.288779 | 2019-08-25T02:25:59 | 2019-08-25T02:25:59 | 204,233,106 | 0 | 0 | null | 2023-05-22T22:29:36 | 2019-08-25T01:49:23 | Python | UTF-8 | Python | false | false | 15,197 | py | import os
import unittest
from flask import Flask
from app import db
from api.User import User
from app import flaskApp
class FlaskAPITest(unittest.TestCase):
def setUp(self):
self.app = flaskApp.test_client()
def tearDown(self):
# elimina todos os usuarios de teste da base de dados depois de cada tes... | [
"ubiratanneto37@hotmail.com"
] | ubiratanneto37@hotmail.com |
45334efb19f0bd14bb4fadb6ad06af11137d51fc | ea9d8a93f03291681c54e4e0af07a07200614b3b | /venv/bin/easy_install | 1884943234ec09ce04dd3afb7d3583ba101b968e | [] | no_license | arpitmohanty9/pawfect | 201310ca392fea5ead602c1a086bc42f7a4b6892 | adbc6072a737de3c6e17709d5bdc65738c7e1df9 | refs/heads/master | 2023-04-24T06:47:38.035053 | 2019-05-31T14:17:06 | 2019-05-31T14:17:06 | null | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 437 | #!/home/arpit/Documents/Git/pawfect/venv/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'setuptools==39.1.0','console_scripts','easy_install'
__requires__ = 'setuptools==39.1.0'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', ... | [
"arpitmohanty9@gmail.com"
] | arpitmohanty9@gmail.com | |
bb63b320769286448e7c3926ae41d07edfdb0f8f | dfd73d8b6fd6e952f4f627863b8ed8604c32039c | /train_evaluate_RNN/test_LSTM.py | a48ffcbb38fee61a71f3e920550d8c3c7ed23a56 | [] | no_license | pablo-martin/PFC_Behavior | 57d23995f0ff4cf1f2429cfc21b2065c2e17d03a | 4a47ce7c890c9b3c638098069c3d99ecef96fb2c | refs/heads/master | 2020-03-25T09:18:51.523123 | 2019-02-11T00:10:16 | 2019-02-11T00:10:16 | 143,659,099 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 2,493 | py |
import itertools
import numpy as np
import multiprocessing as mp
import pandas as pd
import pickle
from behavioral_performance.utils import fileNames
from keras.models import load_model
from RNNmodule.SequenceClass import Sequences
ROOT = '/home/pablo/python/'
datatype = 'binaryOmni'
model_dir = ROOT + 'Models/LSTM/P... | [
"elektrochose@gmail.com"
] | elektrochose@gmail.com |
55ecd3989086e450eef41364aee966a64c5e9c46 | 4ee9094152009d4bcc08fd47b9e46cdbd25eadf1 | /src/test/update.py | 73cd91c08112f28267c7e42aa7edcc525da409b3 | [
"LicenseRef-scancode-unknown-license-reference",
"BSD-2-Clause"
] | permissive | slaclab/central_node_engine | a2100f398e1595b8a06b493220040076d9ed3a64 | 272a48619395f663d88d95146f4a871b10a86889 | refs/heads/master | 2023-08-17T01:30:30.578524 | 2023-08-03T15:29:12 | 2023-08-03T15:29:12 | 85,611,819 | 0 | 2 | NOASSERTION | 2023-05-15T20:56:17 | 2017-03-20T18:27:07 | C++ | UTF-8 | Python | false | false | 5,758 | py | #!/usr/bin/env python
import socket
import sys
import os
import argparse
import time
#
# Input line:
#
# Input 0 ... Input 1
# bit bit ...
# 0 1 ...
# --- --- ...
# X X X X ...
# | | | |
# | | | + wasHigh
# | | +- wasLow
# | |
# | + wasHigh
# +- wasLow
#
def readFile(f, debug):
appData = bytearray()
appC... | [
"lpiccoli@slac.stanford.edu"
] | lpiccoli@slac.stanford.edu |
b05c7f2697b02781d7a365257e25e20a392ec234 | 816fcaa344334f4b582ff0936b2b225b13e9d1fe | /Other Files/test.py | c9d6be9d92eb37ef9a7d74e7b2c4ac43532aa60f | [] | no_license | sdaless/psychic-carnival | 118c6f084c6581e40d89aeda2bbfab7498e19309 | a3721f1047bd6f6911327bed84638854b10d3bfa | refs/heads/master | 2021-09-16T12:32:37.114251 | 2018-06-20T16:56:21 | 2018-06-20T16:56:21 | 113,626,094 | 0 | 0 | null | null | null | null | UTF-8 | Python | false | false | 178 | py | numBitcoins = float(input("How many DANK BITCOINS do you have: "))
numDollars = numBitcoins * 4450
print("That'd be", '{0:.2f}'.format(numDollars), " GREEN AMERICAN DOLLARS.") | [
"noreply@github.com"
] | sdaless.noreply@github.com |
d831169e024a98da203941639f6ffb0ea1e5e70c | 2c966de9274c3d432b66b876c57f6da174266a5b | /keras/utils/generic_utils.py | 32f5b96639ae1ec1f307f4184c2dd3a3cb98aa88 | [
"MIT"
] | permissive | ruizhang-ai/GCP | 72e34a038e2adab83b89556502d57c1e4e6ade8f | 7a0f30c6c3d732627fa269ce943c62a9005cc40f | refs/heads/main | 2023-08-06T22:41:10.661786 | 2021-09-27T16:03:04 | 2021-09-27T16:03:04 | 410,938,287 | 3 | 0 | null | null | null | null | UTF-8 | Python | false | false | 14,431 | py | """Python utilities required by Keras."""
from __future__ import absolute_import
import numpy as np
import time
import sys
import six
import marshal
import types as python_types
import inspect
_GLOBAL_CUSTOM_OBJECTS = {}
class CustomObjectScope(object):
"""Provides a scope that changes to `_GLOBAL_CUSTOM_OBJEC... | [
"ubuntu@bayudt1-new.localdomain"
] | ubuntu@bayudt1-new.localdomain |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.