hexsha string | size int64 | ext string | lang string | max_stars_repo_path string | max_stars_repo_name string | max_stars_repo_head_hexsha string | max_stars_repo_licenses list | max_stars_count int64 | max_stars_repo_stars_event_min_datetime string | max_stars_repo_stars_event_max_datetime string | max_issues_repo_path string | max_issues_repo_name string | max_issues_repo_head_hexsha string | max_issues_repo_licenses list | max_issues_count int64 | max_issues_repo_issues_event_min_datetime string | max_issues_repo_issues_event_max_datetime string | max_forks_repo_path string | max_forks_repo_name string | max_forks_repo_head_hexsha string | max_forks_repo_licenses list | max_forks_count int64 | max_forks_repo_forks_event_min_datetime string | max_forks_repo_forks_event_max_datetime string | content string | avg_line_length float64 | max_line_length int64 | alphanum_fraction float64 | qsc_code_num_words_quality_signal int64 | qsc_code_num_chars_quality_signal float64 | qsc_code_mean_word_length_quality_signal float64 | qsc_code_frac_words_unique_quality_signal float64 | qsc_code_frac_chars_top_2grams_quality_signal float64 | qsc_code_frac_chars_top_3grams_quality_signal float64 | qsc_code_frac_chars_top_4grams_quality_signal float64 | qsc_code_frac_chars_dupe_5grams_quality_signal float64 | qsc_code_frac_chars_dupe_6grams_quality_signal float64 | qsc_code_frac_chars_dupe_7grams_quality_signal float64 | qsc_code_frac_chars_dupe_8grams_quality_signal float64 | qsc_code_frac_chars_dupe_9grams_quality_signal float64 | qsc_code_frac_chars_dupe_10grams_quality_signal float64 | qsc_code_frac_chars_replacement_symbols_quality_signal float64 | qsc_code_frac_chars_digital_quality_signal float64 | qsc_code_frac_chars_whitespace_quality_signal float64 | qsc_code_size_file_byte_quality_signal float64 | qsc_code_num_lines_quality_signal float64 | qsc_code_num_chars_line_max_quality_signal float64 | qsc_code_num_chars_line_mean_quality_signal float64 | qsc_code_frac_chars_alphabet_quality_signal float64 | qsc_code_frac_chars_comments_quality_signal float64 | qsc_code_cate_xml_start_quality_signal float64 | qsc_code_frac_lines_dupe_lines_quality_signal float64 | qsc_code_cate_autogen_quality_signal float64 | qsc_code_frac_lines_long_string_quality_signal float64 | qsc_code_frac_chars_string_length_quality_signal float64 | qsc_code_frac_chars_long_word_length_quality_signal float64 | qsc_code_frac_lines_string_concat_quality_signal float64 | qsc_code_cate_encoded_data_quality_signal float64 | qsc_code_frac_chars_hex_words_quality_signal float64 | qsc_code_frac_lines_prompt_comments_quality_signal float64 | qsc_code_frac_lines_assert_quality_signal float64 | qsc_codepython_cate_ast_quality_signal float64 | qsc_codepython_frac_lines_func_ratio_quality_signal float64 | qsc_codepython_cate_var_zero_quality_signal bool | qsc_codepython_frac_lines_pass_quality_signal float64 | qsc_codepython_frac_lines_import_quality_signal float64 | qsc_codepython_frac_lines_simplefunc_quality_signal float64 | qsc_codepython_score_lines_no_logic_quality_signal float64 | qsc_codepython_frac_lines_print_quality_signal float64 | qsc_code_num_words int64 | qsc_code_num_chars int64 | qsc_code_mean_word_length int64 | qsc_code_frac_words_unique null | qsc_code_frac_chars_top_2grams int64 | qsc_code_frac_chars_top_3grams int64 | qsc_code_frac_chars_top_4grams int64 | qsc_code_frac_chars_dupe_5grams int64 | qsc_code_frac_chars_dupe_6grams int64 | qsc_code_frac_chars_dupe_7grams int64 | qsc_code_frac_chars_dupe_8grams int64 | qsc_code_frac_chars_dupe_9grams int64 | qsc_code_frac_chars_dupe_10grams int64 | qsc_code_frac_chars_replacement_symbols int64 | qsc_code_frac_chars_digital int64 | qsc_code_frac_chars_whitespace int64 | qsc_code_size_file_byte int64 | qsc_code_num_lines int64 | qsc_code_num_chars_line_max int64 | qsc_code_num_chars_line_mean int64 | qsc_code_frac_chars_alphabet int64 | qsc_code_frac_chars_comments int64 | qsc_code_cate_xml_start int64 | qsc_code_frac_lines_dupe_lines int64 | qsc_code_cate_autogen int64 | qsc_code_frac_lines_long_string int64 | qsc_code_frac_chars_string_length int64 | qsc_code_frac_chars_long_word_length int64 | qsc_code_frac_lines_string_concat null | qsc_code_cate_encoded_data int64 | qsc_code_frac_chars_hex_words int64 | qsc_code_frac_lines_prompt_comments int64 | qsc_code_frac_lines_assert int64 | qsc_codepython_cate_ast int64 | qsc_codepython_frac_lines_func_ratio int64 | qsc_codepython_cate_var_zero int64 | qsc_codepython_frac_lines_pass int64 | qsc_codepython_frac_lines_import int64 | qsc_codepython_frac_lines_simplefunc int64 | qsc_codepython_score_lines_no_logic int64 | qsc_codepython_frac_lines_print int64 | effective string | hits int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ffb567f0688a716f16f90345a882a5dc8d44737d | 4,025 | py | Python | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 1,199 | 2018-10-16T01:30:18.000Z | 2022-03-31T21:05:24.000Z | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 116 | 2018-10-18T03:31:46.000Z | 2022-03-24T13:40:50.000Z | language/xsp/data_preprocessing/language_utils.py | Xtuden-com/language | 70c0328968d5ffa1201c6fdecde45bbc4fec19fc | [
"Apache-2.0"
] | 303 | 2018-10-22T12:35:12.000Z | 2022-03-27T17:38:17.000Z | # coding=utf-8
# Copyright 2018 The Google AI Language Team Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by ... | 35.619469 | 77 | 0.704596 | 518 | 4,025 | 5.233591 | 0.30695 | 0.043158 | 0.036149 | 0.023608 | 0.151605 | 0.142752 | 0.045002 | 0 | 0 | 0 | 0 | 0.003791 | 0.213665 | 4,025 | 112 | 78 | 35.9375 | 0.852765 | 0.249938 | 0 | 0.028571 | 0 | 0 | 0.077078 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.042857 | 0.014286 | 0.157143 | 0.014286 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffb64699aee68caa91b512adb859b23ae28d1500 | 13,270 | py | Python | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | null | null | null | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | 155 | 2020-01-06T09:32:32.000Z | 2022-03-31T09:21:39.000Z | back/api/tests/test_pricing.py | maltaesousa/geoshop2 | 624c6d79b5a29b39a898e0d1332fb8de23bd96e4 | [
"BSD-3-Clause"
] | 3 | 2020-01-29T15:48:02.000Z | 2020-06-04T12:50:24.000Z | from itertools import islice
from django.core import mail
from django.contrib.auth import get_user_model
from django.contrib.gis.geos import Polygon, Point
from djmoney.money import Money
from rest_framework.test import APITestCase
from api.models import Contact, Pricing, Product, PricingGeometry, Order, OrderItem, Ord... | 39.029412 | 115 | 0.595554 | 1,470 | 13,270 | 5.213605 | 0.187755 | 0.065762 | 0.023747 | 0.04071 | 0.419494 | 0.355037 | 0.32333 | 0.283142 | 0.226905 | 0.205898 | 0 | 0.064155 | 0.299925 | 13,270 | 339 | 116 | 39.144543 | 0.760818 | 0.023361 | 0 | 0.35082 | 0 | 0 | 0.080189 | 0.001701 | 0 | 0 | 0 | 0 | 0.095082 | 1 | 0.045902 | false | 0.003279 | 0.022951 | 0 | 0.072131 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
ffb9d19110d417666cdbb685244d2f511866f9ea | 2,442 | py | Python | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | app/searchtweet/searchtweet.py | winsb/SearchTweet | fe5e2760fda8fd563210d71293aef16d2cc90d7e | [
"MIT"
] | null | null | null | # searchtweet.py
import json
from requests_oauthlib import OAuth1Session
from . import tweetdata
# const
TWITTER_API_URL_PREFIX = "https://api.twitter.com/1.1/"
# SearchTweet class
class SearchTweet:
def __init__(self, consumer_key, consumer_secret, access_token, access_token_secret):
self._twitter_oa... | 34.394366 | 109 | 0.601556 | 267 | 2,442 | 5.280899 | 0.254682 | 0.059574 | 0.02766 | 0.040426 | 0.625532 | 0.588652 | 0.588652 | 0.49078 | 0.49078 | 0.415603 | 0 | 0.006433 | 0.299754 | 2,442 | 70 | 110 | 34.885714 | 0.818129 | 0.037674 | 0 | 0.488372 | 0 | 0 | 0.128743 | 0.023097 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.069767 | 0 | 0.325581 | 0.093023 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4401734f9b9049dfaf10b947e8ca78dc704dd051 | 1,329 | py | Python | core/realm_cmd.py | pg83/mix | 1aa964214a239bb80b3a2fa408551929b6b77acc | [
"MIT"
] | 12 | 2021-12-04T09:38:50.000Z | 2022-03-22T16:27:30.000Z | core/realm_cmd.py | apatrushev/mix | 754fb2f7f308ad8285953aab9c4eba218968c0d4 | [
"MIT"
] | 1 | 2022-02-15T23:16:32.000Z | 2022-02-15T23:16:32.000Z | core/realm_cmd.py | apatrushev/mix | 754fb2f7f308ad8285953aab9c4eba218968c0d4 | [
"MIT"
] | 1 | 2022-02-08T18:57:50.000Z | 2022-02-08T18:57:50.000Z | import core.utils as cu
import core.manager as cm
import core.cmd_line as cc
def parse_args(ctx):
class Args:
def __init__(self):
args = ctx['args']
self.realm = args[0]
ctx['args'] = args[1:]
self.config, self.pkgs = cc.parse_pkgs(ctx)
return Args()
... | 22.15 | 80 | 0.598194 | 195 | 1,329 | 3.917949 | 0.251282 | 0.082461 | 0.07199 | 0.066754 | 0.324607 | 0.324607 | 0.225131 | 0.151832 | 0.151832 | 0.151832 | 0 | 0.003058 | 0.261851 | 1,329 | 59 | 81 | 22.525424 | 0.775739 | 0 | 0 | 0.2 | 0 | 0 | 0.045899 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.075 | 0 | 0.325 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4401e3beac1ac62391add8303cda7c0a7de04f42 | 476 | py | Python | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 6 | 2019-09-16T01:50:44.000Z | 2020-09-17T08:52:25.000Z | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | null | null | null | hash_table/0500_keyboard_row/0500_keyboard_row.py | zdyxry/LeetCode | 33371285d0f3302158230f46e8b1b63b9f4639c4 | [
"Xnet",
"X11"
] | 4 | 2020-02-07T12:43:16.000Z | 2021-04-11T06:38:55.000Z | from typing import List
class Solution:
def findWords(self, words: List[str]) -> List[str]:
set1 = set('qwertyuiop')
set2 = set('asdfghjkl')
set3 = set('zxcvbnm')
res = []
for i in words:
x = i.lower()
setx = set(x)
if setx<=set1 or setx<=... | 25.052632 | 55 | 0.52521 | 59 | 476 | 4.237288 | 0.576271 | 0.056 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01875 | 0.327731 | 476 | 19 | 56 | 25.052632 | 0.7625 | 0 | 0 | 0 | 0 | 0 | 0.09434 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.0625 | false | 0 | 0.0625 | 0 | 0.25 | 0.0625 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
440897e459f198c3b14d3d46c61083b908043a45 | 547 | py | Python | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 106 | 2018-03-05T16:24:47.000Z | 2022-03-19T19:12:25.000Z | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 1,494 | 2018-02-27T17:02:21.000Z | 2022-03-24T15:10:30.000Z | common/data_refinery_common/constants.py | erflynn/refinebio | 4ead4082a6b98f7fc8cffdc62c4394338a577f3d | [
"BSD-3-Clause"
] | 15 | 2019-02-03T01:34:59.000Z | 2022-03-29T01:59:13.000Z | from data_refinery_common.utils import get_env_variable
LOCAL_ROOT_DIR = get_env_variable("LOCAL_ROOT_DIR", "/home/user/data_store")
# We store what salmon ouptuts as its version, therefore for
# comparisions or defaults we shouldn't just store the version string,
# we need something with the pattern: 'salmon X.X.X'
C... | 49.727273 | 81 | 0.789762 | 89 | 547 | 4.595506 | 0.606742 | 0.05868 | 0.136919 | 0.09291 | 0.127139 | 0.127139 | 0 | 0 | 0 | 0 | 0 | 0.023013 | 0.126143 | 547 | 10 | 82 | 54.7 | 0.832636 | 0.444241 | 0 | 0 | 0 | 0 | 0.255034 | 0.07047 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.2 | 0 | 0.2 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4409126fcb48835e2b94769b277223312da2de0b | 4,680 | py | Python | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | db.py | seasidefm/botsuro-twitch | de87be41c0ea3b57816eda89cc3fea1169778343 | [
"Apache-2.0"
] | null | null | null | import datetime
import os
import string
import time
from bson.json_util import dumps
from json import loads
from pymongo import MongoClient
from utils import SongRequest, UserPayload
TEMP_MOVIE_DETAILS = """
Title: Maison Ikkoku |
Synopsis: Maison Ikkoku is a bitter-sweet romantic comedy involving a group of
madcap ... | 34.666667 | 100 | 0.577564 | 531 | 4,680 | 4.862524 | 0.284369 | 0.055383 | 0.017428 | 0.036793 | 0.332301 | 0.314485 | 0.269558 | 0.248257 | 0.215724 | 0.190163 | 0 | 0.002495 | 0.314957 | 4,680 | 134 | 101 | 34.925373 | 0.80287 | 0.019872 | 0 | 0.272727 | 0 | 0 | 0.193788 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009091 | false | 0 | 0.072727 | 0 | 0.236364 | 0.036364 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
440a2c6ef802e9a82756a1ade4c76fb4a056e3ee | 20,200 | py | Python | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | hw2/train_pg_v2.py | HuanjunWang/rl_homework | 4c387fa7016e980fe1f72824e6ed5b980bf8e717 | [
"MIT"
] | null | null | null | import numpy as np
import tensorflow as tf
import gym
import logz
import scipy.signal
import os
import time
from multiprocessing import Process
import shutil
class MyArgument(object):
def __init__(self,
exp_name='vpg',
env_name='CartPole-v1',
n_iter=100,
... | 44.789357 | 120 | 0.536188 | 2,227 | 20,200 | 4.61383 | 0.131118 | 0.018686 | 0.012847 | 0.016058 | 0.407786 | 0.373625 | 0.31708 | 0.291873 | 0.291873 | 0.273674 | 0 | 0.010835 | 0.369455 | 20,200 | 450 | 121 | 44.888889 | 0.79587 | 0.045347 | 0 | 0.259259 | 0 | 0 | 0.032094 | 0 | 0 | 0 | 0 | 0 | 0.017094 | 1 | 0.031339 | false | 0 | 0.025641 | 0 | 0.079772 | 0.045584 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
440afa545bf83412add26954940014f4b8250c80 | 664 | py | Python | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | null | null | null | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | null | null | null | lab1_python_intro/ex5_SOLUTION_conditional_number.py | ggruszczynski/CFDPython | 1662ede061fb899d6ed3f89c17877e65f65e521c | [
"CC-BY-3.0"
] | 1 | 2021-02-05T08:00:02.000Z | 2021-02-05T08:00:02.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Nov 4 19:05:22 2020
@author: ggruszczynski
"""
import numpy as np
from numpy import linalg as LA
def dot_product(u,v):
return u @ v
def calc_condition_number_naive(f, u, v, delta):
cond_number = LA.norm(f(u+delta, v) - f(u,v)) / LA.norm(f(u,... | 20.75 | 67 | 0.614458 | 122 | 664 | 3.254098 | 0.47541 | 0.025189 | 0.02267 | 0.120907 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.077505 | 0.203313 | 664 | 32 | 68 | 20.75 | 0.672968 | 0.262048 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0.0625 | 0.375 | 0.125 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4410ba355da46d3266d0b93f07bb597a2d073c21 | 1,000 | py | Python | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null | paramak/parametric_shapes/rotate_spline_shape.py | billingsley-john/paramak | 127d064f7bc0fd26305b4d83776d66b0e12aeeb0 | [
"MIT"
] | null | null | null |
from typing import Optional, Tuple
from paramak import RotateMixedShape
class RotateSplineShape(RotateMixedShape):
"""Rotates a 3d CadQuery solid from points connected with splines.
Args:
rotation_angle: The rotation_angle to use when revolving the solid.
Defaults to 360.0.
stp_... | 29.411765 | 93 | 0.633 | 105 | 1,000 | 5.819048 | 0.438095 | 0.106383 | 0.05892 | 0.114566 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.027624 | 0.276 | 1,000 | 33 | 94 | 30.30303 | 0.816298 | 0.279 | 0 | 0.105263 | 0 | 0 | 0.069666 | 0.060958 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.105263 | 0 | 0.210526 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4414b94db096b9792beb0261cd50cbcc79200424 | 3,352 | py | Python | applications/fatigue_w_proxy/container4/app/predict.py | Dumpkin1996/clipper | 1a08bbdde846c3cfe76236c68548a848f71605e0 | [
"Apache-2.0"
] | 2 | 2019-04-24T13:46:28.000Z | 2019-05-28T06:59:26.000Z | applications/fatigue_w_proxy/container4/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | null | null | null | applications/fatigue_w_proxy/container4/app/predict.py | SimonZsx/clipper | 457088be2ebe68c68b94d90389d1308e35b4c844 | [
"Apache-2.0"
] | 4 | 2019-04-03T11:03:57.000Z | 2019-06-26T08:22:38.000Z | import cv2
import numpy as np
import os
import json
import time
from datetime import datetime
def image_string(image):
image_encode=cv2.imencode('.jpg',image)[1]
imagelist=image_encode.tolist()
image_string=json.dumps(imagelist)
return image_string
def string_image(imagestring):
image_list=json.loa... | 28.649573 | 135 | 0.579356 | 455 | 3,352 | 4.221978 | 0.364835 | 0.01822 | 0.025508 | 0.03748 | 0.17595 | 0.158771 | 0.126497 | 0.126497 | 0.126497 | 0.126497 | 0 | 0.057848 | 0.26253 | 3,352 | 116 | 136 | 28.896552 | 0.719256 | 0.083831 | 0 | 0.168675 | 0 | 0 | 0.116841 | 0.025131 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036145 | false | 0 | 0.072289 | 0 | 0.180723 | 0.120482 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442337ece147504cb1df39981a0b29a4670fe631 | 530 | py | Python | PDF/pymupdf_get_bookmarks.py | MartinThoma/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 209 | 2015-01-02T03:47:12.000Z | 2022-03-06T16:54:47.000Z | PDF/pymupdf_get_bookmarks.py | Kerwin-Xie/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 3 | 2015-12-06T14:40:34.000Z | 2021-03-22T17:40:24.000Z | PDF/pymupdf_get_bookmarks.py | Kerwin-Xie/algorithms | 4347a9b7bf54ef378d16d26ef9e357ddc710664b | [
"MIT"
] | 114 | 2015-01-31T08:37:10.000Z | 2022-02-23T04:42:28.000Z | # Type annotations are pretty awesome:
# https://medium.com/analytics-vidhya/type-annotations-in-python-3-8-3b401384403d
from typing import Dict
import fitz # pip install pymupdf
def get_bookmarks(filepath: str) -> Dict[int, str]:
# WARNING! One page can have multiple bookmarks!
bookmarks = {}
with fitz... | 27.894737 | 81 | 0.669811 | 72 | 530 | 4.986111 | 0.694444 | 0.083565 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.02864 | 0.209434 | 530 | 18 | 82 | 29.444444 | 0.813842 | 0.396226 | 0 | 0 | 0 | 0 | 0.019108 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.1 | false | 0 | 0.2 | 0 | 0.4 | 0.1 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44252fea2299758e673934a1ecda9362f2441cf3 | 2,058 | py | Python | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | muddery/commands/player.py | MarsZone/DreamLand | 87455f421c1ba09cb6efd5fc0882fbc2a29ea1a5 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | """
This is adapt from evennia/evennia/commands/default/player.py.
The licence of Evennia can be found in evennia/LICENSE.txt.
"""
import time
from django.conf import settings
from evennia.server.sessionhandler import SESSIONS
from evennia.commands.command import Command
from evennia.utils import utils, create, search... | 32.15625 | 90 | 0.64723 | 263 | 2,058 | 4.961977 | 0.441065 | 0.019157 | 0.045977 | 0.048276 | 0.10728 | 0.042912 | 0.042912 | 0 | 0 | 0 | 0 | 0.005239 | 0.258017 | 2,058 | 63 | 91 | 32.666667 | 0.849378 | 0.301263 | 0 | 0.1875 | 0 | 0 | 0.137241 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.03125 | false | 0 | 0.15625 | 0 | 0.28125 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442618fc9c28b2ce42e414759738c3f72d214758 | 20,002 | py | Python | python_utilities/parallel.py | sdaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 2 | 2020-04-13T20:17:36.000Z | 2020-05-12T01:13:12.000Z | python_utilities/parallel.py | sethaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 5 | 2015-10-20T22:57:51.000Z | 2017-09-07T01:10:23.000Z | python_utilities/parallel.py | sethaxen/python_utilities | 7b9d6cc21bfc31be83629d2ac02b27e886ebc2bb | [
"MIT"
] | 3 | 2015-08-17T17:55:41.000Z | 2018-09-19T13:56:42.000Z | """Tools to aid in parallelizing a function call.
Default method is MPI, if available. Fallback is concurrent.futures. If all
else fails, final fallback is serial.
Author: Seth Axen
Email: seth.axen@gmail.com
"""
import os
import sys
import logging
from copy import copy
import multiprocessing
try:
from itertools ... | 38.026616 | 114 | 0.545945 | 2,241 | 20,002 | 4.706827 | 0.149487 | 0.019245 | 0.011471 | 0.009386 | 0.437998 | 0.381589 | 0.343098 | 0.308684 | 0.308684 | 0.308684 | 0 | 0.002944 | 0.371563 | 20,002 | 525 | 115 | 38.099048 | 0.836197 | 0.246425 | 0 | 0.358491 | 0 | 0 | 0.062592 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.050314 | false | 0.009434 | 0.040881 | 0.022013 | 0.141509 | 0.003145 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44274d06c13806c20cb7ccbcad1c6195b3fdd749 | 405 | py | Python | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | 1 | 2021-11-16T13:37:41.000Z | 2021-11-16T13:37:41.000Z | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | null | null | null | Algorithm/coding_interviews/Python/sword-for-offer/43_num_of_one.py | ck76/awesome-cs | 48cba4081dc5290f07e305850b9a3a7e8a590b64 | [
"Apache-2.0"
] | null | null | null | #! /usr/bin/python3
# -*- coding: utf-8 -*-
# @Time : 2019/3/10 5:21 PM
# @Author : xiaoliji
# @Email : yutian9527@gmail.com
"""
1~n整数中1出现的次数。
>>> countDigitOne(12)
5
"""
def countDigitOne(n: int) -> int:
counter, i = 0, 1
while i <= n:
divider = i * 10
counter += (n // d... | 19.285714 | 75 | 0.501235 | 55 | 405 | 3.690909 | 0.618182 | 0.118227 | 0.133005 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.104693 | 0.316049 | 405 | 20 | 76 | 20.25 | 0.628159 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.142857 | false | 0 | 0 | 0 | 0.285714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4428f0e65f1454c8ca62ff07f9d8c0d8f778e7d4 | 22,957 | py | Python | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 14 | 2020-12-07T16:36:30.000Z | 2022-03-05T12:31:30.000Z | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 3 | 2021-04-06T01:22:32.000Z | 2022-03-12T01:39:12.000Z | CoMPILE_github/test_ranking.py | TmacMai/CoMPILE_Inductive_Knowledge_Graph | 072885012893a50b47cdee17f2e47f671e33bc00 | [
"MIT"
] | 4 | 2021-03-10T05:10:05.000Z | 2022-03-05T12:32:45.000Z | import os
import random
import argparse
import logging
import json
import time
import multiprocessing as mp
import scipy.sparse as ssp
from tqdm import tqdm
import networkx as nx
import torch
import numpy as np
import dgl
#os.environ["CUDA_VISIBLE_DEVICES"]="1"
def process_files(files, saved_relation2id, add_traspose... | 42.200368 | 200 | 0.660191 | 3,332 | 22,957 | 4.289316 | 0.128451 | 0.027428 | 0.018612 | 0.017842 | 0.417017 | 0.367408 | 0.328995 | 0.285195 | 0.252379 | 0.241534 | 0 | 0.019681 | 0.205428 | 22,957 | 543 | 201 | 42.278085 | 0.763829 | 0.099229 | 0 | 0.166197 | 0 | 0.002817 | 0.070911 | 0.014688 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061972 | false | 0.002817 | 0.03662 | 0 | 0.143662 | 0.002817 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4428fa67a48dd401185f9736e5599509b0b9fc95 | 652 | py | Python | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | 1 | 2019-12-20T15:08:18.000Z | 2019-12-20T15:08:18.000Z | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | null | null | null | scheduler/scheduler.py | ericlearning/General-I2I | ba7c5d6a582bdf2e7b53c0e20c31e9097b1883a9 | [
"MIT"
] | null | null | null | import math
class LinearDecay():
def __init__(self, opt, optimizer, iter_num):
self.optimizer = optimizer
self.init = opt.lr
self.tot = iter_num * opt.epoch
self.st = iter_num * opt.decay_start_epoch
if(self.st < 0): self.st = self.tot
self.cnt = 0
self.state_dict = self.optimizer.state_dict()
def ste... | 25.076923 | 81 | 0.662577 | 107 | 652 | 3.88785 | 0.308411 | 0.086538 | 0.072115 | 0.0625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011321 | 0.187117 | 652 | 26 | 82 | 25.076923 | 0.773585 | 0 | 0 | 0 | 0 | 0 | 0.006126 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.181818 | false | 0 | 0.045455 | 0.045455 | 0.318182 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4429767250a51905f861cf7049625276399f4004 | 23,698 | py | Python | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | pm.py | oscarmonllor99/dark_matter_study | b301cc2a4aa33d8b044b99da6310483814df55f1 | [
"MIT"
] | null | null | null | import numpy as np
from numba import jit
import random
import time
import argparse
##############################################
######### PARÁMETROS FÍSICOS ################
##############################################
Q = 1.3
NUM_PARTICLES = 100000 #Número de partículas
NUM_PARTICLES_BULGE = int(0.14 ... | 34.85 | 113 | 0.433243 | 3,369 | 23,698 | 2.864055 | 0.099436 | 0.03731 | 0.019277 | 0.035755 | 0.542129 | 0.510623 | 0.465126 | 0.433413 | 0.402632 | 0.370608 | 0 | 0.041435 | 0.347202 | 23,698 | 679 | 114 | 34.901325 | 0.582288 | 0.06279 | 0 | 0.364407 | 0 | 0 | 0.018333 | 0 | 0 | 0 | 0 | 0.001473 | 0 | 1 | 0.063559 | false | 0.002119 | 0.010593 | 0.006356 | 0.148305 | 0.008475 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4429e980a041daa0f6ae5470ca29efeec75f048a | 1,526 | py | Python | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | 08_apples_and_bananas/apples.py | trev-f/tiny_python_projects | 20b05f1def834bc9deda58ebdb5cb1d7fe647e45 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Author : treevooor <treevooor@localhost>
Date : 2021-11-09
Purpose: Apples and bananas
"""
import argparse
import os
# --------------------------------------------------
def get_args():
"""Get command-line arguments"""
parser = argparse.ArgumentParser(
description='Apple... | 24.222222 | 70 | 0.467235 | 144 | 1,526 | 4.819444 | 0.541667 | 0.050432 | 0.056196 | 0.057637 | 0.100865 | 0.100865 | 0.100865 | 0 | 0 | 0 | 0 | 0.008654 | 0.31848 | 1,526 | 62 | 71 | 24.612903 | 0.658654 | 0.205111 | 0 | 0.057143 | 0 | 0 | 0.083893 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057143 | false | 0 | 0.057143 | 0 | 0.142857 | 0.028571 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442b111ca91187ce9c255240e5dfebe65f40b89f | 348 | py | Python | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | null | null | null | configs/siam_hrnet/siam_hr18_512x512_40k_s2looking_backsplit.py | slchenchn/rsaicp_CD | 08723b6da125b4ebe7f4777be8ef14a1b5746523 | [
"Apache-2.0"
] | 1 | 2022-03-21T07:37:24.000Z | 2022-03-21T07:37:24.000Z | '''
Author: Shuailin Chen
Created Date: 2021-07-06
Last Modified: 2021-08-18
content: siamese HR18 with background splitting
'''
_base_ = [
'./siam_hr18_512x512_40k_s2looking.py'
]
model = dict(
decode_head=dict(
post_process=dict(
type='SetConstValue',
position=0,
... | 18.315789 | 48 | 0.603448 | 41 | 348 | 4.926829 | 0.878049 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.128 | 0.281609 | 348 | 19 | 49 | 18.315789 | 0.68 | 0.367816 | 0 | 0 | 0 | 0 | 0.222727 | 0.163636 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442c17486ddf7abefd979fe9ad65f0fda830f7ae | 1,774 | py | Python | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | examples/streak/plot.py | bjornaa/ladim2 | f6c1be9028ca54370ce33dde25b005d5b0bb4677 | [
"MIT"
] | null | null | null | """Plot a snapshot of the particle distribution"""
# --------------------------------
# Bjørn Ådlandsvik <bjorn@ho.no>
# Institute of Marine Research
# November 2020
# --------------------------------
import numpy as np
import matplotlib.pyplot as plt
from netCDF4 import Dataset
from postladim import ParticleFile
#... | 22.74359 | 84 | 0.620068 | 275 | 1,774 | 3.952727 | 0.469091 | 0.025759 | 0.022079 | 0.029439 | 0.100276 | 0.060718 | 0 | 0 | 0 | 0 | 0 | 0.058116 | 0.156144 | 1,774 | 77 | 85 | 23.038961 | 0.668003 | 0.272266 | 0 | 0.051282 | 0 | 0 | 0.070411 | 0.019778 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.102564 | 0 | 0.102564 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442dae1169b8f000e9fec9855121b98524da0cb8 | 1,945 | py | Python | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | tests/test-data/mock.py | mr-c/CTDConverter | 84c58674405d24cc21e765367fa089fa31a5df0f | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# little mock app to handle ouput file parameters
# i.e. to create them
import os
import shutil
import sys
from CTDopts.CTDopts import CTDModel, _InFile, _OutFile
# from argparse import ArgumentParser
# parser = ArgumentParser(prog="mock.py", description="MOCK", add_help=True)
# parser.add_arg... | 35.363636 | 105 | 0.560925 | 260 | 1,945 | 4.1 | 0.392308 | 0.065666 | 0.030019 | 0.025328 | 0.12758 | 0.037523 | 0.037523 | 0 | 0 | 0 | 0 | 0.009279 | 0.279692 | 1,945 | 54 | 106 | 36.018519 | 0.751606 | 0.315167 | 0 | 0.111111 | 0 | 0 | 0.078728 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.111111 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
442e571ab100fe4f8465f2178b6129b91ab30a27 | 1,323 | py | Python | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | cubes_lite/sql/request.py | notexistence/cubes_lite | 2cbc54509e6dc8a529c9f33fd39d0f659d6a5647 | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from __future__ import unicode_literals
import collections
from cubes_lite.query import Request, Response
__all__ = (
'ListSQLRequest',
'ListSQLResponse',
'OneRowSQLRequest',
'OneRowSQLResponse',
)
class ListSQLResponse(Response):
def __init__(self, *args, **kwargs):
... | 21.33871 | 62 | 0.59486 | 122 | 1,323 | 6.131148 | 0.45082 | 0.048128 | 0.029412 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.002193 | 0.310658 | 1,323 | 61 | 63 | 21.688525 | 0.817982 | 0.015873 | 0 | 0.047619 | 0 | 0 | 0.047692 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.095238 | false | 0 | 0.071429 | 0.02381 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443047ead0ffbfc30ef88ed167c3c08722403b2c | 1,166 | py | Python | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | 1 | 2021-09-12T06:48:50.000Z | 2021-09-12T06:48:50.000Z | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | null | null | null | render.py | 22preich/BlenderNetworkRender | 53b4f036c3adea31d947d64aa1ed0983a29c8e07 | [
"MIT"
] | null | null | null | import bpy
import sys
dir = "C:/Users/foggy/Appdata/roaming/python37/site-packages"
sys.path.append(dir)
from flask import Flask, request, render_template
from werkzeug.utils import secure_filename
import eventlet
from eventlet import wsgi
app = Flask(__name__)
@app.route('/')
def hello_world():
return render_te... | 27.761905 | 126 | 0.704117 | 160 | 1,166 | 5.0125 | 0.48125 | 0.044888 | 0.044888 | 0.044888 | 0.072319 | 0.072319 | 0 | 0 | 0 | 0 | 0 | 0.015748 | 0.128645 | 1,166 | 41 | 127 | 28.439024 | 0.773622 | 0.038593 | 0 | 0 | 0 | 0 | 0.173524 | 0.101073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.137931 | false | 0 | 0.206897 | 0.068966 | 0.448276 | 0.034483 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4433556a7cfa388b2c20801fb5e687c8efe75005 | 3,889 | py | Python | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | lab6/main_romain_claret_and_sylvain_robert-nicoud_lab6.py | RomainClaret/msc.ml.labs | 4e6b8e1c1ab841ab8ebbaee13f6ae43e9a1c44a5 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# 26.04.21
# Assignment lab 06
# Master Class: Machine Learning (5MI2018)
# Faculty of Economic Science
# University of Neuchatel (Switzerland)
# Lab 6, see ML21_Exercise_6.pdf for more information
# https://github.com/RomainClaret/msc.ml.labs
# Authors:
# - Romain Claret @RomainClaret
# - Sy... | 31.877049 | 109 | 0.735665 | 572 | 3,889 | 4.809441 | 0.428322 | 0.047983 | 0.033079 | 0.030534 | 0.154853 | 0.130862 | 0.130862 | 0.101054 | 0.038531 | 0 | 0 | 0.064281 | 0.151967 | 3,889 | 122 | 110 | 31.877049 | 0.769861 | 0.371047 | 0 | 0.029851 | 0 | 0 | 0.062035 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.014925 | false | 0 | 0.134328 | 0 | 0.164179 | 0.014925 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44348a202532b675204c5d619a14b8c76d684034 | 3,061 | py | Python | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | 13_week/pr12_1 .py | WoojaeJang/AppliedOptimization-Gurobi | 067e4e5a0391de74f673f935b0ba765b037a4149 | [
"AFL-1.1"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed May 26 10:28:54 2021
@author: woojae-macbook13
"""
from pandas import*
import pandas as pd
import numpy as np
# path = ".\\"
filename = "pr1.xlsx"
# dataset = pd.read_excel(path+filename)
dataset = pd.read_excel(filename)
order = "고객"
itemcode = "it... | 20.965753 | 100 | 0.601764 | 435 | 3,061 | 4.213793 | 0.383908 | 0.010911 | 0.016367 | 0.022913 | 0.101473 | 0.06874 | 0.040371 | 0.040371 | 0 | 0 | 0 | 0.028468 | 0.277034 | 3,061 | 145 | 101 | 21.110345 | 0.799819 | 0.217576 | 0 | 0.107692 | 0 | 0 | 0.034864 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.015385 | false | 0 | 0.046154 | 0 | 0.076923 | 0.046154 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443586b918e80fa19a7a9248966f3748b23543dc | 468 | py | Python | loso/util.py | fangpenlin/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | 28 | 2017-03-21T09:04:41.000Z | 2021-06-13T06:19:51.000Z | loso/util.py | JoyCTsai/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | null | null | null | loso/util.py | JoyCTsai/loso | 8677ed754c793887dde10feb9a13dce25ea09f58 | [
"BSD-3-Clause"
] | 8 | 2017-07-23T06:04:49.000Z | 2021-12-25T02:27:45.000Z | def ngram(n, terms):
"""An iterator for iterating n-gram terms from a text, for example:
>>> list(ngram(2, ['Today', 'is', 'my', 'day']))
[['Today', 'is'], ['is', 'my'], ['my', 'day']]
>>> list(ngram(3, ['Today', 'is', 'my', 'day']))
[['Today', 'is', 'my'], ['is', 'my', 'day']]
... | 29.25 | 71 | 0.472222 | 62 | 468 | 3.435484 | 0.516129 | 0.093897 | 0.126761 | 0.112676 | 0.178404 | 0.178404 | 0 | 0 | 0 | 0 | 0 | 0.008746 | 0.267094 | 468 | 16 | 72 | 29.25 | 0.612245 | 0.549145 | 0 | 0 | 0 | 0 | 0.046784 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443924889fb2bc02902f4276bdfdab0574a5167f | 493 | py | Python | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | lbry/lbry/wallet/__init__.py | JupyterJones/lbry-sdk | be89436fa869e1b4b9f05c3faa5c126ebcfe6e57 | [
"MIT"
] | null | null | null | __node_daemon__ = 'lbrycrdd'
__node_cli__ = 'lbrycrd-cli'
__node_bin__ = ''
__node_url__ = (
'https://github.com/lbryio/lbrycrd/releases/download/v0.17.2.1/lbrycrd-linux.zip'
# 'https://github.com/lbryio/lbrycrd/releases/download/v0.17.3.1/lbrycrd-linux-1731.zip'
)
__spvserver__ = 'lbry.wallet.server.coin.LBCRe... | 37.923077 | 92 | 0.78499 | 66 | 493 | 5.5 | 0.545455 | 0.110193 | 0.115702 | 0.110193 | 0.258953 | 0.258953 | 0.258953 | 0.258953 | 0.258953 | 0 | 0 | 0.031042 | 0.085193 | 493 | 12 | 93 | 41.083333 | 0.773836 | 0.174442 | 0 | 0 | 0 | 0.1 | 0.325926 | 0.083951 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.3 | 0 | 0.3 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443a0fbbf12f2c065e3a541ea080bc7fd07fd5a3 | 6,797 | py | Python | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | 1 | 2015-08-30T02:36:13.000Z | 2015-08-30T02:36:13.000Z | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | logdweb/views.py | hiidef/logdweb | c80d47f4c5759cadeb3088b9f7fa093c30e11696 | [
"MIT"
] | null | null | null | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""logdweb admin views."""
try:
import simplejson as json
except ImportError:
import json
import time
from django.core.urlresolvers import reverse
from django.http import HttpResponse, Http404, HttpResponseRedirect
from django_jinja2 import render_to_response, ... | 35.586387 | 88 | 0.692364 | 866 | 6,797 | 5.286374 | 0.191686 | 0.038445 | 0.061162 | 0.057667 | 0.373307 | 0.298384 | 0.253823 | 0.225208 | 0.205111 | 0.161424 | 0 | 0.003222 | 0.178167 | 6,797 | 190 | 89 | 35.773684 | 0.816327 | 0.034427 | 0 | 0.299363 | 0 | 0 | 0.093769 | 0.023519 | 0 | 0 | 0 | 0 | 0 | 1 | 0.10828 | false | 0 | 0.076433 | 0.006369 | 0.312102 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443d9413d2bd1afe7dab3a1392c07a5c51c65936 | 4,999 | py | Python | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | moves/auth.py | iwharris/moves-transponder | df72fd0f6a0dd77997376c2979c5c00edb7c6bab | [
"MIT"
] | null | null | null | from __future__ import print_function
import requests
import time
import sys
from lxml import html
import urlparse
from util import *
__author__ = 'iwharris'
def request_auth_desktop(base_url, client_id, client_secret, scope, redirect_uri, state=''):
"""Makes an auth request to the Moves API.
scope may be '... | 37.586466 | 161 | 0.656931 | 629 | 4,999 | 4.992051 | 0.27663 | 0.053503 | 0.044586 | 0.034395 | 0.251274 | 0.22707 | 0.173885 | 0.097771 | 0.084713 | 0.084713 | 0 | 0.001577 | 0.239048 | 4,999 | 133 | 162 | 37.586466 | 0.82387 | 0.143629 | 0 | 0.32 | 0 | 0 | 0.166077 | 0.019344 | 0 | 0 | 0 | 0 | 0.02 | 1 | 0.04 | false | 0 | 0.07 | 0 | 0.16 | 0.11 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443ec98bcd2dc6957fa92fd540a750b1e3acc89e | 5,907 | py | Python | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | 1 | 2021-04-20T14:47:40.000Z | 2021-04-20T14:47:40.000Z | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | null | null | null | Code_for_Signal_Processing_test/open_data_FFR_mac_v2.0.1.py | puyaraimondii/biometric-classification-of-frequency-following-responses | f5b5dca516592be451a3133acb8fa178519bc991 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Sun Jul 22 21:22:58 2018
@author: bruce
"""
import pandas as pd
import os
import numpy as np
from scipy import fftpack
from scipy import signal
import matplotlib.pyplot as plt
pkl_file=pd.read_pickle('/Users/bruce/Documents/uOttawa/Project/audio_brainst... | 23.164706 | 147 | 0.716946 | 1,034 | 5,907 | 3.834623 | 0.208897 | 0.019672 | 0.018159 | 0.020177 | 0.513241 | 0.486255 | 0.461791 | 0.45826 | 0.412106 | 0.400757 | 0 | 0.074693 | 0.118334 | 5,907 | 254 | 148 | 23.255906 | 0.686636 | 0.111393 | 0 | 0.041667 | 0 | 0 | 0.162746 | 0.107537 | 0 | 0 | 0 | 0 | 0 | 1 | 0.041667 | false | 0 | 0.125 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
443fa32c189f00023a8d9b89e8fc6e723ffab926 | 4,511 | py | Python | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | mnist_model.py | shudong-zhang/Train-generator | 65688c36ffcaba688e96bf3932db07ab658ea99d | [
"MIT"
] | null | null | null | import torch
import torch.nn as nn
import torch.nn.functional as F
# 说明:target1和target2 是两个目标模型,后面的mnists1和mnists2 是用于训练vae的模型。
# 我们攻击的时候,就选择target1和target2就行,不要选择后面两个模型。
# target1的模型权重就是那个mnist_gpu,target2的模型权重是mnist_models/checkpoints/mnist_target_2_best.pth.tar
class MNIST_target_1(nn.Module):
def __init__(self... | 33.917293 | 113 | 0.530924 | 606 | 4,511 | 3.825083 | 0.19637 | 0.011217 | 0.025884 | 0.025884 | 0.389991 | 0.342105 | 0.271786 | 0.236411 | 0.188525 | 0.154443 | 0 | 0.089357 | 0.337619 | 4,511 | 133 | 114 | 33.917293 | 0.686412 | 0.14254 | 0 | 0.378151 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.07563 | false | 0 | 0.02521 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
444109ce8cf31f72f2c3c1602e9ba493a22264fc | 339 | py | Python | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | null | null | null | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | 7 | 2021-11-01T08:41:33.000Z | 2021-11-06T20:42:41.000Z | function/news_text.py | zoohee/SqueezeNews | 4f51b307c05259fb567cbe2027fed09a354b4773 | [
"Apache-2.0"
] | 3 | 2021-11-01T14:58:55.000Z | 2022-03-21T07:37:05.000Z | import newspaper
from newspaper import Article
# url = 'http://fox13now.com/2013/12/30/new-year-new-laws-obamacare-pot-guns-and-drones/'
def text_extraction(url):
article = Article(url)
article.download()
article.parse()
text = article.text
text = text.replace("\n\n"," ") # '\n' -> ''
... | 21.1875 | 89 | 0.631268 | 44 | 339 | 4.840909 | 0.613636 | 0.093897 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037313 | 0.20944 | 339 | 15 | 90 | 22.6 | 0.757463 | 0.289086 | 0 | 0 | 0 | 0 | 0.021008 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.222222 | 0 | 0.444444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4447cebaca237fce398177fea1226e3ccac3370d | 4,724 | py | Python | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | 1 | 2021-11-24T12:42:26.000Z | 2021-11-24T12:42:26.000Z | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | null | null | null | handroute-power-stripes/check_sram.py | pohantw/caravel_user_project | 2589b79bf97fd43186bf854ca3aaa60665f573ba | [
"Apache-2.0"
] | null | null | null | #!/usr/bin/env python3
#
# Script to read a GDS file, and replace a single cell structure with a cell of
# the same name from a different GDS file. If a checksum is provided, then
# the cell contents will be checked against the checksum before allowing the
# replacement. The checksum is just the sum of the lengt... | 41.438596 | 120 | 0.563506 | 553 | 4,724 | 4.76311 | 0.325497 | 0.018223 | 0.012149 | 0.012149 | 0.059226 | 0 | 0 | 0 | 0 | 0 | 0 | 0.013116 | 0.338273 | 4,724 | 114 | 121 | 41.438596 | 0.829495 | 0.218882 | 0 | 0.206186 | 0 | 0 | 0.150927 | 0.007307 | 0 | 0 | 0 | 0 | 0 | 1 | 0.010309 | false | 0 | 0.020619 | 0 | 0.030928 | 0.154639 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4449bfa6d89ff2ac50729d1ef0563c812702054a | 527 | py | Python | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | null | null | null | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | 3 | 2018-11-03T16:17:17.000Z | 2018-11-04T04:55:31.000Z | python/draw_map.py | dickensn/irlome-dev | 40228014e7d82c3f629f5d86d489cf6b888cd089 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
''' IRLOME maps
'''
__author__ = "Nick Dickens"
__copyright__ = "Copyright 2018, Nicholas J. Dickens"
__email__ = "dickensn@fau.edu"
__license__ = "MIT"
import matplotlib.pyplot as plt
import mplleaflet
points = []
with open("../web/data/user_data.csv") as in_fh:
for line in in_fh:
line ... | 20.269231 | 53 | 0.673624 | 77 | 527 | 4.363636 | 0.675325 | 0.02381 | 0.065476 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017978 | 0.155598 | 527 | 25 | 54 | 21.08 | 0.737079 | 0.062619 | 0 | 0 | 0 | 0 | 0.222222 | 0.05144 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
444e14447cb4f0e4bc8141a034007957513313e9 | 6,787 | py | Python | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | pickle_mom_seeding.py | garudlab/mother_infant | 98a27c83bf5ece9497d5a030c6c9396a8c514781 | [
"BSD-2-Clause"
] | null | null | null | # Question: are sweeping alleles in infants present in mom?
# Idea: store data on allele frequency in mom for each sweeping allele in infant
from utils import sample_utils as su, parse_midas_data, substitution_rates_utils, config, temporal_changes_utils, snps_utils, core_gene_utils, gene_diversity_utils
import numpy a... | 34.984536 | 163 | 0.731104 | 1,000 | 6,787 | 4.746 | 0.255 | 0.035398 | 0.028445 | 0.017699 | 0.310788 | 0.292457 | 0.292457 | 0.277708 | 0.277708 | 0.277708 | 0 | 0.01162 | 0.150435 | 6,787 | 193 | 164 | 35.165803 | 0.811481 | 0.249742 | 0 | 0.086022 | 0 | 0 | 0.072682 | 0.028925 | 0 | 0 | 0 | 0.005181 | 0 | 1 | 0.010753 | false | 0 | 0.096774 | 0 | 0.11828 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44501000b3734b479464d60d1f33e27a81e07057 | 821 | py | Python | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | tdiprima/code | 61a74f5f93da087d27c70b2efe779ac6bd2a3b4f | [
"MIT"
] | 2,023 | 2017-07-29T09:34:46.000Z | 2022-03-24T08:00:45.000Z | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 32 | 2017-09-02T17:20:08.000Z | 2022-02-11T17:49:37.000Z | recipes/Python/531821_Error_logging_context_manager/recipe-531821.py | unhacker/code | 73b09edc1b9850c557a79296655f140ce5e853db | [
"MIT"
] | 780 | 2017-07-28T19:23:28.000Z | 2022-03-25T20:39:41.000Z | from __future__ import with_statement
from contextlib import contextmanager
from functools import wraps
import logging
@contextmanager
def error_trapping(ident=None):
''' A context manager that traps and logs exception in its block.
Usage:
with error_trapping('optional description'):
m... | 26.483871 | 69 | 0.624848 | 96 | 821 | 5.125 | 0.583333 | 0.079268 | 0.069106 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.28989 | 821 | 30 | 70 | 27.366667 | 0.843911 | 0.254568 | 0 | 0 | 0 | 0 | 0.024955 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.157895 | false | 0 | 0.210526 | 0 | 0.473684 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44505ee5565c15ff2332d974385cc5824f0522fa | 1,004 | py | Python | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | 1 | 2017-04-27T19:26:49.000Z | 2017-04-27T19:26:49.000Z | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | null | null | null | escolaridade/tests.py | Bleno/sisgestor-django | c35f76eafc3e51afb99c84245e01881cef43aa5b | [
"MIT"
] | null | null | null | from django.test import TestCase
from django.test import Client
from .models import Escolaridade
class EscolaridadeTestCase(TestCase):
def setUp(self):
Escolaridade.objects.create(escolaridade="Médio")
Escolaridade.objects.create(escolaridade="Fundamental")
def test_escolaridade_exists(s... | 32.387097 | 73 | 0.692231 | 105 | 1,004 | 6.52381 | 0.352381 | 0.110949 | 0.040876 | 0.058394 | 0.245255 | 0.245255 | 0.245255 | 0 | 0 | 0 | 0 | 0.008696 | 0.198207 | 1,004 | 30 | 74 | 33.466667 | 0.842236 | 0.081673 | 0 | 0.2 | 0 | 0 | 0.084967 | 0 | 0 | 0 | 0 | 0 | 0.2 | 1 | 0.2 | false | 0 | 0.15 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4450c03b84b4b673f18bc1860ea01b76a4f2ec4d | 4,799 | py | Python | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | python_ws/src/sim/src/aruco_front.py | boris-gu/drone-api | fd90f226bf83c79eb7c31b69b9141474017160a3 | [
"BSD-3-Clause"
] | null | null | null | #!/usr/bin/env python3
# =====================
# Зависнуть у маркера
# =====================
import numpy as np
import rospy
import cv2
import cv2.aruco as aruco
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
from aruco_calibration import Calibration as clb
from drone_api import *
from math import ... | 40.669492 | 95 | 0.549489 | 601 | 4,799 | 4.232945 | 0.30782 | 0.014937 | 0.010613 | 0.023585 | 0.329009 | 0.278302 | 0.238208 | 0.22327 | 0.195755 | 0.176887 | 0 | 0.058878 | 0.324026 | 4,799 | 117 | 96 | 41.017094 | 0.725339 | 0.09627 | 0 | 0.369565 | 0 | 0 | 0.054772 | 0.0208 | 0 | 0 | 0 | 0 | 0 | 1 | 0.021739 | false | 0 | 0.097826 | 0.01087 | 0.141304 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4452b02d3ec66c4927bb44a51aa1b641b11fd632 | 3,933 | py | Python | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | Pipelines/Torch/Data/mnist.py | AkibMashrur/Research | a981e3410917216e03e09431c837607543905d83 | [
"Apache-2.0"
] | null | null | null | # Reference: https://stackoverflow.com/questions/40427435/extract-images-from-idx3-ubyte-file-or-gzip-via-python
# Based on answer by UdaraWanasinghe
import os
import gzip
import numpy as np
import torch
import torch.nn.functional as F
home_dir = os.path.expanduser('~')
parent_dir = "Datasets/Images/MNIST/"
def trai... | 37.817308 | 112 | 0.637935 | 570 | 3,933 | 4.247368 | 0.191228 | 0.033044 | 0.039653 | 0.064436 | 0.647666 | 0.647666 | 0.647666 | 0.647666 | 0.647666 | 0.582404 | 0 | 0.019481 | 0.256039 | 3,933 | 104 | 113 | 37.817308 | 0.807929 | 0.2418 | 0 | 0.4 | 0 | 0 | 0.091032 | 0.07445 | 0 | 0 | 0 | 0 | 0 | 1 | 0.107692 | false | 0 | 0.076923 | 0.015385 | 0.292308 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4452eed1643b0ab8c55a85a0007be4f6da57ef15 | 7,968 | py | Python | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | ilan-WS/cloudify-manager | 510d8a277c848db351f38fc5b264806b2cb36d0b | [
"Apache-2.0"
] | 124 | 2015-01-22T22:28:37.000Z | 2022-02-26T23:12:06.000Z | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | cloudify-cosmo/cloudify-manager | 4a3f44ceb49d449bc5ebc8766b1c7b9c174ff972 | [
"Apache-2.0"
] | 345 | 2015-01-08T15:49:40.000Z | 2022-03-29T08:33:00.000Z | resources/rest-service/cloudify/migrations/versions/b92770a7b6ca_5_3_to_6_0.py | ilan-WS/cloudify-manager | 510d8a277c848db351f38fc5b264806b2cb36d0b | [
"Apache-2.0"
] | 77 | 2015-01-07T14:04:35.000Z | 2022-03-07T22:46:00.000Z | """5_3 to 6_0
Revision ID: b92770a7b6ca
Revises: 396303c07e35
Create Date: 2021-04-12 09:33:44.399254
"""
from alembic import op
import sqlalchemy as sa
from manager_rest.storage import models
# revision identifiers, used by Alembic.
revision = 'b92770a7b6ca'
down_revision = '396303c07e35'
branch_labels = None
depe... | 25.538462 | 74 | 0.633032 | 921 | 7,968 | 4.952226 | 0.117264 | 0.058321 | 0.077176 | 0.031572 | 0.623109 | 0.555141 | 0.507345 | 0.422495 | 0.35102 | 0.278009 | 0 | 0.009848 | 0.248117 | 7,968 | 311 | 75 | 25.620579 | 0.751461 | 0.017445 | 0 | 0.526718 | 0 | 0 | 0.28091 | 0.114308 | 0 | 0 | 0 | 0 | 0 | 1 | 0.068702 | false | 0 | 0.01145 | 0 | 0.080153 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44567aa723c7083a702d9f866e897914bb948003 | 47,745 | py | Python | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | script/FilesFunctions/FilesFunctions.py | totordudu/UTBM_TZ20 | 27e4d3f247a3eba26c1c7c7a21e184917056ac52 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import os
from datetime import datetime, timedelta
import errno
import time
import USBKey
class Files():
import sys
import csv
from datetime import datetime, date, time, timedelta
import os
from os import path
import shutil
# import urllib # for python 3 : import u... | 48.969231 | 230 | 0.489517 | 4,330 | 47,745 | 5.330023 | 0.147575 | 0.019715 | 0.015209 | 0.009576 | 0.503098 | 0.467308 | 0.422635 | 0.380259 | 0.361454 | 0.348282 | 0 | 0.006458 | 0.422683 | 47,745 | 974 | 231 | 49.019507 | 0.83083 | 0.056278 | 0 | 0.475771 | 0 | 0 | 0.098536 | 0.000827 | 0.002937 | 0 | 0 | 0.001027 | 0 | 1 | 0.030837 | false | 0.001468 | 0.0279 | 0.001468 | 0.13069 | 0.069016 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44585e2e58dd7c6c6dcab8b55ab1edd7e5fa7f24 | 5,835 | py | Python | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | soil/settings.py | major-hub/soil_app | ddd250161ad496afd4c8484f79500ff2657b51df | [
"MIT"
] | null | null | null | import os
import sys
from pathlib import Path
from datetime import timedelta
from django.conf import global_settings
from django.utils.translation import gettext_lazy as _
import django.conf.locale
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve().parent.parent
sys... | 27.91866 | 107 | 0.671637 | 621 | 5,835 | 6.115942 | 0.397746 | 0.051343 | 0.031332 | 0.039494 | 0.138231 | 0.129279 | 0.057135 | 0.0495 | 0.031596 | 0 | 0 | 0.008632 | 0.185947 | 5,835 | 208 | 108 | 28.052885 | 0.790947 | 0.229306 | 0 | 0.028571 | 0 | 0.007143 | 0.493271 | 0.370345 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.035714 | 0.05 | 0 | 0.05 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
445ab1c1e4d78b8048df97b2a01122c5b251eb06 | 4,345 | py | Python | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | 1 | 2021-09-30T20:05:41.000Z | 2021-09-30T20:05:41.000Z | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | Practica4/QuickSort/grafica.py | JosueHernandezR/An-lisis-de-Algoritmos | 9953f2d3fee6b4cfe842fdbbea83b46b62fa123f | [
"MIT"
] | null | null | null | #Análisis de Algoritmos 3CV2
# Alan Romero Lucero
# Josué David Hernández Ramírez
# Práctica 4 Divide y vencerás
import matplotlib.pyplot as plt
import numpy as np
import gb
"""
Variables globales:
proposed2: Función propuesta para el algoritmo Quicktime. Dependiendo
si ... | 38.451327 | 126 | 0.571231 | 607 | 4,345 | 4.072488 | 0.278418 | 0.008091 | 0.031553 | 0.033981 | 0.450647 | 0.383495 | 0.309871 | 0.309871 | 0.309871 | 0.309871 | 0 | 0.043549 | 0.297123 | 4,345 | 113 | 127 | 38.451327 | 0.765881 | 0.098964 | 0 | 0.038462 | 0 | 0 | 0.126675 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057692 | false | 0 | 0.057692 | 0 | 0.115385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
445b95e70338446bf09b6f119beadcc108bb73c6 | 4,260 | py | Python | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 18 | 2021-04-08T10:35:31.000Z | 2022-03-03T14:29:06.000Z | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 1 | 2021-06-29T10:55:35.000Z | 2021-10-08T21:04:54.000Z | simArch/run_nets.py | mfkiwl/uSystolic-Sim | ed03101108d299557ff215239caa1b51783882f6 | [
"MIT"
] | 4 | 2021-04-08T10:35:32.000Z | 2021-12-11T13:45:24.000Z | import simArch.gemm_trace_wrapper as gemm_trace
def run_net(
ifmap_sram_size=1, # in K-Word
filter_sram_size=1, # in K-Word
ofmap_sram_size=1, # in K-Word
array_h=32,
array_w=32,
data_flow='ws',
word_size_bytes=1,
wgt_bw_opt=False,
topology_file=None,
net_name=None,
offset_l... | 38.378378 | 110 | 0.480047 | 483 | 4,260 | 3.929607 | 0.26294 | 0.041096 | 0.031612 | 0.04215 | 0.145416 | 0.088514 | 0 | 0 | 0 | 0 | 0 | 0.022204 | 0.429108 | 4,260 | 111 | 111 | 38.378378 | 0.758224 | 0.09061 | 0 | 0.023256 | 0 | 0 | 0.063068 | 0.017389 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023256 | false | 0 | 0.011628 | 0 | 0.046512 | 0.034884 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
445d5c9f90f1e235cdc97e3d99dbadddc792e214 | 550 | py | Python | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | homepage/views.py | c17r/tsace | 59c6e0388429943dc3de879745119f9c94cd9ccc | [
"MIT"
] | null | null | null | from datetime import datetime, timedelta
from django.shortcuts import render
from django.template import RequestContext
import api
def index(request):
uid = request.COOKIES.get("uid")
data = None
if not uid:
uid, _ = api.create_new_user()
else:
data = api.get_saved_cities(uid)
res... | 22 | 53 | 0.658182 | 66 | 550 | 5.378788 | 0.545455 | 0.056338 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.007194 | 0.241818 | 550 | 24 | 54 | 22.916667 | 0.844125 | 0 | 0 | 0 | 0 | 0 | 0.067273 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.052632 | false | 0 | 0.210526 | 0 | 0.315789 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
445ef4455f305009ac0e1b4aeb8c80e0b3115162 | 20,825 | py | Python | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | wolfgang_robot/wolfgang_pybullet_sim/src/wolfgang_pybullet_sim/simulation.py | MosHumanoid/bitbots_thmos_meta | f45ccc362dc689b69027be5b0d000d2a08580de4 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
import math
import sys
import os
import time
import pybullet as p
from time import sleep
import time
import rospy
import tf
from scipy import signal
import pybullet_data
import rospkg
from transforms3d.quaternions import quat2mat
from wolfgang_pybullet_sim.terrain import Terrain
import numpy as... | 47.115385 | 120 | 0.585066 | 2,563 | 20,825 | 4.555989 | 0.180648 | 0.027747 | 0.031172 | 0.015586 | 0.364049 | 0.32534 | 0.276098 | 0.251691 | 0.232251 | 0.19988 | 0 | 0.018701 | 0.31443 | 20,825 | 442 | 121 | 47.115385 | 0.799188 | 0.099256 | 0 | 0.215743 | 0 | 0 | 0.070843 | 0.005198 | 0 | 0 | 0 | 0.002262 | 0 | 1 | 0.087464 | false | 0 | 0.043732 | 0.008746 | 0.177843 | 0.008746 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4460bbb142aa4c99178afe32a15838a44e96e1f2 | 11,641 | py | Python | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | dataloader_cifar.py | pizard/DivideMix | 9610201b9eb5dc871a77bf12017c137be291c71c | [
"MIT"
] | null | null | null | from torch.utils.data import Dataset, DataLoader
import torchvision.transforms as transforms
import random
import numpy as np
from PIL import Image
import json
import os
from torchnet.meter import AUCMeter
def uniform_mix_C(mixing_ratio, num_classes):
'''
returns a linear interpolation of a uniform matrix and a... | 44.601533 | 259 | 0.545486 | 1,342 | 11,641 | 4.532042 | 0.151267 | 0.029596 | 0.023676 | 0.015784 | 0.494574 | 0.462019 | 0.446399 | 0.410556 | 0.392305 | 0.392305 | 0 | 0.034988 | 0.349369 | 11,641 | 261 | 260 | 44.601533 | 0.768022 | 0.084185 | 0 | 0.343284 | 0 | 0 | 0.033551 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.044776 | false | 0 | 0.044776 | 0 | 0.169154 | 0.00995 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4460f4628cd89ed83a3cb70a7461035c26830bb4 | 2,971 | py | Python | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | rnnparser/RecursiveNN/tests/test_vectorized_variables.py | uphere-co/nlp-prototype | c4623927e5c5c5f9c3e702eb36497ea1d9fd1ff3 | [
"BSD-3-Clause"
] | null | null | null | # -*- coding: utf-8 -*-
import numpy as np
import pytest
from vecGraphComp.base import MatrixValues, ValueHolder, Block, NodeType, ExpressionWriter
def test_numpy_structure_of_arrays_with_expand_dims():
m,n = 200,100
x1=np.random.random((n,1))
x2=np.random.random((n,1))
A=np.random.random((m,n))
x... | 30.947917 | 90 | 0.63211 | 527 | 2,971 | 3.519924 | 0.259962 | 0.02965 | 0.059299 | 0.026954 | 0.292183 | 0.212399 | 0.166038 | 0.128302 | 0.111051 | 0.058221 | 0 | 0.056864 | 0.171323 | 2,971 | 95 | 91 | 31.273684 | 0.696588 | 0.117132 | 0 | 0.097222 | 0 | 0 | 0.024493 | 0 | 0 | 0 | 0 | 0 | 0.263889 | 1 | 0.069444 | false | 0 | 0.041667 | 0 | 0.111111 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4462a86f114257e11040144f6da38d51df8b1bf2 | 6,421 | py | Python | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 12 | 2020-01-08T01:33:02.000Z | 2022-03-16T00:25:34.000Z | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 8 | 2019-12-19T19:34:56.000Z | 2022-03-10T10:11:28.000Z | code/pyorg/scripts/ribo_mt/particles_curator.py | anmartinezs/pyseg_system | 5bb07c7901062452a34b73f376057cabc15a13c3 | [
"Apache-2.0"
] | 2 | 2022-03-30T13:12:22.000Z | 2022-03-30T18:12:10.000Z | """
Curates an output STAR file from Relion to work as input for pyseg.pyorg scripts for microtubules
Input: - STAR file with the particles to curate
- STAR file to pair tomograms used for reconstruction with the one segmented used to pick the particles
Output: - A curated output STAR file
... | 35.672222 | 115 | 0.63339 | 889 | 6,421 | 4.328459 | 0.253093 | 0.044179 | 0.031185 | 0.039761 | 0.289501 | 0.261694 | 0.169699 | 0.142931 | 0.111746 | 0.111746 | 0 | 0.00608 | 0.180346 | 6,421 | 180 | 116 | 35.672222 | 0.725062 | 0.097181 | 0 | 0.162602 | 0 | 0 | 0.263972 | 0.031483 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.073171 | 0 | 0.073171 | 0.252033 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4462c41b0b42cc76b2753d10c545dd05d91c8946 | 1,954 | py | Python | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | null | null | null | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | null | null | null | tests/test_proprietor_validation.py | LandRegistry/datatypes-alpha | b7ec20c9aec84697aa49aaf6bff52fac3770a942 | [
"MIT"
] | 1 | 2021-04-11T06:07:21.000Z | 2021-04-11T06:07:21.000Z | import unittest
from copy import deepcopy
from datatypes.exceptions import DataDoesNotMatchSchemaException
from datatypes import proprietor_validator
from datatypes.core import unicoded
proprietor = unicoded({
"title" : "Mrs",
"full_name": "Bootata Smick",
"decoration": "tidy"
})
proprietor_with_additi... | 39.08 | 149 | 0.754862 | 197 | 1,954 | 7.203046 | 0.28934 | 0.107822 | 0.095137 | 0.029598 | 0.553911 | 0.553911 | 0.450317 | 0.427766 | 0.30303 | 0.260747 | 0 | 0 | 0.169908 | 1,954 | 49 | 150 | 39.877551 | 0.874846 | 0 | 0 | 0.282051 | 0 | 0 | 0.144319 | 0 | 0 | 0 | 0 | 0 | 0.076923 | 1 | 0.128205 | false | 0 | 0.128205 | 0 | 0.282051 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446691647b7b65b8fcd033c966f9edcd95dfe8b8 | 907 | py | Python | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | src/plots/experiments_1.py | ekreutz/bayes-cv-pruning | a82888fcc8771fdf90d51bd6c37c5bc7a449c81a | [
"MIT"
] | null | null | null | import os
import pickle
import numpy as np
import matplotlib.font_manager as font_manager
import matplotlib.pyplot as plt
import seaborn as sns
# Plot
sns.set(context="paper", style="whitegrid", font="STIXGeneral", font_scale=1.25)
def plot():
CURRENT_PATH = os.path.dirname(os.path.realpath(__file__))
# Fi... | 29.258065 | 80 | 0.654906 | 143 | 907 | 4.076923 | 0.594406 | 0.030875 | 0.027444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.037736 | 0.181918 | 907 | 30 | 81 | 30.233333 | 0.747978 | 0.048512 | 0 | 0 | 0 | 0 | 0.187209 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0 | 0.285714 | 0 | 0.333333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44677c1268d64c9902a9bcde21123859ab265c49 | 709 | py | Python | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | null | null | null | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | 16 | 2019-11-23T19:08:45.000Z | 2020-03-13T17:13:23.000Z | quickstart.py | adamstimb/nimbusinator | a7bb7e282b8322c1a97bffc3c40ab0541f746615 | [
"MIT"
] | null | null | null | from nimbusinator.nimbus import Nimbus
from nimbusinator.command import Command
if __name__ == '__main__':
# Create and bind nimbusinator objects:
nim = Nimbus(full_screen=True)
cmd = Command(nim)
nim.boot() # Boot the Nimbus
cmd.set_mode(40) # Low resolution mode
cmd.set_border(1)... | 33.761905 | 57 | 0.638928 | 99 | 709 | 4.444444 | 0.626263 | 0.040909 | 0.072727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.046642 | 0.244006 | 709 | 20 | 58 | 35.45 | 0.774254 | 0.291961 | 0 | 0 | 0 | 0 | 0.065173 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.133333 | 0 | 0.133333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4467af496402d2c4c04283d114962eb0a43111b9 | 264 | py | Python | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | 03-threads/threads_example.py | LeandroMelloo/programacao_concorrente_assincrona_com_python | 49790de6004d588ccc2a07d1be0c420d6a1e4b7a | [
"Apache-2.0"
] | null | null | null | import threading
def start_threading(param):
print('Executa algo....')
print(f'Utiliza o parâmetro recebido: {param}')
return print(f'Resultado final: {param * param}')
th = threading.Thread(target=start_threading, args=(5,))
th.start()
th.join()
| 18.857143 | 56 | 0.689394 | 35 | 264 | 5.142857 | 0.628571 | 0.155556 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.004464 | 0.151515 | 264 | 13 | 57 | 20.307692 | 0.799107 | 0 | 0 | 0 | 0 | 0 | 0.32197 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.125 | false | 0 | 0.125 | 0 | 0.375 | 0.375 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446a9b413000d786cd15da4f54dc59cd09eba6bf | 9,450 | py | Python | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | catan-simulator/src/Api/Catan.py | williamaredal/Catan-Simulator | 27b5fa2bb77554fc5dfc67286899a70d3c41aeb4 | [
"MIT"
] | null | null | null | from collections import Counter
from random import choice
import numpy as np
# Figuring out the roads to victory requiring the minimum number of cards to achieve victory in catan
class Ledger:
def __init__(
self,
victoryPointCondition=10,
villageSettlement=1,
citySettlement=2,
startVillages=... | 31.605351 | 153 | 0.610899 | 792 | 9,450 | 7.27904 | 0.19697 | 0.020815 | 0.006245 | 0.011448 | 0.29575 | 0.280659 | 0.170685 | 0.151605 | 0.138248 | 0.116739 | 0 | 0.017117 | 0.295238 | 9,450 | 298 | 154 | 31.711409 | 0.848499 | 0.030794 | 0 | 0.243478 | 0 | 0 | 0.06252 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.069565 | false | 0 | 0.013043 | 0 | 0.113043 | 0.034783 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446aff1f81c23a0f38cd568dd2d43f6846714b6e | 29,745 | py | Python | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | client_server_test INHERIT/LocalModel.py | hades208002/mdp-project | c242a8d00412cc3772d298986977f6acc47002ee | [
"MIT"
] | null | null | null | # Import all the useful libraries
import numpy as np
import pandas as pd
import fancyimpute
from sklearn import model_selection
from sklearn.model_selection import StratifiedKFold
from sklearn.ensemble import AdaBoostClassifier # PROBABILITY
from sklearn.tree import DecisionTreeClassifier # PROBABILITY
from sklearn.... | 59.49 | 605 | 0.755455 | 4,357 | 29,745 | 4.938949 | 0.112233 | 0.051118 | 0.034156 | 0.042939 | 0.573214 | 0.529904 | 0.474976 | 0.449138 | 0.425717 | 0.414192 | 0 | 0.021863 | 0.120424 | 29,745 | 499 | 606 | 59.609218 | 0.800634 | 0.236779 | 0 | 0.20915 | 0 | 0 | 0.100894 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062092 | false | 0 | 0.127451 | 0 | 0.24183 | 0.124183 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446b4021141854c01eb8346f6d3902a45b8ff171 | 4,455 | py | Python | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | 1 | 2021-10-05T05:52:39.000Z | 2021-10-05T05:52:39.000Z | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | null | null | null | get_weibo.py | SUIBE-Blockchain/Data-Crawler-Practice | 46f4b98f05923ab534e28e51456c87efc33dbb8d | [
"Apache-2.0"
] | 7 | 2020-08-09T09:52:15.000Z | 2020-08-16T08:04:02.000Z | import sys
from bs4 import BeautifulSoup
import re
import urllib.request, urllib.error
import xlwt # 进行Excel操作
import time
def main():
Baseurl = 'https://weibo.cn/thepapernewsapp?page='
# 1.爬取网页
datalist = getdata(Baseurl)
#IDlence = (len(datalist) - 1)
savepath = "澎湃新闻.xls"
# 3... | 28.928571 | 412 | 0.525701 | 459 | 4,455 | 5.045752 | 0.40305 | 0.056131 | 0.047496 | 0.041451 | 0.045769 | 0 | 0 | 0 | 0 | 0 | 0 | 0.050151 | 0.333109 | 4,455 | 153 | 413 | 29.117647 | 0.729384 | 0.111336 | 0 | 0.15 | 0 | 0.02 | 0.193471 | 0.094214 | 0 | 0 | 0 | 0 | 0 | 1 | 0.04 | false | 0 | 0.06 | 0 | 0.13 | 0.05 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446d377b81da3c67728272ccd4cb25650010c8a7 | 549 | py | Python | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 2 | 2019-11-18T12:51:09.000Z | 2019-12-11T03:13:51.000Z | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 5 | 2017-06-09T10:06:27.000Z | 2019-07-19T11:28:18.000Z | unittests/check_external_packages.py | davidharvey1986/rrg | 26b4658f14279af21af1a61d57e9936daf315a71 | [
"MIT"
] | 2 | 2017-07-19T15:48:33.000Z | 2017-08-09T16:07:20.000Z | import subprocess
def check_external_packages():
try:
stilts_path = subprocess.check_output(['which','stilts.sh'])
except:
raise ValueError('Cannot find STILTS please install and ensure it is in the shell path')
try:
stilts_path = subprocess.check_output(['which','sex'])
... | 27.45 | 105 | 0.668488 | 68 | 549 | 5.308824 | 0.544118 | 0.091413 | 0.072022 | 0.127424 | 0.526316 | 0.216066 | 0.216066 | 0 | 0 | 0 | 0 | 0 | 0.245902 | 549 | 19 | 106 | 28.894737 | 0.871981 | 0 | 0 | 0.428571 | 0 | 0 | 0.364299 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.071429 | false | 0 | 0.285714 | 0 | 0.357143 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446d5bb17dd8a928ca7451126fb10c9f182c9616 | 6,084 | py | Python | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | 2020/day16/day16ab.py | jeremy-frank/advent-of-code | 6a9dd284f0e67fea694548f1545402c579ef3f08 | [
"MIT"
] | null | null | null | """
day16ab - https://adventofcode.com/2020/day/16
--- Day 16: Ticket Translation ---
* Part 1
Three input files:
the rules for ticket fields
the numbers on your ticket
the numbers on other nearby tickets
The rules for ticket fields specify a list of fields that exist somewhere on the ticket
and the valid r... | 28.971429 | 100 | 0.619001 | 825 | 6,084 | 4.431515 | 0.254545 | 0.064004 | 0.035558 | 0.02407 | 0.180525 | 0.091904 | 0.059081 | 0.059081 | 0.059081 | 0.059081 | 0 | 0.024666 | 0.286982 | 6,084 | 209 | 101 | 29.110048 | 0.818119 | 0.335141 | 0 | 0.150943 | 0 | 0 | 0.101417 | 0.006463 | 0 | 0 | 0 | 0 | 0 | 1 | 0.056604 | false | 0 | 0 | 0 | 0.113208 | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
446f6522d2f68fb06ab1adc22f7cb83ad19c1bfc | 712 | py | Python | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | docs/blog/2017/0610.py | CylonOven/blog | ddc560edb0445f950b39d441b569ef2258abc2d6 | [
"BSD-2-Clause"
] | null | null | null | import random
random.seed("lel")
class table(object):
changes= {
'1':"@",
'0':" "
}
def __init__(self, lists):
self.data = lists
@classmethod
def gen_matix(cls, x, y):
return cls(
[
[random.choice((1,0)) for y in range(y)] for x in range(x)
... | 20.342857 | 66 | 0.463483 | 85 | 712 | 3.764706 | 0.435294 | 0.1875 | 0.10625 | 0.1125 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019824 | 0.36236 | 712 | 35 | 67 | 20.342857 | 0.685022 | 0 | 0 | 0.074074 | 0 | 0 | 0.029453 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.111111 | false | 0 | 0.037037 | 0.037037 | 0.259259 | 0.037037 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
447144dab05f58bb3666adc6c76ca187a3b6abdf | 2,116 | py | Python | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | Firefly.py | iglennrogers/swarm_pyside | 8930f668473c5f9b399c29661295be47f31b9164 | [
"BSD-2-Clause"
] | null | null | null | import PySide.QtGui as QtGui
import PySide.QtCore as QtCore
import GravitionalObject as go
class Firefly(go.GravitationalObject):
def __init__(self):
super(Firefly, self).__init__()
self._acc = QtCore.QPointF()
self._vel = QtCore.QPointF()
self._pos = QtCore.QPointF()
... | 32.553846 | 112 | 0.557183 | 265 | 2,116 | 4.264151 | 0.260377 | 0.080531 | 0.038938 | 0.035398 | 0.260177 | 0.19115 | 0.19115 | 0.113274 | 0.113274 | 0.113274 | 0 | 0.008075 | 0.297732 | 2,116 | 64 | 113 | 33.0625 | 0.752355 | 0.048204 | 0 | 0.038462 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.192308 | false | 0 | 0.057692 | 0.057692 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4475eccd120177058a082a3f92db22d0104dd277 | 4,226 | py | Python | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 20 | 2017-12-22T18:29:55.000Z | 2021-09-12T15:04:39.000Z | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 9 | 2019-01-24T14:52:33.000Z | 2022-03-16T14:14:35.000Z | sasoptpy/abstract/parameter.py | jld23/sasoptpy | f96911f04d6c0c01fce902f1f995935583df69a8 | [
"Apache-2.0"
] | 12 | 2017-12-22T19:37:16.000Z | 2021-07-30T21:04:03.000Z | #!/usr/bin/env python
# encoding: utf-8
#
# Copyright SAS Institute
#
# 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 b... | 27.986755 | 80 | 0.604827 | 530 | 4,226 | 4.626415 | 0.307547 | 0.016313 | 0.039967 | 0.013051 | 0.100326 | 0.017129 | 0 | 0 | 0 | 0 | 0 | 0.006707 | 0.294368 | 4,226 | 150 | 81 | 28.173333 | 0.81556 | 0.399195 | 0 | 0.215385 | 0 | 0 | 0.008102 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.184615 | false | 0 | 0.046154 | 0.061538 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
447be6e4fc567f716395f5061f29158ceb4b650e | 1,034 | py | Python | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | 1 | 2021-08-13T23:46:20.000Z | 2021-08-13T23:46:20.000Z | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | day-03/automatic-pizza-order-program.py | swokyisalreadytaken/100-Days-of-Code-in-Python | 269c99a481b94248454114c051fafa8f52697332 | [
"Unlicense"
] | null | null | null | # build an automatic pizza order program.
# ask the user the size and extra ingredients inputs
print("Welcome to Python Pizza Deliveries!")
size = input("What size pizza do you want? S, M, or L \n")
add_pepperoni = input("Do you want pepperoni? Y or N \n")
extra_cheese = input("Do you want extra cheese? Y or N \n")
# ... | 27.945946 | 59 | 0.647002 | 175 | 1,034 | 3.777143 | 0.314286 | 0.12708 | 0.04236 | 0.060514 | 0.428139 | 0.310136 | 0.310136 | 0.310136 | 0.096823 | 0.096823 | 0 | 0.020126 | 0.231141 | 1,034 | 37 | 60 | 27.945946 | 0.808805 | 0.301741 | 0 | 0.592593 | 0 | 0 | 0.294693 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.111111 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44809a2040f353f40337b79e36aebadd2135b1f0 | 2,091 | py | Python | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | WindowOperators.py | zatricion/Streams | d2f688e230b4cb325d5f76886a7499d132591bd4 | [
"MIT"
] | null | null | null | from Agent import *
from Stream import *
from MergeSplitOpStructures import *
def window_many_to_many(f, in_streams, num_out_streams, window_size, step_size, state=None):
def transition(in_lists, state=None):
range_out = range((num_out_streams))
range_in = range(len(in_streams))
output_list... | 44.489362 | 93 | 0.679101 | 309 | 2,091 | 4.245955 | 0.168285 | 0.07622 | 0.085366 | 0.109756 | 0.474085 | 0.474085 | 0.474085 | 0.394817 | 0.347561 | 0.17378 | 0 | 0.000628 | 0.238164 | 2,091 | 46 | 94 | 45.456522 | 0.822976 | 0.036346 | 0 | 0.088235 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147059 | false | 0 | 0.088235 | 0.088235 | 0.411765 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4482d252ebee04a4fe3a2d16129164bc0d1de4ec | 623 | py | Python | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | frontend_command.py | privacyrespected/Alpha | 60ffdb73b334e37a87be119ce881d084aef8d7a1 | [
"Apache-2.0"
] | null | null | null | #this files process commands entered through the front end
from modules.sense import *
from modules.mainsystem import *
def Pcommand(command):
command=command.lower()
if command.startswith("speak"): #speak function to debug
command=command.replace("","speak")
speak(command)
elif command.star... | 34.611111 | 60 | 0.64366 | 67 | 623 | 5.985075 | 0.552239 | 0.139651 | 0.094763 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.23435 | 623 | 18 | 61 | 34.611111 | 0.840671 | 0.128411 | 0 | 0 | 0 | 0 | 0.127306 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.117647 | 0 | 0.176471 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4483b0857e8241cf5117ec7285f536dc85720d7e | 2,177 | py | Python | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 2 | 2020-02-15T11:06:34.000Z | 2020-04-10T08:48:49.000Z | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 15 | 2020-02-04T10:56:07.000Z | 2021-02-12T09:11:03.000Z | swamp/mr/tests/test_mrjob.py | rigdenlab/SWAMP | 3e93ab27f4acf0124f7cb2d78a151cc3352b9c6e | [
"BSD-3-Clause"
] | 4 | 2020-02-04T13:25:09.000Z | 2022-03-23T13:44:17.000Z | import os
import dill
import unittest
import collections
from pyjob import Script
from swamp.utils import remove
from swamp.mr.mrjob import MrJob
RESULTS = collections.namedtuple('results', ['results'])
WORKDIR = os.path.join(os.environ['CCP4_SCR'], 'test_workdir')
class MrJobTestCase(unittest.TestCase):
def te... | 38.875 | 137 | 0.673404 | 286 | 2,177 | 4.975524 | 0.328671 | 0.063247 | 0.042164 | 0.029515 | 0.376669 | 0.290935 | 0.175685 | 0.175685 | 0.126493 | 0.126493 | 0 | 0.009534 | 0.180983 | 2,177 | 55 | 138 | 39.581818 | 0.788559 | 0 | 0 | 0.104167 | 0 | 0.020833 | 0.320625 | 0.128158 | 0 | 0 | 0 | 0 | 0.125 | 1 | 0.0625 | false | 0 | 0.166667 | 0 | 0.25 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44844a84b744658a244c29556a18ff7de739bdd6 | 6,306 | py | Python | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 83 | 2021-01-06T06:50:30.000Z | 2022-03-31T05:16:32.000Z | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 30 | 2021-02-27T06:09:47.000Z | 2021-12-23T11:03:36.000Z | distil/active_learning_strategies/partition_strategy.py | ansunsujoe/distil | cf6cae2b88ef129d09c159aae0569978190e9f98 | [
"MIT"
] | 13 | 2021-03-05T18:26:58.000Z | 2022-03-12T01:53:17.000Z | import math
import numpy as np
from torch.utils.data import Subset
from .strategy import Strategy
class PartitionStrategy(Strategy):
"""
Provides a wrapper around most of the strategies implemented in DISTIL that allows one to select portions of the budget from
specific partitions of the unlabeled d... | 52.115702 | 189 | 0.669997 | 793 | 6,306 | 5.161412 | 0.239596 | 0.062301 | 0.05375 | 0.029318 | 0.297337 | 0.248473 | 0.200098 | 0.15612 | 0.15612 | 0.15612 | 0 | 0.002805 | 0.265144 | 6,306 | 121 | 190 | 52.115702 | 0.880449 | 0.423565 | 0 | 0.06383 | 0 | 0 | 0.069959 | 0.019988 | 0 | 0 | 0 | 0 | 0 | 1 | 0.042553 | false | 0 | 0.085106 | 0 | 0.170213 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4485c237e7028b7f11bca171722bc70d54c20ee5 | 2,120 | py | Python | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | 1 | 2020-08-18T08:05:35.000Z | 2020-08-18T08:05:35.000Z | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | null | null | null | lib/lib_constant.py | NingAnMe/GFSSI | 066ac3dcffe04927aa497ee8b2257bee3ec3789a | [
"MIT"
] | 1 | 2020-08-26T06:50:59.000Z | 2020-08-26T06:50:59.000Z | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
@Time : 2019/8/2
@Author : AnNing
"""
import os
from lib.lib_path import get_aid_path, GFSSI_DIR
aid_path = get_aid_path()
# 无效数据的填充值
FULL_VALUE = -999
# 辅助文件
BASEMAP_FY4_4KM = os.path.join(aid_path, 'ditu_fy4a_4km.png')
LON_LAT_LUT_FY4_4KM = os.path.join(aid_pat... | 37.192982 | 92 | 0.745283 | 366 | 2,120 | 3.967213 | 0.289617 | 0.078512 | 0.130854 | 0.125344 | 0.50551 | 0.412534 | 0.2927 | 0.210744 | 0.088154 | 0 | 0 | 0.069219 | 0.100472 | 2,120 | 56 | 93 | 37.857143 | 0.692187 | 0.146698 | 0 | 0 | 0 | 0 | 0.221537 | 0.128435 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.0625 | 0 | 0.0625 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44860ad18421633ee3079c64cf2ba7d53eaef76a | 1,647 | py | Python | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | 48 | 2018-01-13T14:52:52.000Z | 2022-03-13T17:41:42.000Z | fondo_api/tests/runner.py | Fonmon/Fondo-API | 0c78eaab259df18219c01fceb67bd1b6ff8ec941 | [
"MIT"
] | null | null | null | import logging
from django.test.runner import DiscoverRunner
class TestRunner(DiscoverRunner):
""" When migrations are disabled for the test runner, the `pre_migrate` signal
does not emit. So we need another hook for installing the extension. Prior to
Django 1.9, the `pre_syncdb` signal worked for that.
... | 44.513514 | 84 | 0.680631 | 197 | 1,647 | 5.51269 | 0.477157 | 0.055249 | 0.066298 | 0.036832 | 0.073665 | 0 | 0 | 0 | 0 | 0 | 0 | 0.003221 | 0.245902 | 1,647 | 37 | 85 | 44.513514 | 0.871176 | 0.264117 | 0 | 0 | 0 | 0 | 0.035314 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.190476 | false | 0 | 0.142857 | 0 | 0.571429 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
448774b167c44c150d8ea3fd24f5266556ab412f | 460 | py | Python | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | 2 | 2016-07-03T05:19:20.000Z | 2021-03-07T04:39:07.000Z | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | null | null | null | Diffusion of Infection and Campus Evacuation/parameters.py | dem123456789/Computer-Simulation | ec61bdd7ca767f631ef190c1248690bd65327302 | [
"MIT"
] | null | null | null | import math
DEBUG = 1
PARKING_NODE_COLOR = '#FF0099'
EXIT_NODE_COLOR = 'r'
STREET_NODE_COLOR = 'g'
COP_NODE_COLOR = '#3c3ccc'
VISUAL = 1
COP_MODE = 0
COP_INTERSECTION_THRESHOLD = 0
COP_CONGESTION_THRESHOLD = 0.5
COP_EVACUATION_THRESHOLD = 0
DEPTH_OF_AWARENESS = 1
EAST_TENDENCY = 0
SPACE_TIME_TRADEOFF = 1
DEAD_END = []
... | 20.909091 | 39 | 0.773913 | 75 | 460 | 4.373333 | 0.64 | 0.109756 | 0.073171 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.070707 | 0.13913 | 460 | 21 | 40 | 21.904762 | 0.757576 | 0.06087 | 0 | 0 | 0 | 0 | 0.037471 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.052632 | 0 | 0.052632 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
448bc1e703300278885ac596fbdec39b730d307d | 3,611 | py | Python | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 23,901 | 2018-10-04T19:48:53.000Z | 2022-03-31T21:27:42.000Z | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 891 | 2018-11-10T06:16:13.000Z | 2022-03-31T10:42:34.000Z | constrained_language_typology/plot_languages_main.py | deepneuralmachine/google-research | d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231 | [
"Apache-2.0"
] | 6,047 | 2018-10-12T06:31:02.000Z | 2022-03-31T13:59:28.000Z | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicab... | 32.241071 | 77 | 0.663805 | 474 | 3,611 | 4.85865 | 0.485232 | 0.031264 | 0.033869 | 0.023448 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.026603 | 0.188037 | 3,611 | 111 | 78 | 32.531532 | 0.758868 | 0.381058 | 0 | 0.036364 | 0 | 0 | 0.171208 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.036364 | false | 0 | 0.2 | 0 | 0.236364 | 0.018182 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
448ce569784ffe842d7c48946cdd94821413b192 | 1,515 | py | Python | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | 7 | 2019-03-24T19:51:11.000Z | 2022-01-27T17:20:29.000Z | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | null | null | null | experiments/cartpole_dqn.py | jkulhanek/deep-rl-pytorch | 6fa7ceee8524f002d4a8d93295b231f6b9b7c29c | [
"MIT"
] | 4 | 2020-04-11T01:06:24.000Z | 2021-07-18T01:22:36.000Z | import gym
import torch.nn as nn
import torch.nn.functional as F
import numpy as np
import deep_rl.deepq as deepq
from deep_rl import register_trainer
class Model(nn.Module):
def __init__(self):
super().__init__()
def init_weights(m):
if type(m) == nn.Linear:
nn.init.... | 25.25 | 65 | 0.617162 | 192 | 1,515 | 4.666667 | 0.427083 | 0.035714 | 0.029018 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.03464 | 0.275908 | 1,515 | 59 | 66 | 25.677966 | 0.782133 | 0 | 0 | 0 | 0 | 0 | 0.007261 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.177778 | false | 0 | 0.133333 | 0.066667 | 0.488889 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
448f5af76ad0cc20a0a28294b6c5340ad6385f98 | 1,063 | py | Python | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 6 | 2020-04-24T13:14:17.000Z | 2022-03-09T14:16:51.000Z | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 6 | 2020-03-24T09:03:05.000Z | 2021-08-02T13:31:39.000Z | setup.py | pymgrit/pymgrit | 40eca08cedf486de22604279b4add87086b7d3cc | [
"MIT"
] | 4 | 2020-06-09T21:11:19.000Z | 2021-06-27T11:34:58.000Z | from setuptools import setup, find_packages
install_requires = [
'numpy>=1.17.0',
'scipy>=1.4.1',
'mpi4py>=3.0',
'matplotlib>=3.1.3'
]
extras_requires = {
'docs': [
'sphinx'
],
'tests': [
'tox',
]
}
def long_description():
with open('README.rst') as f:
ret... | 25.309524 | 116 | 0.631232 | 130 | 1,063 | 5 | 0.607692 | 0.092308 | 0.073846 | 0.083077 | 0.083077 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0.021454 | 0.210724 | 1,063 | 41 | 117 | 25.926829 | 0.753278 | 0 | 0 | 0 | 0 | 0.028571 | 0.316087 | 0.094073 | 0 | 0 | 0 | 0 | 0 | 1 | 0.028571 | false | 0 | 0.028571 | 0 | 0.085714 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4490ad67efce400919429713bee906671961ca09 | 2,590 | py | Python | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | 1 | 2017-08-08T20:38:27.000Z | 2017-08-08T20:38:27.000Z | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | 1 | 2018-08-15T22:26:29.000Z | 2018-08-15T22:26:29.000Z | mod6_lab1.py | KMSkelton/pyPrac | 11cec31d4cc1cbb890f89324a10f4daf66376de0 | [
"MIT"
] | null | null | null | # Update the code to have a function that reads in the file and returns contents as a list
def open_sample_func(sample_text):
with open(sample_text) as file:
lines = file.readlines()
return lines
# Update the code to have a function that converts the list of book lines into a list of the words
def ... | 41.774194 | 105 | 0.71583 | 419 | 2,590 | 4.260143 | 0.291169 | 0.110924 | 0.036415 | 0.02521 | 0.266667 | 0.12437 | 0.09972 | 0.09972 | 0.045938 | 0 | 0 | 0.000989 | 0.218919 | 2,590 | 61 | 106 | 42.459016 | 0.881364 | 0.439768 | 0 | 0 | 0 | 0 | 0.182008 | 0.030683 | 0 | 0 | 0 | 0 | 0 | 1 | 0.108108 | false | 0 | 0 | 0 | 0.216216 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44911cbbd93bdb5beaecefc59e565353a88e30d2 | 1,439 | py | Python | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | 1 | 2021-05-31T13:32:09.000Z | 2021-05-31T13:32:09.000Z | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | null | null | null | volume/pipeline.py | Napam/INF399-Master-Evaluation | d6e66397ae6951cffae65ddd41979bab367abdb8 | [
"MIT"
] | null | null | null | import glob, os
from cococonvert import convert_csv_labels, convert_csv_outputs
from cocoeval import COCO, COCOeval
import sys
class StdoutRedirection:
"""Standard output redirection context manager"""
def __init__(self, path):
self._path = path
def __enter__(self):
sys.stdout = open(se... | 32.704545 | 99 | 0.660181 | 183 | 1,439 | 4.89071 | 0.393443 | 0.044693 | 0.046927 | 0.035754 | 0.18771 | 0 | 0 | 0 | 0 | 0 | 0 | 0.018325 | 0.203614 | 1,439 | 44 | 100 | 32.704545 | 0.762653 | 0.029882 | 0 | 0 | 0 | 0 | 0.23652 | 0.071891 | 0 | 0 | 0 | 0 | 0 | 1 | 0.09375 | false | 0 | 0.125 | 0 | 0.28125 | 0.1875 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4492af236eff4aa2e983034e070713b3b4e8e677 | 3,076 | py | Python | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | play.py | brandoFranco/tictactoeOpenCV | 60eaa9c028cdfe13e68124de4037b39fcfa7432c | [
"MIT"
] | null | null | null | #
# Jogo da Velha utilizando Visao Computacional e Realidade aumentada.
# Definicao de funcoes auxiliares
#
import numpy as np
# Funcao que verifica se e o fim do jogo.
def won(tabuleiro):
if (tabuleiro[0] == tabuleiro[1] == tabuleiro[2] == 0):
return 1
elif (tabuleiro[0] == tabuleiro[3] == tabuleiro... | 28.220183 | 69 | 0.535761 | 486 | 3,076 | 3.390947 | 0.193416 | 0.118325 | 0.038835 | 0.058252 | 0.475121 | 0.455704 | 0.430825 | 0.169296 | 0.169296 | 0.069782 | 0 | 0.088889 | 0.28316 | 3,076 | 108 | 70 | 28.481481 | 0.658503 | 0.114434 | 0 | 0.3 | 0 | 0 | 0.005895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.0125 | 0 | 0.35 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4492b1a697142e5525ad3f5dfe95027989301553 | 1,407 | py | Python | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | 1 | 2020-11-12T04:26:30.000Z | 2020-11-12T04:26:30.000Z | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | null | null | null | src/main.py | TomoTom0/DiscordBot_Heroku_Stat.ink | 458ad08fb53a83b8fa96dad25fd603c9d14722b2 | [
"MIT"
] | 4 | 2020-11-14T14:53:30.000Z | 2021-07-05T11:36:59.000Z | #! /usr/bin/env python3
import discord
from discord.ext import commands
import subprocess
import re
import os, sys
import json
import basic
import datetime
import traceback
import iksm_discord
TOKEN = basic.DISCORD_TOKENS["0"]
startup_extensions = ["splat"] # cogの導入
description = f"stat.inkへ戦績自動アップロードを行うbotです。\nまずはs... | 25.125 | 86 | 0.702914 | 173 | 1,407 | 5.578035 | 0.560694 | 0.022798 | 0.026943 | 0.033161 | 0.037306 | 0 | 0 | 0 | 0 | 0 | 0 | 0.005222 | 0.183369 | 1,407 | 55 | 87 | 25.581818 | 0.834639 | 0.093817 | 0 | 0.162162 | 0 | 0.027027 | 0.266772 | 0.123125 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.27027 | 0 | 0.297297 | 0.081081 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
44932b7c61cbe0cddbdb7086477b87d6e2cfcb5d | 1,019 | py | Python | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | tls/Alerts.py | anuraagbaishya/tls1.3 | e86b575431694fe4ea987cdb89ef3438f7f28360 | [
"MIT"
] | null | null | null | from tls.CustomEnums import UInt8Enum
class Alert(Exception):
def __init__(self, level, description):
self.level = level
self.description = description
class AlertLevel(UInt8Enum):
warning = 1
fatal = 2
class AlertDescription(UInt8Enum):
close_notify = 0
unexpected_message = 10... | 23.697674 | 43 | 0.708538 | 115 | 1,019 | 5.965217 | 0.773913 | 0.026239 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.084416 | 0.244357 | 1,019 | 42 | 44 | 24.261905 | 0.806494 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.027778 | false | 0 | 0.027778 | 0 | 0.944444 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4494889d1e0dfebc5119191d7266469bf0009a3a | 21,922 | py | Python | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | ProjectSurveillance/views.py | psymen145/OVS-django-fe | 1823e8b42c17276d6b50a63dddd9b04a21c2038c | [
"MIT"
] | null | null | null | from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponse, JsonResponse, Http404
from django.contrib.auth.decorators import login_required
from django.core.exceptions import ObjectDoesNotExist
from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger
from ... | 42.238921 | 178 | 0.59251 | 2,526 | 21,922 | 4.998812 | 0.163104 | 0.019561 | 0.018294 | 0.013305 | 0.413954 | 0.370476 | 0.345688 | 0.311713 | 0.300467 | 0.282252 | 0 | 0.007151 | 0.32383 | 21,922 | 518 | 179 | 42.320463 | 0.844701 | 0.199845 | 0 | 0.493188 | 0 | 0 | 0.082006 | 0.026136 | 0 | 0 | 0 | 0 | 0 | 1 | 0.040872 | false | 0.00545 | 0.038147 | 0 | 0.125341 | 0.027248 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
4497d26024dfdc2730aaaf21bcb0e80805684f50 | 7,806 | py | Python | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | 1 | 2022-01-19T09:18:15.000Z | 2022-01-19T09:18:15.000Z | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | null | null | null | optur/storages/backends/mysql.py | ytsmiling/optur | cbc56c60b322ea764592f01758798f745199b455 | [
"MIT"
] | null | null | null | import time
from typing import Any, Callable, List, Optional
from google.protobuf.timestamp_pb2 import Timestamp
from optur.errors import NotFoundError
from optur.proto.study_pb2 import StudyInfo
from optur.proto.study_pb2 import Trial as TrialProto
from optur.storages.backends.backend import StorageBackend
def _re... | 37.893204 | 99 | 0.55816 | 837 | 7,806 | 5.056153 | 0.16129 | 0.036389 | 0.068053 | 0.065217 | 0.527647 | 0.442344 | 0.366257 | 0.289225 | 0.265359 | 0.208648 | 0 | 0.008772 | 0.342813 | 7,806 | 205 | 100 | 38.078049 | 0.816179 | 0.003459 | 0 | 0.443243 | 0 | 0 | 0.350051 | 0.048354 | 0 | 0 | 0 | 0.004878 | 0 | 1 | 0.064865 | false | 0.010811 | 0.064865 | 0.005405 | 0.178378 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
449998dcb11c693a0012e9960aaba5d1b4901d48 | 1,394 | py | Python | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 237 | 2018-02-04T19:13:31.000Z | 2022-03-26T03:06:07.000Z | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 551 | 2015-01-01T02:36:53.000Z | 2018-02-01T00:03:12.000Z | pymclevel/test/templevel.py | bennettdc/MCEdit-Unified | 90abfb170c65b877ac67193e717fa3a3ded635dd | [
"0BSD"
] | 97 | 2015-01-02T01:31:12.000Z | 2018-01-22T05:37:47.000Z | import atexit
import os
from os.path import join
import shutil
import tempfile
from pymclevel import mclevel
__author__ = 'Rio'
tempdir = os.path.join(tempfile.gettempdir(), "pymclevel_test")
if not os.path.exists(tempdir):
os.mkdir(tempdir)
def mktemp(suffix):
td = tempfile.mkdtemp(suffix, dir=tempdir)
... | 24.892857 | 63 | 0.601148 | 155 | 1,394 | 5.322581 | 0.367742 | 0.058182 | 0.043636 | 0.026667 | 0.106667 | 0.065455 | 0 | 0 | 0 | 0 | 0 | 0 | 0.29627 | 1,394 | 55 | 64 | 25.345455 | 0.840979 | 0 | 0 | 0.116279 | 0 | 0 | 0.040172 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.093023 | false | 0 | 0.139535 | 0 | 0.27907 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
449a09fa6cac651fdb37c7759dc5ded62edc72b2 | 5,157 | py | Python | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | dags/oss_know/libs/github/init_profiles.py | HexaemeronFsk/airflow-jobs | 674f4c15f6889653bf5578117b085ef794c7b3f4 | [
"Apache-2.0"
] | null | null | null | import itertools
from loguru import logger
from opensearchpy.helpers import scan as os_scan
from oss_know.libs.base_dict.opensearch_index import OPENSEARCH_INDEX_GITHUB_COMMITS, \
OPENSEARCH_INDEX_GITHUB_ISSUES_TIMELINE
from oss_know.libs.util.opensearch_api import OpensearchAPI
from oss_know.libs.util.base import ... | 46.459459 | 114 | 0.61528 | 620 | 5,157 | 4.806452 | 0.179032 | 0.051678 | 0.05906 | 0.073826 | 0.531208 | 0.455705 | 0.417785 | 0.415436 | 0.323826 | 0.267785 | 0 | 0.000549 | 0.293969 | 5,157 | 110 | 115 | 46.881818 | 0.817907 | 0.084545 | 0 | 0.166667 | 0 | 0 | 0.169864 | 0.047101 | 0 | 0 | 0 | 0 | 0 | 1 | 0.059524 | false | 0 | 0.071429 | 0 | 0.202381 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
922098fba0782c8cc0b4f538f40dc425f77aa77a | 1,457 | py | Python | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 6 | 2019-01-18T02:34:21.000Z | 2022-03-22T13:37:11.000Z | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 3 | 2019-01-18T02:44:13.000Z | 2019-12-16T14:32:55.000Z | image_extractor.py | satrajit-chatterjee/DeXpression-PyTorch | 00100385145485cf00b0a1cc53154db623c8a14f | [
"MIT"
] | 1 | 2022-03-14T03:29:47.000Z | 2022-03-14T03:29:47.000Z | import glob
from shutil import copyfile
emotions = ["neutral", "anger", "contempt", "disgust", "fear", "happy", "sadness", "surprise"] # Define emotion order
participants = glob.glob("source_emotion\\*") # Returns a list of all folders with participant numbers
for x in participants:
part = "%s" % x[-4:] ... | 60.708333 | 121 | 0.621139 | 178 | 1,457 | 4.983146 | 0.44382 | 0.045096 | 0.047351 | 0.024803 | 0.090192 | 0.090192 | 0.090192 | 0.090192 | 0.090192 | 0 | 0 | 0.010101 | 0.252574 | 1,457 | 23 | 122 | 63.347826 | 0.804408 | 0.284832 | 0 | 0 | 0 | 0 | 0.169492 | 0.070788 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.117647 | 0 | 0.117647 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92232435b0e0b41e1bc75ad98de9764440370bab | 13,549 | py | Python | resultr_format/__init__.py | haykkh/resultr-format | 8188a9b9a011899a58be54c8036edc9207e63948 | [
"MIT"
] | null | null | null | resultr_format/__init__.py | haykkh/resultr-format | 8188a9b9a011899a58be54c8036edc9207e63948 | [
"MIT"
] | null | null | null | resultr_format/__init__.py | haykkh/resultr-format | 8188a9b9a011899a58be54c8036edc9207e63948 | [
"MIT"
] | null | null | null | #!/usr/bin/env python3
"""
Makes UCL PHAS results better
"""
__author__ = "Hayk Khachatryan"
__version__ = "0.1.4.4"
__license__ = "MIT"
import argparse
import csv
import sys
import itertools
import pathlib as pathlib
import inquirer
#########################
# #
# #
# ... | 32.259524 | 114 | 0.518857 | 1,372 | 13,549 | 5.102041 | 0.186589 | 0.025714 | 0.003429 | 0.009429 | 0.532714 | 0.485857 | 0.447143 | 0.419857 | 0.393857 | 0.393857 | 0 | 0.012199 | 0.346594 | 13,549 | 419 | 115 | 32.336516 | 0.778493 | 0.303712 | 0 | 0.393258 | 0 | 0 | 0.148821 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.061798 | false | 0 | 0.039326 | 0 | 0.157303 | 0.016854 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
922361dea1d8463d9ea2c90bf6568fee4603b6fb | 14,689 | py | Python | ml_boilerplate/preprocess/generic_pipeline.py | mcraig2/ml_boilerplate | 5373f593b76fb115fb7a80dc9b87c633a3fcde48 | [
"MIT"
] | null | null | null | ml_boilerplate/preprocess/generic_pipeline.py | mcraig2/ml_boilerplate | 5373f593b76fb115fb7a80dc9b87c633a3fcde48 | [
"MIT"
] | null | null | null | ml_boilerplate/preprocess/generic_pipeline.py | mcraig2/ml_boilerplate | 5373f593b76fb115fb7a80dc9b87c633a3fcde48 | [
"MIT"
] | null | null | null | """ The Pipeline object in sci-kit learn is very useful for constructing
simple and complex modeling pipelines. However, out of the box it is
cumbersome to build pipelines that involve heterogenous data. Most
transformers assume that the entirety of the input datasets are of the
same dtype. So, how do y... | 38.054404 | 82 | 0.601675 | 1,738 | 14,689 | 4.975834 | 0.20023 | 0.014801 | 0.013529 | 0.019426 | 0.251156 | 0.192414 | 0.173797 | 0.16339 | 0.113552 | 0.088113 | 0 | 0.001848 | 0.300225 | 14,689 | 385 | 83 | 38.153247 | 0.839479 | 0.370754 | 0 | 0.156627 | 0 | 0 | 0.064557 | 0.007913 | 0 | 0 | 0 | 0 | 0 | 1 | 0.13253 | false | 0.006024 | 0.10241 | 0 | 0.421687 | 0.006024 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92248f27e069d6c0f5243445c0b5840242d3af37 | 455 | py | Python | provider/urls.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | null | null | null | provider/urls.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | 7 | 2020-05-14T23:03:48.000Z | 2022-02-10T08:49:02.000Z | provider/urls.py | Creationeers/Django_Barebone_Rest | f7e414575a5e6ff6324cef7e4ceccac0775eba78 | [
"Apache-2.0"
] | null | null | null | from django.urls import path, include
from rest_framework_simplejwt import views as jwt_views
from .views import (RegisterUserView)
AUTH_PATTERNS = [
path('token/', jwt_views.TokenObtainPairView.as_view(), name='token-obtain'),
path('token/refresh/', jwt_views.TokenRefreshView.as_view(), name='token-refresh')
... | 35 | 86 | 0.742857 | 56 | 455 | 5.857143 | 0.446429 | 0.073171 | 0.091463 | 0.091463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.112088 | 455 | 13 | 87 | 35 | 0.811881 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.272727 | 0 | 0.272727 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92278d4c99a794fc39f30624185168097ec4b202 | 1,400 | py | Python | url_fetcher.py | netarachelhershko/crawler | 22a5b41a768fae7415ad30cc6aec97063f2d07ce | [
"MIT"
] | null | null | null | url_fetcher.py | netarachelhershko/crawler | 22a5b41a768fae7415ad30cc6aec97063f2d07ce | [
"MIT"
] | null | null | null | url_fetcher.py | netarachelhershko/crawler | 22a5b41a768fae7415ad30cc6aec97063f2d07ce | [
"MIT"
] | null | null | null | from html_url_extractor import HtmlUrlExtractor
from request_getter import RequestGetter
from sitemap_fetcher import SitemapFetcher
from urlparse import urljoin
class UrlFetcher(object):
""" Handles url fetching from both html source and sitemaps """
def __init__(self, request_limit=10):
self.html_url... | 40 | 98 | 0.712143 | 176 | 1,400 | 5.375 | 0.318182 | 0.07611 | 0.05074 | 0.044397 | 0.065539 | 0.065539 | 0 | 0 | 0 | 0 | 0 | 0.001832 | 0.22 | 1,400 | 34 | 99 | 41.176471 | 0.864469 | 0.129286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.166667 | 0 | 0.458333 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9227e595e3c40b1cac183a271ef1634007be821b | 7,207 | py | Python | lib/db.py | IoTtalk/os-IoTtalk | 3c8609d10fcad040e3de727216507d0369be4cd0 | [
"MIT"
] | 2 | 2021-06-28T13:25:54.000Z | 2021-07-27T08:43:38.000Z | lib/db.py | IoTtalk/IoTtalk | 3c8609d10fcad040e3de727216507d0369be4cd0 | [
"MIT"
] | 1 | 2021-11-24T09:15:40.000Z | 2021-11-24T13:51:23.000Z | lib/db.py | IoTtalk/IoTtalk | 3c8609d10fcad040e3de727216507d0369be4cd0 | [
"MIT"
] | null | null | null |
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import Session
from ec_config import SQLITE_PATH, MYSQL_HOST, MYSQL_USER, MYSQL_PASS
Base = declarative_base()
engine = None
def connect(db_name):
global engine
if db_name.startswith('sqlite:'):... | 42.146199 | 122 | 0.686971 | 866 | 7,207 | 5.430716 | 0.169746 | 0.154795 | 0.095684 | 0.100999 | 0.630023 | 0.54646 | 0.470338 | 0.432915 | 0.375505 | 0.319371 | 0 | 0.007669 | 0.167754 | 7,207 | 170 | 123 | 42.394118 | 0.776425 | 0.04121 | 0 | 0.305344 | 0 | 0 | 0.143668 | 0.010603 | 0 | 0 | 0 | 0 | 0 | 1 | 0.022901 | false | 0.022901 | 0.053435 | 0 | 0.89313 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
922960e3fb0974ea30b7500861328def7470c6f3 | 783 | py | Python | PraticandoKivy/aula1.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | PraticandoKivy/aula1.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | PraticandoKivy/aula1.py | AlexandrePeBrito/Python | 79a09b1fb8e705dc7b6859d977c8916a2d0dd4d0 | [
"MIT"
] | null | null | null | from kivy.app import App
from kivy.uix.behaviors import button
from kivy.uix.button import Button
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.label import Label
class teste(App):
def build(self): #Interface
box = BoxLayout( orientation='vertical')
button=Butt... | 27.964286 | 86 | 0.630907 | 100 | 783 | 4.89 | 0.4 | 0.0818 | 0.08998 | 0.0818 | 0.09407 | 0 | 0 | 0 | 0 | 0 | 0 | 0.020942 | 0.268199 | 783 | 27 | 87 | 29 | 0.832461 | 0.108557 | 0 | 0 | 0 | 0 | 0.066187 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.05 | false | 0 | 0.25 | 0 | 0.4 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
922ad101e021f8b01709397177dc8e329b180e68 | 1,798 | py | Python | karbor-1.3.0/karbor/tests/unit/fake_operation_log.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 1 | 2021-05-23T01:48:25.000Z | 2021-05-23T01:48:25.000Z | karbor-1.3.0/karbor/tests/unit/fake_operation_log.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 5 | 2019-08-14T06:46:03.000Z | 2021-12-13T20:01:25.000Z | karbor-1.3.0/karbor/tests/unit/fake_operation_log.py | scottwedge/OpenStack-Stein | 7077d1f602031dace92916f14e36b124f474de15 | [
"Apache-2.0"
] | 2 | 2020-03-15T01:24:15.000Z | 2020-07-22T20:34:26.000Z | # Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# d... | 39.086957 | 78 | 0.669077 | 227 | 1,798 | 5.180617 | 0.656388 | 0.07483 | 0.095238 | 0.027211 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.105263 | 0.228587 | 1,798 | 45 | 79 | 39.955556 | 0.74261 | 0.303671 | 0 | 0 | 0 | 0 | 0.379143 | 0.232821 | 0 | 0 | 0 | 0 | 0 | 1 | 0.035714 | false | 0 | 0.071429 | 0 | 0.142857 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
922bba1b4a76b2a553064b7df320dfa6750e6b3c | 2,776 | py | Python | stage_check/stage_check/OutputRedundancyDatabaseConn.py | 128technology/stage_check | 2c9cdc491bafbcc6ed1a308093fe606dfd37da67 | [
"MIT"
] | 2 | 2020-05-26T15:13:47.000Z | 2021-04-29T18:14:21.000Z | stage_check/stage_check/OutputRedundancyDatabaseConn.py | 128technology/stage_check | 2c9cdc491bafbcc6ed1a308093fe606dfd37da67 | [
"MIT"
] | null | null | null | stage_check/stage_check/OutputRedundancyDatabaseConn.py | 128technology/stage_check | 2c9cdc491bafbcc6ed1a308093fe606dfd37da67 | [
"MIT"
] | null | null | null | """
"""
try:
from stage_check import Output
except ImportError:
import Output
class Base(Output.Base):
"""
"""
def __init__(self):
super().__init__()
self.__full_name = "OutputRedundancyDatabaseConn.Base"
self.status = Output.Status.OK
"""
no_node_data
"""
def proc_no_node_d... | 19.828571 | 60 | 0.482349 | 250 | 2,776 | 4.968 | 0.184 | 0.080515 | 0.112721 | 0.152979 | 0.599839 | 0.497585 | 0.433172 | 0.433172 | 0.433172 | 0.433172 | 0 | 0 | 0.434078 | 2,776 | 139 | 61 | 19.971223 | 0.790579 | 0.096902 | 0 | 0.523077 | 0 | 0 | 0.014865 | 0.014865 | 0 | 0 | 0 | 0 | 0 | 1 | 0.169231 | false | 0 | 0.046154 | 0 | 0.384615 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9231baa109d9435fe051070cbdf5afd97866fc14 | 5,134 | py | Python | graphlearn/python/nn/tf/app/link_predictor.py | gasdaf/graph-learn | 4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb | [
"Apache-2.0"
] | 1 | 2021-08-30T03:13:23.000Z | 2021-08-30T03:13:23.000Z | graphlearn/python/nn/tf/app/link_predictor.py | gasdaf/graph-learn | 4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb | [
"Apache-2.0"
] | null | null | null | graphlearn/python/nn/tf/app/link_predictor.py | gasdaf/graph-learn | 4a77b39be37bb7507f0e9fb5d4ed40ca623b2ceb | [
"Apache-2.0"
] | null | null | null | # Copyright 2020 Alibaba Group Holding Limited. 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 ... | 36.15493 | 80 | 0.653292 | 727 | 5,134 | 4.480055 | 0.308116 | 0.017194 | 0.021492 | 0.024562 | 0.211544 | 0.180841 | 0.16549 | 0.16549 | 0.16549 | 0.152287 | 0 | 0.013628 | 0.242501 | 5,134 | 141 | 81 | 36.411348 | 0.823862 | 0.410012 | 0 | 0.217949 | 0 | 0 | 0.005144 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.089744 | 0 | 0.24359 | 0.012821 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9231c9644edcc00c1f418f1e4bb4808e72a0d692 | 1,099 | py | Python | torchtext/functional.py | parmeet/text | 1fb2aedb48b5ecc5e81741e7c8504486b91655c6 | [
"BSD-3-Clause"
] | null | null | null | torchtext/functional.py | parmeet/text | 1fb2aedb48b5ecc5e81741e7c8504486b91655c6 | [
"BSD-3-Clause"
] | null | null | null | torchtext/functional.py | parmeet/text | 1fb2aedb48b5ecc5e81741e7c8504486b91655c6 | [
"BSD-3-Clause"
] | null | null | null | import torch
from torch import Tensor
from torch.nn.utils.rnn import pad_sequence
from typing import List, Optional
__all__ = [
'to_tensor',
'truncate',
'add_token',
]
def to_tensor(input: List[List[int]], padding_value: Optional[int] = None) -> Tensor:
if padding_value is None:
output = torc... | 23.891304 | 92 | 0.616015 | 148 | 1,099 | 4.425676 | 0.297297 | 0.085496 | 0.117557 | 0.079389 | 0.20916 | 0.20916 | 0.170992 | 0 | 0 | 0 | 0 | 0 | 0.264786 | 1,099 | 45 | 93 | 24.422222 | 0.810644 | 0 | 0 | 0.323529 | 0 | 0 | 0.023658 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.088235 | false | 0 | 0.117647 | 0 | 0.323529 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
92334af517a1402e63b55a3fe85da09a5408dc14 | 6,901 | py | Python | python/GafferScene/ScriptProcedural.py | PaulDoessel/gaffer-play | 8b72dabb388e12424c230acfb0bd209049b01bd6 | [
"BSD-3-Clause"
] | 1 | 2016-07-31T09:55:09.000Z | 2016-07-31T09:55:09.000Z | python/GafferScene/ScriptProcedural.py | Kthulhu/gaffer | 8995d579d07231988abc92c3ac2788c15c8bc75c | [
"BSD-3-Clause"
] | null | null | null | python/GafferScene/ScriptProcedural.py | Kthulhu/gaffer | 8995d579d07231988abc92c3ac2788c15c8bc75c | [
"BSD-3-Clause"
] | 1 | 2020-02-15T16:15:54.000Z | 2020-02-15T16:15:54.000Z | ##########################################################################
#
# Copyright (c) 2012, John Haddon. All rights reserved.
# Copyright (c) 2013, Image Engine Design Inc. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that ... | 30.946188 | 108 | 0.697 | 741 | 6,901 | 6.373819 | 0.384615 | 0.02075 | 0.014398 | 0.013339 | 0.132119 | 0.097819 | 0.097819 | 0.082998 | 0.052086 | 0.052086 | 0 | 0.002495 | 0.186929 | 6,901 | 222 | 109 | 31.085586 | 0.839244 | 0.252717 | 0 | 0.184615 | 0 | 0 | 0.161537 | 0.025146 | 0 | 0 | 0 | 0 | 0 | 1 | 0.076923 | false | 0 | 0.038462 | 0 | 0.215385 | 0.015385 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
923501e60d59a0a4529bbd2a7bc6300d6760071d | 5,881 | py | Python | tests/testapps/tests/test_models.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 5 | 2020-05-28T07:04:25.000Z | 2020-09-26T05:29:46.000Z | tests/testapps/tests/test_models.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | 1 | 2020-09-26T05:34:19.000Z | 2020-09-26T05:34:19.000Z | tests/testapps/tests/test_models.py | salexkidd/django-stackstore-model | fb0bb6431dd772a80b8c9d6d2b625eae69562fa9 | [
"MIT"
] | null | null | null | from django.conf import settings
from django.test import TestCase
from django.test.utils import override_settings
from copy import deepcopy
from .. import models as testapps_models
from .. import factories as testapps_factories
class StackStoreManagerTest(TestCase):
def test_delete(self):
with self.asser... | 33.605714 | 125 | 0.689679 | 669 | 5,881 | 5.70852 | 0.124066 | 0.123854 | 0.12045 | 0.080649 | 0.756743 | 0.676617 | 0.604609 | 0.568735 | 0.546216 | 0.519508 | 0 | 0.001759 | 0.226492 | 5,881 | 174 | 126 | 33.798851 | 0.837767 | 0 | 0 | 0.5 | 0 | 0 | 0.006972 | 0 | 0 | 0 | 0 | 0 | 0.195313 | 1 | 0.125 | false | 0 | 0.046875 | 0 | 0.1875 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9235169950838a2e17fec391196466cf8a8f8312 | 6,915 | py | Python | docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py | harishbalakrishnan3/Visual-Categorization | 28c5fc4695fca931bb2a49697cf1776dae1e8259 | [
"MIT"
] | null | null | null | docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py | harishbalakrishnan3/Visual-Categorization | 28c5fc4695fca931bb2a49697cf1776dae1e8259 | [
"MIT"
] | null | null | null | docs/_downloads/d6b1e39143e3255799ec607967cb9223/sample.py | harishbalakrishnan3/Visual-Categorization | 28c5fc4695fca931bb2a49697cf1776dae1e8259 | [
"MIT"
] | 1 | 2021-03-15T14:00:27.000Z | 2021-03-15T14:00:27.000Z | """
A sample python script that illustrates how to use the gcm module.
As a first step, we need to find the model's parameters - c,w,b (we will assume r = 2).
This is done using MLE. After we find the parameters, we use them to find the corresponding probabilities using the
functions from the gcm module.
The following ... | 36.015625 | 119 | 0.580188 | 856 | 6,915 | 4.630841 | 0.216122 | 0.063572 | 0.045409 | 0.008073 | 0.460394 | 0.437941 | 0.350656 | 0.350656 | 0.350656 | 0.350656 | 0 | 0.037197 | 0.12914 | 6,915 | 191 | 120 | 36.204188 | 0.621056 | 0.142299 | 0 | 0.382609 | 0 | 0 | 0.07844 | 0.034768 | 0 | 0 | 0 | 0 | 0 | 1 | 0.043478 | false | 0 | 0.034783 | 0.008696 | 0.121739 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
923986f9bd14fbab28d2e07beb811c4e8f7e82e8 | 2,656 | py | Python | 5-Detection/SSD/utils/config.py | MaybeS/mnist | d0aeafce97d7308dc84adbb6ad8e547776db0cd5 | [
"MIT"
] | 8 | 2020-07-17T00:30:20.000Z | 2021-06-15T07:14:55.000Z | 5-Detection/SSD/utils/config.py | MaybeS/mnist | d0aeafce97d7308dc84adbb6ad8e547776db0cd5 | [
"MIT"
] | null | null | null | 5-Detection/SSD/utils/config.py | MaybeS/mnist | d0aeafce97d7308dc84adbb6ad8e547776db0cd5 | [
"MIT"
] | 2 | 2019-07-02T04:20:21.000Z | 2019-07-16T06:51:13.000Z | import json
from typing import Tuple, List
class Config:
"""Config stack layers
- Default config
- Model default config
- Load from config file
- User argument config
"""
size = (300, 300)
ssd_attributes = ['feature_map', 'steps', 'sizes', 'aspect_ratios']
ssd = {
"aspec... | 27.381443 | 92 | 0.50753 | 311 | 2,656 | 4.250804 | 0.437299 | 0.054463 | 0.006808 | 0.029501 | 0.040091 | 0 | 0 | 0 | 0 | 0 | 0 | 0.05896 | 0.348645 | 2,656 | 96 | 93 | 27.666667 | 0.705202 | 0.067018 | 0 | 0.043478 | 0 | 0 | 0.111474 | 0.011433 | 0 | 0 | 0 | 0 | 0 | 1 | 0.057971 | false | 0 | 0.028986 | 0.014493 | 0.304348 | 0.014493 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
924075a62dfbc2884a5bde01f2ed7a11d0476d1c | 3,019 | py | Python | institutions/geo/models.py | sephcoster/mapusaurus | 5515f0d89ff7b7cbc796af25b3d45950c8ed882f | [
"CC0-1.0"
] | null | null | null | institutions/geo/models.py | sephcoster/mapusaurus | 5515f0d89ff7b7cbc796af25b3d45950c8ed882f | [
"CC0-1.0"
] | null | null | null | institutions/geo/models.py | sephcoster/mapusaurus | 5515f0d89ff7b7cbc796af25b3d45950c8ed882f | [
"CC0-1.0"
] | null | null | null | import json
from django.contrib.gis.db import models
class Geo(models.Model):
STATE_TYPE, COUNTY_TYPE, TRACT_TYPE, METRO_TYPE, MICRO_TYPE = range(1, 6)
METDIV_TYPE, = range(6, 7)
TYPES = [(STATE_TYPE, 'State'), (COUNTY_TYPE, 'County'),
(TRACT_TYPE, 'Census Tract'), (METRO_TYPE, 'Metropolitan... | 39.207792 | 77 | 0.532958 | 292 | 3,019 | 5.359589 | 0.308219 | 0.040256 | 0.092013 | 0.122684 | 0.376997 | 0.376997 | 0.376997 | 0.334824 | 0.334824 | 0.282428 | 0 | 0.009063 | 0.342166 | 3,019 | 76 | 78 | 39.723684 | 0.778953 | 0.031136 | 0 | 0.31746 | 0 | 0 | 0.13315 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.031746 | false | 0 | 0.031746 | 0 | 0.412698 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
924185f1b41185b073f99907c5347d88ec6b3ce8 | 2,798 | py | Python | phone_dic_accent_archive.py | arcman7/cmu_sphinx | 343ee1c08061d607cab6ba9ab738a1ac5a8b59d9 | [
"MIT"
] | null | null | null | phone_dic_accent_archive.py | arcman7/cmu_sphinx | 343ee1c08061d607cab6ba9ab738a1ac5a8b59d9 | [
"MIT"
] | null | null | null | phone_dic_accent_archive.py | arcman7/cmu_sphinx | 343ee1c08061d607cab6ba9ab738a1ac5a8b59d9 | [
"MIT"
] | null | null | null | import collections
import os
counter = collections.Counter()
dir_name = 'accent_archive'
text_file_name = 'reading-passage.txt'
print('creating dictionary from "{}"'.format(os.path.join(dir_name, 'AA_unpacked', text_file_name)))
# The Accent Archive uses the same text transcript for every audio recording
text ... | 38.328767 | 149 | 0.602931 | 405 | 2,798 | 4.024691 | 0.251852 | 0.081595 | 0.04908 | 0.051534 | 0.433742 | 0.390798 | 0.376687 | 0.314724 | 0.210429 | 0.210429 | 0 | 0.002745 | 0.218728 | 2,798 | 73 | 150 | 38.328767 | 0.742909 | 0.129736 | 0 | 0.245283 | 0 | 0 | 0.139535 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.018868 | 0.037736 | 0 | 0.037736 | 0.132075 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
9242da30eb8cc1d9931d3a3bfc2731f59cc10a24 | 3,367 | py | Python | Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py | sudoberlin/Computer_Vision_ND | 6211d0a610a26f6ed54116127588adb6ff4b7ba9 | [
"Apache-2.0"
] | 1 | 2020-08-09T19:49:38.000Z | 2020-08-09T19:49:38.000Z | Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py | sudoberlin/Computer_Vision_ND | 6211d0a610a26f6ed54116127588adb6ff4b7ba9 | [
"Apache-2.0"
] | null | null | null | Advanced Computer Vision & Deep Learning/Project-2_Image_Captioning/model.py | sudoberlin/Computer_Vision_ND | 6211d0a610a26f6ed54116127588adb6ff4b7ba9 | [
"Apache-2.0"
] | null | null | null | import torch
import torch.nn as nn
import torchvision.models as models
import torch.nn.functional as F
import math
class EncoderCNN(nn.Module):
def __init__(self, embed_size):
super(EncoderCNN, self).__init__()
resnet = models.resnet50(pretrained=True)
for param in resnet.parameters():
... | 38.701149 | 125 | 0.612712 | 409 | 3,367 | 4.858191 | 0.310513 | 0.045294 | 0.028183 | 0.025667 | 0.137896 | 0.080523 | 0.080523 | 0.05234 | 0.05234 | 0.05234 | 0 | 0.010638 | 0.302049 | 3,367 | 87 | 126 | 38.701149 | 0.834894 | 0.239085 | 0 | 0.039216 | 0 | 0.019608 | 0.043184 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.098039 | false | 0 | 0.098039 | 0 | 0.294118 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |