hexsha
stringlengths
40
40
size
int64
2
991k
ext
stringclasses
2 values
lang
stringclasses
1 value
max_stars_repo_path
stringlengths
4
208
max_stars_repo_name
stringlengths
6
106
max_stars_repo_head_hexsha
stringlengths
40
40
max_stars_repo_licenses
list
max_stars_count
int64
1
33.5k
max_stars_repo_stars_event_min_datetime
stringlengths
24
24
max_stars_repo_stars_event_max_datetime
stringlengths
24
24
max_issues_repo_path
stringlengths
4
208
max_issues_repo_name
stringlengths
6
106
max_issues_repo_head_hexsha
stringlengths
40
40
max_issues_repo_licenses
list
max_issues_count
int64
1
16.3k
max_issues_repo_issues_event_min_datetime
stringlengths
24
24
max_issues_repo_issues_event_max_datetime
stringlengths
24
24
max_forks_repo_path
stringlengths
4
208
max_forks_repo_name
stringlengths
6
106
max_forks_repo_head_hexsha
stringlengths
40
40
max_forks_repo_licenses
list
max_forks_count
int64
1
6.91k
max_forks_repo_forks_event_min_datetime
stringlengths
24
24
max_forks_repo_forks_event_max_datetime
stringlengths
24
24
content
stringlengths
2
991k
avg_line_length
float64
1
36k
max_line_length
int64
1
977k
alphanum_fraction
float64
0
1
624f9cff400c3a501cad696035e0b5be1c4fecb5
79
exs
Elixir
test/views/layout_view_test.exs
harmon25/Reactpxbp
7b895eb507d23c005229a2dee1ed078cc8291230
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
harmon25/Reactpxbp
7b895eb507d23c005229a2dee1ed078cc8291230
[ "MIT" ]
null
null
null
test/views/layout_view_test.exs
harmon25/Reactpxbp
7b895eb507d23c005229a2dee1ed078cc8291230
[ "MIT" ]
null
null
null
defmodule Reactpxbp.LayoutViewTest do use Reactpxbp.ConnCase, async: true end
26.333333
37
0.835443
624fd4fbf2465603c070f5007cf06059d06939e9
4,750
exs
Elixir
test/insert_ordered_set_test.exs
localshred/insert_ordered_set
2a3c9fca7e2d6e2cbb97101d502bec9458eac478
[ "MIT" ]
null
null
null
test/insert_ordered_set_test.exs
localshred/insert_ordered_set
2a3c9fca7e2d6e2cbb97101d502bec9458eac478
[ "MIT" ]
null
null
null
test/insert_ordered_set_test.exs
localshred/insert_ordered_set
2a3c9fca7e2d6e2cbb97101d502bec9458eac478
[ "MIT" ]
null
null
null
defmodule InsertOrderedSetTest do use ExUnit.Case doctest InsertOrderedSet alias InsertOrderedSet, as: S test "#new" do expected_map = %{ "post-item-415" => 0, "post-item-954" => 1, "post-item-599" => 2, "post-item-219" => 3, "post-item-779" => 4, "post-item-201" => 5, ...
21.788991
55
0.492421
624fd5227be413a157bc0344eef80a77fce98e98
82
exs
Elixir
test/offliner_web/views/page_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
test/offliner_web/views/page_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
test/offliner_web/views/page_view_test.exs
adigitalmonk/offliner-ex
fb5254992ece9f193683a5d7d6385c2f7b740fe3
[ "MIT" ]
null
null
null
defmodule OfflinerWeb.PageViewTest do use OfflinerWeb.ConnCase, async: true end
20.5
39
0.829268
624fd873817c891bd96f80d35a03aba2c0b00f56
1,388
ex
Elixir
lib/google_apis/generator.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
lib/google_apis/generator.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
lib/google_apis/generator.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2017 Google Inc. # # 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, ...
28.916667
76
0.674352
624ffa7e7b984ee598a0dca4d4341685a2f9624e
1,122
ex
Elixir
lib/pexels/color.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
5
2021-05-10T12:10:02.000Z
2021-05-24T08:15:42.000Z
lib/pexels/color.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
null
null
null
lib/pexels/color.ex
factor18/pexels
c6655f7dd0e58a9a06b6b7a02e74b3f009cd7b01
[ "MIT" ]
1
2021-05-13T16:49:17.000Z
2021-05-13T16:49:17.000Z
defmodule Pexels.Color do @moduledoc ~S""" Desired photo color. Supported colors: red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white or any hexidecimal color code (eg. #ffffff). ## Examples iex> Pexels.Color.red() "red" """ @behaviour Construct.Type @co...
22.897959
149
0.576649
624ffeeeb77c06bb15802c8e66bb7026626f3cdf
1,177
exs
Elixir
test_app/test/absinthe_test_app_web/schema/subscritpion_test.exs
loldlm1/anise
5208510a37ef423b402f86fe753f4d5ba7c88483
[ "MIT" ]
null
null
null
test_app/test/absinthe_test_app_web/schema/subscritpion_test.exs
loldlm1/anise
5208510a37ef423b402f86fe753f4d5ba7c88483
[ "MIT" ]
null
null
null
test_app/test/absinthe_test_app_web/schema/subscritpion_test.exs
loldlm1/anise
5208510a37ef423b402f86fe753f4d5ba7c88483
[ "MIT" ]
1
2022-03-06T13:43:06.000Z
2022-03-06T13:43:06.000Z
defmodule AbsintheTestApp.SubscriptionTest do use AbsintheTestAppWeb.SubscriptionCase @mutation """ mutation createUser($email: String, $name: String){ createUser(email: $email, name: $name){ email } } """ @subscription """ subscription { userAdded { name } } """ de...
25.586957
83
0.574342
625037e24c5987bc719dc909fe278221e735d1c9
192
exs
Elixir
backend/apps/students_crm_v2/config/test.exs
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
backend/apps/students_crm_v2/config/test.exs
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
50
2018-07-29T09:17:35.000Z
2019-02-26T05:23:34.000Z
backend/apps/students_crm_v2/config/test.exs
KyivKrishnaAcademy/students_crm_v2
e0ad9b3c5e52dfef5ab8f9179f3c593f935786e6
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :students_crm_v2, StudentsCrmV2.Repo, adapter: Ecto.Adapters.Postgres, database: "students_crm_v2_test", pool: Ecto.Adapters.SQL.Sandbox
24
44
0.791667
625046f7781f6f0a21f0f7cb7e4bb7acf8fcba07
264
ex
Elixir
lib/valvex/api/global_achievements.ex
aguxez/kronos
feb2aef994b609efee6122c917ebeaca73da648e
[ "MIT" ]
null
null
null
lib/valvex/api/global_achievements.ex
aguxez/kronos
feb2aef994b609efee6122c917ebeaca73da648e
[ "MIT" ]
null
null
null
lib/valvex/api/global_achievements.ex
aguxez/kronos
feb2aef994b609efee6122c917ebeaca73da648e
[ "MIT" ]
null
null
null
defmodule Valvex.Api.GlobalAchievements do @moduledoc false alias Valvex.HTTP @v "v0002" def percentages(gameid) do HTTP.get_body("http://api.steampowered.com/ISteamUserStats/GetGlobalAchievementPercentagesForApp/#{@v}/?gameid=#{gameid}") end end
22
126
0.757576
625073ca269e7f160d2afca8f123c8fb4bb87266
2,450
exs
Elixir
config/dev.exs
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
2
2019-08-29T19:35:01.000Z
2019-08-31T04:08:03.000Z
config/dev.exs
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
1
2021-03-09T16:10:46.000Z
2021-03-09T16:10:46.000Z
config/dev.exs
barboza/chatter
16a56aea83eceb0fd1a709f3bc8d3a24812996cd
[ "MIT" ]
null
null
null
use Mix.Config # Configure your database config :chatter, Chatter.Repo, username: "postgres", password: "postgres", database: "chatter_dev", hostname: "localhost", show_sensitive_data_on_connection_error: true, pool_size: 10 signing_salt = System.get_env("LIVE_VIEW_SALT") || raise """ environmen...
27.840909
70
0.68898
625080ff23ce8596c2fcc89fea3f2bd68af704c9
1,248
ex
Elixir
server/test/support/conn_case.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
3
2020-01-23T06:37:18.000Z
2020-12-05T08:31:00.000Z
server/test/support/conn_case.ex
blogsley/blogsley-absinthe
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
16
2020-04-04T05:13:52.000Z
2022-03-31T11:19:20.000Z
server/test/support/conn_case.ex
blogsley/blogsley
7266f80a0638f8c30c37b37296ba5d78dcf8fb8b
[ "MIT" ]
null
null
null
defmodule BlogsleyWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if t...
28.363636
70
0.725962
6250aef0fefb47524db6ec3f327f6406691bc3f9
3,901
exs
Elixir
apps/mishka_user/test/acl/permission_test.exs
mojtaba-naserei/mishka-cms
1f31f61347bab1aae6ba0d47c5515a61815db6c9
[ "Apache-2.0" ]
35
2021-06-26T09:05:50.000Z
2022-03-30T15:41:22.000Z
apps/mishka_user/test/acl/permission_test.exs
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
101
2021-01-01T09:54:07.000Z
2022-03-28T10:02:24.000Z
apps/mishka_user/test/acl/permission_test.exs
iArazar/mishka-cms
8b579101d607d91e80834527c1508fe5f4ceefef
[ "Apache-2.0" ]
8
2021-01-17T17:08:07.000Z
2022-03-11T16:12:06.000Z
defmodule MishkaUserTest.Acl.PermissionTest do use ExUnit.Case, async: true doctest MishkaDatabase alias MishkaUser.Acl.{Role, Permission} setup do :ok = Ecto.Adapters.SQL.Sandbox.checkout(MishkaDatabase.Repo) end describe "Happy | User Permission Test with users DB (▰˘◡˘▰)" do test "create a per...
50.662338
186
0.672392
6250bcd82b26dcf287db31171afb8478c7287dc5
2,378
exs
Elixir
test/blog/web/controllers/post_controller_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
2
2017-06-08T23:28:13.000Z
2017-06-08T23:28:16.000Z
test/blog/web/controllers/post_controller_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
null
null
null
test/blog/web/controllers/post_controller_test.exs
ench0/blog
04f7df2357b13dddee9d82cd1c35bbd0ce9618a9
[ "MIT" ]
null
null
null
defmodule Blog.Web.PostControllerTest do use Blog.Web.ConnCase alias Blog.Base @create_attrs %{active: true, slug: "some slug", title: "some title"} @update_attrs %{active: false, slug: "some updated slug", title: "some updated title"} @invalid_attrs %{active: nil, slug: nil, title: nil} def fixture(:pos...
33.971429
94
0.671573
6250cd78c199f167e848a536194da67f816015e2
491
ex
Elixir
lib/builder/log.ex
tinfoil/burrito
018dd1933b04933c0cf472938f76175b5650ea12
[ "MIT" ]
192
2021-10-29T22:37:08.000Z
2022-03-31T23:07:36.000Z
lib/builder/log.ex
tinfoil/burrito
018dd1933b04933c0cf472938f76175b5650ea12
[ "MIT" ]
25
2021-11-02T13:12:43.000Z
2022-03-31T17:18:38.000Z
lib/builder/log.ex
tinfoil/burrito
018dd1933b04933c0cf472938f76175b5650ea12
[ "MIT" ]
9
2021-10-31T13:43:54.000Z
2022-03-15T02:49:15.000Z
defmodule Burrito.Builder.Log do def info(type, message) do IO.puts(get_prefix(type) <> message) end def warning(type, message) do IO.puts(:stderr, IO.ANSI.yellow() <> get_prefix(type) <> message <> IO.ANSI.reset()) end def error(type, message) do IO.puts(:stderr, IO.ANSI.red() <> get_prefix(typ...
22.318182
88
0.590631
62513d0fa5baf387d66c8e558e282d98138d373e
2,436
exs
Elixir
examples/vision/cifar10.exs
t-rutten/axon
1ab69552e194bdaa4e5bc85ca116966be872f072
[ "Apache-2.0" ]
2
2021-04-19T19:38:36.000Z
2021-04-19T19:38:42.000Z
examples/vision/cifar10.exs
t-rutten/axon
1ab69552e194bdaa4e5bc85ca116966be872f072
[ "Apache-2.0" ]
null
null
null
examples/vision/cifar10.exs
t-rutten/axon
1ab69552e194bdaa4e5bc85ca116966be872f072
[ "Apache-2.0" ]
null
null
null
Mix.install([ {:axon, "~> 0.1.0-dev", github: "elixir-nx/axon"}, {:exla, github: "elixir-nx/exla", sparse: "exla"}, {:nx, "~> 0.1.0-dev", github: "elixir-nx/nx", sparse: "nx", override: true}, {:scidata, "~> 0.1.1"} ]) # Configure default platform with accelerator precedence as tpu > cuda > rocm > host EXLA.se...
27.681818
92
0.639984
625147bf6b1e9b84ebb8d0bdbdd41ee355de2701
904
ex
Elixir
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/billing_budgets/lib/google_api/billing_budgets/v1beta1/metadata.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2020 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
33.481481
74
0.764381
625163735cf2829abe2f0f89d2c710209a150fee
356
exs
Elixir
config/config.exs
timbuckley/ecto_paging
1d0dc9e2b5158e3948d03951f08f62e4a511b6ad
[ "MIT" ]
13
2016-11-25T14:59:28.000Z
2020-01-16T23:23:25.000Z
config/config.exs
timbuckley/ecto_paging
1d0dc9e2b5158e3948d03951f08f62e4a511b6ad
[ "MIT" ]
22
2016-11-17T09:51:12.000Z
2020-03-03T15:32:04.000Z
config/config.exs
timbuckley/ecto_paging
1d0dc9e2b5158e3948d03951f08f62e4a511b6ad
[ "MIT" ]
7
2016-11-17T14:10:26.000Z
2020-03-03T15:27:35.000Z
use Mix.Config config :ecto_paging, Ecto.Paging.TestRepo, adapter: Ecto.Adapters.Postgres, pool: Ecto.Adapters.SQL.Sandbox, database: "ecto_paging_test", username: "postgres", password: "postgres", hostname: "localhost" config :ecto_paging, ecto_repos: [Ecto.Paging.TestRepo] config :logger, level: :error...
23.733333
55
0.752809
625163ff5ceaa281ecae8f7c4ce2ba4c9ef0bcba
129
ex
Elixir
lib/absinthe/blueprint/input/raw_value.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
null
null
null
lib/absinthe/blueprint/input/raw_value.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
2
2018-08-02T13:35:38.000Z
2018-08-02T13:36:42.000Z
lib/absinthe/blueprint/input/raw_value.ex
hauptbenutzer/absinthe
f1d76e5c249ca337187971b0c96b1870f53716ed
[ "MIT" ]
1
2018-11-16T02:34:40.000Z
2018-11-16T02:34:40.000Z
defmodule Absinthe.Blueprint.Input.RawValue do @moduledoc false @enforce_keys [:content] defstruct [ :content ] end
14.333333
46
0.72093
625199285b38a93b7591a0e7ed9e4675f4226660
607
ex
Elixir
lib/postoffice_web/views/api/topic_view.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
lib/postoffice_web/views/api/topic_view.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
lib/postoffice_web/views/api/topic_view.ex
ethervoid/postoffice
5cb275ed5e18ec8ff91523013c3b4215fe41a53f
[ "Apache-2.0" ]
null
null
null
defmodule PostofficeWeb.Api.TopicView do use PostofficeWeb, :view alias PostofficeWeb.Api.TopicView def render("show.json", %{topic: topic}) do %{data: render_one(topic, TopicView, "topic.json")} end def render("show.json", %{changeset: changeset}) do %{data: render_one(changeset, TopicView, "error....
23.346154
81
0.662273
6251b9d34d5a1acf6d788ccc00a7a93322974a99
579
ex
Elixir
lib/aws_ingress_operator/security_groups.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
lib/aws_ingress_operator/security_groups.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
lib/aws_ingress_operator/security_groups.ex
bennyhat/aws_ingress_operator
81a1c873cbea95a8ba721ac1147c421dcaf1de45
[ "MIT" ]
null
null
null
defmodule AwsIngressOperator.SecurityGroups do @moduledoc """ A repository pattern wrapper for a Security Group inventory """ alias AwsIngressOperator.Schemas.SecurityGroup alias AwsIngressOperator.ExAws.EC2 def list(filter \\ []) do sgs = EC2.SecurityGroup.describe_security_groups!(filter) ...
24.125
61
0.66494
6251c8e0877630dee06a88ace7337c32220b4ab8
168
exs
Elixir
test/api_test.exs
vlamy/baijiu-tiles
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
3
2018-01-26T13:31:43.000Z
2021-02-19T08:19:25.000Z
test/api_test.exs
vlamy/baijiu
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
null
null
null
test/api_test.exs
vlamy/baijiu
92b4b4a180df1c4a1e59c9263e5924c561c0b641
[ "BSD-3-Clause" ]
null
null
null
defmodule BaijiuTest.API do use ExUnit.Case use Maru.Test doctest Baijiu.API test "/" do assert %{"status" => "ok"} = get("/") |> json_response end end
15.272727
58
0.630952
6251d6a25a4da810293e507072946f86d4dd7f48
5,389
exs
Elixir
test/absinthe/schema/type_system_directive_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
test/absinthe/schema/type_system_directive_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
test/absinthe/schema/type_system_directive_test.exs
pulkit110/absinthe
fa2060307a401d0943bde72d08267602e4027889
[ "MIT" ]
null
null
null
defmodule Absinthe.Schema.TypeSystemDirectiveTest do use ExUnit.Case, async: true defmodule WithTypeSystemDirective do use Absinthe.Schema.Prototype input_object :complex do field :str, :string end directive :feature do arg :name, non_null(:string) arg :number, :integer ar...
23.635965
124
0.622379
6251e473cdbba852abb6d68041d78626c8eea179
3,636
exs
Elixir
test/jsonapi_issue_134_web/controllers/comment_controller_test.exs
MarkESDR/jsonapi_issue_134
6a0d41b1521a8bd9a21442ab6352b12139fb8c1a
[ "MIT" ]
null
null
null
test/jsonapi_issue_134_web/controllers/comment_controller_test.exs
MarkESDR/jsonapi_issue_134
6a0d41b1521a8bd9a21442ab6352b12139fb8c1a
[ "MIT" ]
null
null
null
test/jsonapi_issue_134_web/controllers/comment_controller_test.exs
MarkESDR/jsonapi_issue_134
6a0d41b1521a8bd9a21442ab6352b12139fb8c1a
[ "MIT" ]
null
null
null
defmodule JsonapiIssue134Web.CommentControllerTest do use JsonapiIssue134Web.ConnCase alias JsonapiIssue134.Content alias JsonapiIssue134.Content.Comment @post_attrs %{ name: "some post" } @create_attrs %{ body: "some body" } @update_attrs %{ body: "some updated body" } @invalid_attrs ...
29.803279
100
0.610011
62520226b03293d7f91494243a976e94b5a615cc
61
ex
Elixir
lib/booking_web/views/page_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
lib/booking_web/views/page_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
2
2021-03-10T16:49:07.000Z
2021-05-11T12:50:22.000Z
lib/booking_web/views/page_view.ex
mattiaslundberg/booking
469d1469f306b2ab62ce1ee971a825101af6fc7e
[ "MIT" ]
null
null
null
defmodule BookingWeb.PageView do use BookingWeb, :view end
15.25
32
0.803279
62520a82af4a5084d15fdb97addf940dc4b0dfc4
1,069
ex
Elixir
test/support/conn_case.ex
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
1
2016-02-04T17:16:54.000Z
2016-02-04T17:16:54.000Z
test/support/conn_case.ex
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
null
null
null
test/support/conn_case.ex
sysdia-solutions/basic_books
251dae71d1dc3d5516464e38e0efede1af9949fe
[ "MIT" ]
null
null
null
defmodule BasicBooks.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also imports other functionality to make it easier to build and query models. Finally, if the test case interacts with the...
24.860465
69
0.707203
625211e2bf89b7d08e5ca841cc9b808cc9dd88ed
1,483
ex
Elixir
apps/ewallet_api/lib/ewallet_api/v1/sockets/socket.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/sockets/socket.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
apps/ewallet_api/lib/ewallet_api/v1/sockets/socket.ex
jimpeebles/ewallet
ad4a9750ec8dc5adc4c0dfe6c22f0ef760825405
[ "Apache-2.0" ]
null
null
null
# Copyright 2018 OmiseGO Pte Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writi...
34.488372
95
0.744437
6252338b27a38b42c9a86ce2933cb791bcb08dab
350
exs
Elixir
priv/repo/seeds.exs
raincrash/hackton
f85f049c79df25039d2c04e174d8a7b8fb946942
[ "MIT" ]
1
2016-03-15T17:50:12.000Z
2016-03-15T17:50:12.000Z
priv/repo/seeds.exs
raincrash/hackton
f85f049c79df25039d2c04e174d8a7b8fb946942
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
raincrash/hackton
f85f049c79df25039d2c04e174d8a7b8fb946942
[ "MIT" ]
null
null
null
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Hackton.Repo.insert!(%Hackton.SomeModel{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) as they will ...
29.166667
61
0.705714
62526947f2ba00394cbf0c6c8ba7ce177743eacb
3,403
exs
Elixir
backend/test/functional_vote/polls_test.exs
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
10
2020-03-13T12:56:06.000Z
2021-06-28T22:13:27.000Z
backend/test/functional_vote/polls_test.exs
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
132
2020-02-08T02:01:03.000Z
2022-02-18T20:38:38.000Z
backend/test/functional_vote/polls_test.exs
maxrchung/FunctionalVote
95c54c7614a74718e14c6fe74fd0bd4e84f85444
[ "MIT" ]
1
2021-03-17T06:22:55.000Z
2021-03-17T06:22:55.000Z
defmodule FunctionalVote.PollsTest do use FunctionalVote.DataCase, async: true alias FunctionalVote.Polls describe "polls" do alias FunctionalVote.Polls.Poll @valid_attrs %{"choices" => ["a", "b", "c"], "title" => "test"} @empty_title_attrs %{"choices" => ["a", "b", "c"], "title" => ""} @no_tit...
43.628205
463
0.631795
6252d2a3f9fbfcc4db0650eb78fb59b27396c9d7
1,931
ex
Elixir
lib/mix/tasks/farmbot/firmware/slack.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
lib/mix/tasks/farmbot/firmware/slack.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
null
null
null
lib/mix/tasks/farmbot/firmware/slack.ex
pdgonzalez872/farmbot_os
a444248f05ee8f4fe57f6a4865b942131960f76c
[ "MIT" ]
1
2020-12-16T16:39:32.000Z
2020-12-16T16:39:32.000Z
defmodule Mix.Tasks.Farmbot.Firmware.Slack do @moduledoc "Upload a firmware to slack." @shortdoc "Upload firmware to slack." use Mix.Task import Mix.Tasks.Farmbot.Env @dialyzer {[:no_return], [run: 1]} def run(opts) do token = slack_token() {keywords, comment, _} = opts |> OptionParser.pars...
31.145161
81
0.619368
6252d699fde2c7e78ff3769d29f8878c53ec6c15
619
ex
Elixir
server/lib/connect_web/guardian.ex
rafbgarcia/conn
e23e09a8be900bc72c083780693d0fe5bd7cbd99
[ "MIT" ]
null
null
null
server/lib/connect_web/guardian.ex
rafbgarcia/conn
e23e09a8be900bc72c083780693d0fe5bd7cbd99
[ "MIT" ]
3
2021-04-27T14:11:46.000Z
2021-04-27T16:00:42.000Z
server/lib/connect_web/guardian.ex
rafbgarcia/conn
e23e09a8be900bc72c083780693d0fe5bd7cbd99
[ "MIT" ]
null
null
null
defmodule ConnectWeb.Guardian do use Guardian, otp_app: :connect def subject_for_token(account, _claims) do subject = encode(account) {:ok, subject} end def resource_from_claims(claims) do subject = claims["sub"] [server_id, user_id] = decode(subject) Connect.get_user(server_id, String.to...
22.925926
59
0.667205
6252e2906927476715972d40b9e14bee749c78b1
1,963
exs
Elixir
incomplete/config/dev.exs
PJUllrich/e2e-testing-with-cypress
19806edb347d829eef1fd13079ceb905fc2e4a39
[ "MIT" ]
2
2019-11-03T20:42:36.000Z
2019-12-03T14:12:52.000Z
incomplete/config/dev.exs
PJUllrich/e2e-testing-with-cypress
19806edb347d829eef1fd13079ceb905fc2e4a39
[ "MIT" ]
1
2021-03-09T20:17:35.000Z
2021-03-09T20:17:35.000Z
incomplete/config/dev.exs
PJUllrich/e2e-testing-with-cypress
19806edb347d829eef1fd13079ceb905fc2e4a39
[ "MIT" ]
null
null
null
use Mix.Config # For development, we disable any cache and enable # debugging and code reloading. # # The watchers configuration can be used to run external # watchers to your application. For example, we use it # with webpack to recompile .js and .css sources. config :e2e_with_cypress, E2eWithCypressWeb.Endpoint, h...
28.867647
68
0.691798
6252e9ec1a526d05e4ac7f0e115c82becfbb1880
1,798
exs
Elixir
test/foretoken_test.exs
skirino/foretoken
5ad390c786f294d91fb801a70462625ae2132c90
[ "MIT" ]
4
2018-05-29T08:14:50.000Z
2020-01-14T04:37:10.000Z
test/foretoken_test.exs
skirino/foretoken
5ad390c786f294d91fb801a70462625ae2132c90
[ "MIT" ]
null
null
null
test/foretoken_test.exs
skirino/foretoken
5ad390c786f294d91fb801a70462625ae2132c90
[ "MIT" ]
null
null
null
defmodule ForetokenTest do use ExUnit.Case defp take(b) do Foretoken.take(b, 100, 5) end test "take/5" do Enum.each(1..5, fn _ -> assert take("b1") == :ok end) {:error, {:not_enough_token, dur}} = take("b1") :timer.sleep(dur) assert take("b1") == :ok {:error, {:not_enough_tok...
24.297297
105
0.614572
625318caf0dd164c01afba49afa050f4a28f3367
300
exs
Elixir
priv/repo/migrations/20181127230242_create_links.exs
robotpistol/golixir
6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0
[ "MIT" ]
null
null
null
priv/repo/migrations/20181127230242_create_links.exs
robotpistol/golixir
6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0
[ "MIT" ]
null
null
null
priv/repo/migrations/20181127230242_create_links.exs
robotpistol/golixir
6a9db6177ccfdcd7960588cfbae2b3fcfff3fee0
[ "MIT" ]
null
null
null
defmodule Golixir.Repo.Migrations.CreateLinks do use Ecto.Migration def change do create table(:links) do add :name, :string add :uri, :string add :hits, :integer add :description, :text timestamps() end create unique_index(:links, [:name]) end end
17.647059
48
0.636667
625341ccc5b1b8e19ca4051f84bc1f59b74f07a3
1,734
ex
Elixir
clients/content/lib/google_api/content/v2/model/orders_ship_line_items_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_ship_line_items_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
null
null
null
clients/content/lib/google_api/content/v2/model/orders_ship_line_items_response.ex
MasashiYokota/elixir-google-api
975dccbff395c16afcb62e7a8e411fbb58e9ab01
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.111111
190
0.72549
625357a6ef48e525ff1082ada27670448a068446
7,336
exs
Elixir
test/glimesh_web/live/user_live/stream_test.exs
mfaqiri/glimesh.tv
59eeb56bb0a5574b7b6168d9487660f41a457fd4
[ "MIT" ]
null
null
null
test/glimesh_web/live/user_live/stream_test.exs
mfaqiri/glimesh.tv
59eeb56bb0a5574b7b6168d9487660f41a457fd4
[ "MIT" ]
null
null
null
test/glimesh_web/live/user_live/stream_test.exs
mfaqiri/glimesh.tv
59eeb56bb0a5574b7b6168d9487660f41a457fd4
[ "MIT" ]
null
null
null
defmodule GlimeshWeb.UserLive.StreamTest do use GlimeshWeb.ConnCase import Glimesh.AccountsFixtures import Phoenix.LiveViewTest describe "Stream Page" do setup do streamer = streamer_fixture() %{ channel: streamer.channel, streamer: streamer } end test "shows a ...
30.065574
101
0.620093
62537361a887ff5b341a355ee6007fdbaf8b7f2c
1,578
ex
Elixir
web/web.ex
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
web/web.ex
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
web/web.ex
KazuCocoa/ex_torello
187d814094f79a3d99bca2746683804333d40dfe
[ "MIT" ]
null
null
null
defmodule ExTrello.Web do @moduledoc """ A module that keeps using definitions for controllers, views and so on. This can be used in your application as: use ExTrello.Web, :controller use ExTrello.Web, :view The definitions below will be executed for every view, controller, etc, so keep them ...
20.230769
88
0.658428
62537de30906b7519af349b44c9d4d7393a8202a
10,012
ex
Elixir
lib/aoc/day04.ex
CraigCottingham/advent-of-code-2018
3004abc80055e419eaae4751b0014fd04721acda
[ "Apache-2.0" ]
2
2018-12-04T19:55:11.000Z
2019-05-14T04:43:53.000Z
lib/aoc/day04.ex
CraigCottingham/advent-of-code-2018
3004abc80055e419eaae4751b0014fd04721acda
[ "Apache-2.0" ]
null
null
null
lib/aoc/day04.ex
CraigCottingham/advent-of-code-2018
3004abc80055e419eaae4751b0014fd04721acda
[ "Apache-2.0" ]
null
null
null
defmodule AoC.Day04 do @moduledoc false def part_1 do File.stream!("data/day04-input.txt") |> Enum.map(&String.trim/1) |> Enum.sort() |> Enum.map(&parse_input_line!/1) |> Enum.map(&adjust_date/1) |> Enum.map(&clean_events/1) |> Enum.chunk_while([], &chunk_by_date/2, &after_chunk_by_date...
56.564972
175
0.594187
6253b3394b56b0f30a10a21908d6d1ea8651fd67
17,086
exs
Elixir
lib/eex/test/eex_test.exs
sjBao/elixir
52ee3ac163098f91f15dcb1360ae801a98453a77
[ "Apache-2.0" ]
1
2020-01-14T18:44:56.000Z
2020-01-14T18:44:56.000Z
lib/eex/test/eex_test.exs
sjBao/elixir
52ee3ac163098f91f15dcb1360ae801a98453a77
[ "Apache-2.0" ]
null
null
null
lib/eex/test/eex_test.exs
sjBao/elixir
52ee3ac163098f91f15dcb1360ae801a98453a77
[ "Apache-2.0" ]
null
null
null
Code.require_file("test_helper.exs", __DIR__) require EEx defmodule EExTest.Compiled do def before_compile do {__ENV__.line, hd(tl(get_stacktrace()))} end EEx.function_from_string(:def, :string_sample, "<%= a + b %>", [:a, :b]) filename = Path.join(__DIR__, "fixtures/eex_template_with_bindings.eex") E...
24.064789
110
0.536697
6253f6b28fe7407656ddddb42c4c22d5202f2010
191
ex
Elixir
test/dummy/lib/dummy.ex
amorphid/exlager_unit
1436eb7793977c1ba75599fedcb43e23d0d03c50
[ "Apache-2.0" ]
null
null
null
test/dummy/lib/dummy.ex
amorphid/exlager_unit
1436eb7793977c1ba75599fedcb43e23d0d03c50
[ "Apache-2.0" ]
null
null
null
test/dummy/lib/dummy.ex
amorphid/exlager_unit
1436eb7793977c1ba75599fedcb43e23d0d03c50
[ "Apache-2.0" ]
null
null
null
defmodule Dummy do @moduledoc """ Documentation for Dummy. """ @doc """ Hello world. ## Examples iex> Dummy.hello :world """ def hello do :world end end
10.052632
26
0.554974
625419ddb72905d53502a8f672e2982e94c1c1fc
569
exs
Elixir
test/list_register.exs
pguillory/hypex
bc6e315ea2471fc0604c81589984c7ab82c0088c
[ "MIT" ]
14
2018-01-02T15:35:36.000Z
2021-08-30T21:41:55.000Z
test/list_register.exs
pguillory/hypex
bc6e315ea2471fc0604c81589984c7ab82c0088c
[ "MIT" ]
2
2019-04-26T03:39:01.000Z
2020-03-26T06:22:06.000Z
test/list_register.exs
pguillory/hypex
bc6e315ea2471fc0604c81589984c7ab82c0088c
[ "MIT" ]
2
2018-06-22T00:50:41.000Z
2020-03-25T18:28:23.000Z
defmodule ListRegister do @behaviour Hypex.Register # initialize def init(width), do: Enum.reduce(1..:erlang.bsl(1, width), [], fn(_, l) -> [ 0 | l ] end) # no-op def from_list(bits), do: bits # no-op def to_list(registers), do: registers # value retrieval def get_value(registers, idx, _width), ...
21.074074
74
0.671353
62544dede957f495ac4e37bb29450a2114356756
271
ex
Elixir
lib/elixir_boilerplate.ex
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
854
2019-03-18T19:13:58.000Z
2022-03-30T01:47:30.000Z
lib/elixir_boilerplate.ex
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
167
2019-03-18T21:23:28.000Z
2022-03-31T19:07:34.000Z
lib/elixir_boilerplate.ex
Amirhat/test-elixir-boilerplate
2429a061d0b7b51ac838d15ffc629a667ed9e941
[ "BSD-3-Clause" ]
63
2019-03-28T14:19:11.000Z
2022-02-15T17:22:14.000Z
defmodule ElixirBoilerplate do @moduledoc """ ElixirBoilerplate keeps the contexts that define your domain and business logic. Contexts are also responsible for managing your data, regardless if it comes from the database, an external API or others. """ end
27.1
66
0.771218
62545c3467588fde506865744e313dac5174f8e1
922
exs
Elixir
priv/repo/migrations/030_create_notification_trigger.exs
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
44
2018-05-09T01:08:57.000Z
2021-01-19T07:25:26.000Z
priv/repo/migrations/030_create_notification_trigger.exs
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
36
2018-05-08T23:59:54.000Z
2018-09-28T13:50:30.000Z
priv/repo/migrations/030_create_notification_trigger.exs
freshcom/freshcom-api
4f2083277943cf4e4e8fd4c4d443c7309f285ad7
[ "BSD-3-Clause" ]
9
2018-05-09T14:09:19.000Z
2021-03-21T21:04:04.000Z
defmodule BlueJet.Repo.Migrations.CreateNotificationTrigger do use Ecto.Migration def change do create table(:notification_triggers, primary_key: false) do add :id, :binary_id, primary_key: true add :account_id, references(:accounts, type: :binary_id, on_delete: :delete_all), null: false add ...
34.148148
119
0.699566
6254668ea677d3f678d4973c591ad7caaf4c9bd6
875
ex
Elixir
test/support/conn_case.ex
licaonfee/phoenix_gitlab_monitor
1b7dd437018d42a2b7b9a1643e6767a48f312eee
[ "MIT" ]
12
2018-11-04T03:39:34.000Z
2020-04-29T19:30:58.000Z
test/support/conn_case.ex
licaonfee/phoenix_gitlab_monitor
1b7dd437018d42a2b7b9a1643e6767a48f312eee
[ "MIT" ]
16
2018-11-07T01:05:01.000Z
2021-05-07T21:32:07.000Z
test/support/conn_case.ex
licaonfee/phoenix_gitlab_monitor
1b7dd437018d42a2b7b9a1643e6767a48f312eee
[ "MIT" ]
3
2019-08-27T20:29:00.000Z
2020-05-25T20:36:12.000Z
defmodule MonitorWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common datastructures and query the data layer. Finally, if the...
25
58
0.729143
62546bb4941fed9bd30a99d0cfc8727a331ecb0b
133
ex
Elixir
lib/inch_ex.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
200
2015-01-05T19:08:30.000Z
2022-02-23T01:57:09.000Z
lib/inch_ex.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
57
2015-01-03T12:07:28.000Z
2021-10-31T10:26:31.000Z
lib/inch_ex.ex
asaaki/inch_ex
38874a6050663f97c9cbfea29e9b413b4eea1a7b
[ "MIT" ]
101
2015-01-18T17:20:20.000Z
2022-03-07T23:28:53.000Z
defmodule InchEx do @version Mix.Project.config()[:version] @doc "Returns the version of Inch." def version, do: @version end
19
41
0.714286
625474a0af4bff7a0c7cce8e8b0c80eb96b1fd79
1,015
exs
Elixir
config/config.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
1
2020-07-15T14:39:10.000Z
2020-07-15T14:39:10.000Z
config/config.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
59
2018-11-05T23:09:10.000Z
2020-07-11T20:44:14.000Z
config/config.exs
the-mikedavis/mole
73d884b5dca4e5371b1b399d7e65c0f4a0229851
[ "BSD-3-Clause" ]
null
null
null
use Mix.Config config :mole, ecto_repos: [Mole.Repo], http_client: HTTPoison, malignant_range: 35..40, min_amount: 200, auto_start: true, correct_mult: 3, incorrect_mult: 2, signing_token: "aEv4XpOMzHrn/EWs/yYqMEiRG4D7SgSUt08mQyasbyUp6kNkJOAcTY9hhVcJmi7w", default_admins: ["the-mikedavis", "soyoonk",...
29
86
0.745813
6254975ff7aac89a30a2daef6a6c4b654a8cf1ef
601
ex
Elixir
lib/telnet/oauth.ex
oestrich/telnet-elixir
9a1e431d9d67914d83a051a9bb93183b21f34a53
[ "MIT" ]
3
2019-04-16T22:17:33.000Z
2019-09-14T06:18:04.000Z
lib/telnet/oauth.ex
oestrich/telnet-elixir
9a1e431d9d67914d83a051a9bb93183b21f34a53
[ "MIT" ]
null
null
null
lib/telnet/oauth.ex
oestrich/telnet-elixir
9a1e431d9d67914d83a051a9bb93183b21f34a53
[ "MIT" ]
null
null
null
defmodule Telnet.OAuth do @moduledoc """ Parse OAuth messages """ @doc """ Parse OAuth messages """ def parse(binary) do binary = strip(binary) [module | _] = String.split(binary, " ") data = String.replace(binary, module, "") data = String.trim(data) case Jason.decode(data) do ...
16.694444
47
0.532446
6254b15db9d91b2d77ee120ebe859d8fd067dcb5
2,789
ex
Elixir
implementations/elixir/lib/router/protocol/encoding/default/encode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
implementations/elixir/lib/router/protocol/encoding/default/encode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
implementations/elixir/lib/router/protocol/encoding/default/encode.ex
nondejus/ockam
4dba6c3b9d377643cc8a0e46a8c0e632e8aa48ad
[ "Apache-2.0" ]
null
null
null
defmodule Ockam.Router.Protocol.Encoding.Default.Encode do @moduledoc """ Encodes values using the `Default` encoder. """ import Ockam.Router.Protocol.Encoding.Helpers alias Ockam.Router.Protocol.EncodeError alias Ockam.Router.Protocol.Encoding.Default alias Ockam.Router.Protocol.Encoding.Default.Encode...
26.561905
86
0.655432
6254b2e909db8527d3eca81633bbd0b5efd4842f
1,456
ex
Elixir
clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
clients/cloud_tasks/lib/google_api/cloud_tasks/v2/model/empty.ex
yoshi-code-bot/elixir-google-api
cdb6032f01fac5ab704803113c39f2207e9e019d
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
34.666667
282
0.757555
6254cb1fbd104fb1b8c54be4f1615b2fe3e7a05b
70
exs
Elixir
src/myapp/apps/services/test/test_helper.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
src/myapp/apps/services/test/test_helper.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
src/myapp/apps/services/test/test_helper.exs
ecamacho/elixir_at_work
c8e4c604c925455b4794931c2b9c15ef3774005f
[ "MIT" ]
null
null
null
ExUnit.start Ecto.Adapters.SQL.Sandbox.mode(Services.Repo, :manual)
14
54
0.785714
6254df59b26a4ba331fb18f8b17b387ab2fe5574
753
exs
Elixir
test/plugs/version_test.exs
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
819
2016-11-25T07:12:04.000Z
2022-03-16T06:59:36.000Z
test/plugs/version_test.exs
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
71
2016-11-24T20:19:09.000Z
2021-06-09T10:12:23.000Z
test/plugs/version_test.exs
davidenko87/maru
62b6ca0e42dd550683af8743f50e67048c4027d0
[ "BSD-3-Clause" ]
56
2015-01-10T23:34:12.000Z
2016-11-17T00:13:56.000Z
defmodule Maru.Plugs.GetVersionTest do use ExUnit.Case, async: true import Plug.Test test "accept_version_header" do conn = conn(:get, "/") |> Plug.Conn.put_req_header("accept-version", "v3") |> Maru.Plugs.GetVersion.call(:accept_version_header) assert "v3" = conn.private.maru_version ...
24.290323
78
0.64409
6254e20e80b100be5227cdd508326ef9701ef9d9
147
ex
Elixir
lib/ex_arc/definition.ex
Byzanteam-Labs/ex_arc
615923775a4b1c81170bd18302978cdf7cfd9b65
[ "MIT" ]
null
null
null
lib/ex_arc/definition.ex
Byzanteam-Labs/ex_arc
615923775a4b1c81170bd18302978cdf7cfd9b65
[ "MIT" ]
null
null
null
lib/ex_arc/definition.ex
Byzanteam-Labs/ex_arc
615923775a4b1c81170bd18302978cdf7cfd9b65
[ "MIT" ]
1
2019-01-24T09:20:46.000Z
2019-01-24T09:20:46.000Z
defmodule ExArc.Definition do defmacro __using__(_) do quote do use Arc.Definition use Arc.Actions.Extensions end end end
14.7
32
0.687075
625547e04d15cd76049efe4d52342247ccfc1393
1,451
exs
Elixir
extensions/raxx_logger/test/raxx/logger_test.exs
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
401
2016-06-13T13:40:53.000Z
2022-03-29T17:18:50.000Z
extensions/raxx_logger/test/raxx/logger_test.exs
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
148
2016-06-11T09:59:43.000Z
2021-03-20T11:28:19.000Z
extensions/raxx_logger/test/raxx/logger_test.exs
varnerac/raxx
0ca9b87cb2b10ca8b0eecaa86f10a9628da8fd93
[ "Apache-2.0" ]
31
2017-02-23T14:06:29.000Z
2021-03-22T06:06:53.000Z
defmodule Raxx.LoggerTest do use ExUnit.Case import ExUnit.CaptureLog defmodule DefaultServer do use Raxx.SimpleServer @impl Raxx.SimpleServer def handle_request(_request, _state) do response(:no_content) end end setup %{} do stack = Raxx.Stack.new( [ {Raxx...
26.381818
77
0.637491
62555aadd050dff07b84d7cef31b6e267c421e3c
2,592
exs
Elixir
channel-sender/test/channel_sender_ex/core/channel_id_generator_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-01-11T21:03:44.000Z
2022-03-15T15:13:11.000Z
channel-sender/test/channel_sender_ex/core/channel_id_generator_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
3
2021-12-21T21:04:20.000Z
2022-03-15T16:16:45.000Z
channel-sender/test/channel_sender_ex/core/channel_id_generator_test.exs
santitigaga/async-dataflow
66132c7353ae0b3b9d5a3704699b5ba130b4da9d
[ "MIT" ]
2
2022-02-08T22:33:36.000Z
2022-03-25T19:55:18.000Z
defmodule ChannelSenderEx.Core.ChannelIdGeneratorTest do use ExUnit.Case alias ChannelSenderEx.Core.ChannelIDGenerator alias ChannelSenderEx.Core.RulesProvider.Helper @moduletag :capture_log setup_all do {:ok, _} = Application.ensure_all_started(:plug_crypto) Helper.compile(:channel_sender_ex) ...
35.506849
162
0.739969
6255865c211ea9cfc5f2591f7b4560e03a504061
445
exs
Elixir
priv/repo/migrations/20160304211140_add_guardian_tokens.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
184
2015-11-23T20:51:50.000Z
2022-03-30T01:01:39.000Z
priv/repo/migrations/20160304211140_add_guardian_tokens.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
15
2015-11-26T16:00:20.000Z
2018-05-25T20:13:39.000Z
priv/repo/migrations/20160304211140_add_guardian_tokens.exs
van-mronov/ex_money
39010f02fd822657e3b5694e08b872bd2ab72c26
[ "0BSD" ]
21
2015-11-26T21:34:40.000Z
2022-03-26T02:56:42.000Z
defmodule ExMoney.Repo.Migrations.AddGuardianTokens do use Ecto.Migration def up do create table(:guardian_tokens, primary_key: false) do add :jti, :string, primary_key: true add :typ, :string add :aud, :string add :iss, :string add :sub, :string add :exp, :bigint add ...
20.227273
57
0.629213
6255a1065afcf60947f7725b89ff017f3dedeb46
1,967
ex
Elixir
clients/spanner/lib/google_api/spanner/v1/model/short_representation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
1
2018-12-03T23:43:10.000Z
2018-12-03T23:43:10.000Z
clients/spanner/lib/google_api/spanner/v1/model/short_representation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
clients/spanner/lib/google_api/spanner/v1/model/short_representation.ex
matehat/elixir-google-api
c1b2523c2c4cdc9e6ca4653ac078c94796b393c3
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the &quot;License&quot;); # 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 ...
35.763636
131
0.726487
6255a558428102ac15c8e61c886c52b7721514d3
125
ex
Elixir
debian/sigma.cron.d.ex
aindilis/sandbox-sigma
c68daa8af5688e08e9905224f4a6e35a4ae3f8e6
[ "OLDAP-2.2.1" ]
1
2015-02-16T00:58:05.000Z
2015-02-16T00:58:05.000Z
debian/sigma.cron.d.ex
aindilis/sandbox-sigma
c68daa8af5688e08e9905224f4a6e35a4ae3f8e6
[ "OLDAP-2.2.1" ]
null
null
null
debian/sigma.cron.d.ex
aindilis/sandbox-sigma
c68daa8af5688e08e9905224f4a6e35a4ae3f8e6
[ "OLDAP-2.2.1" ]
null
null
null
# # Regular cron jobs for the sigma package # 0 4 * * * root [ -x /usr/bin/sigma_maintenance ] && /usr/bin/sigma_maintenance
25
78
0.688
6255b08cf233cfd814e8e2ce4bc955d3228e350a
334
ex
Elixir
lib/prepend/cli.ex
LauraBeatris/prepend_cli
d280ee6c01e2d8c9cfa1d598d3a57d303f4cdb40
[ "MIT" ]
2
2020-08-11T19:42:00.000Z
2021-03-13T14:48:32.000Z
lib/prepend/cli.ex
LauraBeatris/prepend_cli
d280ee6c01e2d8c9cfa1d598d3a57d303f4cdb40
[ "MIT" ]
null
null
null
lib/prepend/cli.ex
LauraBeatris/prepend_cli
d280ee6c01e2d8c9cfa1d598d3a57d303f4cdb40
[ "MIT" ]
null
null
null
defmodule Prepend.CLI do @moduledoc """ Prepend is a command line utility to prepend a given string to lines ./prepend '$ ' < file.txt """ def main(lines \\ []) do output = IO.stream(:stdio, :line) output |> Prepend.stream_lines(Enum.join(lines, " ")) |> Stream.into(output) |> Stream.ru...
19.647059
70
0.616766
6255e10bd3deda3a1130208fbd052460bbb25c45
1,357
ex
Elixir
lib/jungle_inflexor/inflections.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
6
2018-04-16T11:38:57.000Z
2020-05-09T00:52:30.000Z
lib/jungle_inflexor/inflections.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
null
null
null
lib/jungle_inflexor/inflections.ex
themgt/jungle_inflexor
d3aa1e86b96f04c99bd2df4f5302528fe644b5ca
[ "MIT" ]
1
2021-01-29T13:05:08.000Z
2021-01-29T13:05:08.000Z
defmodule Jungle.Inflexor.Inflections do require Jungle.Inflexor.Constants alias Jungle.Inflexor.Constants @doc """ Returns the plural form of the word in the string. ## Examples iex> Jungle.Inflexor.pluralize("movie") "movies" """ def pluralize(string) do apply_inflections(string, plu...
22.245902
87
0.646279
625604066d7e442dbe6a0ef8fc3579d26aeb60b1
7,027
ex
Elixir
lib/tirexs/resources/indices.ex
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
lib/tirexs/resources/indices.ex
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
lib/tirexs/resources/indices.ex
williamtran29/tirex_aws
8affc13d32978db47e083bec7ae11c5546f89395
[ "Apache-2.0" ]
null
null
null
defmodule Tirexs.Resources.Indices do @moduledoc false import Tirexs.Resources, only: [urn: 1, urn: 2, urn: 3, urn: 4, __c: 2] ## Mapping Management @doc false @r [action: "/_mapping", bump: :put, bump!: :put!] def _mapping(a, b, c), do: __c(urn(a, @r[:action], b, c), @r) def _mapping(a, {b}), do: __c...
39.256983
89
0.548456
6256080b070b7c06a0bcca2753490cecf1d4931f
1,386
ex
Elixir
lib/web_driver_client/w3c_wire_protocol_client/commands/send_alert_text.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
8
2019-11-24T18:33:12.000Z
2020-12-09T10:20:09.000Z
lib/web_driver_client/w3c_wire_protocol_client/commands/send_alert_text.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
67
2019-12-20T16:33:30.000Z
2021-09-14T03:50:10.000Z
lib/web_driver_client/w3c_wire_protocol_client/commands/send_alert_text.ex
fimassuda/web_driver_client
09d373c9a8a923c5e2860f107f84b16565e338f7
[ "MIT" ]
10
2020-06-19T16:15:03.000Z
2021-09-13T17:56:25.000Z
defmodule WebDriverClient.W3CWireProtocolClient.Commands.SendAlertText do @moduledoc false alias WebDriverClient.Config alias WebDriverClient.ConnectionError alias WebDriverClient.HTTPResponse alias WebDriverClient.Session alias WebDriverClient.W3CWireProtocolClient.ResponseParser alias WebDriverClient.W...
35.538462
78
0.72583
625629660decb3295246eaa41bc6e0d87b4bedc6
730
ex
Elixir
01-elixir-in-action/deps/dialyxir/lib/dialyxir/warnings/improper_list_construction.ex
rgfaber/robex
1c3ea12795a51b5517c8a5e6da225c68cc3d66cc
[ "MIT" ]
null
null
null
01-elixir-in-action/deps/dialyxir/lib/dialyxir/warnings/improper_list_construction.ex
rgfaber/robex
1c3ea12795a51b5517c8a5e6da225c68cc3d66cc
[ "MIT" ]
null
null
null
01-elixir-in-action/deps/dialyxir/lib/dialyxir/warnings/improper_list_construction.ex
rgfaber/robex
1c3ea12795a51b5517c8a5e6da225c68cc3d66cc
[ "MIT" ]
null
null
null
defmodule Dialyxir.Warnings.ImproperListConstruction do @behaviour Dialyxir.Warning @impl Dialyxir.Warning @spec warning() :: :improper_list_constr def warning(), do: :improper_list_constr @impl Dialyxir.Warning @spec format_short([String.t()]) :: String.t() def format_short(args), do: format_long(args)...
27.037037
65
0.716438
62562b7d017ee554d0699bd006db085139f0cee4
39,531
exs
Elixir
lib/elixir/test/elixir/kernel/errors_test.exs
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
1
2018-02-24T19:48:35.000Z
2018-02-24T19:48:35.000Z
lib/elixir/test/elixir/kernel/errors_test.exs
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
lib/elixir/test/elixir/kernel/errors_test.exs
Sae497/elixir
666a0bca8daac6a9dffb80db837c883805a6a22e
[ "Apache-2.0" ]
null
null
null
Code.require_file("../test_helper.exs", __DIR__) defmodule Kernel.ErrorsTest do use ExUnit.Case, async: true defmacro hello do quote location: :keep do def hello, do: :world end end test "no optional arguments in fn" do assert_eval_raise CompileError, "nofile:1: anonym...
34.285343
155
0.546735
625636c102e21b1fc3d6cd3f6181e96cdf1a6ce9
10,615
ex
Elixir
lib/ecto/adapters/tds.ex
soundmonster/ecto_sql
83af511732007a5af0b6601e8376f24553a466e1
[ "Apache-2.0" ]
1
2019-11-11T21:48:20.000Z
2019-11-11T21:48:20.000Z
deps/ecto_sql/lib/ecto/adapters/tds.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
3
2021-06-20T14:51:14.000Z
2021-06-25T00:56:11.000Z
deps/ecto_sql/lib/ecto/adapters/tds.ex
rwtrecs/rocketseat-nlw5-inmana
8ce8bc32e0bdd005c423394bb163945747b557e2
[ "MIT" ]
null
null
null
defmodule Ecto.Adapters.Tds do @moduledoc """ Adapter module for MSSQL Server using the TDS protocol. ## Options Tds options split in different categories described below. All options can be given via the repository configuration. ### Connection options * `:hostname` - Server hostname * `:port...
35.501672
162
0.676024
62567b3f96709390a53c984f147cda18401f0cd4
1,263
ex
Elixir
apps/aehttpserver/lib/aehttpserver/web/controllers/info_controller.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
131
2018-03-10T01:35:56.000Z
2021-12-27T13:44:41.000Z
apps/aehttpserver/lib/aehttpserver/web/controllers/info_controller.ex
SingularityMatrix/elixir-node
ad126aa97931165185cf35454718ed2eee40ceed
[ "ISC" ]
445
2018-03-12T09:46:17.000Z
2018-12-12T09:52:07.000Z
apps/aehttpserver/lib/aehttpserver/web/controllers/info_controller.ex
gspasov/dogs-blockchain
884c14cfc98de2c3793a204da069630d090bbc90
[ "0BSD" ]
23
2018-03-12T12:01:28.000Z
2022-03-06T09:22:17.000Z
defmodule Aehttpserver.Web.InfoController do use Aehttpserver.Web, :controller alias Aecore.Chain.{Header, Genesis} alias Aecore.Chain.Worker, as: Chain alias Aecore.Keys alias Aecore.Account.Account require Logger def info(conn, _params) do top_block = Chain.top_block() top_block_header = ...
23.830189
54
0.673793
6256805d191c126d36f62414aa19f7ea06af0beb
2,032
exs
Elixir
mix.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
22
2016-03-31T02:58:09.000Z
2020-06-16T02:37:16.000Z
mix.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
7
2016-03-27T14:22:59.000Z
2021-04-27T14:33:51.000Z
mix.exs
the5fire/ex_admin_demo
655540499a68670c7349974b47c5e0bfee29aa99
[ "MIT" ]
13
2016-04-21T06:05:32.000Z
2018-08-23T06:38:54.000Z
defmodule ExAdminDemo.Mixfile do use Mix.Project def project do [app: :ex_admin_demo, version: "0.0.2", elixir: "~> 1.0", elixirc_paths: elixirc_paths(Mix.env), compilers: [:phoenix, :gettext] ++ Mix.compilers, build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, ...
31.75
78
0.585138
62570313f08accb053948acf4461090a5be70b6e
211
exs
Elixir
priv/repo/migrations/20150915142830_add_agency_reference_to_vehicle_positions.exs
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
priv/repo/migrations/20150915142830_add_agency_reference_to_vehicle_positions.exs
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
priv/repo/migrations/20150915142830_add_agency_reference_to_vehicle_positions.exs
bus-detective/pro
d313f4facdb4c9229bd7a022eeabb85170000e18
[ "MIT" ]
null
null
null
defmodule BdPro.Repo.Migrations.AddAgencyReferenceToVehiclePositions do use Ecto.Migration def change do alter table(:vehicle_positions) do add :agency_id, references(:agencies) end end end
21.1
71
0.763033
6257212dddb04239367d0af100f6042fbe2cfaa9
1,692
ex
Elixir
lib/real_world_web/telemetry.ex
sunndeath/elixir-phoenix-graphql-react-realworld-example-app
8a3f0a65d970a73cc9fb7faa2e1427c79ffeb9eb
[ "MIT" ]
2
2021-09-02T23:20:13.000Z
2021-11-15T09:39:48.000Z
lib/real_world_web/telemetry.ex
sunndeath/elixir-phoenix-graphql-react-realworld-example-app
8a3f0a65d970a73cc9fb7faa2e1427c79ffeb9eb
[ "MIT" ]
3
2020-05-28T09:05:16.000Z
2020-07-09T19:26:01.000Z
lib/real_world_web/telemetry.ex
dmitrii-esin/elixir-phoenix-graphql-react-realworld-example-app
8a3f0a65d970a73cc9fb7faa2e1427c79ffeb9eb
[ "MIT" ]
null
null
null
defmodule RealWorldWeb.Telemetry do use Supervisor import Telemetry.Metrics def start_link(arg) do Supervisor.start_link(__MODULE__, arg, name: __MODULE__) end @impl true def init(_arg) do children = [ {:telemetry_poller, measurements: periodic_measurements(), period: 10_000} # Add rep...
31.333333
86
0.669031
625734c5b2ef106852ff1d4381c5068006bdded8
4,516
exs
Elixir
apps/reaper/test/unit/reaper/decoder/json_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/reaper/test/unit/reaper/decoder/json_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/reaper/test/unit/reaper/decoder/json_test.exs
smartcitiesdata/smartcitiesdata
c926c25003a8ee2d09b933c521c49f674841c0b6
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule Reaper.Decoder.JsonTest do use ExUnit.Case use Placebo alias Reaper.Decoder alias SmartCity.TestDataGenerator, as: TDG import Checkov @filename "#{__MODULE__}_temp_file" setup do on_exit(fn -> File.rm(@filename) end) [ingestion: TDG.create_ingestion(%{id: "ds1", sourceFormat...
32.257143
120
0.598539
62576e8fe257c9d93a8b28c2bac507284603b1bf
1,787
ex
Elixir
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__double_value_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
null
null
null
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__double_value_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/machine_learning/lib/google_api/machine_learning/v1/model/google_cloud_ml_v1__study_config_parameter_spec__double_value_spec.ex
medikent/elixir-google-api
98a83d4f7bfaeac15b67b04548711bb7e49f9490
[ "Apache-2.0" ]
1
2020-10-04T10:12:44.000Z
2020-10-04T10:12:44.000Z
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
32.490909
127
0.739787
625784b742aff1014bc0545bd4c324164b7d7331
1,733
ex
Elixir
clients/secret_manager/lib/google_api/secret_manager/v1/model/user_managed_status.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/secret_manager/lib/google_api/secret_manager/v1/model/user_managed_status.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/secret_manager/lib/google_api/secret_manager/v1/model/user_managed_status.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
36.87234
168
0.757069
62578766cbef7010cf81a1f414b0cbb9cbb98ca8
1,138
ex
Elixir
ets_registry/lib/ets_registry/client.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
ets_registry/lib/ets_registry/client.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
ets_registry/lib/ets_registry/client.ex
Cleawing/elixir-projects
6562790191536f317aa0b673c265abb604dd2833
[ "Apache-2.0" ]
null
null
null
defmodule EtsRegistry.Client do defmacro __using__(_) do quote do @spec create(String.t) :: {:ok, String.t} | {:error, :not_found} def create(name) when is_binary(name) do EtsRegistry.Recovery.register(name) end @spec drop(String.t) :: {:ok, String.t} | {:error, :not_found} ...
31.611111
108
0.595782
6257904d8b71d5d0c7c4f294d64bd369fc7fff94
1,129
ex
Elixir
test/support/channel_case.ex
ideaMarcos/portishead
0ad09af305e1e663c0d080a9637b8420d0f40fd1
[ "MIT" ]
3
2020-03-09T04:29:49.000Z
2020-07-14T16:09:50.000Z
test/support/channel_case.ex
ideaMarcos/portishead
0ad09af305e1e663c0d080a9637b8420d0f40fd1
[ "MIT" ]
null
null
null
test/support/channel_case.ex
ideaMarcos/portishead
0ad09af305e1e663c0d080a9637b8420d0f40fd1
[ "MIT" ]
null
null
null
defmodule PortisheadWeb.ChannelCase do @moduledoc """ This module defines the test case to be used by channel tests. Such tests rely on `Phoenix.ChannelTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally, if the test case interact...
27.536585
72
0.731621
625793210d77a58f6d6af73bc2da91e101830688
363
exs
Elixir
priv/repo/seeds.exs
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2019-03-28T05:47:39.000Z
2019-03-28T05:47:39.000Z
priv/repo/seeds.exs
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
null
null
null
priv/repo/seeds.exs
pgrunwald/phoenix14_base
991313f244af350245f5fd3e8fe6716a1a9e88a4
[ "MIT" ]
1
2020-05-23T09:20:53.000Z
2020-05-23T09:20:53.000Z
# Script for populating the database. You can run it as: # # mix run priv/repo/seeds.exs # # Inside the script, you can read and write to any of your # repositories directly: # # Phoenix14Base.Repo.insert!(%Phoenix14Base.SomeSchema{}) # # We recommend using the bang functions (`insert!`, `update!` # and so on) ...
30.25
61
0.716253
6257ca517e3789a8d39ae4d7c56d984ee0030a5a
1,270
ex
Elixir
test/support/conn_case.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
test/support/conn_case.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
test/support/conn_case.ex
adrianomota/doctor_schedule
626eef47df8f1ff082c7a7d76342cb9c361c75a2
[ "MIT" ]
null
null
null
defmodule DoctorScheduleWeb.ConnCase do @moduledoc """ This module defines the test case to be used by tests that require setting up a connection. Such tests rely on `Phoenix.ConnTest` and also import other functionality to make it easier to build common data structures and query the data layer. Finally...
30.238095
77
0.740157
6257e3a9769c239f114613d11f5e06b21151dde2
100
ex
Elixir
apps/cam_web/lib/cam_web/live/common/flash_component.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
apps/cam_web/lib/cam_web/live/common/flash_component.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
8
2020-11-16T09:59:12.000Z
2020-11-16T10:13:07.000Z
apps/cam_web/lib/cam_web/live/common/flash_component.ex
paulanthonywilson/mcam
df9c5aaae00b568749dff22613636f5cb92f905a
[ "MIT" ]
null
null
null
defmodule CamWeb.FlashComponent do @moduledoc false use Common.Live.FlashComponent, CamWeb end
16.666667
40
0.81
6257e7e04e0546c2d0b3940540821dbffc03c6fa
668
ex
Elixir
lib/idfk.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
lib/idfk.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
lib/idfk.ex
amorphid/idfk
9d69f49c761c2f58abe88ceca72f33afa396b872
[ "MIT" ]
null
null
null
defmodule Idfk do @doc """ Raises an error for any argument deemed invalid. # You might use it in a module like this: defmodule AtomEater do # atoms are valid def eat(atom) when is_atom(atom) do IO.puts "Mmm, that \#{atom} was excellent!" end # anything other ...
24.740741
55
0.625749
62582776501c873bc3b5cb7783ad7e7903307344
1,560
ex
Elixir
lib/game/format/socials.ex
stevegrossi/ex_venture
e02d5a63fdb882d92cfb4af3e15f7b48ad7054aa
[ "MIT" ]
2
2019-05-14T11:36:44.000Z
2020-07-01T08:54:04.000Z
lib/game/format/socials.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
null
null
null
lib/game/format/socials.ex
nickwalton/ex_venture
d8ff1b0181db03f9ddcb7610ae7ab533feecbfbb
[ "MIT" ]
1
2021-01-29T14:12:40.000Z
2021-01-29T14:12:40.000Z
defmodule Game.Format.Socials do @moduledoc """ Format functions for socials """ import Game.Format.Context alias Game.Format alias Game.Format.Table @doc """ Format a list of socials """ def socials(socials) do rows = socials |> Enum.map(fn social -> [social.name, "{comma...
22.285714
61
0.630769
62585042bd95b5abcd69d42a9bd92c3b5e559fa8
1,520
ex
Elixir
test/support/data_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
1
2021-02-12T09:17:38.000Z
2021-02-12T09:17:38.000Z
test/support/data_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
null
null
null
test/support/data_case.ex
colindensem/petal-k8s
def9dc653dcae2ef35021d44821e6c69d8744e15
[ "MIT" ]
null
null
null
defmodule Petal.DataCase do @moduledoc """ This module defines the setup for tests requiring access to the application's data layer. You may define functions here to be used as helpers in your tests. Finally, if the test case interacts with the database, we enable the SQL sandbox, so changes done to the...
27.142857
77
0.686184
625852fb084ddd7db62af673e3c1f23b7fe4bbd1
14,184
ex
Elixir
lib/pow/ecto/schema/changeset.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
1
2021-08-25T12:11:08.000Z
2021-08-25T12:11:08.000Z
lib/pow/ecto/schema/changeset.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
lib/pow/ecto/schema/changeset.ex
patrickbiermann/pow
ebc2ac7d6e15961dac4be38091ff75dae0d26554
[ "MIT" ]
null
null
null
defmodule Pow.Ecto.Schema.Changeset do @moduledoc """ Handles changesets methods for Pow schema. These methods should never be called directly, but instead the methods build in macros in `Pow.Ecto.Schema` should be used. This is to ensure that only compile time configuration is used. `Pow.Ecto.Schema.Pass...
34.510949
185
0.688522
625875852cdac4e1da006a5b9bfecafc15baf7da
513
ex
Elixir
server/lib/database.ex
rogeralsing/ElixirChat
6c45de32fd96eb3bd91799987de50bef406562d1
[ "Apache-2.0" ]
null
null
null
server/lib/database.ex
rogeralsing/ElixirChat
6c45de32fd96eb3bd91799987de50bef406562d1
[ "Apache-2.0" ]
null
null
null
server/lib/database.ex
rogeralsing/ElixirChat
6c45de32fd96eb3bd91799987de50bef406562d1
[ "Apache-2.0" ]
null
null
null
#require Amnesia use Amnesia defdatabase Data do deftable ChatLog, [{ :id, autoincrement }, :timestamp, :message ], type: :ordered_set do end end defmodule Database do use Data def setup() do Amnesia.Schema.create Amnesia.start Data.create(disk: [node]) Data.wait end def history() do Amnesia.transac...
16.548387
89
0.719298
625890a4e66488df4c9f4993aa908180f3f6e4da
772
ex
Elixir
lib/codes/codes_f03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_f03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
lib/codes/codes_f03.ex
badubizzle/icd_code
4c625733f92b7b1d616e272abc3009bb8b916c0c
[ "Apache-2.0" ]
null
null
null
defmodule IcdCode.ICDCode.Codes_F03 do alias IcdCode.ICDCode def _F0390 do %ICDCode{full_code: "F0390", category_code: "F03", short_code: "90", full_name: "Unspecified dementia without behavioral disturbance", short_name: "Unspecified dementia without behavioral disturbanc...
30.88
78
0.67228
625890e0b9948677499a2547ad5d00e7e0fdc7e3
3,122
ex
Elixir
lib/gen_socket_client/transport/web_socket_client.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
lib/gen_socket_client/transport/web_socket_client.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
lib/gen_socket_client/transport/web_socket_client.ex
alboratech/phoenix_gen_socket_client
6d8176bb8d163b8047a41afb75f9b3d984753a4c
[ "MIT" ]
null
null
null
defmodule Phoenix.Channels.GenSocketClient.Transport.WebSocketClient do @moduledoc """ Websocket transport powered by the [websocket_client](https://github.com/sanmiguel/websocket_client) library. Supported transport options: - `keepalive` - Interval in which a ping message is sent to the server to keep t...
35.078652
119
0.650865
6258b132f04f4c42fc593cc224c7b7aa314780f3
1,046
ex
Elixir
apps/telemetry_event/lib/telemetry_event/helper/telemetry_event_helper.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
26
2019-09-20T23:54:45.000Z
2020-08-20T14:23:32.000Z
apps/telemetry_event/lib/telemetry_event/helper/telemetry_event_helper.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
757
2019-08-15T18:15:07.000Z
2020-09-18T20:55:31.000Z
apps/telemetry_event/lib/telemetry_event/helper/telemetry_event_helper.ex
calebcarroll1/smartcitiesdata
b0f03496f6c592c82ba14aebf6c5996311cf3cd0
[ "Apache-2.0" ]
9
2019-11-12T16:43:46.000Z
2020-03-25T16:23:16.000Z
defmodule TelemetryEvent.Helper.TelemetryEventHelper do @moduledoc false alias TelemetryEvent.Helper.MetricsEvent def metrics_config(app_name) do [ port: metrics_port(), metrics: MetricsEvent.metrics(), name: app_name ] end def tags_and_values(event_tags_and_values) do event_ta...
22.255319
74
0.656788
6258db7f09f6c0563cfe508129d7720d1c32f2e2
3,694
ex
Elixir
lib/ex_blocktrail.ex
cyberpunk-ventures/ex_blocktrail
5431d8bc8d78c80b5a14882686d1c6eb5f3102c4
[ "MIT" ]
null
null
null
lib/ex_blocktrail.ex
cyberpunk-ventures/ex_blocktrail
5431d8bc8d78c80b5a14882686d1c6eb5f3102c4
[ "MIT" ]
null
null
null
lib/ex_blocktrail.ex
cyberpunk-ventures/ex_blocktrail
5431d8bc8d78c80b5a14882686d1c6eb5f3102c4
[ "MIT" ]
null
null
null
defmodule BlocktrailCom do @moduledoc """ Collection of API wrappers and helpers """ use HTTPoison.Base alias BlocktrailCom.{BlockData, PagedResponse} @spec latest_block(String.t) :: BlockData.t def latest_block(_) do url = "/btc/block/latest?" with {:ok, response} <- BlocktrailCom.get(url), ...
24.959459
99
0.63346
6258ede1aa9c94bbc1e98eab9dafecaf003e09cc
5,944
ex
Elixir
lib/mix/lib/mix/tasks/compile.protocols.ex
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.protocols.ex
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
lib/mix/lib/mix/tasks/compile.protocols.ex
xtian/elixir
c680eb1a3992309c272e8f808e15990ea5318d6e
[ "Apache-2.0" ]
null
null
null
defmodule Mix.Tasks.Compile.Protocols do use Mix.Task @manifest ".compile.protocols" @manifest_vsn :v2 @moduledoc ~S""" Consolidates all protocols in all paths. This task is automatically invoked unless the project disables the `:consolidate_protocols` option in their configuration. ## Consolidati...
28.714976
91
0.659825
62590e424d5a59e0740e4bceed591e5a2fe35c03
1,681
ex
Elixir
lib/basehangul/decode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
1
2019-02-09T04:51:42.000Z
2019-02-09T04:51:42.000Z
lib/basehangul/decode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
null
null
null
lib/basehangul/decode.ex
Dalgona/basehangul
8cb19429554a532bd1c991977f33e026487a7795
[ "WTFPL" ]
null
null
null
defmodule BaseHangul.Decode do @moduledoc false use Bitwise @padchr [0xC8, 0xE5] def decode_chunk(x) do euc_bytes = for <<b::8 <- x>>, do: b case euc_bytes |> Enum.chunk_every(2) |> to_ords([]) do {:ok, ords} -> {:ok, repack_10to8(ords)} {:error, _} = error -> error end end @spe...
25.861538
84
0.541344
62594d28f9496089b077b9743b3d59a069131778
1,251
exs
Elixir
config/prod.secret.exs
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
config/prod.secret.exs
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
config/prod.secret.exs
BCrawfordScott/horizons
04ee6ba579517e6a35c1347de4be1bceea8e4b36
[ "MIT" ]
null
null
null
# In this file, we load production configuration and secrets # from environment variables. You can also hardcode secrets, # although such is generally not recommended and you have to # remember to add this file to your .gitignore. use Mix.Config database_url = System.get_env("DATABASE_URL") || raise """ envi...
29.785714
67
0.720224
6259517c637d37b022bc77a93d138b70730261c0
68
exs
Elixir
src/server/apps/domain/test/test_helper.exs
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
28
2017-04-07T03:23:30.000Z
2021-09-29T13:41:04.000Z
src/server/apps/domain/test/test_helper.exs
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
null
null
null
src/server/apps/domain/test/test_helper.exs
akeating/pespa
f6be1a61cdcbdf0b7ee7ce20161504300ed4d0e4
[ "MIT" ]
7
2017-10-22T10:47:53.000Z
2021-04-21T23:11:22.000Z
ExUnit.start() Ecto.Adapters.SQL.Sandbox.mode(Domain.Repo, :manual)
22.666667
52
0.779412
6259692c86a029db955cffcfcf213024512d5124
3,193
ex
Elixir
components/button.ex
bdanklin/nostrum
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
3
2021-09-05T09:44:02.000Z
2022-01-26T15:31:50.000Z
components/button.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
components/button.ex
bdanklin/remedy
554ebd6cff1d0f68c874aa92f475dabf1aed5512
[ "MIT" ]
null
null
null
defmodule Remedy.Component.Button do @moduledoc """ Helpers for dealing with Button Components """ use Remedy.Schema.Component @type link :: %__MODULE__{ type: Component.type(), style: Component.style(), custom_id: nil, label: Component.label(), emoji: Component.emoji(), url: Componen...
22.64539
250
0.596618
62596b66f9557f75d07248cb1f649284f5e77edf
424
ex
Elixir
elixir/web/models/pet.ex
afronski/playground-graphql
903f3dc25e64fe6f45903a130cdb8d4b64990cf5
[ "MIT" ]
null
null
null
elixir/web/models/pet.ex
afronski/playground-graphql
903f3dc25e64fe6f45903a130cdb8d4b64990cf5
[ "MIT" ]
null
null
null
elixir/web/models/pet.ex
afronski/playground-graphql
903f3dc25e64fe6f45903a130cdb8d4b64990cf5
[ "MIT" ]
null
null
null
defmodule Blog.Pet do use Blog.Web, :model schema "pets" do field :name, :string field :species, :string belongs_to :owner, Blog.Customer, foreign_key: :owner_id timestamps() end @doc """ Builds a changeset based on the `struct` and `params`. """ def changeset(struct, params \\ %{}) do ...
20.190476
60
0.632075
62597ff53ffaecd61e0b406e31a29ccb82b693b9
1,900
ex
Elixir
clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2021-12-20T03:40:53.000Z
2021-12-20T03:40:53.000Z
clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
1
2020-08-18T00:11:23.000Z
2020-08-18T00:44:16.000Z
clients/compute/lib/google_api/compute/v1/model/node_groups_scoped_list.ex
pojiro/elixir-google-api
928496a017d3875a1929c6809d9221d79404b910
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38
190
0.743158
6259c05a0ce705a31f628cb6295c4d9c470fbdf0
724
exs
Elixir
test/game_of_life/output/formatter/formatter_test.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
test/game_of_life/output/formatter/formatter_test.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
test/game_of_life/output/formatter/formatter_test.exs
rdk08/otp-game-of-life
142740af57f9d49a05b1cf159fe00474956b696f
[ "MIT" ]
null
null
null
defmodule GameOfLife.Output.FormatterTest do use ExUnit.Case, async: true alias GameOfLife.Output.{Board, Formatter} test "formats universe state snapshot into a list of drawable rows" do input = %{ snapshot: %{ {0, 0} => :dead, {1, 0} => :alive, {2, 0} => :dead, {0, 1}...
21.294118
72
0.494475
6259cd2e8d4a7b5b36df74b8bf6da59a595ff9de
2,246
ex
Elixir
lib/excoveralls/circle.ex
hez/excoveralls
a4c1140e3757df4c075f9f5918307b6e973e8d83
[ "MIT" ]
716
2015-01-04T20:41:01.000Z
2022-03-29T08:44:09.000Z
lib/excoveralls/circle.ex
hez/excoveralls
a4c1140e3757df4c075f9f5918307b6e973e8d83
[ "MIT" ]
255
2015-01-03T23:41:58.000Z
2022-03-19T23:06:06.000Z
deps/excoveralls/lib/excoveralls/circle.ex
carlosviana/blog
1dcf58c3ca40bc3a7105d75de6f51954eb44bca8
[ "MIT" ]
217
2015-03-31T20:17:58.000Z
2022-02-20T23:46:41.000Z
defmodule ExCoveralls.Circle do @moduledoc """ Handles circle-ci integration with coveralls. """ alias ExCoveralls.Poster def execute(stats, options) do json = generate_json(stats, Enum.into(options, %{})) if options[:verbose] do IO.puts json end Poster.execute(json) end def genera...
27.390244
119
0.672752
6259d2b84482207f769aa90921fd51269297f458
1,205
exs
Elixir
mix.exs
tyrchen/protobuf-elixir
0b976ddc1651093a8a5d418ce409ddf638dce1a1
[ "MIT" ]
1
2021-06-13T20:26:58.000Z
2021-06-13T20:26:58.000Z
mix.exs
ArcBlock/protobuf-elixir
0b976ddc1651093a8a5d418ce409ddf638dce1a1
[ "MIT" ]
null
null
null
mix.exs
ArcBlock/protobuf-elixir
0b976ddc1651093a8a5d418ce409ddf638dce1a1
[ "MIT" ]
1
2020-03-25T22:37:45.000Z
2020-03-25T22:37:45.000Z
defmodule Protobuf.Mixfile do use Mix.Project @version "0.5.4" def project do [ app: :protobuf, version: @version, elixir: "~> 1.4", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), escript: escript(), description: descrip...
24.1
118
0.572614
625a3fab5dcdd0cf73778684cae6f7abf189e67d
40,273
ex
Elixir
lib/elixir/lib/system.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
lib/elixir/lib/system.ex
moogle19/elixir
91fa0e3adad1654a4fe2c8bd218e9e6d42b92b47
[ "Apache-2.0" ]
null
null
null
defmodule System do @moduledoc """ The `System` module provides functions that interact directly with the VM or the host system. ## Time The `System` module also provides functions that work with time, returning different times kept by the system with support for different time units. One of the comp...
30.280451
108
0.666129
625a3fbd125d42f98e9544a579ca590b148d930b
2,331
ex
Elixir
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_create_instruction_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_create_instruction_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
1
2020-12-18T09:25:12.000Z
2020-12-18T09:25:12.000Z
clients/data_labeling/lib/google_api/data_labeling/v1beta1/model/google_cloud_datalabeling_v1alpha1_create_instruction_metadata.ex
mcrumm/elixir-google-api
544f22797cec52b3a23dfb6e39117f0018448610
[ "Apache-2.0" ]
null
null
null
# Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
38.85
249
0.75118
625a69c401b7b2e07a0642f091bb6f3a4653d3ad
1,300
exs
Elixir
mix.exs
LaxisB/neo4_ecto
dd41935463c71b611d989fa10cbad9d8522cc1dd
[ "Apache-2.0" ]
null
null
null
mix.exs
LaxisB/neo4_ecto
dd41935463c71b611d989fa10cbad9d8522cc1dd
[ "Apache-2.0" ]
null
null
null
mix.exs
LaxisB/neo4_ecto
dd41935463c71b611d989fa10cbad9d8522cc1dd
[ "Apache-2.0" ]
null
null
null
defmodule Neo4Ecto.MixProject do use Mix.Project def project do [ app: :neo4_ecto, version: "0.0.2", elixir: "~> 1.8", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, deps: deps(), package: package(), description: description() ]...
23.636364
102
0.591538
625a7640c7f9820683aeaadc7f7023ec8b2b8704
618
ex
Elixir
web/models/session.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/models/session.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
web/models/session.ex
cuongkta/login_logout_elixir
71ad24e1077402fa719ce52fb3bc2a77510b1b86
[ "Apache-2.0" ]
null
null
null
defmodule Blog.Session do alias Blog.Repo alias Blog.User def login(params, repo) do user = repo.get_by(User, email: String.downcase(params["email"])) case authenticate(user, params["password"]) do true -> {:ok, user} _ -> :error end end defp authenticate(user, password) do ca...
19.3125
69
0.639159
625a7fda7396180c30f68b97faaa388b91cc63d3
931
ex
Elixir
debian/postrm.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
4
2015-12-07T13:37:48.000Z
2021-03-24T16:27:52.000Z
debian/postrm.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
null
null
null
debian/postrm.ex
certik/python2.6
3b8ab0cdb83bea160b2c5e11c620ffd1bdf04a59
[ "PSF-2.0" ]
null
null
null
#!/bin/sh # postrm script for python # # see: dh_installdeb(1) set -e # summary of how this script can be called: # * <postrm> `remove' # * <postrm> `purge' # * <old-postrm> `upgrade' <new-version> # * <new-postrm> `failed-upgrade' <old-version> # * <new-postrm> `abort-install' # ...
23.275
78
0.626208
625a9a83502ae9dc50d961cd4db07111cc861f06
697
exs
Elixir
test/acceptance/regressions/i023_missing_error_end_codeblock_test.exs
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
test/acceptance/regressions/i023_missing_error_end_codeblock_test.exs
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
test/acceptance/regressions/i023_missing_error_end_codeblock_test.exs
akash-akya/earmark_parser
de2216ca0622a9d2491ea2295d0be1bedcaf64c6
[ "Apache-2.0" ]
null
null
null
defmodule Test.Acceptance.Regressions.I023MissingErrorEndCodeblockTest do use Support.AcceptanceTestCase describe "bad end" do test "error message" do markdown = """ ``` content ```` """ ast = [pre_code(" content\n````")] expected = {:error, ast, [{:error, 1, "Fence...
23.233333
109
0.566714
625a9a90c48457a3d5c7292b8ab950df8d402b5d
4,199
ex
Elixir
lib/web/router.ex
enter-haken/frank
5241edab723b69afaa9397b6c1921583cecca564
[ "MIT" ]
null
null
null
lib/web/router.ex
enter-haken/frank
5241edab723b69afaa9397b6c1921583cecca564
[ "MIT" ]
1
2022-03-02T08:25:37.000Z
2022-03-02T08:25:37.000Z
lib/web/router.ex
enter-haken/frank
5241edab723b69afaa9397b6c1921583cecca564
[ "MIT" ]
null
null
null
defmodule Frank.Web.Router do use Plug.Router import Frank.Web.Response plug(Plug.Logger) plug(Frank.Web.Plug.Bakery) plug(CORSPlug, origin: ["*"], methods: ["GET", "OPTIONS"]) plug(:match) plug(Plug.Parsers, parsers: [:json, :multipart], pass: ["application/json"], json_decoder: Poison ...
25.448485
92
0.56442